/* Directory + numbered galleries. No global redesign or image filters. */
.vehicle-directory{list-style:none;padding:0;margin:24px 0}
.vehicle-directory li{margin:0 0 20px}
.vehicle-directory h2{font-size:clamp(1.45rem,3vw,2rem);max-width:none;margin:0}
.vehicle-directory a{display:inline-block;padding:10px 0;color:var(--gold);text-decoration:underline;text-underline-offset:5px}
.vehicle-gallery-title{max-width:none;font-size:clamp(2rem,5vw,3.7rem);line-height:1.1;margin:24px 0}
.vehicle-job-description{white-space:pre-wrap;max-width:80ch;color:var(--text);margin:0 0 24px;overflow-wrap:anywhere}
.gallery-stage{background:var(--bg-soft);border:1px solid var(--line-soft);border-radius:var(--radius-sm);min-height:240px;height:clamp(260px,62vh,680px);display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:pan-y pinch-zoom}
.gallery-stage img,.gallery-stage video{width:100%;height:100%;object-fit:contain;filter:none;user-select:none;-webkit-user-select:none}
.gallery-stage p{padding:24px;margin:0;text-align:center}
.gallery-controls{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:18px}
.gallery-controls .btn:disabled{opacity:.45;cursor:default}
.gallery-counter{min-width:80px;text-align:center;color:var(--text);font-variant-numeric:tabular-nums}
.gallery-dialog{background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:var(--radius-sm);width:min(96vw,1500px);max-width:96vw;max-height:96vh;padding:14px}
.gallery-dialog::backdrop{background:rgba(0,0,0,.92)}
.gallery-dialog[open]{display:flex;flex-direction:column;gap:12px;position:fixed;inset:2vh 0;margin:auto;z-index:1600}
.gallery-dialog .btn{align-self:flex-end}
.gallery-dialog .gallery-stage{height:74vh;min-height:180px;border:0;flex:1}
.gallery-dialog .gallery-counter{display:block}
@media(max-width:650px){.gallery-controls{gap:8px}.gallery-controls .btn{padding:.7rem .85rem}.gallery-stage{height:55vh;min-height:230px}.gallery-dialog .gallery-stage{height:70vh}}

/* Prevent the existing flex stage from overriding the media hidden attribute. */
.gallery-stage [hidden]{display:none!important}
