/* story — the text and the photo. No outer padding, no width, no colours of its own: the section's. */

.story-inner { display: grid; grid-template-columns: 1fr; gap: var(--grid-gap); align-items: center; }
.story-media img { width: 100%; border-radius: var(--radius); }
/* The passage reads as the hero's lead does; the link stands as far under it as the hero's button. */
.story-text p { font-size: 1.16rem; color: var(--body-text); max-width: 620px; }

.story-text p:last-child { margin-bottom: 2.4rem; }

/* side: the photo beside the text */
.story--side.has-photo .story-inner { grid-template-columns: 1.1fr .9fr; }

/* cover: the photo behind the text, as the hero's — edge to edge, a scrim over it, the words light whatever the
   design's ground (its colours set again here, so the heading, the lead and the outlined link follow) */
.story--cover.has-photo               { position: relative; isolation: isolate; color: #fff; padding-block: var(--space);
                                        --ink: #fff; --body-text: rgba(255, 255, 255, .88); --muted: rgba(255, 255, 255, .72);
                                        --mark: #fff; --line: rgba(255, 255, 255, .4); }
.story--cover.has-photo .story-copy   { max-width: 40rem; }
.story--cover .story-media            { position: absolute; inset: 0; z-index: -1; }
.story--cover .story-media img        { height: 100%; object-fit: cover; border-radius: 0; }
.story--cover.has-photo::after        { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .55); }
/* …the whole band: the section's space is taken inside the story, under the photo (the drawer's «space» still sets it) */
.section:has(> .story--cover.has-photo) { padding-block: 0; }
/* …in the page's column (a band of normal or narrow width): a card — its corners rounded, the words a margin inside */
.container .story--cover.has-photo    { border-radius: var(--radius); overflow: hidden; padding-inline: clamp(24px, 5vw, 64px); }

/* statement: the kicker in a narrow column of its own; the heading, the first paragraph large as a statement and the
   rest beside it; the photo under them across that column. */
.story--statement .story-inner            { grid-template-columns: minmax(0, 18.75rem) minmax(0, 1fr); column-gap: clamp(2rem, 5.5vw, 5rem); align-items: start; }
.story--statement .story-kicker           { grid-column: 1; grid-row: 1; padding-top: .9rem; }
.story--statement .story-copy             { grid-column: 2; grid-row: 1; }
.story--statement .story-media            { grid-column: 2; grid-row: 2; margin-top: clamp(2rem, 4.5vw, 4rem); }
.story--statement .story-media img        { display: block; height: clamp(20rem, 36vw, 32.5rem); object-fit: cover; }
.story--statement .story-text p:first-child { max-width: 56rem; font-family: var(--font-display); font-size: clamp(1.5rem, 2.8vw, 2.4rem);
                                            line-height: 1.22; color: var(--ink); }
.story--statement .story-text p:last-child  { margin-bottom: 2rem; }

/* split: the photo the band's whole height on the left, out to the page's edge (placed against the section, past the
   page's column); the text on the right, its space inside. */
.section:has(.story--split.has-photo)   { position: relative; padding-block: 0; }
.story--split.has-photo .story-inner    { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(2rem, 4.4vw, 4rem); }
.story--split.has-photo .story-copy     { grid-column: 2; padding-block: clamp(3rem, 5vw, 4.5rem); }
.story--split .story-media              { position: absolute; top: 0; bottom: 0; left: 0; width: 50%; }
.story--split .story-media img          { height: 100%; object-fit: cover; border-radius: 0; }

@media (max-width: 900px) {
  .story--side.has-photo .story-inner { grid-template-columns: 1fr; }
  .story--split.has-photo .story-inner { grid-template-columns: 1fr; }
  .story--split.has-photo .story-copy  { grid-column: 1; }
  .story--split .story-media           { position: static; width: auto; margin-inline: calc(50% - 50vw); }
  .story--statement .story-inner       { grid-template-columns: 1fr; }
  .story--statement .story-kicker,
  .story--statement .story-copy,
  .story--statement .story-media       { grid-column: 1; grid-row: auto; }
}
