/* Keep the vehicle's natural dimensions when the carousel becomes narrower. */
html.main-page .v7journey-stage img.car {
  display: block;
  height: auto;
  aspect-ratio: 1050 / 546;
  object-fit: contain;
}

/* Text length determines the layout on phones and tablets, not a fixed inset. */
@media (max-width: 1000px) {
  html.main-page .v7journey-scene {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-height: 0;
    padding: 32px 24px 80px;
  }

  html.main-page .v7journey-copy {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
  }

  html.main-page .v7journey-copy p {
    max-width: 100%;
    margin-bottom: 0;
  }

  html.main-page .v7journey-stage {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-rows: auto auto;
    align-content: end;
    gap: 18px;
    flex: 1 0 auto;
    width: 100%;
    min-width: 0;
    padding: 0 6px 12px;
  }

  html.main-page .v7journey-stage .status {
    position: relative;
    inset: auto;
    grid-row: 1;
    justify-self: end;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
  }

  html.main-page .v7journey-stage img.car {
    position: relative;
    inset: auto;
    grid-row: 2;
    align-self: end;
    justify-self: center;
    width: 100%;
    max-width: 540px;
    margin: 0;
  }
}

@media (max-width: 700px) {
  html.main-page .v7journey-copy h3 {
    font-size: clamp(2rem, 8.8vw, 2.75rem);
    line-height: 1.08;
  }

  html.main-page .v7journey-stage img.car {
    max-width: 480px;
  }
}

/* Existing entrance animation must not hide the image in reduced-motion mode. */
@media (prefers-reduced-motion: reduce) {
  html.main-page .v7journey-stage img.car {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
