/* Portrait collection heroes. Desktop compositions and approved imagery stay
   intact; the mobile image, heading and booking action share one frame. */
@media (max-width:760px), (pointer:coarse) and (max-width:980px) and (max-height:500px) {
  .activation,
  .flower-page,
  .backdrop-page {
    --collection-hero-height: clamp(560px, calc(100svh - var(--mobile-header-height, 118px)), 820px);
    --collection-hero-bottom: max(76px, calc(24px + env(safe-area-inset-bottom)));
  }

  /* Planner activation: the wide source remains large enough to show the
     booth and guests together, with its lower edge blending into the copy. */
  .planner-activation .ps-brand-hero {
    display: block;
    height: var(--collection-hero-height);
    min-height: 0;
    background: #17b6b9;
    overflow: hidden;
    border-radius: 0;
  }
  .planner-activation .ps-brand-images {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    order: initial;
    overflow: hidden;
  }
  .planner-activation .ps-brand-slide img {
    position: absolute;
    inset: 0 0 auto;
    width: 100%;
    height: min(75%, 118vw);
    object-fit: cover;
    object-position: 79% center;
    -webkit-mask-image: linear-gradient(#000 0%, #000 77%, transparent 100%);
    mask-image: linear-gradient(#000 0%, #000 77%, transparent 100%);
  }
  .planner-activation .ps-brand-slide:first-child img {
    height: min(71%, 105vw);
    object-position: 96% center;
  }
  .planner-activation .ps-brand-shade {
    display: block;
    background: linear-gradient(180deg, transparent 27%, #10292300 38%, #10292375 60%, #102923f2 78%, #102923 100%);
  }
  .planner-activation .ps-brand-inner {
    position: absolute;
    inset: 0;
    order: initial;
    display: flex;
    align-items: flex-end;
    width: 100%;
    min-height: 0;
    height: 100%;
    padding: 24px 22px var(--collection-hero-bottom);
  }
  .planner-activation .ps-brand-copy {
    width: 100%;
    max-width: 480px;
  }
  .planner-activation .ps-brand-copy > .ap-eyebrow {
    max-width: none;
    margin-bottom: 13px;
    color: #fff;
    font-size: 9px;
    line-height: 1.5;
    letter-spacing: .1em;
  }
  .planner-activation .ps-brand-title {
    max-width: 17ch;
    min-height: 3.15em;
    margin: 0;
    color: #fff;
    font-size: clamp(29px, 7.6vw, 48px);
    line-height: 1.05;
    letter-spacing: .005em;
    text-wrap: balance;
    text-shadow: 0 2px 14px #10292330;
  }
  .planner-activation .ps-brand-title em {
    display: inline;
    color: #9fe1ce;
    font-style: normal;
  }
  .planner-activation .ps-brand-title br {display: none}
  .planner-activation .ps-brand-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
  }
  .planner-activation .ps-brand-actions .ap-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    min-width: 214px;
    min-height: 46px;
    padding: 12px 16px;
    border: 1px solid transparent;
    border-radius: 0;
    background: #2b7c74;
    color: #fff;
    font-size: 13px;
    line-height: 1.3;
    gap: 20px;
  }
  .planner-activation .ps-brand-actions .ap-button-secondary {
    background: #fff;
    color: #194d43;
  }

  /* Editorial activation has separate source elements. Layer its masthead
     over the panorama, without changing its document or keyboard order. */
  .activation:not(.planner-activation) #main {position: relative}
  .activation:not(.planner-activation) .activation-masthead {
    position: absolute;
    z-index: 3;
    inset: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 23px;
    width: 100%;
    height: var(--collection-hero-height);
    margin: 0;
    padding: 26px 22px var(--collection-hero-bottom);
    pointer-events: none;
  }
  .activation:not(.planner-activation) .activation-masthead h1 {
    max-width: 16ch;
    margin: 0;
    color: #fff;
    font-size: clamp(32px, 8.2vw, 49px);
    line-height: 1.07;
    letter-spacing: .005em;
    text-wrap: balance;
    text-shadow: 0 2px 16px #10292338;
  }
  .activation:not(.planner-activation) .activation-masthead h1 em {
    color: #9fe1ce;
    font-style: normal;
  }
  .activation:not(.planner-activation) .activation-masthead .btn {
    min-height: 48px;
    max-width: 100%;
    padding: 13px 16px;
    border: 0;
    border-radius: 0;
    background: #2b7c74;
    color: #fff;
    font-size: 13px;
    gap: 20px;
    pointer-events: auto;
  }
  .activation:not(.planner-activation) .brand-panorama {
    position: relative;
    isolation: isolate;
    width: 100%;
    height: var(--collection-hero-height);
    margin: 0;
    overflow: hidden;
    background: #17b6b9;
  }
  .activation:not(.planner-activation) .brand-panorama img {
    width: 100%;
    height: min(83%, 136vw);
    object-fit: cover;
    object-position: 55% center;
    -webkit-mask-image: linear-gradient(#000 0%, #000 75%, transparent 100%);
    mask-image: linear-gradient(#000 0%, #000 75%, transparent 100%);
  }
  .activation:not(.planner-activation) .brand-panorama::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 25%, #10292300 40%, #10292359 60%, #102923e8 83%, #102923 100%);
  }

  /* Flower walls: retain the wall and its existing motion in one portrait
     room, then place the title and action directly over its lower edge. */
  .flower-page.flower-editorial-approved .flower-hero-frame {
    height: var(--collection-hero-height);
    min-height: 0;
    background: #17b6b9;
    overflow: hidden;
    border-radius: 0;
  }
  .flower-page.flower-editorial-approved .flower-hero-photo {
    height: 100%;
    min-height: 0;
    margin: 0;
  }
  .flower-page.flower-editorial-approved .flower-hero-photo > img {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: 48% center;
  }
  .flower-page.flower-editorial-approved .flower-hero-shade {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, #163c3212 0%, transparent 32%, #173d320d 43%, #173d3266 65%, #173d32dc 100%);
  }
  .flower-page.flower-editorial-approved .flower-hero-action {
    position: absolute;
    inset: auto 0 0;
    width: 100%;
    margin: 0;
    padding: 26px 22px var(--collection-hero-bottom);
    align-items: flex-start;
    text-align: left;
    background: transparent;
  }
  .flower-page.flower-editorial-approved .flower-hero-action .overline {
    margin-bottom: 13px;
    color: #fff;
    font-size: 10px;
    line-height: 1.4;
    text-shadow: 0 1px 10px #173d324d;
  }
  .flower-page.flower-editorial-approved .flower-hero-action h1 {
    max-width: 12ch;
    margin: 0;
    color: #fff;
    font-size: clamp(37px, 9.8vw, 60px);
    line-height: 1.04;
    letter-spacing: .005em;
    text-wrap: balance;
    text-shadow: 0 2px 16px #173d3238;
  }
  .flower-page.flower-editorial-approved .flower-hero-action h1 em {color: #fff}
  .flower-page.flower-editorial-approved .flower-hero-action > .btn {
    min-height: 48px;
    margin-top: 24px;
    padding: 13px 18px;
    border: 0;
    border-radius: 0;
    background: #9e3d37;
    color: #fff;
    font-size: 14px;
    box-shadow: none;
  }

  /* One central backdrop is legible on a phone. The existing carousel reads
     these positions for its animation; the expanded viewer retains its pair. */
  .backdrop-page .planner-backdrops-hero > .corporate-scene-stage {
    --product-width: min(90%, calc(var(--collection-hero-height) * .57));
    --product-bottom: 22%;
    --celebration-floor: 22.9%;
    --scene-left: 50;
    --scene-right: 150;
    --scene-previous: -50;
    --scene-next: 250;
    --scene-edge-scale: 1;
    height: var(--collection-hero-height);
    min-height: 0;
    aspect-ratio: auto;
    border-radius: 0;
  }
  .backdrop-page .planner-backdrops-hero > .corporate-scene-stage > .corporate-scene-room {
    object-position: 48% center;
  }
  .backdrop-page .planner-backdrops-hero > .corporate-scene-stage::before {
    z-index: 1;
    background: linear-gradient(180deg, #102c268c, #102c2630 20%, transparent 36%, transparent 64%, #102c2685 85%, #102c26b8);
  }
  .backdrop-page .planner-backdrops-hero > .corporate-scene-stage .planner-backdrops-hero-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    inset: 0;
    gap: 20px;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 27px 22px var(--collection-hero-bottom);
    background: transparent;
  }
  .backdrop-page .planner-backdrops-hero .planner-backdrops-kicker {
    max-width: 27ch;
    margin-bottom: 10px;
    font-size: 11px;
    line-height: 1.4;
  }
  .backdrop-page .planner-backdrops-hero .planner-backdrops-hero-heading h1 {
    font-size: clamp(43px, 11.5vw, 66px);
    line-height: 1.02;
    letter-spacing: .005em;
    color: #fff;
  }
  .backdrop-page .planner-backdrops-hero .planner-backdrops-hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    margin: 0;
  }
  .backdrop-page .planner-backdrops-hero .planner-backdrops-date-link {
    min-width: 175px;
    min-height: 48px;
    padding: 13px 18px;
    background: #2b7c74;
    color: #fff;
    font-size: 14px;
  }
  .backdrop-page .planner-backdrops-hero .planner-backdrops-collection-link {
    max-width: none;
    min-height: 36px;
    font-size: 13px;
    gap: 22px;
  }
  .backdrop-page .planner-backdrops-hero > .corporate-scene-stage .photobooth-scene-wedding-guests {
    left: 50%;
    width: min(75.96%, calc(var(--collection-hero-height) * .48108));
  }
  .backdrop-page .planner-backdrops-hero > .corporate-scene-stage .photobooth-scene-birthday-guests {display: none}
  .backdrop-page .planner-backdrops-hero > .corporate-scene-stage .corporate-scene-product-name {
    top: 6%;
    bottom: auto;
    max-width: 90%;
    padding: 7px 11px;
    font-size: clamp(13px, 3.4vw, 19px);
    line-height: 1.15;
  }
  .backdrop-page .planner-backdrops-hero > .corporate-scene-stage .corporate-scene-arrow {
    top: 54%;
    width: 44px;
    height: 44px;
    background: #fffffff2;
  }
  .backdrop-page .planner-backdrops-hero > .corporate-scene-stage .corporate-scene-previous {left: 10px}
  .backdrop-page .planner-backdrops-hero > .corporate-scene-stage .corporate-scene-next {right: 10px}
  .backdrop-page .planner-backdrops-hero > .corporate-scene-stage .corporate-scene-enlarge {
    right: 18px;
    bottom: calc(var(--collection-hero-bottom) + 49px);
    width: 44px;
    min-height: 44px;
    padding: 10px;
    justify-content: center;
  }
  .backdrop-page .planner-backdrops-hero > .corporate-scene-stage .corporate-scene-enlarge > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}

@media (max-width: 370px) {
  .planner-activation .ps-brand-inner,
  .activation:not(.planner-activation) .activation-masthead,
  .flower-page.flower-editorial-approved .flower-hero-action,
  .backdrop-page .planner-backdrops-hero > .corporate-scene-stage .planner-backdrops-hero-heading {
    padding-inline: 18px;
  }
  .planner-activation .ps-brand-title {font-size: 28px}
  .planner-activation .ps-brand-actions {gap: 8px;margin-top: 15px}
  .backdrop-page .planner-backdrops-hero .planner-backdrops-hero-heading h1 {
    font-size: clamp(30px, 10.5vw, 38px);
  }
}
