/* iPhone XR around a full screenshot taken on the XR (828 × 1792, status bar included).
   Proportions from the XR itself: 75.7 mm wide, 64.6 mm of screen, 41.5 pt screen corners,
   notch about 223 × 32 pt. Everything is in container units (cqw = 1% of the frame's width),
   so one template works at any size. Markup: tools/iphone-frame.py --xr writes it. */
.xr { container-type: inline-size; position: relative; display: block; width: 100%; }
.xr-body {
  position: relative; display: block; padding: 1.5cqw; border-radius: 15.9cqw;
  /* black aluminium band, lit on its outer edge */
  background: linear-gradient(160deg, #4a4a4d, #1c1c1e 30%, #2a2a2c 70%, #0e0e10);
  box-shadow: inset 0 0 0 .3cqw rgba(255,255,255,.14), 0 2cqw 4cqw rgba(0,0,0,.3), 0 10cqw 18cqw -5cqw rgba(0,0,0,.45);
}
/* side buttons: ring/silent switch and volume on the left, side button on the right */
.xr::before, .xr::after { content: ""; position: absolute; z-index: -1; width: 1.4cqw; border-radius: 1cqw; background: #2a2a2c; }
/* left: switch, then volume up and down (as shadows of the switch); right: side button */
.xr::before { left: -.9cqw; top: 26cqw; height: 6cqw; box-shadow: 0 12cqw 0 0 #2a2a2c, 0 12cqw 0 3cqw transparent, 0 26cqw 0 0 #2a2a2c; }
.xr::after { right: -.9cqw; top: 40cqw; height: 18cqw; }
.xr-screen {
  position: relative; display: block; overflow: hidden; background: #000;
  border: 5.85cqw solid #000; border-radius: 14.4cqw;
}
.xr-screen img { display: block; width: 100%; height: auto; margin: 0; border: 0; border-radius: 8.6cqw; box-shadow: none; }
/* the notch: flat top, small curved shoulders, round bottom corners */
.xr-screen::before {
  content: ""; position: absolute; z-index: 2; top: 0; left: 50%; transform: translateX(-50%);
  width: 49cqw; height: 6.7cqw;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 33' preserveAspectRatio='none'%3E%3Cpath d='M0 0H240C234 0 232 2.5 232 8V15C232 25 224 33 214 33H26C16 33 8 25 8 15V8C8 2.5 6 0 0 0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
/* glass: a faint diagonal sheen */
.xr-screen::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: 8.6cqw;
  background: linear-gradient(115deg, rgba(255,255,255,.07), transparent 32%);
}

/* where frames sit */
.step .xr { margin-top: 1rem; }
.shots figure .xr { width: 100%; }
.dep-shots { display: flex; gap: 1rem; overflow-x: auto; padding: .6rem .6rem 1.4rem; scroll-snap-type: x mandatory; }
.dep-shots .xr { flex: none; width: min(60vw, 220px); scroll-snap-align: start; }
