.story-album { --album-bg: var(--paper); --album-ink: var(--brown); --album-line: var(--line); background: var(--album-bg); color: var(--album-ink); }
body[data-page="story"] .whatsapp-float { display: none; }
.story-album[data-theme="dunes"] { --album-bg: oklch(86% .035 67); --album-ink: oklch(25% .04 62); }
.story-album[data-theme="nocturne"] { --album-bg: oklch(23% .012 75); --album-ink: oklch(94% .016 83); --album-line: oklch(65% .02 80 / .4); }
.story-album[data-theme="sunlight"] { --album-bg: oklch(97% .008 84); }
.story-album[data-theme="coast"] { --album-bg: oklch(93% .017 180); --album-ink: oklch(26% .025 178); }
.story-album[data-theme="henna"] { --album-bg: oklch(30% .057 28); --album-ink: oklch(95% .02 78); --album-line: oklch(72% .05 74 / .45); }
.album-opening { padding: 8.5rem var(--pad) 0; }
.album-back { display: inline-block; font: 400 .65rem/1.5 var(--sans); letter-spacing: .04em; padding: .6rem 0; }
.album-title { text-align: center; padding: 2rem 0 3rem; }
.album-title > p { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 1.1rem; }
.album-title h1 { font: 400 clamp(3rem,6.5vw,6rem)/1.05 var(--serif); letter-spacing: -.035em; margin: 0 0 1rem; }
.album-title h1 em { font-weight: 400; }
.album-title > span { font: italic 1.15rem/1.5 var(--serif); }
.album-cover { display: block; position: relative; border: 0; padding: 0; width: 100%; height: min(66vw,700px); min-height: 350px; overflow: hidden; cursor: zoom-in; color: white; background: var(--album-ink); }
.album-cover img { object-position: center 58%; transition: transform 1.3s var(--ease); }
.album-cover:hover img { transform: scale(1.025); }
.cover-caption { position: absolute; right: 1.5rem; bottom: 1.5rem; padding: .8rem 1rem; background: rgba(20,17,15,.75); display: flex; gap: 2rem; align-items: center; font: 400 .65rem/1.5 var(--sans); }
.cover-caption > span { font-size: 1.3rem; }
.album-meta { display: flex; justify-content: space-between; gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--album-line); font: 400 .64rem/1.6 var(--sans); }
.album-meta > span:first-child { font: italic 1rem var(--serif); }
.album-introduction { display: grid; grid-template-columns: 1fr 2fr; gap: 6vw; max-width: 1190px; margin: auto; padding: clamp(4rem,8vw,8rem) var(--pad); scroll-margin-top: 90px; }
.album-facts { display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; font: 400 .7rem/1.6 var(--sans); padding-top: .6rem; }
.album-introduction h2 { font: 400 clamp(1.9rem,3vw,3rem)/1.2 var(--serif); margin: 0 0 2rem; letter-spacing: -.018em; }
.album-introduction p { font: 400 .87rem/1.9 var(--sans); max-width: 58ch; }
.album-gallery { padding: 0 var(--pad); max-width: 1500px; margin: auto; }
.album-photo { margin: 0; min-width: 0; }
.album-photo button { position: relative; display: block; padding: 0; width: 100%; background: var(--album-line); border: 0; overflow: hidden; cursor: zoom-in; color: white; }
.album-photo img { transition: transform 1.1s var(--ease); }
.album-photo button:hover img { transform: scale(1.035); }
.photo-open { position: absolute; bottom: 1rem; right: 1rem; width: 40px; height: 40px; display: grid; place-items: center; background: rgba(20,17,15,.65); font-size: 1.4rem; }
.album-photo figcaption { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; font: 400 .64rem/1.6 var(--sans); }
.album-wide { width: 90%; margin: 0 auto; }
.album-wide button { aspect-ratio: 16/9; }
.album-spread { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; align-items: center; padding: clamp(4rem,8vw,8rem) 5%; }
.album-portrait button { aspect-ratio: 4/5; }
.album-reflection { padding: 1rem; }
.album-reflection > span:first-child { display: block; font: 400 5rem/.7 var(--serif); }
.album-reflection p { font: italic 400 clamp(1.7rem,2.8vw,2.6rem)/1.3 var(--serif); margin: .5rem 0 2rem; }
.album-signature { font: 400 .6rem/1.5 var(--sans); text-transform: uppercase; letter-spacing: .13em; }
.album-finale { max-width: 1050px; width: 100%; margin: auto; }
.album-finale button { aspect-ratio: 16/10; }
.album-endnote { text-align: center; padding: 3rem 1rem 6rem; }
.album-endnote p { font: 400 .62rem/1.8 var(--sans); margin-bottom: 2rem; }
.album-endnote .small-link { color: inherit; }
.album-next { position: relative; display: grid; place-items: center; overflow: hidden; min-height: 460px; text-align: center; color: white; background: var(--brown); }
.album-next > img { position: absolute; inset: 0; filter: brightness(.4); transition: transform 1.2s var(--ease); }
.album-next:hover > img { transform: scale(1.035); }
.album-next > div { position: relative; padding: 3rem 1rem; }
.album-next h2 { font: 400 clamp(2.8rem,5vw,5rem)/1.1 var(--serif); margin: 1rem 0; }
.album-next div > span, .album-next p { font: 400 .72rem/1.6 var(--sans); }
.album-next p > span { margin-left: 1.5rem; font-size: 1.5rem; }
[data-theme="dunes"] .album-title { text-align: left; }
[data-theme="dunes"] .album-cover { height: min(57vw,640px); }
[data-theme="nocturne"] .album-cover img { filter: grayscale(1); }
[data-theme="nocturne"] .album-wide { width: 65%; }
[data-theme="nocturne"] .album-wide button { aspect-ratio: 4/3; }
[data-theme="coast"] .album-cover { width: 65%; height: min(85vw,760px); margin: auto; }
[data-theme="coast"] .album-cover img { object-position: center; }
[data-theme="coast"] .album-spread { direction: rtl; }
[data-theme="coast"] .album-spread > * { direction: ltr; }
[data-theme="henna"] .album-cover { width: 85%; margin: auto; }
[data-theme="henna"] .album-finale { width: 55%; }
[data-theme="henna"] .album-finale button { aspect-ratio: 3/4; }
.viewer-open { overflow: hidden; }
.photo-viewer { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0; padding: 1.5rem 2rem; background: #141412; color: #f8f4ed; }
.photo-viewer[open] { display: grid; grid-template-rows: auto minmax(0,1fr) auto; gap: 1rem; }
.photo-viewer::backdrop { background: #141412; }
.viewer-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font: 400 1.4rem var(--serif); }
.photo-viewer button { background: transparent; color: inherit; border: 1px solid #77736a; min-height: 44px; min-width: 44px; padding: .6rem .9rem; cursor: pointer; }
.viewer-top button { font: 400 .7rem var(--sans); }
.viewer-stage { display: grid; grid-template-columns: 48px minmax(0,1fr) 48px; gap: 1.5rem; align-items: center; min-height: 0; }
.viewer-stage img { width: 100%; height: 100%; min-height: 0; object-fit: contain; background: transparent; touch-action: pan-y; }
.viewer-caption { text-align: center; font: 400 .7rem/1.6 var(--sans); margin: 0; padding-bottom: env(safe-area-inset-bottom); }
@media(max-width:700px) {
  .album-opening { padding-top: 7rem; }
  .album-title { padding: 1.5rem 0 2rem; }
  .album-title h1 { font-size: clamp(2.8rem,11vw,4.5rem); }
  .album-cover, [data-theme] .album-cover { width: 100%; min-height: 0; height: 62svh; max-height: 650px; }
  .album-meta > span:first-child { display: none; }
  .album-introduction { grid-template-columns: 1fr; gap: 2rem; }
  .album-facts { flex-direction: row; flex-wrap: wrap; gap: .5rem 1rem; }
  .album-wide, [data-theme] .album-wide, [data-theme] .album-finale { width: 100%; }
  .album-wide button { aspect-ratio: 4/3; }
  .album-spread { grid-template-columns: 1fr; gap: 2.5rem; padding: 3rem 0; }
  .album-portrait { width: 88%; }
  .album-reflection { padding: 1rem 5%; }
  .album-next { min-height: 350px; }
  .photo-viewer { padding: 1rem; }
  .viewer-stage { grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0,1fr) auto; gap: .8rem; height: 100%; }
  .viewer-stage img { grid-column: 1/-1; grid-row: 1; }
  .viewer-stage button { grid-row: 2; justify-self: center; width: 64px; }
  .viewer-top { font-size: 1.2rem; }
}
@media(prefers-reduced-motion:reduce) {
  .album-photo img, .album-cover img, .album-next > img { transition: none; }
  .album-photo button:hover img, .album-cover:hover img, .album-next:hover > img { transform: none; }
}
