/* PF2500 overview: two-panel composition based on the existing camera render.
   Scoped to this one slide. All other slides retain their original layout. */
#pf2500-overview > .slide-surface {
  padding: clamp(12px, 2svh, 25px) clamp(16px, 3.1vw, 45px);
}

#pf2500-overview .pf2500-overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) minmax(0, 1fr);
  column-gap: clamp(18px, 3.2vw, 58px);
  width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
  align-items: stretch;
}

#pf2500-overview .hero-stage {
  min-width: 0;
  min-height: 0;
}

#pf2500-overview .pf2500-overview-features {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-self: stretch;
  min-width: 0;
  margin: 0;
  padding: clamp(10px, 1.5svh, 20px) 0;
  list-style: none;
  color: #5A5A68;
  font-family: var(--font-brand, Arial, sans-serif);
  font-size: clamp(18px, min(2.45vw, 3.4svh), 36px);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -.016em;
}

#pf2500-overview .pf2500-overview-features li {
  margin: 0;
  padding: 0;
  text-wrap: pretty;
}

/* On tablets and phones the image retains its original aspect ratio,
   while the highlights form a compact, readable block below it. */
@media (max-width: 950px) and (min-height: 510px) {
  #pf2500-overview > .slide-surface {
    padding: clamp(10px, 1.7svh, 18px) clamp(12px, 3vw, 25px);
  }

  #pf2500-overview .pf2500-overview-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    row-gap: clamp(4px, 1svh, 11px);
  }

  #pf2500-overview .pf2500-overview-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(10px, 2.4vw, 25px);
    row-gap: clamp(5px, 1svh, 13px);
    align-content: center;
    padding: 0 3px 3px;
    font-size: clamp(15px, min(2.2vw, 2.25svh), 22px);
    line-height: 1.21;
  }

  #pf2500-overview .pf2500-overview-features li {
    min-width: 0;
  }
}

@media (max-width: 560px) and (min-height: 510px) {
  #pf2500-overview .pf2500-overview-layout {
    grid-template-rows: auto auto;
    align-content: center;
    row-gap: clamp(10px, 2svh, 20px);
  }

  #pf2500-overview .hero-stage {
    width: 100%;
    height: auto;
    aspect-ratio: 1599 / 1455;
    flex: none;
  }

  #pf2500-overview .pf2500-overview-features {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* A clear break between benefits, distinct from wrapped text lines. */
    gap: clamp(11px, 1.8svh, 16px);
    padding: 0 2px;
    font-size: clamp(14px, 3.75vw, 18px);
    line-height: 1.24;
  }

  /* Unlike the other products, the PF2500's title occupies the unused
     left corner of its photo-finish composition on small screens too. */
  #pf2500-overview .hero-stage > * {
    --fit-ar: var(--ar);
    --art-w: min(100cqw, 100cqh * var(--fit-ar));
    --art-h: calc(var(--art-w) / var(--fit-ar));
    --art-x: calc((100cqw - var(--art-w)) / 2);
    --art-y: calc((100cqh - var(--art-h)) / 2);
  }

  #pf2500-overview .hero-stage__art {
    top: 0;
  }

  #pf2500-overview .hero-stage__title {
    top: clamp(8px, 2cqw, 12px);
    left: calc(var(--art-x) + var(--art-w) * .035);
    right: auto;
  }

  #pf2500-overview .hero-stage__heading {
    font-size: clamp(31px, 8.3cqw, 46px);
  }

  #pf2500-overview .hero-stage__tagline {
    margin-top: 4px;
    font-size: clamp(13px, 3.55cqw, 18px);
  }
}

/* On short landscape screens, prioritize the illustration's size and give
   the highlights their own scroll space instead of clipping text. */
@media (max-height: 509px) {
  #pf2500-overview .pf2500-overview-layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    column-gap: 14px;
  }
  #pf2500-overview .pf2500-overview-features {
    padding: 2px 0;
    overflow-y: auto;
    gap: 5px;
    font-size: clamp(12px, 2.15vw, 19px);
    line-height: 1.17;
  }
  #pf2500-overview .hero-stage__art {
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: contain;
  }
  #pf2500-overview .hero-stage__title {
    top: 5px;
    left: 8px;
    right: auto;
    text-align: left;
  }
  #pf2500-overview .hero-stage__heading { font-size: clamp(24px, 7cqh, 42px); }
  #pf2500-overview .hero-stage__tagline { font-size: clamp(12px, 3cqh, 17px); }
}

/* Extra-short phones: reclaim a little room from the illustration so the
   feature list keeps its spacing and remains above the slide controls. */
@media (max-width: 375px) and (max-height: 650px) and (min-height: 510px) {
  #pf2500-overview .hero-stage {
    width: 92%;
    margin-inline: auto;
  }

  #pf2500-overview .pf2500-overview-features {
    gap: 10px;
  }
}
