/* Delivered gallery — the Photos and Films pages' designs (Oct 13 2026).
   gallery.js puts html[data-photos-style] / html[data-films-style] on (its
   PHOTO_STYLES / FILM_STYLES; GALLERIES.md "Page designs"); "card" and
   "classic" are gallery.css as it always was. Every design draws in the
   theme's colours and type (--bg, --ink, --card, --accent, --display…), and
   the dark ones (Darkroom, Theater, Screening) in its deepest colour
   (--stage-bg / --on-photo, set by applyTheme with the new look).
   Masonry / Even grid still apply inside every Photos design. */

:root { --pg-pad: clamp(14px, 3.2vw, 48px); }

/* ---- Parts only some designs show ------------------------------------------ */
.album-back, .album-num, .album-hero, .album-index, .tab-pic { display: none; }
.film-by, .fr-pic, .fr-n, .fr-desc, .films-glow { display: none; }
.album-index[hidden], .album-top[hidden] { display: none !important; }
.album-top.no-pic .album-hero { display: none !important; }

/* ---- Dark rooms: Darkroom (photos), Theater + Screening (films) -------------
   The page takes the theme's deepest colour while you're on it. Its words: the picked Text (--room-ink, set by
   gallery.js only when Text is picked — people expect Text to change every word, Oct 19 2026), else the words on photos. */
html[data-view="films"]:is([data-films-style="theater"], [data-films-style="screening"]) body,
html[data-view="photos"][data-photos-style="darkroom"] body {
  --bg: var(--stage-bg, #0b0b0b);
  --ink: var(--room-ink, var(--on-photo, #f1ece4));
  --muted: color-mix(in srgb, var(--room-ink, var(--on-photo, #f1ece4)) 58%, var(--stage-bg, #0b0b0b));
  --rule: color-mix(in srgb, var(--room-ink, var(--on-photo, #f1ece4)) 15%, transparent);
  --surface: color-mix(in srgb, var(--room-ink, var(--on-photo, #f1ece4)) 6%, var(--stage-bg, #0b0b0b));
  --card: var(--stage-bg, #0b0b0b);
  --card-ink: var(--room-ink, var(--on-photo, #f1ece4));
  --card-rule: color-mix(in srgb, var(--room-ink, var(--on-photo, #f1ece4)) 15%, transparent);
  color-scheme: dark;
}

/* ==== PHOTOS ================================================================ */

/* Designs that drop the card: the photos sit straight on the page. */
html:is([data-photos-style="open"], [data-photos-style="pills"], [data-photos-style="covers"], [data-photos-style="hero"],
  [data-photos-style="split"], [data-photos-style="chapters"], [data-photos-style="editorial"], [data-photos-style="journal"],
  [data-photos-style="prints"], [data-photos-style="matted"], [data-photos-style="minimal"], [data-photos-style="magazine"],
  [data-photos-style="darkroom"]) .photo-card {
  --card-ink: var(--ink);
  --card-rule: var(--rule);
  background: transparent; color: var(--ink); box-shadow: none; border-radius: 0;
  max-width: 1640px; padding: 14px var(--pg-pad) 40px;
}
html:is([data-photos-style="open"], [data-photos-style="pills"], [data-photos-style="covers"], [data-photos-style="hero"],
  [data-photos-style="split"], [data-photos-style="chapters"], [data-photos-style="editorial"], [data-photos-style="journal"],
  [data-photos-style="prints"], [data-photos-style="matted"], [data-photos-style="minimal"], [data-photos-style="magazine"],
  [data-photos-style="darkroom"]) .photos-view { padding-left: 0; padding-right: 0; }

/* Numbers and captions under a photo (where a design shows them). */
.tile-meta { align-items: baseline; gap: 10px; padding: 9px 2px 0; min-height: 22px; }
.tile-n { font-size: 9.5px; letter-spacing: 0.24em; opacity: 0.6; flex: none; }
.tile-cap { min-width: 0; font-size: 13px; line-height: 1.45; opacity: 0.78; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* A photo given a whole row (Feature First, Magazine). */
.tile.wide .tile-pic img { object-position: 50% 40%; }
.tile.wide .tile-meta { display: none !important; }

/* Album covers page (Album Covers). */
.album-index:not([hidden]) { display: block; }
.ai-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: clamp(26px, 3vw, 44px) clamp(14px, 2vw, 26px); }
.ai-card { display: flex; flex-direction: column; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.ai-pic { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 3px;
  background: color-mix(in srgb, var(--card-ink) 7%, transparent); }
.ai-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.8s ease, transform 1.4s var(--ease); }
.ai-pic img.in { opacity: 1; }
@media (hover: hover) { .ai-card:hover .ai-pic img.in { transform: scale(1.035); } }
.ai-n { margin-top: 18px; font-size: 9.5px; letter-spacing: 0.32em; opacity: 0.55; }
.ai-t { margin-top: 6px; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; }
.ai-c { margin-top: 6px; font-size: 9.5px; letter-spacing: 0.26em; opacity: 0.6; }

/* Chapter titles between albums (Chapters). */
.chapter-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin: clamp(46px, 7vw, 100px) 2px 6px;
  padding-top: 22px; border-top: 1px solid var(--card-rule); scroll-margin-top: 140px; }
.grid > .chapter-head:first-child { margin-top: 6px; }
.chapter-n { flex-basis: 100%; font-size: 9.5px; letter-spacing: 0.34em; opacity: 0.55; }
.chapter-t { font-size: clamp(30px, 4.2vw, 56px); }
.chapter-c { font-size: 10px; letter-spacing: 0.26em; opacity: 0.6; }
.chapter-dl { margin-left: auto; align-self: center; font-size: 10.5px; opacity: 0.75; color: inherit; }
.chapter-dl svg { width: 13px; height: 13px; }

/* -- Open Page: no panel, a centred title and tabs -- */
html[data-photos-style="open"] .tabs-row { justify-content: center; border-bottom: 0; }
html[data-photos-style="open"] .tabs { flex: 0 1 auto; -webkit-mask-image: none; mask-image: none; padding: 0; }
html[data-photos-style="open"] .tab { border-bottom-width: 1px; }
html[data-photos-style="open"] .album-head { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
html[data-photos-style="open"] .album-head .album-dl { margin-left: 0; }

/* -- Floating Pills: album chips that stay at the top, soft rounded photos -- */
html:is([data-photos-style="pills"], [data-photos-style="chapters"]) .tabs-row {
  position: sticky; z-index: 6; top: calc(var(--bar-stick, var(--bar-h)) + env(safe-area-inset-top));
  margin: 0 calc(-1 * var(--pg-pad)); padding: 12px var(--pg-pad) 10px; border-bottom: 0;
  background: var(--bg); background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
html[data-photos-style="pills"] .tabs { gap: 8px; padding: 2px 24px 2px 2px; }
html[data-photos-style="pills"] .tab { padding: 10px 17px; border: 1px solid var(--rule); border-radius: 999px; margin: 0; opacity: 0.8; }
html[data-photos-style="pills"] .tab.on { opacity: 1; background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
html[data-photos-style="pills"] .fav-link { padding: 10px 14px; border: 1px solid var(--rule); border-radius: 999px; }
html[data-photos-style="pills"] .tile-pic { border-radius: 14px; }
html[data-photos-style="pills"] .grid.even .tile-pic { border-radius: 10px; }
html[data-photos-style="pills"] .album-head { margin-top: 26px; }

/* -- Album Index: the albums listed down the side (computers) -- */
@media (min-width: 900px) {
  html[data-photos-style="sidebar"] .photo-card { display: grid; grid-template-columns: minmax(170px, 230px) minmax(0, 1fr); column-gap: clamp(28px, 3vw, 52px); align-items: start; }
  html[data-photos-style="sidebar"] .photo-card > * { grid-column: 2; }
  html[data-photos-style="sidebar"] .tabs-row {
    grid-column: 1; grid-row: 1 / span 6; position: sticky; top: calc(var(--bar-stick, var(--bar-h)) + env(safe-area-inset-top) + 24px);
    flex-direction: column; align-items: stretch; gap: 14px; border-bottom: 0; padding-top: 34px;
  }
  html[data-photos-style="sidebar"] .tabs { flex-direction: column; gap: 0; overflow: visible; -webkit-mask-image: none; mask-image: none; padding: 0; counter-reset: alb; }
  html[data-photos-style="sidebar"] .tab { counter-increment: alb; white-space: normal; padding: 13px 0 12px; margin: 0; border-bottom: 1px solid var(--card-rule); opacity: 0.55; }
  html[data-photos-style="sidebar"] .tab::before { content: counter(alb, decimal-leading-zero); display: inline-block; width: 30px; opacity: 0.6; }
  html[data-photos-style="sidebar"] .tab.on { opacity: 1; border-bottom-color: currentColor; }
  html[data-photos-style="sidebar"] .fav-link { padding: 4px 0; }
  html[data-photos-style="sidebar"] .album-head { margin-top: 30px; }
}

/* -- Album Strip: picture tabs along the top -- */
html[data-photos-style="strip"] .tab { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; padding: 4px 0 14px; opacity: 0.55; }
html[data-photos-style="strip"] .tab-pic { display: block; position: relative; width: clamp(104px, 11vw, 150px); aspect-ratio: 3 / 2; overflow: hidden; border-radius: 6px;
  background: color-mix(in srgb, var(--card-ink) 8%, transparent); transition: box-shadow 0.25s; }
html[data-photos-style="strip"] .tab-pic img { width: 100%; height: 100%; object-fit: cover; }
html[data-photos-style="strip"] .tab.on { opacity: 1; }
html[data-photos-style="strip"] .tab.on .tab-pic { box-shadow: 0 0 0 2px var(--card), 0 0 0 3px var(--card-ink); }
html[data-photos-style="strip"] .tabs { gap: 18px; padding-top: 4px; }

/* -- Album Covers: a page of album covers first -- */
html[data-photos-style="covers"] .tabs { display: none; }
html[data-photos-style="covers"] .tabs-row { border-bottom: 0; min-height: 0; }
html[data-photos-style="covers"] .fav-link { margin-left: auto; }
html[data-photos-style="covers"][data-albums="many"]:not([data-album="index"]) .album-back {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 0 12px; text-decoration: none; opacity: 0.75;
}
html[data-photos-style="covers"] .album-back:hover { opacity: 1; }
html[data-photos-style="covers"] .album-back svg { width: 18px; height: 18px; }
html[data-photos-style="covers"] .album-head { flex-direction: column; align-items: center; text-align: center; gap: 10px; margin-top: 18px; }
html[data-photos-style="covers"] .album-head .album-dl { margin-left: 0; }
html[data-photos-style="covers"] .album-index .album-head { margin-bottom: clamp(34px, 5vw, 60px); }

/* -- Cover Banner: each album opens under its cover, edge to edge -- */
html[data-photos-style="hero"] .photo-card { display: flex; flex-direction: column; max-width: none; padding: 0 0 40px; }
html[data-photos-style="hero"] .photos-view { padding-top: calc(var(--bar-h) + env(safe-area-inset-top)); }
html[data-photos-style="hero"] .photo-card > :not(.album-top) { margin-left: var(--pg-pad); margin-right: var(--pg-pad); }
html[data-photos-style="hero"] .album-top { order: -1; position: relative; margin-bottom: 18px; }
html[data-photos-style="hero"] .album-hero { display: block; position: relative; height: min(64vh, 680px); height: min(64svh, 680px); min-height: 320px; overflow: hidden; background: var(--stage-bg, #111); }
html[data-photos-style="hero"] .album-hero-img, html[data-photos-style="split"] .album-hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 1.1s ease, transform 2.4s var(--ease);
}
html[data-photos-style="hero"] .album-hero-img.in, html[data-photos-style="split"] .album-hero-img.in { opacity: 1; transform: none; }
html[data-photos-style="hero"] .album-top:not(.no-pic) .album-head {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 90px var(--pg-pad) clamp(22px, 3vw, 38px); color: var(--on-photo, #fff);
  background: var(--dither), linear-gradient(180deg, transparent, color-mix(in srgb, var(--deep, #000) 62%, transparent));
}
html[data-photos-style="hero"] .album-top:not(.no-pic) .album-title { font-size: clamp(44px, 7vw, 104px); text-shadow: 0 2px 24px color-mix(in srgb, var(--deep, #000) 30%, transparent); }
html[data-photos-style="hero"] .album-top:not(.no-pic) .album-head .caps { opacity: 0.9; }
html[data-photos-style="hero"] .album-top.no-pic .album-head { margin-left: var(--pg-pad); margin-right: var(--pg-pad); }
html[data-photos-style="hero"] .tabs-row { justify-content: center; border-bottom: 0; }
html[data-photos-style="hero"] .tabs { flex: 0 1 auto; -webkit-mask-image: none; mask-image: none; }

/* -- Split Cover: the album's cover stays left, photos scroll right -- */
html[data-photos-style="split"] .album-hero { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; margin-top: 18px; border-radius: 3px; background: var(--surface); }
@media (min-width: 900px) {
  html[data-photos-style="split"] .photo-card { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr); column-gap: clamp(26px, 3.4vw, 60px); align-items: start; }
  html[data-photos-style="split"] .photo-card > * { grid-column: 2; }
  html[data-photos-style="split"] .tabs-row { grid-column: 1 / -1; }
  html[data-photos-style="split"] .album-top {
    grid-column: 1; grid-row: 2 / span 4; position: sticky; top: calc(var(--bar-stick, var(--bar-h)) + env(safe-area-inset-top) + 18px);
    display: flex; flex-direction: column; height: calc(100svh - var(--bar-h) - env(safe-area-inset-top) - 40px); min-height: 460px;
  }
  html[data-photos-style="split"] .album-hero { flex: 1; aspect-ratio: auto; min-height: 0; }
  html[data-photos-style="split"] .album-head { margin: 22px 2px 0; }
  html[data-photos-style="split"] .album-title { font-size: clamp(34px, 3.6vw, 56px); }
  html[data-photos-style="split"] .grid { margin-top: 18px; }
}

/* -- Chapters: every album on one scroll -- */
html[data-photos-style="chapters"] .tab { padding-bottom: 10px; }
html[data-photos-style="chapters"][data-album="chapters"] .album-head { margin-bottom: 4px; }

/* -- Editorial: numbered albums, big titles, hairlines, room -- */
html[data-photos-style="editorial"] .tabs { counter-reset: alb; gap: 28px; }
html[data-photos-style="editorial"] .tab { counter-increment: alb; }
html[data-photos-style="editorial"] .tab::before { content: counter(alb, decimal-leading-zero) "\2002"; opacity: 0.55; }
html[data-photos-style="editorial"] .album-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px 24px;
  padding-bottom: 22px; border-bottom: 1px solid var(--rule); margin: clamp(34px, 5vw, 70px) 2px clamp(26px, 3.4vw, 46px); }
html[data-photos-style="editorial"] .album-num { display: block; grid-column: 1 / -1; font-size: 10px; letter-spacing: 0.4em; }
html[data-photos-style="editorial"] .album-num:empty { display: none; }
html[data-photos-style="editorial"] .album-title { grid-column: 1; font-size: clamp(50px, 9vw, 150px); line-height: 0.9; }
html[data-photos-style="editorial"] .album-count { grid-column: 1; }
html[data-photos-style="editorial"] .album-head .album-dl { grid-column: 2; grid-row: 2 / span 2; align-self: end; margin: 0; }
html[data-photos-style="editorial"] :is(.grid, .gseg, .col) { gap: clamp(10px, 1.6vw, 24px); }
html[data-photos-style="editorial"] .tile-meta { display: flex; }
html[data-photos-style="editorial"] .tile-n::before { content: "N\BA  "; }

/* -- Journal: big photos in a calm centred column, numbered and captioned -- */
html[data-photos-style="journal"] .photo-card { max-width: 1120px; }
html[data-photos-style="journal"] .tabs-row { justify-content: center; }
html[data-photos-style="journal"] .tabs { flex: 0 1 auto; }
html[data-photos-style="journal"] .album-head { flex-direction: column; align-items: center; text-align: center; gap: 12px; margin: clamp(40px, 6vw, 80px) 0 clamp(34px, 5vw, 64px); }
html[data-photos-style="journal"] .album-num { display: block; letter-spacing: 0.4em; }
html[data-photos-style="journal"] .album-num:empty { display: none; }
html[data-photos-style="journal"] .album-title { font-style: italic; }
html[data-photos-style="journal"] .album-head .album-dl { margin-left: 0; }
html[data-photos-style="journal"] :is(.grid, .gseg, .col) { gap: clamp(26px, 4vw, 56px); }
html[data-photos-style="journal"] .tile-meta { display: flex; justify-content: center; text-align: center; flex-direction: column; align-items: center; gap: 6px; padding-top: 14px; }
html[data-photos-style="journal"] .tile-n::before { content: "N\BA  "; }
html[data-photos-style="journal"] .tile-cap { white-space: normal; font-family: var(--display); font-style: italic; font-size: 17px; max-width: 520px; }

/* -- Prints: white-bordered prints with a soft shadow -- */
html[data-photos-style="prints"] { --paper: color-mix(in srgb, #fff 93%, var(--base-bg, var(--bg))); }
html[data-photos-style="prints"] :is(.grid, .gseg, .col) { gap: clamp(16px, 2.4vw, 34px); }
html[data-photos-style="prints"] .tile-pic {
  --m: clamp(7px, 0.9vw, 13px); --mb: clamp(22px, 2.6vw, 36px);
  background: var(--paper); border-radius: 1px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 22px 40px -26px rgba(0,0,0,0.55);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
html[data-photos-style="prints"] .tile-pic img { top: var(--m); left: var(--m); right: auto; bottom: auto; width: calc(100% - 2 * var(--m)); height: calc(100% - var(--m) - var(--mb)); }
html[data-photos-style="prints"] .col:nth-child(odd) .tile:nth-child(3n + 2) .tile-pic { transform: rotate(-0.7deg); }
html[data-photos-style="prints"] .col:nth-child(even) .tile:nth-child(3n + 1) .tile-pic { transform: rotate(0.6deg); }
@media (hover: hover) { html[data-photos-style="prints"] .tile:hover .tile-pic { transform: translateY(-3px) rotate(0deg); box-shadow: 0 2px 4px rgba(0,0,0,0.08), 0 30px 50px -26px rgba(0,0,0,0.6); }
  html[data-photos-style="prints"] .tile:hover img { transform: none; } }
html[data-photos-style="prints"] .tile-actions { bottom: calc(var(--mb) + 4px); right: calc(var(--m) + 4px); }

/* -- Matted & Framed: a thin frame and a mat, like a gallery wall -- */
html[data-photos-style="matted"] .photo-card { --mat-c: color-mix(in srgb, #fff 90%, var(--base-bg, var(--bg))); --frame: color-mix(in srgb, var(--ink) 88%, var(--base-bg, var(--bg)));
  background: var(--dither), radial-gradient(ellipse 80% 40% at 50% 0%, color-mix(in srgb, #fff 7%, transparent), transparent 70%); }
html[data-photos-style="matted"] :is(.grid, .gseg, .col) { gap: clamp(22px, 3.6vw, 56px); }
html[data-photos-style="matted"] .tile-pic {
  --m: clamp(12px, 1.8vw, 26px); background: var(--mat-c); border-radius: 0;
  box-shadow: 0 0 0 clamp(3px, 0.3vw, 5px) var(--frame), 0 30px 50px -30px rgba(0,0,0,0.6), 0 10px 18px -12px rgba(0,0,0,0.3);
}
html[data-photos-style="matted"] .tile-pic img { inset: var(--m); width: calc(100% - 2 * var(--m)); height: calc(100% - 2 * var(--m)); }
html[data-photos-style="matted"] .tile:hover img { transform: none; }
html[data-photos-style="matted"] .tile-meta { display: flex; justify-content: center; padding-top: 18px; }
html[data-photos-style="matted"] .tile-n::before { content: "N\BA  "; }
html[data-photos-style="matted"] .album-head { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
html[data-photos-style="matted"] .album-head .album-dl { margin-left: 0; }
html[data-photos-style="matted"] .tabs-row { justify-content: center; }
html[data-photos-style="matted"] .tabs { flex: 0 1 auto; }

/* -- Contact Sheet: small frames edged in film, frame numbers -- */
html[data-photos-style="contact"] :is(.grid, .gseg, .col) { gap: 10px; }
@media (min-width: 700px) { html[data-photos-style="contact"] :is(.grid, .gseg, .col) { gap: 14px; } }
html[data-photos-style="contact"] .tile-pic { border-radius: 0; box-shadow: 0 0 0 3px var(--card-ink); }
html[data-photos-style="contact"] .tile-meta { display: flex; padding: 7px 0 0; min-height: 0; }
html[data-photos-style="contact"] .tile-n { font-size: 9px; letter-spacing: 0.18em; opacity: 0.7; }
html[data-photos-style="contact"] .tile-n::before { content: "\25B8\2009"; }
html[data-photos-style="contact"] .tile-n::after { content: "A"; }
html[data-photos-style="contact"] .tile-cap { display: none; }
html[data-photos-style="contact"] .round { width: 26px; height: 26px; }
html[data-photos-style="contact"] .round svg { width: 12px; height: 12px; }
html[data-photos-style="contact"] .album-title::after { content: " \2014  contact sheet"; font-size: 0.32em; letter-spacing: 0.3em; text-transform: uppercase; font-family: var(--body); font-style: normal; opacity: 0.5; vertical-align: middle; }

/* -- Darkroom: the photos glow on the theme's deepest colour -- */
html[data-photos-style="darkroom"] :is(.grid, .gseg, .col) { gap: clamp(6px, 1vw, 14px); }
html[data-photos-style="darkroom"] .tile-pic { border-radius: 2px; box-shadow: 0 0 0 1px var(--rule); }
@media (hover: hover) { html[data-photos-style="darkroom"] .tile:hover .tile-pic { box-shadow: 0 0 0 1px var(--ink), 0 0 40px -6px color-mix(in srgb, var(--accent) 45%, transparent); } }
html[data-photos-style="darkroom"] .tab.on { color: var(--accent); }
html[data-photos-style="darkroom"] .album-head { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
html[data-photos-style="darkroom"] .album-head .album-dl { margin-left: 0; }
html[data-photos-style="darkroom"] .tabs-row { justify-content: center; }
html[data-photos-style="darkroom"] .tabs { flex: 0 1 auto; }

/* -- Feature First: the album's first photo large, then the rest (on the card) -- */
html[data-photos-style="feature"] .tile.wide .tile-pic { border-radius: 4px; }
html[data-photos-style="feature"] .album-title { font-size: clamp(40px, 6vw, 80px); }

/* -- Minimal: just the photos, lots of air -- */
html[data-photos-style="minimal"] .photo-card { max-width: 1440px; }
html[data-photos-style="minimal"] :is(.grid, .gseg, .col) { gap: clamp(18px, 3vw, 46px); }
html[data-photos-style="minimal"] .tabs-row { justify-content: center; border-bottom: 0; }
html[data-photos-style="minimal"] .tabs { flex: 0 1 auto; gap: 22px; }
html[data-photos-style="minimal"] .tab { padding-bottom: 6px; font-size: 10px; }
html[data-photos-style="minimal"] .album-head { justify-content: center; text-align: center; flex-direction: column; align-items: center; gap: 8px; margin: 22px 0 clamp(26px, 4vw, 50px); }
html[data-photos-style="minimal"] .album-title { font-size: clamp(22px, 2.4vw, 30px); }
html[data-photos-style="minimal"] .album-head .album-dl { margin-left: 0; }
html[data-photos-style="minimal"] .tile-pic { background: transparent; }
html[data-photos-style="minimal"] .tile-meta { display: flex; justify-content: center; }
html[data-photos-style="minimal"] .tile-n { display: none; }

/* -- Magazine: a big landscape photo every few, like a spread -- */
html[data-photos-style="magazine"] :is(.grid, .gseg, .col) { gap: clamp(10px, 1.4vw, 20px); }
html[data-photos-style="magazine"] .album-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 6px 22px; margin-top: clamp(30px, 4vw, 56px); }
html[data-photos-style="magazine"] .album-num { display: block; grid-column: 1 / -1; letter-spacing: 0.4em; color: var(--accent); opacity: 1; }
html[data-photos-style="magazine"] .album-num:empty { display: none; }
html[data-photos-style="magazine"] .album-title { font-size: clamp(46px, 8vw, 128px); line-height: 0.9; text-transform: uppercase; letter-spacing: -0.01em; }
html[data-photos-style="magazine"] .album-head .album-dl { grid-row: 2 / span 2; grid-column: 2; margin: 0; align-self: end; }
html[data-photos-style="magazine"] .tile.wide .tile-pic { border-radius: 0; }

@media (max-width: 699px) {
  html[data-photos-style="hero"] .album-hero { height: 56svh; min-height: 280px; }
  html:is([data-photos-style="editorial"], [data-photos-style="magazine"]) .album-head { grid-template-columns: 1fr; }
  html:is([data-photos-style="editorial"], [data-photos-style="magazine"]) .album-head .album-dl { grid-column: 1; grid-row: auto; }
}

/* ==== FILMS ================================================================= */

/* The films list as pictures (Poster Wall, Cards, Shelf, Film Strip, Stacked, Playlist, Theater). */
.fr-pic { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: var(--surface); flex: none; }
.fr-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.7s ease, transform 1.1s var(--ease); }
.fr-pic img.in { opacity: 1; }
.fr-play { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; z-index: 1; display: grid; place-items: center; border-radius: 50%;
  color: #fff; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.65); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transform: scale(0.9); transition: opacity 0.3s, transform 0.4s var(--ease); }
.fr-play svg { width: 15px; height: 15px; margin-left: 2px; }
.fr-len { position: absolute; right: 8px; bottom: 8px; z-index: 1; padding: 5px 7px; border-radius: 4px; background: rgba(0,0,0,0.62); color: #fff; font-size: 9px; letter-spacing: 0.14em; line-height: 1; }
.film-row:hover .fr-play, .film-row:focus-visible .fr-play, .film-row.on .fr-play { opacity: 1; transform: none; }
@media (hover: hover) { .film-row:hover .fr-pic img.in { transform: scale(1.04); } }
.fr-desc { font-size: 14px; line-height: 1.6; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }

html:is([data-films-style="posters"], [data-films-style="cards"], [data-films-style="shelf"], [data-films-style="strip"],
  [data-films-style="stack"], [data-films-style="playlist"], [data-films-style="theater"]) .film-list {
  background: none; border: 0; border-radius: 0; padding: 0;
}
html:is([data-films-style="posters"], [data-films-style="cards"], [data-films-style="shelf"], [data-films-style="strip"],
  [data-films-style="stack"], [data-films-style="theater"]) .film-row {
  display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 0; border-top: 0; text-align: left;
}
html:is([data-films-style="posters"], [data-films-style="cards"], [data-films-style="shelf"], [data-films-style="strip"],
  [data-films-style="stack"], [data-films-style="playlist"], [data-films-style="theater"]) .film-row :is(.mark, .lead, .d) { display: none; }
html:is([data-films-style="posters"], [data-films-style="cards"], [data-films-style="shelf"], [data-films-style="strip"],
  [data-films-style="stack"], [data-films-style="playlist"], [data-films-style="theater"]) .fr-pic { display: block; }
html:is([data-films-style="posters"], [data-films-style="cards"], [data-films-style="shelf"], [data-films-style="strip"],
  [data-films-style="stack"], [data-films-style="playlist"], [data-films-style="theater"]) .film-row .t { opacity: 0.85; font-size: clamp(19px, 1.8vw, 23px); }
html:is([data-films-style="posters"], [data-films-style="cards"], [data-films-style="shelf"], [data-films-style="stack"],
  [data-films-style="playlist"], [data-films-style="theater"]) .film-row.on .fr-pic { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }

/* -- Theater: the page goes dark around a big player; a row of films below -- */
@media (min-width: 900px) { html[data-films-style="theater"] .player-wrap { max-width: 1520px; } }
html[data-films-style="theater"] .player::after { opacity: 0.6; }
/* Theater's title, details and buttons sit left, lined up with the player's left edge (as its design card shows). */
html[data-films-style="theater"] .film-head { text-align: left; }
html[data-films-style="theater"] :is(.film-meta, .film-actions) { justify-content: flex-start; }
html[data-films-style="theater"] .film-desc { margin-left: 0; }
@media (min-width: 900px) { html[data-films-style="theater"] .film-head { max-width: 1520px; padding-left: 40px; padding-right: 40px; }
  html[data-films-style="theater"][data-films-web="full"] .film-head { max-width: none; } }
/* Shelf + Theater: a sliding row. */
html:is([data-films-style="shelf"], [data-films-style="theater"]) .film-list {
  display: flex; gap: clamp(12px, 1.4vw, 20px); max-width: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: clamp(36px, 5vw, 60px) 0 0; padding: 4px var(--pg-pad) 10px; scroll-padding-left: var(--pg-pad);
}
html:is([data-films-style="shelf"], [data-films-style="theater"]) .film-list::-webkit-scrollbar { display: none; }
html:is([data-films-style="shelf"], [data-films-style="theater"]) .film-row { flex: 0 0 clamp(230px, 24vw, 340px); scroll-snap-align: start; }

/* -- Poster Wall: every film as a poster in a grid -- */
html[data-films-style="posters"] .film-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: clamp(26px, 3vw, 40px) clamp(14px, 1.8vw, 24px); max-width: 1240px; margin: clamp(44px, 6vw, 80px) auto 0; padding: 0 var(--pg-pad); }
html[data-films-style="posters"] .fr-pic { aspect-ratio: 4 / 5; border-radius: 4px; }

/* -- Cards: films as cards with their stories -- */
html[data-films-style="cards"] .film-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(14px, 1.8vw, 22px); max-width: 1240px; margin: clamp(44px, 6vw, 70px) auto 0; padding: 0 var(--pg-pad); }
html[data-films-style="cards"] .film-row { background: var(--card); color: var(--card-ink); border-radius: 16px; padding: 10px 10px 20px; box-shadow: 0 0 0 1px var(--card-rule), 0 24px 44px -32px rgba(0,0,0,0.55); }
html[data-films-style="cards"] .film-row .t, html[data-films-style="cards"] .fr-desc { padding: 0 8px; }
html[data-films-style="cards"] .fr-desc { display: -webkit-box; color: color-mix(in srgb, var(--card-ink) 65%, var(--card)); }
html[data-films-style="cards"] .fr-pic { border-radius: 9px; }
html[data-films-style="cards"] .film-row.on { box-shadow: 0 0 0 2px var(--accent), 0 24px 44px -32px rgba(0,0,0,0.55); }
html[data-films-style="cards"] .film-row.on .fr-pic { box-shadow: none; }

/* -- Film Strip: frames on a strip of film -- */
html[data-films-style="strip"] .film-list {
  display: flex; gap: 10px; max-width: none; overflow-x: auto; scrollbar-width: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 30px var(--pg-pad);
  border-radius: 0; background-color: var(--stage-bg, #111);
  background-image: repeating-linear-gradient(90deg, color-mix(in srgb, var(--on-photo, #f1ece4) 78%, transparent) 0 11px, transparent 11px 24px),
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--on-photo, #f1ece4) 78%, transparent) 0 11px, transparent 11px 24px);
  background-size: 100% 8px, 100% 8px; background-position: 0 10px, 0 calc(100% - 10px); background-repeat: repeat-x; background-attachment: local;
}
html[data-films-style="strip"] .film-list::-webkit-scrollbar { display: none; }
html[data-films-style="strip"] .film-row { flex: 0 0 clamp(200px, 20vw, 280px); gap: 10px; }
html[data-films-style="strip"] .fr-pic { border-radius: 3px; opacity: 0.7; transition: opacity 0.3s; }
html[data-films-style="strip"] .film-row:hover .fr-pic, html[data-films-style="strip"] .film-row.on .fr-pic { opacity: 1; }
html[data-films-style="strip"] .film-row .t { color: var(--room-ink, var(--on-photo, #f1ece4)); font-size: 16px; }

/* -- Stacked: every film big, one after another -- */
html[data-films-style="stack"] .film-list { display: flex; flex-direction: column; gap: clamp(34px, 5vw, 64px); max-width: 1240px; margin: clamp(50px, 7vw, 96px) auto 0; padding: 0 var(--pg-pad); }
html[data-films-style="stack"] .fr-pic { aspect-ratio: 2.2 / 1; border-radius: 4px; }
html[data-films-style="stack"] .fr-play { opacity: 1; transform: none; width: 72px; height: 72px; margin: -36px 0 0 -36px; }
html[data-films-style="stack"] .fr-play svg { width: 20px; height: 20px; }
html[data-films-style="stack"] .film-row .t { font-size: clamp(28px, 3.2vw, 44px); opacity: 1; }
html[data-films-style="stack"] .fr-desc { display: -webkit-box; max-width: 640px; }

/* -- Playlist: thumbnails down the side, like a streaming app -- */
/* (Playlist, Side by Side and Magazine put the player in a grid: there it needs margin 0 + width 100% — gallery.css's
   "margin: 0 auto" made a grid item shrink to its content, and the player, sized by padding, vanished. Oct 19 2026.) */
html[data-films-style="playlist"] .film-list { display: flex; flex-direction: column; gap: 10px; max-width: 860px; margin: 34px auto 0; padding: 0 16px; }
html[data-films-style="playlist"] .film-row { display: grid; grid-template-columns: clamp(124px, 32%, 170px) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 14px; row-gap: 4px;
  padding: 8px; border: 0; border-radius: 12px; text-align: left; align-items: start; transition: background 0.2s; }
html[data-films-style="playlist"] .film-row:hover, html[data-films-style="playlist"] .film-row.on { background: var(--surface); }
html[data-films-style="playlist"] .fr-pic { grid-row: 1 / span 2; border-radius: 7px; }
html[data-films-style="playlist"] .film-row .t { font-size: 18px; line-height: 1.25; padding-top: 2px; }
html[data-films-style="playlist"] .fr-desc { display: -webkit-box; -webkit-line-clamp: 2; font-size: 12.5px; }
html[data-films-style="playlist"] .film-row.on .fr-pic { box-shadow: none; }
@media (min-width: 1000px) {
  html[data-films-style="playlist"] .films-view { display: grid; grid-template-columns: minmax(0, 1fr) clamp(320px, 26vw, 400px); grid-template-areas: "player list" "head list";
    column-gap: 26px; align-items: start; max-width: 1680px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
  html[data-films-style="playlist"] .player-wrap { grid-area: player; max-width: none; width: 100%; margin: 0; padding: 28px 0 0; }
  html[data-films-style="playlist"] .film-head { grid-area: head; max-width: none; text-align: left; padding: 30px 0 0; margin: 0; }
  html[data-films-style="playlist"] .film-meta, html[data-films-style="playlist"] .film-actions { justify-content: flex-start; }
  html[data-films-style="playlist"] .film-desc { margin-left: 0; }
  html[data-films-style="playlist"] .film-list { grid-area: list; margin: 28px 0 0; padding: 0; max-width: none; position: sticky; top: calc(var(--bar-stick, var(--bar-h)) + 20px);
    max-height: calc(100svh - var(--bar-h) - 44px); overflow-y: auto; scrollbar-width: thin; }
}

/* -- Side by Side: player left, words and the list right -- */
@media (min-width: 1000px) {
  html[data-films-style="side"] .films-view { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); grid-template-areas: "player head" "player list";
    grid-template-rows: auto 1fr; column-gap: clamp(28px, 3vw, 56px); align-items: start; max-width: 1640px; margin: 0 auto; padding-left: 36px; padding-right: 36px; }
  html[data-films-style="side"] .player-wrap { grid-area: player; max-width: none; width: 100%; margin: 0; padding: 34px 0 0; position: sticky; top: var(--bar-stick, var(--bar-h)); }
  html[data-films-style="side"] .film-head { grid-area: head; max-width: none; text-align: left; padding: 40px 0 0; margin: 0; }
  html[data-films-style="side"] .film-meta, html[data-films-style="side"] .film-actions { justify-content: flex-start; }
  html[data-films-style="side"] .film-desc { margin-left: 0; }
  html[data-films-style="side"] .film-list { grid-area: list; margin: 30px 0 0; padding: 2px 22px; }
}

/* -- Opening Credits: the title above the player, like a premiere -- */
html[data-films-style="credits"] .films-view { display: flex; flex-direction: column; }
html[data-films-style="credits"] .film-head { order: -1; padding-top: clamp(34px, 5vw, 70px); padding-bottom: clamp(26px, 3vw, 40px); }
html[data-films-style="credits"] .player-wrap { width: 100%; }
html[data-films-style="credits"] .film-by { display: block; font-size: 10px; letter-spacing: 0.46em; opacity: 0.6; margin-bottom: 18px; }
html[data-films-style="credits"] .film-title { font-size: clamp(44px, 7.4vw, 108px); letter-spacing: 0.02em; }
html[data-films-style="credits"] .film-list { margin-top: clamp(40px, 5vw, 64px); }

/* -- Editorial: a huge title, a story column, a numbered index -- */
html[data-films-style="editorial"] .film-head { max-width: 1240px; text-align: left; padding: clamp(34px, 5vw, 64px) var(--pg-pad) 0; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); column-gap: clamp(28px, 4vw, 70px); align-items: end; }
html[data-films-style="editorial"] .film-title { grid-column: 1; font-size: clamp(48px, 8vw, 128px); line-height: 0.92; }
html[data-films-style="editorial"] .film-meta { grid-column: 1; justify-content: flex-start; }
html[data-films-style="editorial"] .film-desc { grid-column: 2; grid-row: 1 / span 2; margin: 0; font-size: 16px; align-self: end; }
html[data-films-style="editorial"] .film-actions { grid-column: 1 / -1; justify-content: flex-start; }
html[data-films-style="editorial"] .film-list { max-width: 1240px; background: none; border: 0; border-radius: 0; padding: 0 var(--pg-pad); margin-top: clamp(46px, 6vw, 80px); }
html[data-films-style="editorial"] .film-row { align-items: center; border-top: 1px solid var(--rule); padding: 22px 0; }
html[data-films-style="editorial"] .film-row:first-child { border-top: 1px solid var(--rule); }
html[data-films-style="editorial"] .film-row:last-child { border-bottom: 1px solid var(--rule); }
html[data-films-style="editorial"] .fr-n { display: block; width: 44px; flex: none; font-size: 15px; opacity: 0.5; font-style: italic; }
html[data-films-style="editorial"] .film-row .mark { display: none; }
html[data-films-style="editorial"] .film-row .t { font-size: clamp(24px, 2.8vw, 36px); }
@media (max-width: 760px) {
  html[data-films-style="editorial"] .film-head { grid-template-columns: 1fr; }
  html[data-films-style="editorial"] .film-desc { grid-column: 1; grid-row: auto; margin-top: 18px; }
}

/* -- Chapters: big numbered rows; a frame slides in on hover -- */
html[data-films-style="chapters"] .film-list { background: none; border: 0; border-radius: 0; max-width: 1100px; padding: 0 var(--pg-pad); }
html[data-films-style="chapters"] .film-row { align-items: center; gap: clamp(14px, 2vw, 26px); padding: clamp(18px, 2.4vw, 28px) 0; border-top: 1px solid var(--rule); }
html[data-films-style="chapters"] .fr-n { display: block; flex: none; min-width: 1.6em; font-size: clamp(36px, 5vw, 64px); line-height: 1; opacity: 0.35; transition: opacity 0.3s; }
html[data-films-style="chapters"] .film-row:hover .fr-n, html[data-films-style="chapters"] .film-row.on .fr-n { opacity: 1; color: var(--accent); }
html[data-films-style="chapters"] .fr-pic { display: block; width: 0; border-radius: 5px; transition: width 0.45s var(--ease); }
html[data-films-style="chapters"] .film-row:hover .fr-pic, html[data-films-style="chapters"] .film-row.on .fr-pic { width: clamp(90px, 11vw, 150px); }
html[data-films-style="chapters"] .fr-play, html[data-films-style="chapters"] .fr-len, html[data-films-style="chapters"] .film-row .mark { display: none; }
html[data-films-style="chapters"] .film-row .t { font-size: clamp(22px, 2.6vw, 34px); }
@media (hover: none) { html[data-films-style="chapters"] .fr-pic { width: 84px; } }

/* -- Framed: the player matted and framed like a print -- */
html[data-films-style="framed"] .player-wrap {
  --frame: color-mix(in srgb, var(--ink) 88%, var(--base-bg, var(--bg)));
  max-width: 1180px; margin: clamp(18px, 3vw, 40px) auto 0; padding: clamp(10px, 2.4vw, 34px);
  background: color-mix(in srgb, #fff 90%, var(--base-bg, var(--bg)));
  box-shadow: 0 0 0 clamp(4px, 0.4vw, 6px) var(--frame), 0 50px 90px -50px rgba(0,0,0,0.65), 0 14px 26px -16px rgba(0,0,0,0.35);
}
html[data-films-style="framed"] .player:not(.theater) { border-radius: 0; box-shadow: none; }
@media (max-width: 899px) { html[data-films-style="framed"] .player-wrap { margin-left: 14px; margin-right: 14px; } }
html[data-films-style="framed"] .film-head { padding-top: clamp(40px, 5vw, 60px); }

/* -- Ambient Glow: the film's colours glow softly behind the page -- */
html[data-films-style="glow"] .films-view { position: relative; isolation: isolate; }
html[data-films-style="glow"] .films-glow { display: block; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: min(110vh, 1100px); overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent); mask-image: linear-gradient(180deg, #000 30%, transparent); }
html[data-films-style="glow"] .films-glow img { position: absolute; inset: -12%; width: 124%; height: 124%; max-width: none; object-fit: cover;
  filter: blur(70px) saturate(1.4); opacity: 0; transition: opacity 1.2s ease; }
html[data-films-style="glow"] .films-glow img.in { opacity: 0.55; }
html[data-dark="false"][data-films-style="glow"] .films-glow img.in { opacity: 0.42; }
html[data-films-style="glow"] .film-list { background: color-mix(in srgb, var(--bg) 70%, transparent); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }

/* -- Minimal: the player and a quiet line of titles -- */
html[data-films-style="minimal"] .film-title { font-size: clamp(26px, 3vw, 36px); }
html[data-films-style="minimal"] .film-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 30px; background: none; border: 0; padding: 0 24px; margin-top: 36px; }
html[data-films-style="minimal"] .film-row { width: auto; padding: 6px 0; border: 0; }
html[data-films-style="minimal"] .film-row :is(.lead, .d, .mark) { display: none; }
html[data-films-style="minimal"] .film-row .t { font-size: 19px; opacity: 0.5; }
html[data-films-style="minimal"] .film-row.on .t { opacity: 1; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px; }

/* -- Magazine: the title and story set beside a smaller player -- */
@media (min-width: 1000px) {
  html[data-films-style="magazine"] .films-view { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); grid-template-areas: "head player" "list list";
    column-gap: clamp(30px, 4vw, 72px); align-items: center; max-width: 1560px; margin: 0 auto; padding-left: 44px; padding-right: 44px; }
  html[data-films-style="magazine"] .player-wrap { grid-area: player; max-width: none; width: 100%; margin: 0; padding: 40px 0 0; }
  html[data-films-style="magazine"] .film-head { grid-area: head; max-width: none; text-align: left; padding: 40px 0 0; margin: 0; }
  html[data-films-style="magazine"] .film-meta, html[data-films-style="magazine"] .film-actions { justify-content: flex-start; }
  html[data-films-style="magazine"] .film-desc { margin-left: 0; font-size: 17px; }
  html[data-films-style="magazine"] .film-list { grid-area: list; max-width: none; width: 100%; display: grid; grid-template-columns: 1fr 1fr; column-gap: 50px; }
  html[data-films-style="magazine"] .film-row:nth-child(2) { border-top: 0; }
}
html[data-films-style="magazine"] .film-title { font-size: clamp(42px, 6vw, 92px); text-transform: uppercase; line-height: 0.92; }
html[data-films-style="magazine"] .film-by { display: block; margin-bottom: 14px; font-size: 10px; letter-spacing: 0.4em; color: var(--accent); }
html[data-films-style="magazine"] .film-list { background: none; border: 0; border-radius: 0; }
html[data-films-style="magazine"] .fr-n { display: block; width: 34px; flex: none; font-size: 14px; opacity: 0.5; }
html[data-films-style="magazine"] .film-row .mark { display: none; }

/* -- Screening: a dark room, a centred screen, credits in small capitals -- */
@media (min-width: 900px) { html[data-films-style="screening"] .player-wrap { max-width: 1120px; padding-top: 54px; } }
html[data-films-style="screening"] .player:not(.theater) { border-radius: 0; box-shadow: 0 0 0 1px var(--rule), 0 60px 120px -60px rgba(0,0,0,0.9); }
html[data-films-style="screening"] .film-by { display: block; font-size: 9.5px; letter-spacing: 0.5em; opacity: 0.55; margin-bottom: 14px; }
html[data-films-style="screening"] .film-title { font-family: var(--body); font-size: clamp(14px, 1.4vw, 17px); font-weight: 400; font-style: normal; text-transform: uppercase; letter-spacing: 0.42em; }
html[data-films-style="screening"] .film-list { background: none; border: 0; border-top: 1px solid var(--rule); border-radius: 0; margin-top: 50px; padding: 4px 0; }
html[data-films-style="screening"] .film-row { justify-content: center; }
html[data-films-style="screening"] .film-row .t { font-family: var(--body); font-size: 12px; text-transform: uppercase; letter-spacing: 0.32em; flex: none; }
html[data-films-style="screening"] .film-row .lead { flex: 0 0 40px; }

@media (max-width: 600px) {
  html:is([data-films-style="shelf"], [data-films-style="theater"]) .film-row { flex-basis: 76vw; }
  html[data-films-style="strip"] .film-row { flex-basis: 62vw; }
}

/* The Favorites tab isn't a numbered album. */
html:is([data-photos-style="sidebar"], [data-photos-style="editorial"]) .tab[data-id="favorites"]::before { content: "\2665\2002"; color: var(--heart); opacity: 1; }

/* ==== Every colour has a job (the new look: html[data-tint]) ====================
   Buttons (--accent): the main buttons, text buttons, the chosen tab, Play.
   Photo panel (--card): cards, mats and frames, and the Home page's Slideshow /
   Download all chips. Background / Text: the page, and (as --deep / --on-photo)
   the shade and words over the pictures. So changing any one always shows. */

/* -- Buttons -- */
html[data-tint] .panel .btn-outline { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
html[data-tint] .panel:hover .btn-outline, html[data-tint] .panel:focus-visible .btn-outline {
  background: color-mix(in srgb, var(--accent) 86%, #fff); color: var(--on-accent); border-color: transparent; }
html[data-tint] .lx-marquee .lx-btns > .lx-btn.glass:first-child, html[data-tint] .lx-half-films .lx-btn.glass {
  background: var(--accent); color: var(--on-accent); border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
html[data-tint] .lx-btn.lx-line:not(.ghost) { color: var(--accent); border-color: var(--accent); }
html[data-tint] .lx-btn.lx-line:not(.ghost):hover,
html[data-tint] .lx-btn.lx-line.light:not(.ghost) { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
html[data-tint] .text-btn { color: var(--accent); border-bottom-color: color-mix(in srgb, var(--accent) 45%, transparent); }
html[data-tint] .text-btn:hover { border-bottom-color: var(--accent); }
html[data-tint] .bar nav a.on, html[data-tint] .tab.on { border-bottom-color: var(--accent); }
html[data-tint] .bar .bar-dl { color: var(--accent); opacity: 1; }
html[data-tint] .album-dl .text-btn, html[data-tint] .chapter-dl {
  background: var(--accent); color: var(--on-accent); border: 0; border-radius: 999px; padding: 8px 14px; opacity: 1; }
html[data-tint] .album-dl .text-btn:hover, html[data-tint] .chapter-dl:hover { background: color-mix(in srgb, var(--accent) 86%, #fff); }
html[data-tint] .player .play { background: color-mix(in srgb, var(--accent) 88%, transparent); border-color: var(--accent); color: var(--on-accent); }
html[data-tint] .btn-line { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
html[data-tint] .btn-line:hover { background: color-mix(in srgb, var(--accent) 86%, #fff); border-color: transparent; }
html[data-tint] .film-row .mark, html[data-tint] .fr-play { color: var(--accent); }
html[data-tint] .fr-play { background: color-mix(in srgb, var(--card) 88%, transparent); border-color: transparent; }
html[data-tint] .lx-ed-index a:hover .go, html[data-tint] .lx-folio-index a:hover .go { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* -- Photo panel -- */
html[data-tint] .landing :is(a, button).g-act {
  background: color-mix(in srgb, var(--card) 90%, transparent); color: var(--card-ink); border: 0; opacity: 1; text-decoration: none; text-shadow: none;
  box-shadow: 0 8px 20px -12px rgba(0,0,0,0.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
html[data-tint] .landing :is(a, button).g-act:not(.lx-btn) { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; }
html[data-tint] .landing :is(a, button).g-act:hover { background: var(--card); color: var(--card-ink); opacity: 1; }
html[data-tint] .lx-mat { background: var(--card); }
html[data-tint] .lx-salon { --mat-c: var(--card); }
html[data-tint][data-photos-style="matted"] .photo-card { --mat-c: var(--card); }
html[data-tint][data-photos-style="prints"] { --paper: var(--card); }
html[data-tint][data-films-style="framed"] .player-wrap { background: var(--card); }
/* The films list sits on the panel, like the photos (Cinema, Side by Side). */
html[data-tint]:is([data-films-style="classic"], [data-films-style="side"]) .film-list {
  background: var(--card); color: var(--card-ink); border-color: var(--card-rule);
  --rule: var(--card-rule); --muted: color-mix(in srgb, var(--card-ink) 55%, var(--card));
}

/* ==== Phones: clean, proportioned (Oct 19 2026) ===============================
   - Buttons never wrap or cram: on phones the long labels give way to short ones (gallery.js lbl: "Download album" →
     "Download", "Play slideshow" → "Slideshow").
   - Buttons that sit together share a row at the same width (the primary one, when there's an odd one out, takes
     its own row above).
   - The couple's initials take the top where the studio's logo was; the logo is only at the foot of the page. */
.lbl-s { display: none; }
.g-act, .g-act .lbl { white-space: nowrap; }
.couple-mark { display: inline-block; font-size: 24px; line-height: 1; letter-spacing: 0.04em; white-space: nowrap; }
.hero-company .couple-mark { font-size: 26px; color: var(--on-photo, #fff); text-shadow: 0 1px 14px rgba(0,0,0,0.35); }
.lx-brand .couple-mark { text-shadow: 0 1px 12px color-mix(in srgb, var(--deep, #000) 40%, transparent); }
.lx-mark .couple-mark, .lx-ed-brand .couple-mark { color: var(--ink); font-size: 22px; }
@media (max-width: 600px) {
  .lbl.has-short .lbl-l { display: none; }
  .lbl.has-short .lbl-s { display: inline; }
  /* Every button group on phones (all 16 Home designs, the album and chapter buttons). Never narrower than their
     words — no min-width: 0 anywhere here, that's what let them cram — and equal widths where they fit:
     - the small top / under-the-title rows size to their widest button, so the buttons match (grid, 1fr);
     - the album row and the main buttons share the full width, wrapping to a new row rather than squeezing. */
  .lx-top-acts, .hero-acts { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; width: fit-content; max-width: 100%; }
  .hero-acts { margin-left: auto; margin-right: auto; }
  .album-dl, .lx-btns { display: flex; flex-wrap: wrap; gap: 8px; }
  .album-dl > *, .lx-btns > * { flex: 1 1 0; min-width: max-content; justify-content: center; margin: 0; }
  /* An odd one out (Watch films + Slideshow + Download): the first takes its own row. */
  .lx-btns > :first-child:nth-last-child(2n + 1) { flex-basis: 100%; }
  .lx-top-acts > *, .hero-acts > * { justify-content: center; }
  /* Play on TV leaves these small rows on phones (it's in the slideshow and on the Films page). */
  .lx-top-acts > .tv-btn, .hero-acts > .tv-btn { display: none !important; } /* (over the pill style's inline-flex) */
  /* Their words: calmer letter-spacing than the rows round them, room inside, icons that never shrink. */
  .lx-top-acts .g-act, .hero-acts .g-act, .album-dl .g-act, .chapter-dl { letter-spacing: 0.14em; font-size: 9.5px; gap: 7px; }
  html[data-tint] .landing :is(.lx-top-acts, .hero-acts) .g-act:not(.lx-btn), .hero-acts .hero-dl { padding: 10px 15px; }
  .lx-btn { letter-spacing: 0.14em; padding-left: 14px; padding-right: 14px; justify-content: center; }
  .g-act svg, .lx-btn svg, .g-act .tv-i, .lx-i { flex: none; }
  /* An album's Slideshow / Download: their own full row under the album's name. */
  .album-head .album-dl { width: 100%; margin-left: 0; }
  .couple-mark { font-size: 21px; }
  /* Cover Story's top row on phones: the couple's initials left, the buttons right. */
  .lx-cs-issue { grid-template-columns: auto 1fr; }
  .lx-cs-issue > :last-child { justify-self: end; }
}
.lx-cs-mark .couple-mark { font-size: 22px; letter-spacing: 0.04em; color: var(--on-photo, #fff); }

/* ==== Universal header + footer settings (Oct 19 2026; galleries.header / .footer) ===========================
   Header "reveal": the bar tucks away while scrolling down and comes back on the way up (gallery.js onScroll,
   html.bar-tucked) — what sticks under it moves up with it (--bar-stick). "sticky" (default): always there.
   Footer: the studio's name as is or small; its image hidden, or an arch (default) / circle / square / its own
   shape, small / medium (default) / large. */
html.bar-tucked { --bar-stick: 0px; }
html[data-header="reveal"].bar-tucked .bar { transform: translateY(-100%); }
html[data-foot-text="small"] .foot .company { font-size: 14px !important; letter-spacing: 0.04em; }
html[data-foot-text="small"] .foot { padding-top: 56px; }
html[data-foot-logo="none"] .foot img { display: none; }
html[data-foot-logo="circle"] .foot img { border-radius: 50%; height: auto; aspect-ratio: 1; }
html[data-foot-logo="square"] .foot img { border-radius: 6px; height: auto; aspect-ratio: 1; }
html[data-foot-logo="natural"] .foot img { border-radius: 0; height: auto; width: auto; max-width: 140px; max-height: 54px; object-fit: contain; background: none; box-shadow: none; }
html[data-foot-size="s"] .foot img { width: 32px; }
html[data-foot-size="s"]:not([data-foot-logo]) .foot img, html[data-foot-size="s"][data-foot-logo="arch"] .foot img { height: 38px; }
html[data-foot-size="l"] .foot img { width: 72px; }
html[data-foot-size="l"]:not([data-foot-logo]) .foot img, html[data-foot-size="l"][data-foot-logo="arch"] .foot img { height: 84px; }
html[data-foot-size="s"][data-foot-logo="natural"] .foot img { width: auto; max-width: 96px; max-height: 36px; }
html[data-foot-size="l"][data-foot-logo="natural"] .foot img { width: auto; max-width: 200px; max-height: 80px; }

/* Header "sticky" on Home: the bar sits above the page from the start, so the page starts under it and the designs'
   own top rows (initials + Slideshow / Download, which the bar already has) step aside — never two headers. */
html[data-header="sticky"] .landing { padding-top: calc(var(--bar-h) + env(safe-area-inset-top)); }
html[data-header="sticky"] .landing :is(.lx-top, .hero-company) { display: none; }
html[data-header="sticky"] .landing .lx-top-acts { display: none !important; }
