/* Layout for the Story page. */

.story-chapters{padding:0 0 12px}
.story-page .story-chapter{padding:30px 28px;margin:16px 0}
.story-page .story-chapter:nth-child(even){background:var(--pale);border-radius:26px}
.story-page .chapter-copy{max-width:720px;min-width:0}
.story-page .chapter-copy h2{font-size:clamp(27px,3vw,35px);line-height:1.2;margin:12px 0 22px}
.story-page .chapter-copy p:not(.eyebrow){font-size:16px;line-height:1.85;color:var(--muted);margin:0 0 16px}
.story-page .chapter-copy p:last-child{margin-bottom:0}
.story-page .chapter-with-photo{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:clamp(28px,5vw,58px);align-items:center}
.story-page .chapter-photo{margin:0;max-width:310px;justify-self:center;min-width:0;width:100%}
.story-page .chapter-photo img{display:block;width:100%;height:auto;object-fit:cover;border-radius:24px}
.story-page .chapter-photo-first{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}
.story-page .chapter-photo-first .chapter-photo{grid-column:1;grid-row:1}
.story-page .chapter-photo-first .chapter-copy{grid-column:2;grid-row:1}

.story-page .family-story-photo img{max-height:400px;object-position:center 42%}
.story-page figcaption{font-size:11px;line-height:1.6;color:var(--muted);margin-top:10px}
.chapter-build-photos{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:start}
.chapter-build-photos figure{margin:0;min-width:0}
.chapter-build-photos>figure>img{display:block;width:100%;aspect-ratio:3/4;object-fit:cover;object-position:center 45%;border-radius:18px}
.story-hall-window{position:relative;aspect-ratio:581/845;border-radius:18px;overflow:hidden}
.story-hall-window img{position:absolute;width:122%;height:182%;max-width:none;left:-10%;top:-38%;object-fit:fill}
.story-follow{background:var(--green);color:#fff;border-radius:26px;padding:34px 28px;margin:20px 0 42px;text-align:center}
.story-follow h2{font-size:clamp(27px,3vw,35px);margin:0 0 18px}
.story-follow p{color:#E2EBE3;margin:0 auto;max-width:570px;font-size:15px}
.story-follow-links{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-top:22px}
.story-follow-links a{display:inline-flex;align-items:center;justify-content:center;padding:10px 18px;border:1px solid #ffffff99;border-radius:999px;color:#fff;font-size:13px;text-decoration:none}
.story-follow-links a:first-child{background:#fff;color:var(--green);border-color:#fff}
.story-follow-links a:hover{background:var(--pale);color:var(--green)}
@media(max-width:700px){
.story-page .story-chapter{padding:26px 20px;margin:12px 0}
.story-page .story-chapter:nth-child(even){border-radius:20px}
.story-page .chapter-with-photo,.story-page .chapter-photo-first{grid-template-columns:1fr;gap:24px}
.story-page .chapter-photo-first .chapter-photo,.story-page .chapter-photo-first .chapter-copy{grid-column:auto;grid-row:auto}
.story-page .chapter-copy p:not(.eyebrow){font-size:15px}
.story-page .chapter-photo{max-width:290px}

.chapter-build-photos{max-width:360px;margin:auto}
.story-follow{padding:30px 22px;border-radius:20px;margin-bottom:30px}
}

/* Family photograph and introduction in the Story hero. */
.story-page .story-hero{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);min-height:390px;border-radius:24px;overflow:hidden;background:var(--green);color:#fff;margin:24px 0 28px;isolation:isolate}
.story-hero-copy{align-self:center;padding:34px 30px;min-width:0;position:relative;z-index:1}
.story-page .story-hero-copy .eyebrow{font-size:11px;color:#E2EBE3;letter-spacing:.14em;margin:0 0 20px}
.story-page .story-hero-copy h1{font-size:clamp(2rem,3.4vw,2.9rem);line-height:1.15;letter-spacing:-.035em;margin:0 0 24px;font-weight:750;color:#fff}
.story-page .story-hero-description{font-size:15px;line-height:1.8;max-width:440px;color:#EFF3EF;margin:0}
.story-hero-photo{position:relative;min-width:0;min-height:390px}
.story-hero-photo img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:52% 50%}
.story-hero-photo:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#29463890 0%,#29463800 18%);pointer-events:none}
@media(max-width:900px) and (min-width:701px){.story-hero-copy{padding:28px 22px}.story-page .story-hero-copy h1{font-size:2.1rem}.story-page .story-hero-description{font-size:14px}.story-page .story-hero{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
@media(max-width:700px){.story-page .story-hero{grid-template-columns:1fr;min-height:0;border-radius:20px;margin:18px 0 24px}.story-hero-photo{order:-1;min-height:0;aspect-ratio:1584/993}.story-hero-photo img{object-fit:contain}.story-hero-photo:after{display:none}.story-hero-copy{padding:26px 24px 30px}.story-page .story-hero-copy h1{font-size:2.15rem;margin-bottom:20px}.story-page .story-hero-copy .eyebrow{margin-bottom:14px}.story-page .story-hero-description{font-size:14px;max-width:none}}

/* Preserve alternating photo order after the story rollback. */
.story-page .chapter-photo-first .chapter-build-photos{grid-column:1;grid-row:1}
.story-page .early-build-photo img{max-height:350px;object-fit:cover;object-position:center}
@media(max-width:700px){.story-page .chapter-photo-first .chapter-build-photos{grid-column:auto;grid-row:auto}}
