/* September 23 corrections, U.S. Open only. Opening artwork is untouched.
   Existing frame fitting measures the natural page + external footer height.
   Remove excessive type floors instead of clipping content to a fixed height. */
.deck-presidents.jason-final.deck-usopen.terry-sept23 #slide-2 .scenic-program-images .terry-buffet-reference img {
  width: 100%;
  max-width: 190px;
  height: auto;
  aspect-ratio: 381 / 279;
  object-fit: contain;
}
.deck-presidents.jason-final.deck-usopen.terry-sept23 #slide-2 .terry-speaker-reference img {
  width: 100%;
  max-width: 182.5px;
  height: auto;
  aspect-ratio: 365 / 237;
  object-fit: contain;
}
.deck-presidents.jason-final.deck-usopen.terry-sept23 #slide-3 .experience-scene {
  object-position: center !important;
}
.deck-presidents.jason-final.deck-usopen.terry-sept23 #slide-3 .experience-peek img {
  object-position: center;
}

@media (min-width: 951px), (min-width: 801px) and (min-height: 501px) and (min-height: 501px), (min-width: 951px) and (min-height: 501px) {
  .deck-presidents.jason-final.deck-usopen.terry-sept23 #slide-2 .ism-narrative {
    top: 0 !important;
    bottom: auto !important;
    padding-top: 8cqw;
    padding-bottom: 2cqw;
  }
  .deck-presidents.jason-final.deck-usopen.terry-sept23 #slide-2 .ism-narrative h2 {
    font-size: 2.7cqw;
    line-height: 1.08;
  }
  .deck-presidents.jason-final.deck-usopen.terry-sept23 #slide-2 .ism-course-clarifier {
    font-size: clamp(14px, 1.28cqw, 24px);
    line-height: 1.4;
  }
  .deck-presidents.jason-final.deck-usopen.terry-sept23 #slide-2 .ism-phase-detail h3 {
    font-size: clamp(15px, 1.4cqw, 27px);
  }
  .deck-presidents.jason-final.deck-usopen.terry-sept23 #slide-2 .ism-phase-detail p:not(.ism-phase-number) {
    font-size: clamp(14px, 1.24cqw, 24px);
    line-height: 1.4;
  }
  .deck-presidents.jason-final.deck-usopen.terry-sept23 #slide-3 .package-editorial-field {
    position: relative;
    inset: auto;
    width: 52%;
    height: auto;
    min-height: 56.25cqw;
    margin: 0 0 0 48%;
    padding: 2.3cqw 2.7cqw 1.7cqw 1.8cqw;
  }
  .deck-presidents.jason-final.deck-usopen.terry-sept23 #slide-3 .package-editorial-field h2 {
    font-size: 2.65cqw;
    line-height: 1.08;
  }
  .deck-presidents.jason-final.deck-usopen.terry-sept23 #slide-3 .package-intro {
    font-size: clamp(14px, 1.17cqw, 22.5px);
    line-height: 1.35;
    margin: .75cqw 0 .55cqw;
  }
  .deck-presidents.jason-final.deck-usopen.terry-sept23 #slide-3 .package-ledger {
    grid-template-rows: repeat(4, auto);
    gap: 0;
    padding-top: .2cqw;
  }
  .deck-presidents.jason-final.deck-usopen.terry-sept23 #slide-3 .package-ledger article {
    padding: .45cqw 0;
  }
  .deck-presidents.jason-final.deck-usopen.terry-sept23 #slide-3 .package-ledger h3 {
    font-size: clamp(15px, 1.34cqw, 25.8px);
    line-height: 1.2;
    margin-bottom: .3cqw;
  }
  .deck-presidents.jason-final.deck-usopen.terry-sept23 #slide-3 .package-bullets {
    font-size: clamp(14px, 1.24cqw, 23.8px);
    line-height: 1.32;
    gap: .1cqw;
  }
  .deck-presidents.jason-final.deck-usopen.terry-sept23 #slide-3 .package-investment {
    margin-top: .5cqw;
    padding-top: .8cqw;
  }
  .deck-presidents.jason-final.deck-usopen.terry-sept23 #slide-3 .package-investment p,
  .deck-presidents.jason-final.deck-usopen.terry-sept23 #slide-3 .package-confirmation {
    font-size: clamp(11px, .95cqw, 18.3px);
    line-height: 1.35;
  }
  .deck-presidents.jason-final.deck-usopen.terry-sept23 #slide-3 .experience-choices button {
    font-size: clamp(11px, .96cqw, 18px);
    min-height: 44px;
  }
}

/* Short laptop windows need a wider copy column before scaling the frame.
   Keep every inclusion and let the measured content establish its height. */
@media (min-width: 951px) and (max-height: 760px) {
  .deck-presidents.jason-final.deck-usopen.terry-sept23 #slide-2 .ism-narrative {
    padding-top: 6.6cqw;
    padding-bottom: 1.4cqw;
  }
  .deck-presidents.jason-final.deck-usopen.terry-sept23 #slide-2 .ism-narrative h2 {
    font-size: 2.65cqw;
  }
  .deck-presidents.jason-final.deck-usopen.terry-sept23 #slide-2 .ism-course-clarifier,
  .deck-presidents.jason-final.deck-usopen.terry-sept23 #slide-2 .ism-phase-detail p:not(.ism-phase-number) {
    font-size: clamp(13px, 1.24cqw, 24px);
    line-height: 1.32;
  }
  .deck-presidents.jason-final.deck-usopen.terry-sept23 #slide-2 .ism-phase-detail h3 {
    font-size: clamp(13.5px, 1.4cqw, 27px);
  }
  .deck-presidents.jason-final.deck-usopen.terry-sept23 #slide-3 .package-editorial-field {
    width: 58%;
    margin-left: 42%;
    padding: 1.6cqw 2.5cqw 1.3cqw 1.5cqw;
  }
  .deck-presidents.jason-final.deck-usopen.terry-sept23 #slide-3 .package-editorial-field h2 {
    font-size: 2.5cqw;
    line-height: 1.04;
  }
  .deck-presidents.jason-final.deck-usopen.terry-sept23 #slide-3 .package-intro {
    font-size: clamp(12.5px, 1.12cqw, 21.5px);
    line-height: 1.25;
    margin: .55cqw 0 .35cqw;
  }
  .deck-presidents.jason-final.deck-usopen.terry-sept23 #slide-3 .package-ledger article {
    padding: .32cqw 0;
  }
  .deck-presidents.jason-final.deck-usopen.terry-sept23 #slide-3 .package-ledger h3 {
    font-size: clamp(13px, 1.3cqw, 25px);
    line-height: 1.15;
    margin-bottom: .2cqw;
  }
  .deck-presidents.jason-final.deck-usopen.terry-sept23 #slide-3 .package-bullets {
    font-size: clamp(12.5px, 1.2cqw, 23px);
    line-height: 1.25;
    gap: .08cqw;
  }
  .deck-presidents.jason-final.deck-usopen.terry-sept23 #slide-3 .package-investment {
    margin-top: .35cqw;
    padding-top: .55cqw;
    margin-bottom: .3cqw;
  }
  .deck-presidents.jason-final.deck-usopen.terry-sept23 #slide-3 .package-investment .package-size b {
    font-size: 2.6cqw;
  }
  .deck-presidents.jason-final.deck-usopen.terry-sept23 #slide-3 .package-price strong {
    font-size: 2.9cqw;
  }
  .deck-presidents.jason-final.deck-usopen.terry-sept23 #slide-3 .experience-navigation {
    width: 34%;
  }
  .deck-presidents.jason-final.deck-usopen.terry-sept23 #slide-3::before {
    background: linear-gradient(90deg, rgba(4,16,29,.05), rgba(4,16,29,.12) 28%, rgba(4,16,29,.72) 42%, rgba(4,16,29,.86) 62%, rgba(4,16,29,.88)),
      linear-gradient(180deg, rgba(4,16,29,.24), transparent 22%, transparent 75%, rgba(4,16,29,.16));
  }
}

/* Phone landscape keeps the existing readable vertical flow. Its controls
   are outside the copy field because the scene script's breakpoint is 800px. */
@media (min-width: 801px) and (max-width: 950px) and (max-height: 500px) {
  /* Inherited landscape package/closing canvases are Presidents Cup green.
     Keep this deck's navy below the photos; the closing panel stays transparent. */
  .deck-presidents.jason-final.deck-usopen.terry-sept23 #slide-3,
  .deck-presidents.jason-final.deck-usopen.terry-sept23 #slide-3 .package-editorial-field,
  .deck-presidents.jason-final.deck-usopen.terry-sept23 #slide-4 {
    background-color: var(--usopen-navy, #081d38);
  }
  .deck-presidents.jason-final.deck-usopen.terry-sept23 #slide-3 .experience-navigation {
    position: relative;
    inset: auto;
    width: auto;
    margin: 320px 24px 24px;
  }
  .deck-presidents.jason-final.deck-usopen.terry-sept23 #slide-3 .package-editorial-field {
    padding-top: 0;
  }
  .deck-presidents.jason-final.deck-usopen.terry-sept23 #slide-3 .experience-choices button {
    font-size: 14px;
    min-height: 48px;
  }
}
