/* Shared presentation frame. Native screenshots and video files stay intact. */
:root {
  --iphone-body: #ffffff;
  --iphone-edge: #b8bec2;
  --iphone-button: #f2f3f3;
  --iphone-shadow: #172b2333;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --iphone-body: #030405;
    --iphone-edge: #48515a;
    --iphone-button: #111417;
    --iphone-shadow: #0009;
  }
}
:root[data-theme="dark"] {
  --iphone-body: #030405;
  --iphone-edge: #48515a;
  --iphone-button: #111417;
  --iphone-shadow: #0009;
}
.iphone-frame {
  --iphone-radius: 39px;
  position: relative;
  isolation: isolate;
  padding: 8px;
  border: 1px solid var(--iphone-edge);
  border-radius: var(--iphone-radius);
  background: var(--iphone-body);
  box-shadow: 0 20px 34px -17px var(--iphone-shadow);
}
.iphone-frame::before,
.iphone-frame::after {
  content: "";
  position: absolute;
  width: 3px;
  border: 1px solid var(--iphone-edge);
  border-radius: 2px;
  background: var(--iphone-button);
  pointer-events: none;
}
.iphone-frame::before {
  left: -3px;
  top: 22%;
  height: 7%;
  box-shadow: 0 45px 0 -1px var(--iphone-button), 0 45px 0 0 var(--iphone-edge);
}
.iphone-frame::after {
  right: -3px;
  top: 29%;
  height: 12%;
}
.iphone-screen {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--iphone-radius) - 9px);
  background: #07131b;
}
.iphone-frame .iphone-screen > img,
.iphone-frame .iphone-screen > video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 942 / 2052;
  object-fit: cover;
  border: 0;
  border-radius: 0;
}
.iphone-frame .iphone-screen > [hidden] { display: none; }
/* One aligned cutout also covers the one already present in native recordings. */
.iphone-screen::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 1.5%;
  left: 34.5%;
  width: 31%;
  aspect-ratio: 3.4;
  border-radius: 999px;
  background: #000;
  pointer-events: none;
}
.mobile-capture > .iphone-frame { width: 100%; }
.native-detail .detail-window {
  border-color: var(--iphone-edge);
  background: var(--iphone-body);
}
