.photo-story {
  --story-width: min(1180px, calc(100% - var(--edge) * 2));
  width: var(--story-width);
  margin-inline: auto;
  padding: clamp(30px,5vw,76px) 0 clamp(42px,6vw,96px);
}
.story-opening, .story-spread { display: grid; align-items: center; }
.story-opening { grid-template-columns: minmax(0,.88fr) minmax(0,1.12fr); gap: clamp(24px,6vw,95px); }
.story-title { max-width: 530px; }
.story-title h1 { font: 400 clamp(50px,6.25vw,98px)/1.01 var(--serif); letter-spacing: -.05em; margin: 12px 0 23px; }
.story-title .story-kind { font: 500 14px/1.4 var(--sans); color: var(--red); }
.story-title > p:last-child, .story-turn { max-width: 48ch; font: 400 clamp(17px,1.6vw,23px)/1.54 var(--serif); }
.story-print { display: block; width: 100%; cursor: zoom-in; }
.story-print img { width: 100%; height: auto; }
.story-opening .story-print { max-width: 570px; justify-self: end; }
.story-spread { grid-template-columns: 1fr .92fr; column-gap: clamp(24px,6vw,100px); row-gap: clamp(27px,4vw,65px); margin-top: clamp(30px,6vw,96px); }
.story-spread .story-print:first-child { grid-column: 1; grid-row: 1 / 3; }
.story-turn { align-self: end; max-width: 39ch; }
.story-spread .story-print:last-child { width: 81%; align-self: start; }
.story-object .story-opening { grid-template-columns: 1fr 1fr; }
.story-object .story-spread { grid-template-columns: 1fr 1fr; }
.story-object .story-spread .story-print:first-child { grid-row: 1; align-self: end; }
.story-object .story-spread .story-print:last-child { width: 100%; grid-column: 2; grid-row: 1; align-self: end; }
.story-object .story-turn { grid-row: 2; grid-column: 2; }
.story-walk .story-opening { grid-template-columns: 1.18fr 1fr; }
.story-walk .story-opening .story-print, .story-gesture .story-opening .story-print { grid-column: 1; grid-row: 1; justify-self: start; }
.story-walk .story-title, .story-gesture .story-title { grid-column: 2; grid-row: 1; }
.story-walk .story-spread .story-print:first-child { padding: 0 8%; }
.story-walk .story-spread .story-print:last-child { width: 100%; }
.story-craft .story-title { align-self: end; padding-bottom: 5%; }
.story-craft .story-spread { grid-template-columns: 1.12fr .88fr; }
.story-craft .story-spread .story-print:first-child { grid-column: 2; }
.story-craft .story-spread .story-print:last-child, .story-craft .story-turn { grid-column: 1; justify-self: end; }
.story-gesture .story-opening { grid-template-columns: 1.08fr .92fr; }
.story-gesture .story-spread { grid-template-columns: 1.25fr .75fr; }
.story-gesture .story-spread .story-print:last-child { width: 100%; }
.story-end { padding-top: 24px; margin-top: clamp(40px,6vw,90px); border-top: 1px solid var(--line); display: flex; justify-content: end; }

.photo-viewer {
  inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0;
  padding: max(12px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));
  color: #f4f0e7; background: #161715; overflow: hidden;
}
.photo-viewer[open] { display: grid; grid-template-rows: auto minmax(0,1fr) auto; gap: 8px; }
.photo-viewer::backdrop { background: #161715; }
html:has(.photo-viewer[open]) { overflow: hidden; }
.viewer-top, .viewer-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.viewer-actions { display: flex; align-items: center; gap: clamp(7px,2vw,22px); }
.viewer-actions [hidden] { display: none; }
.viewer-top p { font: 400 clamp(18px,2vw,28px)/1.2 var(--serif); }
.viewer-stage { min-height: 0; min-width: 0; touch-action: pan-y pinch-zoom; }
.viewer-stage img { width: 100%; height: 100%; object-fit: contain; }
.viewer-paging { display: flex; align-items: center; gap: clamp(8px,2vw,30px); }
.viewer-counter { min-width: 3ch; font-variant-numeric: tabular-nums; color: #c7c5bc; white-space: nowrap; }
.photo-viewer button, .viewer-counter { font: 500 14px/1.35 var(--sans); }
.photo-viewer button { color: inherit; background: transparent; border: 0; padding: 8px 4px; min-height: 42px; }
.photo-viewer button:hover { text-decoration: underline; text-underline-offset: .25em; }
.photo-viewer button:focus-visible { outline-color: #f4f0e7; outline-offset: 1px; }
.viewer-save-button[aria-pressed=true] { color: #efba9d; }
@media(prefers-reduced-motion:no-preference) {
  .photo-viewer[open] .viewer-stage { animation: reveal-print .22s ease-out; }
  @keyframes reveal-print { from { opacity: .35; } to { opacity: 1; } }
}
@media(max-width:720px) {
  .photo-story { width: calc(100% - var(--edge) * 2); }
  .photo-story .story-opening, .photo-story .story-spread { display: flex; flex-direction: column; align-items: stretch; }
  .photo-story .story-title { align-self: start; padding: 0; }
  .photo-story .story-title h1 { font-size: clamp(45px,10vw,65px); }
  .photo-story .story-opening .story-print { max-width: none; }
  .photo-story .story-spread .story-print { width: 100%; padding: 0; }
  .photo-story .story-turn { align-self: start; }
  .photo-viewer { padding-inline: max(12px,env(safe-area-inset-left)); }
  .viewer-foot { gap: 4px; }
  .viewer-paging { gap: 6px; }
  .photo-viewer button, .viewer-counter { font-size: 13px; }
}
