/* Cache-safe layout corrections for natural image sizing and progressive enhancement. */

.reveal-ready .section,
.reveal-ready .proof-item,
.reveal-ready .download-section {
  opacity: 1;
  transform: none;
  transition: none;
}

.phone-card {
  aspect-ratio: auto;
}

.phone-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.phone-card-back,
.phone-card-front {
  transform: none;
}

.carousel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.carousel-viewport::-webkit-scrollbar {
  display: none;
}

.showcase-track {
  display: grid;
  width: 100%;
  transform: none !important;
  transition: none;
  grid-auto-columns: 100%;
  grid-auto-flow: column;
  will-change: auto;
}

.showcase-card {
  width: 100%;
  min-width: 100%;
  flex: none;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.showcase-media {
  height: auto;
  min-height: 580px;
  overflow: visible;
}

.showcase-media img {
  width: min(100%, 267px);
  height: auto;
  max-width: 100%;
  aspect-ratio: auto;
  object-fit: contain;
}

@media (max-width: 1040px) {
  .showcase-media {
    min-height: 520px;
  }

  .showcase-media img {
    width: min(100%, 239px);
    height: auto;
  }
}

@media (max-width: 720px) {
  .showcase-media {
    min-height: 0;
  }

  .showcase-media img {
    width: min(100%, 237px);
    height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-viewport {
    scroll-behavior: auto;
  }
}
