.vehicle-gallery { position: relative; min-width: 0; }
.vehicle-gallery-state { position:absolute;z-index:4;top:22px;left:0;min-width:155px;padding:12px 32px 12px 18px;clip-path:polygon(0 0,100% 0,88% 100%,0 100%);background:rgba(9,18,27,.95);color:#fff;font-size:10px;font-weight:900;letter-spacing:.09em;text-transform:uppercase;pointer-events:none }
.vehicle-gallery-state--on_request { background:rgba(227,23,29,.95) }
.vehicle-gallery-state--sold { background:rgba(68,73,79,.95) }
.vehicle-gallery-main { position: relative; width: 100%; aspect-ratio: 16/10; display: block; overflow: hidden; padding: 0; border: 0; border-radius: 26px; background: #101923; cursor: zoom-in; box-shadow: var(--shadow); }
.vehicle-gallery-main img { width: 100%; height: 100%; display: block; object-fit: cover; }
.vehicle-gallery-counter { position: absolute; right: 16px; bottom: 16px; padding: 8px 13px; border-radius: 999px; background: rgba(4,9,15,.72); color: #fff; font-size: 11px; font-weight: 800; backdrop-filter: blur(8px); }
.vehicle-gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; padding: 2px 1px 8px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; }
.vehicle-gallery-thumb { flex: 0 0 112px; height: 76px; overflow: hidden; padding: 0; border: 2px solid transparent; border-radius: 13px; background: #101923; cursor: pointer; opacity: .72; }
.vehicle-gallery-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
.vehicle-gallery-thumb.is-active { border-color: var(--red); opacity: 1; }
.vehicle-gallery-placeholder { min-height: 520px; display: grid; place-items: center; padding: 24px; border-radius: 26px; background: linear-gradient(135deg,#172431,#0b151f); color: #8996a7; font-size: 11px; font-weight: 900; letter-spacing: .1em; text-align: center; text-transform: uppercase; }
.vehicle-action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vehicle-action-grid .btn-primary, .btn-whatsapp { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; cursor: pointer; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.btn-whatsapp { background: var(--green); color: #fff; }
.vehicle-finance-link { display: inline-flex; margin-top: 18px; color: var(--red); font-size: 11px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.modal-open { overflow: hidden; }

.vehicle-lightbox, .vehicle-lead-modal { position: fixed; z-index: 100; inset: 0; }
.lightbox-backdrop, .lead-modal-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(2,6,10,.92); }
.lightbox-stage { position: relative; z-index: 1; width: 100%; height: 100%; display: grid; grid-template-columns: 68px minmax(0,1fr) 68px; align-items: center; padding: 70px 24px 54px; }
.lightbox-stage img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.lightbox-close, .lightbox-arrow, .lead-modal-close { display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: rgba(9,16,23,.82); color: #fff; cursor: pointer; }
.lightbox-close { position: absolute; z-index: 2; top: 18px; right: 20px; width: 44px; height: 44px; font-size: 25px; }
.lightbox-arrow { width: 48px; height: 48px; justify-self: center; font-size: 21px; }
.vehicle-lightbox.is-single .lightbox-arrow { visibility: hidden; }
.lightbox-counter { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); padding: 7px 13px; border-radius: 999px; background: rgba(9,16,23,.82); color: #fff; font-size: 12px; }

.vehicle-lead-modal { display: grid; place-items: center; padding: 20px; }
.lead-modal-panel { position: relative; z-index: 1; width: min(680px,100%); max-height: calc(100vh - 40px); overflow-y: auto; padding: 34px; border-radius: 26px; background: #fff; color: var(--ink); box-shadow: 0 38px 90px rgba(0,0,0,.4); }
.lead-modal-panel h2 { margin: 10px 0 6px; font-size: clamp(36px,6vw,58px); letter-spacing: -.055em; }
.lead-modal-panel > p { margin: 0 0 26px; color: var(--muted-dark); }
.lead-modal-close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-color: #d9dee4; background: #f2f4f6; color: var(--ink); font-size: 22px; }
@media (max-width:760px) {
  .vehicle-gallery-main { aspect-ratio: 4/3; border-radius: 18px; }
  .vehicle-gallery-placeholder { min-height: 330px; border-radius: 18px; }
  .vehicle-gallery-thumb { flex-basis: 82px; height: 60px; }
  .vehicle-action-grid { grid-template-columns: 1fr; }
  .lightbox-stage { grid-template-columns: 44px minmax(0,1fr) 44px; padding-inline: 6px; }
  .lightbox-arrow { width: 40px; height: 40px; }
  .lead-modal-panel { padding: 28px 20px; border-radius: 20px; }
}

@media (prefers-reduced-motion:reduce) {
  .vehicle-gallery-main img, .vehicle-lightbox * { transition: none!important; }
}
