/* Wellness image-and-text sections at full or half bleed. Each frame takes its photograph's own proportions,
   so photos are never cropped or zoomed; new aspect ratios were generated or extended where needed. */
html{overflow-x:clip}

/* Full bleed: the photograph is the whole section; copy sits in its empty side. */
.bleed-full{position:relative;display:grid;align-items:center;overflow:hidden;isolation:isolate;aspect-ratio:var(--bleed-ratio)}
.bleed-full>.bleed-bg,.bleed-full>.bleed-bg img{position:absolute;inset:0;width:100%;height:100%;z-index:-1}
.bleed-full>.bleed-bg img{object-fit:cover}
.bleed-full .bleed-copy{width:100%;container-type:inline-size}
.bleed-full .bleed-copy>div{max-width:min(44%,560px)}

/* Half bleed: the photograph fills one half of the section, edge to edge; copy in the other half. */
.bleed-half{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;margin:0;padding:0;gap:0}
.bleed-half>figure,.bleed-half>.bleed-media{margin:0;min-width:0}
.bleed-half img{display:block;width:100%;height:auto;aspect-ratio:var(--bleed-ratio,4/5);object-fit:cover;border-radius:0}
.bleed-half>.bleed-text{padding:clamp(40px,6vw,96px) clamp(24px,6vw,112px);max-width:640px}
.bleed-half.media-right>figure,.bleed-half.media-right>.bleed-media{order:2}
.bleed-half.media-right>.bleed-text{justify-self:end}

@media(max-width:700px){
 .bleed-full{aspect-ratio:var(--bleed-ratio-phone,var(--bleed-ratio));align-items:start}
 .bleed-full .bleed-copy>div{max-width:none;padding-top:clamp(28px,8vw,48px)}
 .bleed-half{grid-template-columns:1fr}
 .bleed-half.media-right>figure,.bleed-half.media-right>.bleed-media{order:0}
 .bleed-half>.bleed-text{padding:32px 20px 48px;max-width:none}
}

/* Section-specific overrides of earlier layouts. */
.heritage-story.bleed-half{padding-block:0;gap:0;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.heritage-story.bleed-half img{aspect-ratio:var(--bleed-ratio)}
.people-records .people-feature.bleed-half{margin-inline:calc(50% - 50vw);padding-block:0;gap:0;border:0}
.people-records .people-feature.bleed-half+.people-feature.bleed-half{margin-top:0}
.bleed-half .people-photo img{border-radius:0;max-height:none;aspect-ratio:var(--bleed-ratio)}
.what-nei.bleed-full{padding:0}
.what-nei.bleed-full .bleed-copy h2{font-size:clamp(40px,4.4cqi,68px)}
@media(max-width:1000px) and (min-width:701px){.what-nei.bleed-full .bleed-copy>div{max-width:50%}.what-nei.bleed-full .bleed-copy h2{font-size:clamp(30px,4.6cqi,44px)}.what-nei.bleed-full .lead{font-size:15px}.what-nei .nei-facts{display:none}}
@media(max-width:700px){.people-records .people-feature.bleed-half{margin-inline:calc(50% - 50vw)}.people-records .people-feature.bleed-half+.people-feature.bleed-half{margin-top:24px}}
@media(max-width:700px){.heritage-story.bleed-half{grid-template-columns:1fr}}
/* Phones: headline and sentence sit in the pink space above the packet; tags and button continue just below the
   photograph on the same pink, so nothing covers the packet. */
@media(max-width:700px){
 .what-nei.bleed-full{display:grid;aspect-ratio:auto;align-items:start;padding-bottom:36px}
 .what-nei.bleed-full>.bleed-bg{position:static;grid-area:1/1;z-index:0}
 .what-nei.bleed-full>.bleed-bg img{position:static;display:block;height:auto;aspect-ratio:var(--bleed-ratio-phone)}
 .what-nei.bleed-full .bleed-copy,.what-nei.bleed-full .bleed-copy>div{display:contents}
 .what-nei.bleed-full .bleed-head{grid-area:1/1;z-index:1;padding:clamp(28px,8vw,44px) 20px 0}
 .what-nei.bleed-full .bleed-head h2{font-size:clamp(32px,9.4vw,40px);margin:0 0 14px}
 .what-nei.bleed-full .bleed-head .lead{font-size:16px;line-height:1.45;margin:0}
 .what-nei.bleed-full .nei-facts{margin:20px 20px 24px}
 .what-nei.bleed-full .button{justify-self:start;margin-inline:20px}
}
/* The photograph's own pink (sampled from its bottom edge), so the band below it continues without a seam. */
.what-nei.bleed-full{background:#dca09e}
@media(max-width:700px){.what-nei.bleed-full{background:#e4a2a4}}

/* Home 內 heritage: full image with the copy on the calm sunlit wall (right on desktop, top on phones). */
.heritage-full.bleed-full{padding:0;gap:0;grid-template-columns:1fr}
.heritage-full .bleed-copy>div{margin-left:auto;max-width:min(38%,480px)}
.heritage-full h2{font-size:clamp(40px,4.4vw,64px);margin:0 0 20px}
@media(max-width:700px){
 .heritage-full .bleed-copy>div{margin:0;max-width:none;padding-top:clamp(36px,10vw,52px)}
 .heritage-full h2{font-size:clamp(32px,9.4vw,40px)}
 .heritage-full p{font-size:16px;max-width:none}
}
@media(max-width:360px){.heritage-full .bleed-copy>div{padding-top:26px}.heritage-full h2{font-size:28px;margin-bottom:12px}.heritage-full p{font-size:14px;line-height:1.45;margin-bottom:12px}}
