.album { --film-height: clamp(260px, 39svh, 440px); position: relative; color: var(--cream); background: var(--plum); }
.album__stage { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; align-items: center; gap: 34px; padding: 48px var(--edge) 32px; min-height: 740px; overflow: clip; }
.album__header { display: flex; align-items: end; justify-content: space-between; gap: 36px; }
.album h2 { margin: 0; font: 800 clamp(3.5rem, 7.6vw, 8rem)/.94 "Barlow Condensed", sans-serif; letter-spacing: -.025em; }
.album h2 span { color: var(--rose); }
.album__header > p { margin: 0 0 6px; font-size: clamp(14px, 1.1vw, 18px); line-height: 1.55; }
.album__viewport { margin-inline: calc(-1 * var(--edge)); overflow-x: auto; scrollbar-color: var(--rose) var(--plum); scrollbar-width: thin; overscroll-behavior-x: contain; scroll-padding-inline: var(--edge); }
.album__viewport:focus-visible { outline: 2px solid var(--rose); outline-offset: -2px; }
.album__strip { position: relative; display: flex; align-items: center; gap: clamp(28px, 3.2vw, 52px); width: max-content; padding: 28px var(--edge); }
.album__strip::before, .album__strip::after { content: ""; position: absolute; left: var(--edge); right: var(--edge); height: 7px; background: repeating-linear-gradient(90deg, var(--rose) 0 13px, transparent 13px 37px); opacity: .45; pointer-events: none; }
.album__strip::before { top: 0; }
.album__strip::after { bottom: 0; }
.album__chapter { flex: 0 0 clamp(230px, 22vw, 340px); padding: 16px 10px 30px 0; }
.album h3 { margin: 0; font: 800 clamp(4rem, 7.4vw, 7rem)/.9 "Barlow Condensed", sans-serif; letter-spacing: -.025em; }
.album__chapter h3 { color: var(--rose); }
.album__chapter > p { margin: 26px 0 0; font-size: 15px; line-height: 1.6; }
.album__chapter--next { flex-basis: clamp(300px, 29vw, 440px); padding-inline: 16px var(--edge); }
.album__chapter--next h3 { color: var(--cream); }
.album__chapter--next h3 span { color: var(--rose); }
.album__shot { flex: 0 0 auto; margin: 0; width: calc(var(--film-height) * var(--photo-ratio, 1.55)); max-width: 78vw; }
.album__photo { position: relative; display: block; width: 100%; aspect-ratio: var(--photo-ratio, 1.55); background: #fff; color: var(--plum); }
.album__photo > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.album__photo:focus-visible { outline: 3px solid var(--rose); outline-offset: 7px; }
.album__enlarge { position: absolute; right: 12px; bottom: 12px; display: grid; width: 42px; height: 42px; place-items: center; background: var(--cream); color: var(--plum); }
.album svg, .album-viewer svg { width: 21px; height: 21px; flex: none; stroke: currentColor; stroke-width: 1.5; }
.album__shot figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; padding-top: 15px; font-size: 12px; line-height: 1.4; }
.album__shot figcaption > :last-child { color: var(--rose); }
.album__shot time { font-variant-numeric: tabular-nums; }
.album__footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.album__hint { margin: 0; font-size: 12px; line-height: 1.6; }
.album__controls { display: flex; align-items: center; gap: 18px; }
.album__controls[hidden] { display: none; }
.album__controls > span { min-width: 54px; text-align: center; font-size: 12px; }
.album__controls button, .album-viewer button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-width: 48px; min-height: 48px; padding: 12px; border: 1px solid var(--rose); color: var(--cream); background: transparent; cursor: pointer; }
.album__controls button:disabled, .album-viewer button:disabled { opacity: .35; cursor: default; }
.album button:focus-visible, .album-viewer button:focus-visible { outline: 2px solid var(--rose); outline-offset: 5px; }
.album__progress { height: 2px; background: color-mix(in srgb, var(--rose) 25%, var(--plum)); }
.album__progress span { display: block; height: 100%; background: var(--rose); transform-origin: left; transform: scaleX(var(--album-progress, 0)); }
.album.is-motion { height: calc(100svh + var(--album-distance, 0px)); }
.album.is-motion .album__stage { position: sticky; top: 0; height: 100svh; min-height: 0; }
.album.is-motion .album__viewport { overflow: hidden; }
.album.is-motion .album__strip { transform: translate3d(calc(-1 * var(--film-offset, 0px)), 0, 0); }

.album-viewing { overflow: hidden; }
.album-viewer { width: 100%; max-width: none; height: 100svh; max-height: none; margin: 0; padding: 24px var(--edge); border: 0; background: var(--plum); color: var(--cream); }
.album-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 20px; }
.album-viewer::backdrop { background: var(--plum); }
.album-viewer__header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.album-viewer__count { font-size: 12px; color: var(--rose); font-variant-numeric: tabular-nums; }
.album-viewer__close { font-size: 12px; }
.album-viewer__figure { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 16px; min-height: 0; margin: 0; }
.album-viewer__image { display: block; justify-self: center; align-self: center; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.album-viewer__caption { text-align: center; font-size: 14px; line-height: 1.5; }
.album-viewer__error { margin: 0; text-align: center; font-size: 14px; line-height: 1.5; }
.album-viewer__controls { display: flex; justify-content: space-between; gap: 16px; }
.album-viewer__controls button { font-size: 12px; padding-inline: 18px; }
@media (hover: hover) and (pointer: fine) {
  .album__photo:hover .album__enlarge { background: var(--plum); color: var(--cream); }
  .album__controls button:hover:not(:disabled), .album-viewer button:hover:not(:disabled) { background: var(--rose); color: var(--plum); }
}
@media (max-width: 900px), (max-height: 679px) {
  .album { --film-height: clamp(240px, 37svh, 340px); }
  .album__stage { min-height: 0; gap: 42px; padding-top: 64px; }
  .album__header { align-items: start; flex-direction: column; gap: 24px; }
  .album__chapter { flex-basis: 230px; }
}
@media (min-width: 901px) and (min-height: 744px) and (max-height: 864px) {
  .album__stage { gap: 20px; padding-block: 32px 24px; }
  .album h2 { font-size: clamp(3.5rem, 6.6vw, 6rem); }
  .album h3 { font-size: clamp(3.7rem, 8.9svh, 5rem); }
}
@media (max-width: 600px) {
  .album { --film-height: 280px; }
  .album__stage { gap: 32px; padding-block: 62px 28px; }
  .album h2 { font-size: clamp(3.2rem, 14vw, 5rem); }
  .album h3 { font-size: 54px; }
  .album__chapter { flex-basis: 138px; padding-right: 0; }
  .album__chapter > p { font-size: 14px; }
  .album__shot figcaption { flex-direction: column; gap: 4px; }
  .album__footer { align-items: start; flex-direction: column; gap: 20px; }
  .album__controls { align-self: flex-end; }
  .album-viewer { padding-block: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .album.is-motion { height: auto; }
  .album.is-motion .album__stage { position: static; height: auto; min-height: 0; }
  .album.is-motion .album__viewport { overflow-x: auto; }
  .album.is-motion .album__strip { transform: none; }
}
