/* Apple Product Bezel — iPhone 17 Pro Silver Portrait
 * Source: Apple Design Resources (Bezel-iPhone-17.dmg)
 * Screen cutout measured: 1206×2622 @ inset 2.5% / 5.3333% / 2.5% / 5.3333%
 * of full PNG 1350×2760
 *
 * Do NOT add border-radius on .iphone-screen — the bezel PNG masks corners.
 * A CSS radius clips content + background and lets the cream page show through
 * the transparent cutout (white corners + crushed corner UI).
 */

.iphone-device {
  --frame-w: 320px;
  position: relative;
  margin-left: auto;
  margin-right: auto;
  width: var(--frame-w);
  aspect-ratio: 1350 / 2760;
  box-sizing: border-box;
  /* Shadow only on the bezel img — filter on this wrapper composites the
     transparent cutout against the cream page and paints light corner fringes. */
}

@media (min-width: 1024px) {
  .iphone-device { --frame-w: 400px; }
}

@media (min-width: 1280px) {
  .iphone-device { --frame-w: 440px; }
}

@media (min-width: 1512px) {
  .iphone-device { --frame-w: 480px; }
}

.iphone-device.iphone-device-sm {
  --frame-w: 280px;
}

@media (min-width: 1024px) {
  .iphone-device.iphone-device-sm { --frame-w: 340px; }
}

@media (min-width: 1280px) {
  .iphone-device.iphone-device-sm { --frame-w: 380px; }
}

@media (min-width: 1512px) {
  .iphone-device.iphone-device-sm { --frame-w: 420px; }
}

.iphone-device .iphone-screen {
  position: absolute;
  /* Slightly inside measured hole AABB so content tucks under the black
     inner lip of the official bezel (kills cream hairline at the curve). */
  top: 2.15%;
  right: 4.75%;
  bottom: 2.15%;
  left: 4.75%;
  overflow: hidden;
  /* Continuous corner ≈ R 193 on 1206×2622 → width% / height% (slash form).
     Never use a single % — that over-clips vertically and warps corner UI. */
  border-radius: 15.2% / 7.0%;
  background: #000;
  z-index: 0;
}

.iphone-device .iphone-screen img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: top center;
  display: block;
}

.iphone-device .iphone-bezel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  user-select: none;
  z-index: 2;
  filter: drop-shadow(0 20px 40px rgba(46, 52, 43, 0.42));
}

.phone-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.phone-carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: top center;
  opacity: 0;
  transition: opacity 0.55s ease;
  pointer-events: none;
}

.phone-carousel img.is-active {
  opacity: 1;
  z-index: 1;
}

.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}

.carousel-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.carousel-dots span.is-active {
  background: #fff;
  width: 14px;
}
