/* Expanded photographs; the page's scroll and hero animations are unchanged. */
.vehicle-dialog {
  width: min(98vw, 2200px);
  max-height: 98dvh;
}
.vehicle-dialog-inner { padding: 12px; }
.vehicle-dialog-heading { gap: 14px; margin-bottom: 8px; }
.vehicle-dialog-heading h2 { font-size: clamp(26px, 2.6vw, 36px); }
.vehicle-gallery-specs { margin-bottom: 10px; }
.vehicle-dialog-footer { padding: 7px 0; }
.vehicle-thumb { height: 54px; }
.vehicle-viewer > img { cursor: zoom-in; }
.vehicle-viewer > img:focus-visible { outline: 2px solid var(--red-light); outline-offset: -3px; }
.gallery-expand-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  pointer-events: none;
  padding: 5px 9px;
  background: rgba(3, 7, 12, .8);
  color: #eceae5;
  font-size: 11px;
}
@media (min-width: 701px) {
  .vehicle-dialog-inner { height: min(98dvh, 1320px); padding: 12px 16px; }
  .vehicle-viewer { flex: 1 1 0; height: 0; min-height: 0; }
}
@media (max-width: 700px) {
  .vehicle-dialog { width: calc(100vw - 12px); }
  .vehicle-dialog-inner { padding: 10px; }
  .vehicle-dialog-heading h2 { font-size: 26px; }
  .vehicle-viewer { height: auto; min-height: 0; aspect-ratio: var(--gallery-aspect, 3 / 2); }
  .vehicle-thumb { height: 44px; flex-basis: 64px; }
  .vehicle-gallery-specs { font-size: 13px; }
  .gallery-expand-hint { right: 6px; bottom: 6px; font-size: 10px; }
}
.photo-fullscreen {
  box-sizing: border-box;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #020406;
  color: #fff;
  overflow: hidden;
}
.photo-fullscreen::backdrop { background: #020406; }
.photo-fullscreen-image { width: 100%; height: 100%; object-fit: contain; }
.photo-fullscreen button {
  position: absolute;
  z-index: 1;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(3,7,12,.8);
  color: #fff;
  font-size: 28px;
}
.photo-fullscreen-close { top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); }
.photo-fullscreen-prev { top: calc(50% - 23px); left: 10px; }
.photo-fullscreen-next { top: calc(50% - 23px); right: 10px; }
.photo-fullscreen-counter {
  position: absolute;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 10px;
  background: rgba(3,7,12,.8);
  font-size: 12px;
  white-space: nowrap;
}
