.dos-iphone {
  --iphone-width: 16rem;
  box-sizing: border-box;
  position: relative;
  isolation: isolate;
  display: block;
  width: min(100%, var(--iphone-width));
  height: auto;
  padding: 1.65%;
  padding: clamp(3px, .3vw, 6px);
  border: 1px solid #4a4c50;
  border-radius: 14.7% / 6.8%;
  background: linear-gradient(115deg,#aaa9a6 0%,#48494d 18%,#202124 42%,#636468 70%,#b0b0ae 100%);
  box-shadow: 0 1px 2px #0009, 0 14px 32px -10px #0008;
  overflow: visible;
  line-height: 0;
}
.dos-iphone::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  border: 1px solid #101113;
  background: #121315;
}
.dos-iphone::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset-block-start: 2.75%;
  inset-inline-start: 50%;
  width: 19.6%;
  height: 2.5%;
  transform: translateX(-50%);
  border-radius: 100vw;
  background: #0c0c0d;
}
/* The capture already contains the iOS status bar and navigation. */
body .dos-iphone > img.dos-ios-screen,
body .dos-iphone > img.dos-ios-screen[width] {
  display: block!important; width: 100%!important; max-width: 100%!important;
  min-width: 0!important; height: auto!important; min-height: 0!important; max-height: none!important;
  margin: 0!important; padding: 0!important; border: 0!important; outline: 0!important;
  border-radius: 13% / 6%!important;
  box-shadow: none!important; object-fit: contain!important; aspect-ratio: 1320 / 2868!important;
  transform: none!important; filter: none!important; opacity: 1!important; background: #f5f6f7;
}
body .journey-device:has(>.dos-iphone) {
  border: 0!important; padding: 0!important; border-radius: 0!important; background: transparent!important;
  box-shadow: none!important; height: auto!important; aspect-ratio: auto!important;
}
body .journey-device:has(>.dos-iphone)::before,
body .journey-device:has(>.dos-iphone)::after { content:none!important; }
body .journey-device > .dos-iphone { --iphone-width:100%; }
body .dp-preview > .dos-iphone { --iphone-width:100%; margin-inline:auto; }
body .dp-screen > .dos-iphone { --iphone-width:14.5rem; margin-inline:auto; }
body .rv-route-media > .dos-iphone { --iphone-width:11.5rem; margin-inline:auto; }
body .ed-visual > .dos-iphone { --iphone-width:clamp(10rem,14vw,16rem); margin-inline:auto; align-self:center; }
@media(max-width:760px) {
  body .ed-visual > .dos-iphone { --iphone-width:clamp(8.5rem,35vw,12rem); }
}

/* Use the capture's true aspect and its own native system chrome. */
.dos-iphone[data-capture-platform]::after { content:none }
.dos-iphone[data-capture-platform=android] { border-radius:9% / 4.5%; padding:clamp(2px,.25vw,5px) }
body .dos-iphone[data-capture-platform] > img.dos-ios-screen[width] { aspect-ratio:auto!important }
body .dos-iphone[data-capture-platform=android] > img.dos-ios-screen[width] { border-radius:8.3% / 4%!important }
