.container:has(>.vehicle-page){max-width:1560px;padding:28px 24px 64px;}
.vehicle-page{--vehicle-gray:rgb(from var(--border) g g g);--vehicle-soft:color-mix(in srgb,var(--vehicle-gray) 40%,var(--surface));--vehicle-red:#e64b45;--vehicle-offset:106px;color:var(--ink);}
.vehicle-page button,.vehicle-lightbox button{cursor:pointer;}
.vehicle-page svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;}
.vehicle-page button:focus-visible,.vehicle-page a:focus-visible,.vehicle-page textarea:focus-visible,.vehicle-page summary:focus-visible,.vehicle-lightbox button:focus-visible{outline:2px solid var(--good);outline-offset:3px;}
.vehicle-breadcrumb{display:flex;flex-wrap:wrap;gap:8px;color:var(--ink-soft);margin-bottom:24px;}
.vehicle-breadcrumb a{text-decoration:none;}.vehicle-breadcrumb a:hover{color:var(--good);}
.vehicle-page__layout{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:20px 32px;align-items:start;}
.vehicle-title,.vehicle-gallery,.vehicle-facts,.vehicle-sections{grid-column:1;min-width:0;}
.vehicle-title__row{display:flex;align-items:start;gap:20px;}.vehicle-title h1{margin:0;flex:1;min-width:0;overflow-wrap:anywhere;}
.vehicle-secondary{color:var(--ink-soft);margin:10px 0 0;}
.vehicle-secondary--footnote{margin-top:2px;font-size:12px;line-height:16px;}
.vehicle-actions{display:flex;gap:8px;flex-shrink:0;}.vehicle-actions button{width:44px;height:44px;border:0;border-radius:12px;background:var(--vehicle-gray);color:var(--ink);display:grid;place-items:center;}
.vehicle-actions button:hover{background:var(--vehicle-soft);}.vehicle-actions button:active{transform:scale(.96);}.vehicle-actions button[aria-pressed=true]{color:var(--good);}.vehicle-actions [data-favorite-id][aria-pressed=true]{color:var(--vehicle-red);}.vehicle-actions [data-favorite-id][aria-pressed=true] svg{fill:currentColor;}.vehicle-actions [data-cart-id][aria-pressed=true]{color:var(--vehicle-red);}
.vehicle-gallery{display:grid;grid-template-columns:minmax(0,2fr) minmax(190px,.85fr);grid-template-rows:1fr 1fr;height:520px;gap:8px;overflow:hidden;border-radius:22px;}
.vehicle-gallery>button{position:relative;border:0;padding:0;min-width:0;min-height:0;background:var(--vehicle-gray);overflow:hidden;}.vehicle-gallery>button:first-child{grid-row:1/3;}.vehicle-gallery img{display:block;width:100%;height:100%;object-fit:cover;}.vehicle-gallery--few{grid-template-columns:1fr 1fr;}.vehicle-gallery--few>button{grid-row:1/3;}.vehicle-gallery--few>button:only-child{grid-column:1/-1;}.vehicle-all-photos{position:absolute;right:16px;bottom:16px;display:flex;align-items:center;height:40px;padding:0 16px;border-radius:12px;background:color-mix(in srgb,var(--ink) 80%,transparent);color:var(--surface);}.vehicle-no-photo{grid-column:1/-1;grid-row:1/-1;display:grid;place-items:center;background:var(--vehicle-soft);color:var(--ink-soft);}
.vehicle-facts{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:16px;background:var(--vehicle-soft);padding:22px;border-radius:20px;}.vehicle-facts strong{display:block;overflow-wrap:anywhere;}.vehicle-facts span{display:block;color:var(--ink-soft);margin-top:4px;}
.vehicle-sidebar{grid-column:2;grid-row:1/5;position:sticky;top:var(--vehicle-offset);max-height:calc(100dvh - var(--vehicle-offset) - 16px);overflow-y:auto;padding:24px;background:var(--vehicle-soft);border:1px solid var(--vehicle-gray);border-radius:24px;scrollbar-width:thin;}
.vehicle-price{overflow-wrap:anywhere;}.vehicle-price-note{color:var(--ink-soft);margin:18px 0;}
/* Чёрная плашка-подсказка с отблеском (как «Бесплатный отчёт» в избранном) — переиспользуется для цены и «Быстрого вопроса». */
.vehicle-tip{position:relative;display:inline-block;}
.vehicle-tip--price{margin-top:12px;}
.vehicle-tip__badge{position:relative;isolation:isolate;overflow:hidden;display:inline-flex;align-items:center;gap:5px;border:0;border-radius:7px;background:#050505;color:#fff;padding:5px 9px;font:inherit;font-size:12px;line-height:16px;font-weight:500;cursor:pointer;white-space:nowrap;}
.vehicle-tip__badge:hover,.vehicle-tip__badge:focus-visible{background:#171717;}
.vehicle-tip__badge::before{content:"";position:absolute;z-index:1;inset:-45% auto -45% -60%;width:38%;background:linear-gradient(110deg,transparent,rgba(255,255,255,.65),transparent);transform:skewX(-18deg);pointer-events:none;}
.vehicle-tip__badge::before{animation:vehicle-tip-sheen 2600ms ease-in-out infinite;}
@keyframes vehicle-tip-sheen{0%,30%{left:-60%}70%,100%{left:140%}}
.vehicle-tip__bubble{position:absolute;z-index:6;left:0;top:calc(100% + 14px);width:320px;max-width:calc(100vw - 48px);padding:16px 18px;background:#050505;color:#fff;border-radius:12px;font-size:14px;line-height:21px;font-weight:400;box-shadow:0 8px 24px rgba(0,0,0,.22);opacity:0;visibility:hidden;transform:translateY(4px);transition:opacity .15s ease,transform .15s ease;pointer-events:none;}
.vehicle-tip__bubble::before{content:"";position:absolute;left:26px;top:-14px;width:28px;height:15px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 42 25'%3E%3Cpath fill='%23050505' d='M0 25C17 25 21 16 21 0C21 16 25 25 42 25Z'/%3E%3C/svg%3E") center/100% 100% no-repeat;}
.vehicle-tip:hover .vehicle-tip__bubble,.vehicle-tip:focus-within .vehicle-tip__bubble{opacity:1;visibility:visible;transform:translateY(0);}
.vehicle-contacts{display:flex;gap:10px;flex-wrap:wrap;}.vehicle-cta{display:flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:0 20px;border:0;border-radius:14px;background:var(--good);color:var(--surface);text-decoration:none;transition:filter 180ms,transform 180ms;}.vehicle-sidebar .vehicle-cta{width:100%;}.vehicle-cta:hover{filter:brightness(.92);}.vehicle-cta:active{transform:scale(.99);}.vehicle-page [hidden]{display:none!important;}
.vehicle-question{margin-top:24px;}.vehicle-question__head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:12px;}.vehicle-question__head h2{margin:0;}.vehicle-question__input{position:relative;}.vehicle-question textarea{width:100%;height:150px;resize:vertical;min-height:150px;padding:16px 48px 16px 16px;border:1px solid var(--vehicle-gray);background:var(--surface);border-radius:14px;color:var(--ink);}.vehicle-question__input button{position:absolute;right:8px;bottom:12px;width:34px;height:34px;border:0;border-radius:9px;background:var(--vehicle-gray);display:grid;place-items:center;}.vehicle-topics{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px;}.vehicle-topics button{min-height:34px;padding:5px 10px;border:0;border-radius:18px;background:var(--vehicle-gray);color:var(--ink);}.vehicle-topics button:hover{background:var(--surface);}
.vehicle-sections{display:grid;gap:32px;margin-top:12px;}.vehicle-sections h2{margin:0 0 20px;}.vehicle-sections h3{margin:0 0 12px;}.vehicle-spec-groups{display:grid;grid-template-columns:1fr 1fr;gap:32px;}.vehicle-specs{margin:0;}.vehicle-specs>div{display:grid;grid-template-columns:1fr 1fr;gap:12px;min-height:44px;padding:10px 0;border-bottom:1px solid var(--vehicle-gray);}.vehicle-specs dt{color:var(--ink-soft);}.vehicle-specs dd{margin:0;overflow-wrap:anywhere;}.vehicle-extra{margin-top:16px;}.vehicle-extra summary,.vehicle-secondary-button{display:inline-flex;align-items:center;min-height:44px;padding:10px 16px;background:var(--vehicle-gray);border:0;border-radius:12px;color:var(--ink);text-decoration:none;cursor:pointer;}.vehicle-extra[open] summary{margin-bottom:12px;}.vehicle-surface{padding:24px;border-radius:20px;background:var(--vehicle-soft);}.vehicle-surface p{color:var(--ink-soft);}.vehicle-inspection>svg{color:var(--good);width:32px;height:32px;margin-bottom:12px;}.vehicle-checks{display:flex;flex-wrap:wrap;gap:16px;margin:16px 0 24px;}.vehicle-source{padding:16px;border-radius:14px;background:var(--vehicle-soft);}.vehicle-description{white-space:pre-line;max-height:200px;overflow:hidden;}.vehicle-description.is-expanded{max-height:none;}
@media(max-width:1200px){.vehicle-page__layout{grid-template-columns:minmax(0,1fr) 340px;gap:20px;}.vehicle-title__row{flex-wrap:wrap;}.vehicle-title h1{flex-basis:100%;}.vehicle-gallery{height:460px;grid-template-columns:minmax(0,2fr) minmax(140px,.85fr);}.vehicle-facts{grid-auto-flow:row;grid-template-columns:repeat(3,minmax(0,1fr));}.vehicle-sidebar{padding:20px;}}
@media(max-width:1000px){.vehicle-page__layout{display:flex;flex-direction:column;}.vehicle-page__layout>*{width:100%;}.vehicle-title{order:0;}.vehicle-gallery{order:1;}.vehicle-facts{order:2;}.vehicle-sidebar{order:3;position:static;max-height:none;}.vehicle-sections{order:4;}.vehicle-sidebar .vehicle-cta{width:auto;flex:1;}}
@media(max-width:600px){.container:has(>.vehicle-page){padding:20px 16px 40px;}.vehicle-breadcrumb{margin-bottom:18px;}.vehicle-gallery{height:300px;display:flex;overflow-x:auto;scroll-snap-type:x mandatory;}.vehicle-gallery>button{flex:0 0 100%;scroll-snap-align:start;}.vehicle-sidebar{order:2;padding:20px;}.vehicle-facts{order:3;padding:16px;grid-template-columns:repeat(2,minmax(0,1fr));}.vehicle-sidebar .vehicle-cta{width:100%;flex:auto;}.vehicle-spec-groups{grid-template-columns:1fr;gap:24px;}.vehicle-surface{padding:20px;}.vehicle-lightbox{width:100vw;max-width:100vw;padding:8px;}.vehicle-lightbox__stage{grid-template-columns:36px minmax(0,1fr) 36px;gap:4px;}.vehicle-lightbox__stage button{min-width:36px;}.vehicle-contacts>.vehicle-cta{width:100%;}}
@media(prefers-reduced-motion:reduce){.vehicle-cta{transition:none;transform:none!important;}}
/* Compact corrective pass, main image with thumbnails. */
.vehicle-breadcrumb{margin-bottom:20px;}

.vehicle-secondary{margin-top:8px;}
.vehicle-gallery{display:block;height:auto;overflow:visible;border-radius:0;}
.vehicle-gallery__main{position:relative;height:480px;overflow:hidden;border-radius:20px;background:var(--vehicle-soft);}
.vehicle-gallery__main>[data-photo-open]{display:block;width:100%;height:100%;border:0;padding:0;background:transparent;}
.vehicle-gallery__main img{object-fit:contain;width:100%;height:100%;}
.vehicle-gallery__main>button:not([data-photo-open]){position:absolute;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:50%;background:var(--surface);color:var(--ink);}
.vehicle-gallery__prev{left:16px;}.vehicle-gallery__prev svg{transform:rotate(180deg);}.vehicle-gallery__next{right:16px;}
.vehicle-gallery__main>button:disabled{opacity:.45;cursor:default;}
.vehicle-gallery__count{position:absolute;bottom:16px;right:16px;padding:5px 12px;border-radius:10px;background:color-mix(in srgb,var(--ink) 80%,transparent);color:var(--surface);pointer-events:none;}
.vehicle-thumbnails{display:flex;gap:8px;overflow-x:auto;margin-top:10px;padding:2px;scrollbar-width:thin;}
.vehicle-thumbnails button{flex:0 0 100px;height:68px;padding:0;border:2px solid transparent;border-radius:10px;overflow:hidden;background:var(--vehicle-soft);}
.vehicle-thumbnails img{width:100%;height:100%;object-fit:cover;}
.vehicle-thumbnails button[aria-pressed=true]{border-color:var(--good);}

.vehicle-facts{padding:18px 20px;min-height:84px;border-radius:16px;}
.vehicle-facts span{margin-top:3px;}
.vehicle-sidebar{padding:22px;border-radius:22px;}

.vehicle-price-note{margin:18px 0 20px;}
.vehicle-sidebar .vehicle-cta{min-height:50px;height:50px;border-radius:13px;}
.vehicle-question{margin-top:20px;}.vehicle-question__head{margin-bottom:12px;}
.vehicle-question textarea{height:130px;min-height:130px;padding:14px 50px 14px 14px;}
.vehicle-question__input button{width:40px;height:40px;}.vehicle-topics button{padding:0 10px;height:34px;}.vehicle-question .vehicle-secondary{margin-top:12px;}
.vehicle-sections{gap:32px;}.vehicle-sections h2{margin-bottom:16px;}.vehicle-sections h3{margin-bottom:12px;}
.vehicle-specs>div{min-height:40px;padding:8px 0;}
.vehicle-info-pair{display:grid;grid-template-columns:1fr 1fr;gap:16px;}.vehicle-info-pair>.vehicle-surface{padding:20px;min-height:170px;border-radius:18px;display:flex;flex-direction:column;align-items:start;}
.vehicle-info-pair h2{margin:0 0 8px;}.vehicle-info-pair p{margin:8px 0 12px;}.vehicle-info-pair .vehicle-secondary-button{margin-top:auto;}.vehicle-info-pair .vehicle-checks{gap:8px;margin:8px 0 16px;}
.vehicle-secondary-button,.vehicle-extra summary{min-height:42px;}.vehicle-source{padding:16px;border-radius:12px;}.vehicle-description{max-width:760px;max-height:156px;}
@media(max-width:1000px){.vehicle-gallery{display:block;}.vehicle-sidebar{order:2;}.vehicle-facts{order:3;}}
@media(max-width:600px){.vehicle-gallery__main{height:300px;}.vehicle-info-pair{grid-template-columns:1fr;}.vehicle-title__row{display:contents;}.vehicle-title{display:flex;flex-direction:column;}.vehicle-title h1{order:0;}.vehicle-title .vehicle-secondary{order:1;}.vehicle-actions{order:2;margin-top:12px;}}
@media(min-width:1001px){.vehicle-topics{gap:4px;}.vehicle-topics button{padding-inline:7px;white-space:nowrap;}}

/* Gallery and informational accents matched to the approved layout. */
.vehicle-gallery__main{height:clamp(280px,calc(100dvh - var(--vehicle-offset) - 334px),460px);}
.vehicle-thumbnails{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(58px,1fr);gap:6px;}
.vehicle-thumbnails button{width:100%;min-width:0;height:64px;}
.vehicle-thumbnails img{object-fit:contain;}
.vehicle-facts{gap:16px;padding:18px 20px;}
.vehicle-fact{display:flex;align-items:center;gap:12px;min-width:0;}
.vehicle-fact>svg{width:28px;height:28px;color:var(--ink-soft);}
.vehicle-fact>div{min-width:0;}


.vehicle-price-note{color:var(--ink-soft);}

.vehicle-info-pair>.vehicle-surface{display:grid;grid-template-columns:44px minmax(0,1fr);gap:14px;align-items:start;}
.vehicle-feature-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:color-mix(in srgb,var(--good) 16%,var(--surface));color:var(--good);}
.vehicle-feature-icon svg{width:26px;height:26px;stroke-width:2.2;}
.vehicle-feature-content{display:flex;flex-direction:column;align-items:start;height:100%;min-width:0;}


.vehicle-feature-content .vehicle-secondary-button{gap:10px;}
.vehicle-feature-content .vehicle-secondary-button svg{width:18px;height:18px;}
.vehicle-checks span{display:inline-flex;align-items:center;gap:6px;}
.vehicle-checks i{display:grid;place-items:center;width:16px;height:16px;border-radius:50%;background:var(--good);color:var(--surface);flex-shrink:0;}
.vehicle-checks i svg{width:13px;height:13px;stroke-width:2.5;}
.vehicle-info-pair .vehicle-checks{gap:8px 12px;}
@media(min-width:1001px){.vehicle-title__row{flex-wrap:nowrap;}.vehicle-title h1{flex-basis:auto;}.vehicle-facts{grid-auto-flow:column;grid-template-columns:none;grid-auto-columns:minmax(0,1fr);}}
@media(max-width:1400px) and (min-width:1001px){.vehicle-fact{gap:8px;}.vehicle-fact>svg{width:24px;height:24px;}.vehicle-facts{gap:10px;padding:16px 12px;}.vehicle-info-pair>.vehicle-surface{gap:10px;padding:16px;grid-template-columns:36px minmax(0,1fr);}.vehicle-feature-icon{width:36px;height:36px;}}
@media(max-width:1000px){.vehicle-gallery__main{height:clamp(280px,52vw,440px);}.vehicle-thumbnails{grid-auto-columns:92px;}}
@media(max-width:600px){.vehicle-gallery__main{height:300px;}.vehicle-fact{gap:10px;}.vehicle-info-pair>.vehicle-surface{grid-template-columns:36px minmax(0,1fr);gap:12px;}.vehicle-feature-icon{width:36px;height:36px;}}





.vehicle-feature-icon svg{background:var(--good);color:var(--surface);border-radius:50%;padding:5px;width:30px;height:30px;}
@media(max-width:1400px) and (min-width:1001px){}

/* One full-viewport photo viewer, independent scrolling columns. */
.vehicle-gallery__main>[data-main-count]{position:absolute;inset:auto 16px 16px auto;width:auto;height:34px;background:color-mix(in srgb,var(--ink) 80%,transparent);pointer-events:auto;color:var(--surface);padding:5px 12px;border-radius:10px;}
.vehicle-lightbox{position:fixed;inset:0;margin:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;padding:0;border:0;border-radius:0;background:var(--ink);color:var(--surface);overflow:hidden;}
.vehicle-lightbox::backdrop{background:var(--ink);}
.vehicle-lightbox__layout{display:grid;grid-template-columns:128px minmax(0,1fr) 380px;height:100%;min-height:0;}
.vehicle-lightbox svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;}
.vehicle-lightbox button{cursor:pointer;}
.vehicle-lightbox__thumbs{display:flex;flex-direction:column;gap:8px;padding:12px 10px;overflow-y:auto;min-height:0;scrollbar-width:thin;overscroll-behavior:contain;background:color-mix(in srgb,var(--ink) 94%,var(--surface));}
.vehicle-lightbox__thumbs>[data-photo-counter]{padding:4px 0 8px;text-align:center;}
.vehicle-lightbox__thumbs button{width:100%;height:80px;flex-shrink:0;padding:0;overflow:hidden;border:2px solid transparent;border-radius:8px;background:var(--ink);transition:filter 160ms;}
.vehicle-lightbox__thumbs button:hover{filter:brightness(1.15);}
.vehicle-lightbox__thumbs button[aria-pressed=true]{border-color:var(--good);}
.vehicle-lightbox__thumbs img{width:100%;height:100%;object-fit:cover;display:block;}
.vehicle-gallery-viewer{height:100%;min-width:0;overflow-y:auto;overscroll-behavior:contain;padding:12px 14px;scrollbar-width:thin;scrollbar-gutter:stable;}
.vehicle-gallery-viewer figure{margin:0 0 10px;min-height:240px;display:grid;place-items:center;background:color-mix(in srgb,var(--ink) 94%,var(--surface));border-radius:4px;overflow:hidden;position:relative;}
.vehicle-gallery-viewer img{display:block;width:100%;height:auto;max-height:calc(100dvh - 24px);object-fit:contain;min-height:1px;}
.vehicle-gallery-viewer figure.is-loading{aspect-ratio:4/3;}
.vehicle-gallery-viewer figure.is-loading::after{content:"Загрузка фото…";position:absolute;color:var(--surface);}
.vehicle-photo-error{padding:40px 20px;text-align:center;}
.vehicle-lightbox__info{position:relative;padding:24px;overflow-y:auto;overscroll-behavior:contain;border-left:1px solid color-mix(in srgb,var(--surface) 12%,transparent);background:color-mix(in srgb,var(--ink) 94%,var(--surface));scrollbar-width:thin;}
.vehicle-lightbox [data-photo-close]{position:absolute;right:12px;top:12px;width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:10px;color:var(--surface);background:transparent;}
.vehicle-lightbox [data-photo-close]:hover{background:color-mix(in srgb,var(--surface) 12%,transparent);}
.vehicle-lightbox__price{padding-top:36px;overflow-wrap:anywhere;}
.vehicle-lightbox__info h2{margin:10px 0 4px;}
.vehicle-lightbox__mileage{margin:4px 0 0;color:var(--border);}
.vehicle-lightbox .vehicle-contacts{margin-top:24px;display:flex;flex-direction:column;gap:10px;}
.vehicle-lightbox .vehicle-cta{width:100%;height:52px;flex-shrink:0;}
.vehicle-lightbox [hidden]{display:none!important;}
.vehicle-lightbox__report{margin-top:28px;}
.vehicle-lightbox__report h3{margin:0 0 12px;}
.vehicle-lightbox__report p{color:var(--border);}
.vehicle-report-row{min-height:62px;display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid color-mix(in srgb,var(--surface) 12%,transparent);}
.vehicle-report-row>span{width:24px;height:24px;border:2px solid var(--good);color:var(--good);border-radius:50%;display:grid;place-items:center;flex-shrink:0;}
.vehicle-report-row svg{width:18px;height:18px;}
.vehicle-lightbox__report>.vehicle-cta{margin-top:20px;}
@media(max-width:1200px){.vehicle-lightbox__layout{grid-template-columns:108px minmax(0,1fr) 340px;}.vehicle-lightbox__info{padding:20px;}}
@media(max-width:700px){.vehicle-lightbox__layout{display:flex;flex-direction:column;overflow-y:auto;}.vehicle-gallery-viewer{order:0;flex-shrink:0;height:48dvh;margin-top:54px;padding:8px;overflow:hidden;}.vehicle-gallery-viewer figure{height:100%;min-height:0;margin:0;display:none;aspect-ratio:auto;}.vehicle-gallery-viewer figure.is-current{display:grid;}.vehicle-gallery-viewer img{width:100%;height:100%;max-height:100%;object-fit:contain;}.vehicle-lightbox__thumbs{order:1;flex-direction:row;height:84px;min-height:84px;padding:8px;overflow-x:auto;overflow-y:hidden;}.vehicle-lightbox__thumbs button{width:86px;height:66px;}.vehicle-lightbox__thumbs>[data-photo-counter]{position:fixed;top:12px;left:16px;padding:0;z-index:2;}.vehicle-lightbox__info{order:2;overflow:visible;border:0;padding:16px;}.vehicle-lightbox [data-photo-close]{position:fixed;z-index:2;top:4px;right:8px;}.vehicle-lightbox__price{padding-top:0;}.vehicle-lightbox .vehicle-contacts{margin-top:16px;}.vehicle-lightbox__report{margin-top:24px;}}
@media(prefers-reduced-motion:reduce){.vehicle-lightbox *{scroll-behavior:auto!important;transition:none!important;}}

/* Ordinary-page gallery: six columns, two rows; full-width source proportions. */
@media(min-width:1001px){.vehicle-page__layout{grid-template-columns:minmax(0,1fr) 360px;gap:20px 28px;}}
.vehicle-gallery__main{width:100%;height:auto;aspect-ratio:var(--photo-ratio,16/9);border-radius:18px;}
.vehicle-gallery__main>[data-photo-open]:not([data-main-count]){position:absolute;inset:0;width:100%;height:100%;}
.vehicle-gallery__main img{max-width:none;width:100%;height:100%;object-fit:cover;object-position:center;}
.vehicle-gallery__main>button:not([data-photo-open]){z-index:1;}
.vehicle-gallery__main>button:not([data-photo-open]):hover{background:var(--vehicle-gray);}
.vehicle-gallery__main>button:not([data-photo-open]):active{transform:translateY(-50%) scale(.96);}
.vehicle-gallery__main>button:not([data-photo-open]) svg{width:22px;height:22px;}
.vehicle-gallery__main>[data-main-count]{height:36px;display:flex;align-items:center;justify-content:center;z-index:1;}
.vehicle-thumbnails{display:grid;grid-auto-flow:row;grid-auto-columns:auto;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-top:10px;padding:0;overflow:visible;}
.vehicle-thumbnails button{height:auto;width:100%;min-width:0;aspect-ratio:16/9;border:2px solid transparent;border-radius:10px;position:relative;transition:filter 160ms ease;}
.vehicle-thumbnails img{object-fit:cover;width:100%;height:100%;position:absolute;inset:0;}
.vehicle-thumbnails button:hover{filter:brightness(.93);}
.vehicle-thumbnails__more span{position:absolute;inset:0;display:grid;place-items:center;background:color-mix(in srgb,var(--ink) 65%,transparent);color:var(--surface);}
@media(min-width:601px) and (max-width:1000px){.vehicle-thumbnails{grid-template-columns:repeat(4,minmax(0,1fr));}}
@media(max-width:600px){.vehicle-thumbnails{display:flex;overflow-x:auto;scrollbar-width:none;gap:8px;}.vehicle-thumbnails::-webkit-scrollbar{display:none;}.vehicle-thumbnails button{flex:0 0 100px;width:100px;height:auto;}.vehicle-gallery__main{height:auto;aspect-ratio:var(--photo-ratio,4/3);}}
@media(prefers-reduced-motion:reduce){.vehicle-thumbnails button{transition:none;}.vehicle-gallery__main>button:not([data-photo-open]):active{transform:translateY(-50%);}}

@media(min-width:1001px){.vehicle-gallery__main.is-wide{min-height:500px;max-height:590px;}.vehicle-topics button{padding-inline:7px;}.vehicle-topics{gap:4px;}}
