/* Frame the real phone UI without reusing the store campaign headline. */
.ft-store-viewport {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--ft-screen-ratio, 0.465);
  overflow: hidden;
  isolation: isolate;
  background: #101f31;
}
.ft-store-viewport > img,
.screen-frame .ft-store-viewport > img,
.kst-catalog .consumer .shot .catalog-ft-store > img,
.hero-screens > .app-image-link .ft-store-viewport > img {
  position: absolute;
  display: block;
  top: 0;
  left: 50%;
  width: var(--ft-screen-zoom, 144%);
  max-width: none;
  height: auto;
  aspect-ratio: auto;
  transform: translate(-50%, var(--ft-screen-top, -24.2%));
  border: 0;
  border-radius: 0;
  margin: 0;
  filter: none;
  object-fit: fill;
  animation: none;
}
/* Home artwork shares one 880 x 1912 template. Show only the display:
   x = 156..724 and y = 478..1744, inset from the photographed bezel. */
.ft-store-viewport:is(.ft-store-home, .catalog-ft-store) {
  --ft-screen-ratio: 568 / 1266;
  --ft-screen-zoom: 154.9296%;
  --ft-screen-top: -25%;
  border-radius: 8% / 3.59%;
}
/* Match the catalog's adjacent mockups. Keep the bezel outside the
   clipped viewport so the source crop coordinates do not change. */
.kst-catalog .hero-screens > .app-image-link > .ft-store-home {
  --ft-bezel: 6px;
  --ft-outer-radius: 25px;
  width: calc(100% - 2 * var(--ft-bezel));
  margin: var(--ft-bezel) auto 0;
  border-radius: calc(var(--ft-outer-radius) - var(--ft-bezel));
  box-shadow: 0 0 0 var(--ft-bezel) #111a25;
  filter: drop-shadow(0 12px 12px #49628744);
}
.kst-catalog .hero-screens > .app-image-link > .ft-store-home::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgb(255 255 255 / 17%);
  border-radius: inherit;
  pointer-events: none;
}
@media (max-width: 760px) {
  .kst-catalog .hero-screens > .app-image-link > .ft-store-home {
    --ft-bezel: 4px;
    --ft-outer-radius: 18px;
  }
}
/* Draw the list card's frame outside the crop, so its border cannot
   change the absolute image containing block or the screen aspect ratio. */
.consumer .shot .ft-store-viewport.catalog-ft-store {
  width: min(calc(100% - 8px), 137px);
  border: 0;
  box-shadow: 0 0 0 4px #1e2530;
}
.ft-store-carplay {
  display: block;
  width: min(100%, 310px);
  margin-inline: auto;
}
