/* Screen openings measured from Apple's frontal product artwork. */
.hero-device, .trip-device, .console-art .phone-glass, .product-tour .tour-glass, .feature-device, #duo-compat .duo-device {
  --body-art:url("assets/hardware/iphone-pro.webp");
  --screen-mask:var(--iphone-pro-aperture);
  --screen-x:4.24886%; --screen-y:1.76665%;
  --screen-w:91.50228%; --screen-h:96.50350%;
  display:block; position:relative; box-sizing:border-box; aspect-ratio:1318 / 2717;
  padding:0; border:0; border-radius:0; outline:0; overflow:visible; box-shadow:none;
  background:transparent;
}
.hero-device::before, .trip-device::before, .console-art .phone-glass::before, .product-tour .tour-glass::before, .feature-device::before, #duo-compat .duo-device::before {
  content:""; display:block; position:absolute; inset:0; z-index:2; pointer-events:none;
  background:var(--body-art) center / 100% 100% no-repeat;
}
.hero-device .product-phone, .trip-device > img, .console-art .phone-glass > [data-iphone-face], .product-tour .tour-glass > video, .feature-crop .feature-device > img, #duo-compat .duo-device > img {
  display:block; position:absolute; left:var(--screen-x); top:var(--screen-y);
  width:var(--screen-w); height:var(--screen-h); margin:0; padding:0; border:0; border-radius:0; box-shadow:none;
  background:#070809; object-fit:contain; overflow:hidden;
  mask:var(--screen-mask) center / 100% 100% no-repeat;
}
.hero-device { width:clamp(222px,min(23vw,32.5svh),316px); margin:0 0 36px; }
.console-art .phone-glass { --body-art:url("assets/hardware/iphone-graphite.webp"); }
.product-tour .tour-layout > .tour-player:not(:fullscreen) .tour-glass { box-shadow:none; }
.feature-screen .feature-crop {
  display:flex; align-items:center; justify-content:center;
  height:auto; margin:0; padding:0 18px 24px; overflow:visible;
}
.feature-device { width:clamp(166px,16vw,212px); }
.feature-shot:nth-child(2) .feature-device { --body-art:url("assets/hardware/iphone-graphite.webp"); }
#duo-compat .duo-device {
  --body-art:url("assets/hardware/iphone-duo.webp"); --screen-mask:var(--iphone-duo-aperture);
  --screen-x:51.57401%; --screen-y:2.66480%; --screen-w:46.81849%; --screen-h:95.09116%;
  flex:0 1 360px; width:min(100%,360px); aspect-ratio:2986 / 2139;
}
#duo-compat .duo-device:focus-visible { outline:2px solid #315174; outline-offset:5px; }
@media(max-width:700px) and (orientation:portrait) {
  .product-shot .hero-device {
    height:calc(100% - 22px); max-height:min(106vw,450px); width:auto; margin-bottom:14px;
  }
  .feature-screen .feature-crop { padding-bottom:20px; }
}
@media(max-height:500px) and (orientation:landscape) {
  .product-shot .hero-device { width:150px; margin-bottom:24px; }
}
