.car-gallery { min-width:0; width:100%; padding:10px; border:1px solid rgba(111,91,58,.18); border-radius:20px; background:rgba(255,252,246,.9); box-shadow:0 12px 32px rgba(61,43,23,.07); }
.car-gallery-stage { position:relative; overflow:hidden; background:#f0eeea; border-radius:12px; }
.car-gallery-track { display:flex; width:100%; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; overscroll-behavior-x:contain; cursor:grab; }
.car-gallery-track::-webkit-scrollbar,.car-gallery-thumbs::-webkit-scrollbar { display:none; width:0; height:0; }
.car-gallery-track.is-dragging { cursor:grabbing; scroll-snap-type:none; user-select:none; }
.car-gallery-slide { position:relative; flex:0 0 100%; min-width:0; aspect-ratio:16/10; scroll-snap-align:start; scroll-snap-stop:always; display:grid; place-items:center; }
.car-gallery-slide img { display:block; width:100%; height:100%; object-fit:cover; object-position:center; }
.car-gallery-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 3px 4px; }
.car-gallery-label { font-size:10px; font-weight:600; letter-spacing:.16em; color:#8c7959; }
.car-gallery-controls { display:flex; align-items:center; gap:3px; }
.car-gallery-arrow { display:grid; place-items:center; width:44px; height:44px; border:0; border-radius:50%; background:transparent; color:#494237; cursor:pointer; transition:background .18s,color .18s; }
.car-gallery-arrow svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.car-gallery-arrow[hidden],.car-gallery img[hidden] { display:none; }
.car-gallery-arrow:hover { background:#ece4d5; color:#211e19; }
.car-gallery-count { min-width:55px; text-align:center; color:#625642; font:12px/1.5 Arial,sans-serif; font-variant-numeric:tabular-nums; letter-spacing:.08em; }
.car-gallery-thumbs { position:relative; display:flex; gap:10px; max-width:100%; padding:3px 2px 9px; overflow-x:auto; scrollbar-width:none; overscroll-behavior-x:contain; }
.car-gallery-thumb { flex:0 0 88px; height:66px; padding:3px; border:2px solid transparent; border-radius:10px; background:transparent; opacity:.65; cursor:pointer; transition:border-color .18s,opacity .18s; }
.car-gallery-thumb img { width:100%; height:100%; object-fit:cover; border-radius:5px; display:block; }
.car-gallery-thumb:hover { opacity:1; }
.car-gallery-thumb[aria-pressed="true"] { border-color:#a3844e; opacity:1; background:#f3ebda; }
.car-gallery button:focus-visible,.car-gallery-track:focus-visible { outline:2px solid #9c783b; outline-offset:-2px; }
.car-gallery-credit { margin:3px 3px 0; padding:10px 0 2px; border-top:1px solid #8f795724; font-size:10px; line-height:1.6; color:#887e6e; }
.car-gallery-credit a { text-decoration:none; }
.car-gallery-credit a:hover { text-decoration:underline; text-underline-offset:3px; }
.car-gallery-unavailable { padding:24px; color:#6c6357; font-size:14px; }
.merged-page[id^="cars-"] article > .grid > div { min-width:0; }
@media(max-width:600px) { .car-gallery { padding:8px; border-radius:16px; } .car-gallery-stage { border-radius:10px; } .car-gallery-slide { aspect-ratio:4/3; } .car-gallery-thumb { flex-basis:72px; height:56px; border-radius:8px; } .car-gallery-thumbs { gap:7px; } .car-gallery-toolbar { padding-top:6px; } }
@media(prefers-reduced-motion:reduce) { .car-gallery * { scroll-behavior:auto !important; transition:none !important; } }
.car-gallery-track { cursor:zoom-in; }
.car-lightbox { position:fixed; inset:0; width:100vw; max-width:none; height:100vh; height:100dvh; max-height:none; margin:0; padding:0; border:0; background:#151411; color:#f7f2e9; overscroll-behavior:contain; }
.car-lightbox[open] { display:flex; flex-direction:column; }
.car-lightbox::backdrop { background:#151411; }
.car-lightbox-header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding: max(12px,env(safe-area-inset-top)) 20px 12px; }
.car-lightbox-title { font-size:13px; letter-spacing:.03em; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.car-lightbox button { flex-shrink:0; width:48px; height:48px; border:1px solid #ffffff24; border-radius:50%; background:#ffffff0a; color:#f7f2e9; font:30px/1 Arial,sans-serif; cursor:pointer; }
.car-lightbox button:hover { background:#ffffff20; }
.car-lightbox button[hidden],.car-lightbox img[hidden] { display:none; }
.car-lightbox-track { display:flex; flex:1; min-height:0; width:100%; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; overscroll-behavior-x:contain; }
.car-lightbox-track::-webkit-scrollbar { display:none; }
.car-lightbox-slide { flex:0 0 100%; min-width:0; height:100%; display:flex; align-items:center; justify-content:center; scroll-snap-align:start; scroll-snap-stop:always; }
.car-lightbox-slide img { display:block; width:100%; height:100%; object-fit:contain; }
.car-lightbox-footer { display:flex; align-items:center; justify-content:center; gap:28px; padding:16px 20px max(20px,env(safe-area-inset-bottom)); }
.car-lightbox-footer span { min-width:64px; text-align:center; font:13px/1.5 Arial,sans-serif; font-variant-numeric:tabular-nums; letter-spacing:.1em; }
.car-lightbox :focus-visible { outline:2px solid #c8ab71; outline-offset:-2px; }
.car-gallery-featured { margin-top:12px; }
.car-gallery-featured .car-gallery-slide { aspect-ratio:4/3; }
.car-gallery-featured .car-gallery-thumb { flex-basis:60px; height:48px; }
