/* Story pages (Abroad, Photo Essay): text panels beside lead photos, justified photo rows, places grid. Tokens only. */
.story-page .page-hero .panel { max-width: none; }
.story-section { padding-block: clamp(20px, 4vw, 48px); }
.story-section + .story-section { padding-top: 0; }
.story-page main > .story-section:last-of-type { padding-bottom: clamp(48px, 8vw, 96px); }

/* text panel beside a lead image */
.story-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 28px); align-items: center; }
.story-split--left { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.story-text { position: relative; overflow: hidden; isolation: isolate; }
.story-text h1, .story-text h2 { margin-top: 0; }
.story-text .prose > :last-child { margin-bottom: 0; }
.story-sub { margin: -.4em 0 1.1em; font: italic 1.1rem/1.4 var(--font-display); color: var(--text-muted); }
.story-hero-panel .lede { max-width: 68ch; }
.story-texture { position: absolute; inset: 0; z-index: -1; opacity: .16; pointer-events: none; }
.story-texture img { width: 100%; height: 100%; object-fit: cover; }

/* photo frames keep the photo's own proportions */
.story-fig { margin: 0; }
.story-fig .frame { aspect-ratio: var(--ar, 1.3333); }
.story-lead .frame { max-height: min(78vh, 760px); }
.story-split--left .story-lead .frame { max-height: none; }

/* gallery rows: every photo in a row gets the same height (flex-grow = aspect ratio) */
.story-row { display: flex; gap: clamp(16px, 2.4vw, 28px); margin-top: clamp(16px, 2.4vw, 28px); }
/* x100: grow values that add up to less than 1 (one portrait photo alone) wouldn't fill the row */
.story-row > .story-fig { flex: calc(var(--ar, 1.3333) * 100) 1 0; min-width: 0; }

/* places */
.story-title { text-align: center; margin: 0 0 clamp(20px, 3vw, 32px); }
.story-places { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.story-place { padding: 26px 22px 22px; text-align: center; }
.story-place__img { width: 132px; aspect-ratio: 1; margin: 0 auto 16px; border-radius: 50%; overflow: hidden; border: 3px solid var(--glass-border); box-shadow: var(--shadow-glass); }
.story-place__img img { width: 100%; height: 100%; object-fit: cover; }
.story-place h3 { margin: 0 0 .35em; font-size: 1.2rem; }
.story-place p { margin: 0; font-size: .95rem; color: var(--text-muted); }

@media (max-width: 767px) {
  .story-split, .story-split--left { grid-template-columns: 1fr; }
  .story-split--left .story-lead { order: 0; }
  .story-row { flex-direction: column; }
  .story-row > .story-fig { flex: none; }
  .story-lead .frame { max-height: none; }
}
