/* Stable, full-frame photographs; the shared clock never changes page geometry. */
.vehicle-gallery-cycle { min-width: 0; }
.vehicle-gallery-cycle.vehicle-gallery--main > .vehicle-gallery-picture,
.vehicle-gallery-cycle.vehicle-gallery--detail {
  aspect-ratio: var(--vehicle-gallery-frame-ratio, 1565 / 1005);
  background: #07151b;
}
.vehicle-gallery-cycle.vehicle-gallery--main > .vehicle-gallery-picture {
  display: block;
  width: 100%;
  overflow: hidden;
}
.vehicle-gallery-cycle.vehicle-gallery--main > .vehicle-gallery-picture > .vehicle-gallery-image,
.vehicle-gallery-cycle.vehicle-gallery--detail > .vehicle-gallery-picture > .vehicle-gallery-image {
  display: block;
  position: static;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center;
}
.vehicle-gallery-cycle.vehicle-gallery--detail {
  position: relative;
  display: block;
  overflow: hidden;
}
.vehicle-gallery-cycle.vehicle-gallery--detail > .vehicle-gallery-picture {
  display: block;
  width: 100%;
  height: 100%;
}
.vehicle-gallery-cycle.vehicle-gallery--preview[data-vehicle-gallery-view="night"] { background: #040a0e; }
.vehicle-gallery-cycle.vehicle-gallery--preview .vehicle-gallery-image { object-fit: contain; }
.vehicle-gallery-cycle.vehicle-gallery--detail > .vehicle-gallery-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  width: fit-content;
  max-width: calc(100% - 24px);
  margin: 0;
  padding: 6px 9px;
  border-radius: 4px;
  background: #061a20df;
  color: #e6eeee;
  font: 400 11px/1.5 var(--sans, Inter, Arial, sans-serif);
}
.vehicle-gallery-cycle .vehicle-gallery-pause,
.vehicle-gallery-cycle .vehicle-view-switch > .vehicle-gallery-pause {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #d5e1e4;
  cursor: pointer;
}
.vehicle-gallery-cycle .vehicle-gallery-pause:hover { background: #ffffff13; }
.vehicle-gallery-cycle .vehicle-gallery-pause[aria-pressed="true"] { background: #edf4f6; color: #10292f; }
.vehicle-gallery-cycle .vehicle-gallery-pause:focus-visible { outline: 2px solid var(--gold, #c4a064); outline-offset: 3px; }
.vehicle-gallery-cycle .vehicle-gallery-pause svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.vehicle-gallery-cycle .vehicle-gallery-pause[aria-pressed="true"] svg { fill: currentColor; stroke-width: 1; }
.vehicle-gallery-cycle.vehicle-gallery--detail > .vehicle-gallery-pause {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  border: 1px solid #ffffff50;
  background: #061a20df;
  color: #edf4f6;
}
.vehicle-gallery-cycle.vehicle-gallery--detail > .vehicle-gallery-pause[aria-pressed="true"] { background: #edf4f6; color: #10292f; }
.vehicle-gallery-cycle .vehicle-gallery-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
/* Swaps happen only after decoding. There are no fades, including reduced-motion use. */
.vehicle-gallery-cycle .vehicle-gallery-image { transition: none; animation: none; }
@media (max-width: 600px) {
  .vehicle-gallery-cycle.vehicle-gallery--main > figcaption {
    grid-template-columns: minmax(0, 1fr);
  }
  .vehicle-gallery-cycle.vehicle-gallery--main > figcaption > span { grid-column: 1; grid-row: 1; }
  .vehicle-gallery-cycle.vehicle-gallery--main > figcaption > strong { grid-column: 1; grid-row: 2; }
  .vehicle-gallery-cycle.vehicle-gallery--main > figcaption > .vehicle-gallery-caption {
    grid-column: 1;
    grid-row: 3;
    min-block-size: 3.2em;
    line-height: 1.6;
  }
  .vehicle-gallery-cycle.vehicle-gallery--main .vehicle-view-switch {
    grid-column: 1;
    grid-row: 4;
    justify-self: start;
    margin-top: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .vehicle-gallery-cycle,
  .vehicle-gallery-cycle * { scroll-behavior: auto; }
}
