@font-face {
  font-family: 'Montserrat';
  src: url('/assets/montserrat-latin-ext-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/assets/montserrat-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('/assets/playfair-display-latin-ext-wght-normal.woff2') format('woff2-variations');
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('/assets/playfair-display-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/assets/cormorant-garamond-latin-ext-wght-normal.woff2') format('woff2-variations');
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/assets/cormorant-garamond-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Lora';
  src: url('/assets/lora-latin-ext-wght-normal.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lora';
  src: url('/assets/lora-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Raleway';
  src: url('/assets/raleway-latin-ext-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Raleway';
  src: url('/assets/raleway-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Josefin Sans';
  src: url('/assets/josefin-sans-latin-ext-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Josefin Sans';
  src: url('/assets/josefin-sans-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Great Vibes';
  src: url('/assets/great-vibes-latin-ext-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Great Vibes';
  src: url('/assets/great-vibes-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Cinzel';
  src: url('/assets/cinzel-latin-ext-wght-normal.woff2') format('woff2-variations');
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cinzel';
  src: url('/assets/cinzel-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Jost';
  src: url('/assets/jost-latin-ext-wght-normal.woff2') format('woff2-variations');
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Jost';
  src: url('/assets/jost-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Bodoni Moda';
  src: url('/assets/bodoni-moda-latin-ext-wght-normal.woff2') format('woff2-variations');
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bodoni Moda';
  src: url('/assets/bodoni-moda-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Dancing Script';
  src: url('/assets/dancing-script-latin-ext-wght-normal.woff2') format('woff2-variations');
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Dancing Script';
  src: url('/assets/dancing-script-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Allura';
  src: url('/assets/allura-latin-ext-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Allura';
  src: url('/assets/allura-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}

:root {
  --paper: #f7f4ef;
  --paper-deep: #ece7df;
  --ink: #1d1a17;
  --muted: #6e665d;
  --line: #d9d2c7;
  --accent: #7a2e2b;
  --serif: 'Montserrat', system-ui, sans-serif;
  --sans: 'Montserrat', system-ui, sans-serif;
  --gutter: clamp(1rem, 4vw, 3.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.55 var(--sans);
}
body.no-scroll {
  overflow: hidden;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.muted {
  color: var(--muted);
  font-size: 0.875rem;
}
.empty {
  color: var(--muted);
  text-align: center;
  padding: 4rem 1rem;
}
.error {
  color: var(--accent);
}

.logo {
  display: inline-block;
  align-self: flex-start;
}
.logo img {
  width: auto;
  height: clamp(4.25rem, 8vw, 6rem);
}
.admin-head .logo img {
  height: 3rem;
}
.gate .logo img {
  height: 5.5rem;
  margin-inline: auto;
}
.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
}
.contact a {
  display: inline-block;
  padding: 0.75rem 0;
  margin: -0.75rem 0;
  text-underline-offset: 3px;
}

/* ---------- Buttons and tabs ---------- */

.btn,
.btn-quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.5rem 1.125rem;
  border-radius: 2px;
  cursor: pointer;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn {
  background: var(--ink);
  border: 1px solid var(--ink);
  color: var(--paper);
}
.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.btn-quiet {
  background: transparent;
  border: 1px solid var(--line);
}
.btn-quiet:hover {
  border-color: var(--ink);
}
.btn-quiet svg,
.lb-actions svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.link {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-size: 0.8125rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.link:disabled {
  cursor: default;
  text-decoration: none;
  color: var(--accent);
}
.danger {
  color: var(--accent);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.125rem 1.25rem;
}
.tab {
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  color: var(--muted);
  padding: 0.625rem 0;
  min-height: 44px;
  font-size: 0.9375rem;
}
.tab:hover {
  color: var(--ink);
}
.tab.is-active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.tab small {
  font-size: 0.75rem;
  margin-left: 0.125rem;
}

/* ---------- Shared on public pages ---------- */

.logo-square {
  display: grid;
  place-items: center;
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}
.logo-square img {
  width: 100%;
  filter: var(--g-logo-filter, none);
}
/* Over a photo the logo is white, so it stays visible. */
.cover-full .logo-square img,
.cover-window .logo-square img {
  filter: brightness(0) invert(1);
}
.bar-icon svg,
.search-pill svg,
.search-toggle svg,
.tile-actions svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
  padding: 3rem 1rem 2.5rem;
  font-size: 13px;
  color: #8a8a8a;
}

.lang-switch {
  display: flex;
  gap: 0.25rem;
}
.lang-switch a {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  margin-block: -0.75rem;
  color: inherit;
  font-size: 12px;
  letter-spacing: 1px;
  text-decoration: none;
  opacity: 0.6;
}
.lang-switch a:hover,
.lang-switch a[aria-current] {
  opacity: 1;
}
.lang-switch a[aria-current] {
  font-weight: 600;
}
.gate .lang-switch {
  justify-content: center;
  margin-top: 2rem;
}
.public-centered {
  background: #fff;
  color: #444;
  letter-spacing: 0.3px;
}
.gate .logo-square {
  margin-inline: auto;
}
.public-centered .gate h1 {
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Portfolio ---------- */

body.home {
  background: #fff;
  color: #3c3a38;
  font: 300 14px/1.9 'Montserrat', system-ui, sans-serif;
  letter-spacing: 0.02em;
}
.pf-head {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: clamp(40px, 7vh, 72px) 1.5rem 0;
}
.pf-head .logo-square {
  width: 130px;
  height: 130px;
}
.pf-head h1 {
  font: 300 clamp(20px, 2.1vw, 26px)/1.4 'Montserrat', system-ui, sans-serif;
  letter-spacing: 0.32em;
  /* Tracking adds space after the last letter too; this keeps the title centred. */
  margin: clamp(40px, 7vh, 72px) -0.32em 28px 0;
  text-transform: uppercase;
}
.pf-head p {
  margin: 0 0 6px;
  max-width: 44rem;
}
.pf-head p[lang='en'] {
  color: #8a8784;
}
.home .filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0 clamp(20px, 3vw, 44px);
  margin: clamp(56px, 9vh, 96px) 1rem 0;
}
.home .tab {
  padding: 4px 0;
  min-height: 44px;
  border: 0;
  background: none;
  color: #8a8784;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: inset 0 -1px 0 transparent;
  transition:
    color 0.3s,
    box-shadow 0.3s;
}
.home .tab:hover,
.home .tab.is-active {
  color: #1d1a17;
  border: 0;
}
.home .tab.is-active {
  box-shadow: inset 0 -1px 0 #1d1a17;
}
.search-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: #8a8784;
  cursor: pointer;
}
.search-toggle:hover {
  color: #1d1a17;
}
.pf-search {
  display: block;
  width: min(22rem, calc(100% - 2rem));
  margin: 0.5rem auto 0;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1320px;
  margin: clamp(56px, 8vh, 88px) auto 0;
  column-gap: clamp(32px, 5vw, 72px);
  row-gap: clamp(56px, 7vw, 96px);
  padding: 0 clamp(1.5rem, 6vw, 96px) clamp(72px, 10vh, 128px);
}
.card {
  display: block;
  text-decoration: none;
  min-width: 0;
}
.card[hidden] {
  display: none;
}
.card-img {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f3f1ee;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-hover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgb(29 26 23 / 0.28);
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.5s;
}
.card:hover .card-hover,
.card:focus-visible .card-hover {
  opacity: 1;
}
.card-title {
  display: block;
  margin-top: 22px;
  color: #3c3a38;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
  text-align: center;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
@media (max-width: 940px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .card-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 56px;
  }
}

/* ---------- Client gallery ---------- */

body.gallery {
  background: var(--g-bg);
  color: var(--g-ink);
  font: var(--g-text-weight, 300) var(--g-text-size, 16px) / 1.45 var(--g-text, 'Montserrat', sans-serif);
}
/* Gate of a password-protected gallery: same fonts and colours as the gallery itself */
body.gate-designed {
  background: var(--g-bg);
  color: var(--g-ink);
  font: var(--g-text-weight, 300) var(--g-text-size, 16px) / 1.45 var(--g-text, 'Montserrat', sans-serif);
}
.gate-designed .gate h1 {
  font-family: var(--g-title, 'Montserrat', sans-serif);
  font-size: calc(1.5rem * var(--g-title-scale, 1));
  letter-spacing: var(--g-title-spacing, 0.1em);
  text-transform: var(--g-title-case, uppercase);
}
.gate-designed input {
  background: var(--g-surface);
  border-color: color-mix(in srgb, var(--g-ink) 25%, var(--g-bg));
  color: inherit;
}
.gate-designed .btn {
  background: var(--g-ink);
  border-color: var(--g-ink);
  color: var(--g-bg);
}
.gate-designed .lang-switch,
.gate-designed .lang-switch a,
.gate-designed .gate p {
  color: inherit;
}
.cover-preview a {
  pointer-events: none;
}
.gallery h1,
.gallery h2,
.gallery .bar-title,
.gallery .drawer-title {
  font-family: var(--g-title, 'Montserrat', sans-serif);
}
.gallery input:not([type='checkbox']) {
  background: var(--g-surface);
  border-color: color-mix(in srgb, var(--g-ink) 25%, var(--g-bg));
  color: inherit;
}
.gallery .site-footer {
  color: inherit;
  opacity: 0.75;
}
.cover {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--g-cover);
}
.cover .logo-square {
  width: 76px;
  height: 76px;
}
.cover h1 {
  font-size: calc(clamp(1.5rem, 2.8vw, 2.125rem) * var(--g-title-scale, 1) * var(--g-cover-size, 1));
  font-weight: var(--g-title-weight, 300);
  letter-spacing: var(--g-title-spacing, 0.24em);
  line-height: 1.35;
  text-transform: var(--g-title-case, uppercase);
}
.cover-date {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  margin: 20px 0 0;
  opacity: 0.75;
  text-transform: uppercase;
}
.cover-description {
  max-width: 36rem;
  font-weight: 300;
  line-height: 1.9;
  margin: 24px auto 0;
  white-space: pre-line;
}
.cover-scroll {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  color: inherit;
}
.cover-scroll svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Classic: centred photo, nothing cropped */
.cover-classic {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(2.5rem, 6vh, 4.5rem) clamp(1.5rem, 6vw, 96px) 5rem;
}
.cover-classic .logo-square {
  margin-bottom: clamp(32px, 5vh, 56px);
}
.cover-frame {
  max-width: 100%;
  will-change: transform;
}
.cover-img {
  width: auto;
  max-width: 100%;
  /* Logo, title and arrow stay on the first screen, on any window height. */
  max-height: max(280px, calc(100vh - 27rem));
  max-height: max(280px, calc(100svh - 27rem));
  object-fit: contain;
}
.cover-classic .cover-text {
  margin-top: clamp(36px, 6vh, 64px);
}

/* Full screen: the photo fills the first view */
.cover-full {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  padding: 2rem 1.25rem 5rem;
  background: #1a1513;
  color: #fff;
}
.cover-media {
  position: absolute;
  inset: 0;
  will-change: transform;
}
.cover-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover-full::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(0 0 0 / calc(var(--g-overlay, 0.25) + 0.2)), rgb(0 0 0 / calc(var(--g-overlay, 0.25) * 0.4)) 50%, rgb(0 0 0 / calc(var(--g-overlay, 0.25) * 0.8)));
}
.cover-full > :not(.cover-media) {
  position: relative;
  z-index: 1;
}
.cover-full .cover-scroll {
  position: absolute;
}
.cover-full .cover-text {
  text-shadow: 0 1px 14px rgb(0 0 0 / 0.35);
}

/* Three photos: title on top, three moments below */
.cover-triptych {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: clamp(1.5rem, 4vw, 3.25rem) clamp(1rem, 4vw, 56px) 4.25rem;
}
.cover-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}
.cover-triptych h1 {
  font-size: calc(clamp(1.75rem, 4.5vw, 3.5rem) * var(--g-title-scale, 1) * var(--g-cover-size, 1));
  letter-spacing: calc(var(--g-title-spacing, 0.24em) * 0.3);
  line-height: 1.1;
}
.cover-triptych .cover-description {
  margin-left: 0;
}
.cover-trio {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(var(--count), minmax(0, 1fr));
  gap: 12px;
  min-height: 0;
}
.cover-trio-item {
  position: relative;
  min-height: 46vh;
  overflow: hidden;
  background: color-mix(in srgb, var(--g-ink) 10%, var(--g-bg));
}
.cover-trio-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 700px) {
  .cover-trio {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cover-trio-item:first-child {
    grid-column: 1 / -1;
  }
  .cover-trio-item {
    min-height: 26vh;
  }
}

/* Half: text on one side, photo on the other */
.cover-split {
  display: grid;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
}
.cover-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 6vh, 4rem);
  padding: 3rem clamp(1.25rem, 3vw, 3rem) 5rem;
  text-align: center;
}
.cover-side {
  position: relative;
  overflow: hidden;
  min-height: 100%;
}
.cover-split .cover-scroll {
  left: 21%;
}

/* Frame: the photo sits inside a margin, the title over it */
.cover-frame-style {
  display: flex;
  padding: clamp(0.75rem, 2.2vw, 1.75rem);
}
.cover-window {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  overflow: hidden;
  padding: 2rem 1.25rem 4.5rem;
  background: #1a1513;
  color: #fff;
  text-align: center;
}
.cover-window .cover-media {
  inset: -6% 0 0;
}
.cover-window::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / var(--g-overlay, 0.25));
}
.cover-window > :not(.cover-media) {
  position: relative;
  z-index: 1;
}
.cover-window .cover-scroll {
  position: absolute;
}
.cover-window .cover-text {
  text-shadow: 0 1px 14px rgb(0 0 0 / 0.4);
}
.cover-window h1 {
  font-size: calc(clamp(1.75rem, 4vw, 3.25rem) * var(--g-title-scale, 1) * var(--g-cover-size, 1));
}

/* Big title: same photo as full screen, with the name as the main element */
.cover-bold {
  align-items: flex-start;
  text-align: left;
  padding: 2rem clamp(1.25rem, 4vw, 56px) 4.5rem;
}
.cover-bold h1 {
  font-size: calc(clamp(2.5rem, 8vw, 7rem) * var(--g-title-scale, 1) * var(--g-cover-size, 1));
  letter-spacing: calc(var(--g-title-spacing, 0.24em) * 0.2);
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.cover-bold .cover-description {
  margin-left: 0;
}
@media (max-width: 700px) {
  .cover-split {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 58svh) auto;
  }
  .cover-side {
    grid-row: 1;
  }
  .cover-panel {
    gap: 1.25rem;
    padding: 1.5rem 1.25rem 4rem;
  }
  .cover-split .cover-scroll {
    left: 50%;
  }
}

.toolbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: color-mix(in srgb, var(--g-bg) 94%, transparent);
  backdrop-filter: blur(10px);
  padding: 20px clamp(1.25rem, 6vw, 96px);
}
.bar-title {
  font-size: calc(clamp(1rem, 1.5vw, 19px) * var(--g-title-scale, 1));
  font-weight: 300;
  letter-spacing: var(--g-title-spacing, 0.24em);
  text-transform: var(--g-title-case, uppercase);
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bar-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.bar-text,
.bar-icon {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.bar-text {
  padding-inline: 0.5rem;
  border-radius: 2px;
}
.bar-icon:hover {
  background: color-mix(in srgb, var(--g-ink) 10%, var(--g-bg));
}
.bar-divider {
  width: 1px;
  height: 44px;
  background: color-mix(in srgb, var(--g-ink) 18%, var(--g-bg));
  margin: 0 12px;
}
.toolbar .logo-square {
  width: 44px;
  height: 44px;
}
.search-row {
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  padding: 4px clamp(1.25rem, 6vw, 96px) 0;
}
.search-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 8px 0 14px;
  border: 0;
  border-radius: 22px;
  background: color-mix(in srgb, var(--g-ink) 5%, var(--g-bg));
  color: inherit;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.pill-faces {
  display: flex;
  margin-left: 0.5rem;
}
.pill-faces img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--g-ink) 10%, var(--g-bg));
  object-fit: cover;
  margin-left: -8px;
}
.search-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: clamp(1rem, 3.75vw, 48px);
  width: min(30rem, calc(100vw - 2rem));
  max-height: min(70vh, 34rem);
  overflow-y: auto;
  background: var(--g-surface);
  box-shadow: 0 12px 32px rgb(60 30 20 / 0.16);
  border-radius: 8px;
  padding: 1rem;
}
.panel-label {
  font-size: 14px;
  font-weight: 500;
  margin: 1rem 0 0.625rem;
}
.faces-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}
.face {
  display: grid;
  justify-items: center;
  gap: 0.125rem;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.face-img {
  display: block;
  width: 3.5rem;
  height: 3.5rem;
  border: 2px solid transparent;
  border-radius: 50%;
  background: var(--g-cover);
  overflow: hidden;
}
.face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.face:hover .face-img {
  border-color: color-mix(in srgb, var(--g-ink) 25%, var(--g-bg));
}
.face.is-active .face-img {
  border-color: var(--g-ink);
}
.face-count {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.face.is-active .face-count {
  font-weight: 600;
}
.person-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1rem;
  margin: 0;
  font-size: 15px;
  font-weight: 400;
}
.person-status .link {
  min-height: 44px;
  font-size: 14px;
  color: inherit;
}
.select-bar {
  position: sticky;
  top: 80px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  background: var(--g-bg);
  padding: 8px clamp(1rem, 3.75vw, 48px);
  font-size: 15px;
  font-weight: 400;
}
.select-bar .btn-quiet {
  color: inherit;
}
#grid {
  padding: 0 clamp(1rem, 6vw, 96px) clamp(4rem, 10vh, 7rem);
}
.scene {
  padding-top: clamp(64px, 11vh, 120px);
}
.scene:first-child {
  padding-top: clamp(32px, 6vh, 64px);
}
.scene-title {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: clamp(36px, 6vh, 64px);
  text-align: center;
}
.scene-title.has-bg {
  padding: 1.75rem 1rem;
  background: var(--g-scene-bg);
}
.scene-title .st-text {
  margin: 0;
  color: var(--g-scene-color, inherit);
  font-family: var(--g-scene-font, var(--g-title, 'Montserrat', sans-serif));
  font-size: calc(clamp(1.0625rem, 1.6vw, 21px) * var(--g-scene-size, 1));
  font-weight: var(--g-scene-weight, 300);
  letter-spacing: var(--g-scene-spacing, 0.24em);
  line-height: 1.35;
  text-transform: var(--g-scene-case, uppercase);
}
.scene-title[data-style='sides']::before,
.scene-title[data-style='sides']::after,
.scene-title[data-style='leftline']::after {
  content: '';
  flex: 1;
  border-top: 1px solid color-mix(in srgb, currentColor 30%, transparent);
}
.scene-title[data-style='underline'] .st-text {
  padding-bottom: 0.7em;
  border-bottom: 1px solid currentColor;
}
.scene-title[data-style='left'],
.scene-title[data-style='leftline'] {
  justify-content: flex-start;
  text-align: left;
}
.scene-title[data-style='slash'] .st-text::before {
  content: '/  ';
  opacity: 0.5;
  white-space: pre;
}
.scene-title[data-style='pipes'] .st-text::before,
.scene-title[data-style='pipes'] .st-text::after {
  content: '|';
  margin-inline: 1em;
  opacity: 0.45;
}
.scene-title[data-style='dots'] .st-text::before,
.scene-title[data-style='dots'] .st-text::after {
  content: '·';
  margin-inline: 1em;
}
.scene-title[data-style='strip'] {
  padding: 1.75rem 1rem;
  background: var(--g-scene-bg, color-mix(in srgb, var(--g-ink, #1d1a17) 6%, transparent));
}
.scene-title[data-style='banner'],
.scene-title[data-style='bannerleft'] {
  min-height: clamp(200px, 32vh, 360px);
  padding: 1.5rem clamp(1.5rem, 5vw, 64px);
  overflow: hidden;
  background: var(--g-scene-bg, #39352f);
  color: #fff;
}
.scene-title[data-style='bannerleft'] {
  justify-content: flex-start;
  text-align: left;
}
.scene-title[data-style='banner'] img,
.scene-title[data-style='bannerleft'] img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.62);
}
.scene-title[data-style='banner'] .st-text,
.scene-title[data-style='bannerleft'] .st-text {
  position: relative;
}
.scene-title[data-style='dark'] {
  justify-content: flex-start;
  min-height: clamp(150px, 22vh, 240px);
  overflow: hidden;
  padding: 1.5rem calc(40% + 1.5rem) 1.5rem clamp(1.5rem, 5vw, 64px);
  background: var(--g-scene-bg, #000);
  color: #fff;
  text-align: left;
}
.scene-title[data-style='dark'] img {
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  object-fit: cover;
}
.photo-grid {
  position: relative;
}
.photo {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  background: color-mix(in srgb, var(--g-ink) 10%, var(--g-bg));
  content-visibility: auto;
}
.photo[hidden] {
  display: none;
}
.photo > a,
.photo > a img {
  display: block;
  width: 100%;
  height: 100%;
}
.photo > a img {
  object-fit: cover;
}
.tile-actions {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  background: color-mix(in srgb, var(--g-surface) 92%, transparent);
  border-radius: 6px;
  color: var(--g-ink);
  opacity: 0;
  transition: opacity 0.15s;
}
.photo:hover .tile-actions,
.tile-actions:focus-within {
  opacity: 1;
}
.heart,
.tile-download {
  position: static;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  opacity: 1;
}
.heart svg {
  fill: none;
  stroke: currentColor;
}
.is-fav .tile-actions {
  opacity: 1;
}
.is-fav .heart svg {
  fill: currentColor;
}
.is-selecting .tile-actions {
  display: none;
}
.tile-check {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: none;
  width: 26px;
  height: 26px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgb(0 0 0 / 0.25);
  pointer-events: none;
}
.is-selecting .tile-check {
  display: block;
}
.is-chosen .tile-check {
  background: var(--g-ink) url('/assets/check.svg') center / 16px no-repeat;
}
.is-chosen > a {
  opacity: 0.72;
}
.is-video > a {
  position: relative;
}
.is-video > a::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3.5rem;
  height: 3.5rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgb(0 0 0 / 0.5) url('/assets/play.svg') center / 2rem no-repeat;
  pointer-events: none;
}
@media (max-width: 640px) {
  #grid {
    --cols: 2;
  }
  .bar-text {
    font-size: 14px;
  }
  .bar-divider,
  .toolbar .logo-square {
    display: none;
  }
}
@media (hover: none) {
  .tile-actions {
    opacity: 1;
  }
  .tile-download {
    display: none;
  }
}

/* ---------- Menu ---------- */

dialog.drawer {
  width: min(22rem, 86vw);
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 3.5rem 1.75rem 1.75rem;
  border-radius: 0;
  background: var(--g-bg);
  color: var(--g-ink);
}
.drawer-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: inherit;
  font-size: 1.75rem;
  font-weight: 300;
  cursor: pointer;
}
.drawer-title {
  color: inherit !important;
  font-size: calc(1.5rem * var(--g-title-scale, 1));
  font-weight: 400;
  margin: 0 0 1.5rem !important;
}
.drawer-nav {
  display: grid;
  border-block: 1px solid color-mix(in srgb, var(--g-ink) 18%, var(--g-bg));
  padding-block: 0.5rem;
}
.drawer .tab {
  min-height: 44px;
  border: 0;
  background: none;
  color: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  opacity: 0.75;
}
.drawer .tab.is-active,
.drawer .tab:hover {
  opacity: 1;
  font-weight: 500;
  border: 0;
}
.drawer-actions {
  display: grid;
  justify-items: start;
  gap: 0.25rem;
  padding-top: 1rem;
}
.drawer-actions .link {
  min-height: 44px;
  color: inherit;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: var(--g-bg);
  color: var(--g-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.5rem clamp(1rem, 5vw, 72px) clamp(1rem, 4vh, 2.5rem);
}
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.lightbox video {
  position: relative;
  z-index: 1;
  max-width: min(100%, calc(100vw - 2 * clamp(44px, 12vw, 8rem)));
  max-height: 100%;
}
.lb-nav {
  position: absolute;
  top: 3.5rem;
  bottom: 0;
  width: clamp(44px, 12vw, 8rem);
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: 300 2.75rem/1 'Montserrat', system-ui, sans-serif;
  opacity: 0.6;
}
.lb-nav:hover {
  opacity: 1;
}
.lb-prev {
  left: 0;
}
.lb-next {
  right: 0;
}
.lb-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1rem;
  font-size: 14px;
}
#lb-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lb-actions {
  display: flex;
  flex-shrink: 0;
}
.lb-actions svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lb-actions > * {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 300;
}
.heart-inline.is-on svg {
  fill: currentColor;
}
.download-options {
  display: grid;
  gap: 0.5rem;
}
.gallery dialog:not(.drawer) {
  background: var(--g-surface);
  color: var(--g-ink);
}
.gallery dialog p:not(.drawer-title) {
  color: color-mix(in srgb, var(--g-ink) 72%, var(--g-surface));
}
.gallery dialog .btn-quiet {
  color: inherit;
}
.gallery .btn {
  background: var(--g-ink);
  border-color: var(--g-ink);
  color: var(--g-bg);
}
.gallery .btn:hover {
  background: var(--g-ink);
  border-color: var(--g-ink);
  opacity: 0.88;
}
.gallery .btn-quiet {
  border-color: color-mix(in srgb, var(--g-ink) 25%, var(--g-bg));
}

/* ---------- Admin gallery pages ---------- */

.admin-main:has(.gal-shell) {
  max-width: none;
  padding: 0;
}
.gal-shell {
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr);
  min-height: calc(100vh - 5rem);
}
.gal-nav {
  background: #f1eee9;
  border-right: 1px solid var(--line);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}
.gal-name {
  font: 400 1.375rem/1.2 var(--serif);
  margin: 0.25rem 0 0;
  overflow-wrap: anywhere;
}
.gal-status {
  color: var(--muted);
  font-size: 0.8125rem;
  margin: 0.25rem 0 1rem;
}
.gal-nav nav {
  display: grid;
  width: 100%;
  margin-bottom: 1.25rem;
}
.gal-nav nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-left: 0.75rem;
  border-left: 3px solid transparent;
  color: var(--muted);
  text-decoration: none;
}
.gal-nav nav a:hover {
  color: var(--ink);
}
.gal-nav nav a.is-active {
  color: var(--ink);
  font-weight: 500;
  border-left-color: var(--ink);
}
.gal-main {
  padding: 2rem clamp(1rem, 3vw, 3rem) 5rem;
  min-width: 0;
}
.gal-main > h1 {
  margin-bottom: 1.25rem;
}
.gal-main > section {
  margin-top: 2rem;
}
.summary-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
}
.narrow {
  max-width: 34rem;
}
fieldset {
  display: grid;
  gap: 0.75rem;
  border: 1px solid var(--line);
  background: #fff;
  padding: 1rem 1.25rem 1.25rem;
  margin: 0;
}
legend {
  font: 400 1.25rem var(--serif);
  padding: 0 0.375rem;
}
.field-label {
  font-size: 0.875rem;
  margin: 0.25rem 0 -0.25rem;
}
.panel.narrow {
  margin-top: 1.5rem;
}
.slug-input,
.copy-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.copy-row {
  margin-bottom: 0.75rem;
}
.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}
.media-settings {
  display: grid;
  gap: 1rem;
}
.inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
}
.inline-form label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.875rem;
  min-width: 12rem;
}
.people-details summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.bulk-bar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.5rem 0.875rem;
  margin: 0.75rem 0;
}
.bulk-bar input {
  width: 15rem;
  max-width: 100%;
}
.bulk-bar .link {
  min-height: 44px;
}
/* ---------- Covers: band, arch, editorial, cinema, minimal ---------- */

.cover-side .cover-media,
.cover-arch-frame .cover-media {
  inset: -8% 0 0;
}
.cover-band {
  display: flex;
  flex-direction: column;
  text-align: center;
}
.cover-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr) minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1.25rem, 4vw, 56px);
}
.cover-bar .logo-square {
  width: 64px;
  height: 64px;
}
.cover-bar .cover-date {
  margin: 0;
  text-align: right;
}
.cover-band .cover-side {
  flex: 1;
  min-height: 55vh;
}
.cover-band .cover-scroll {
  color: #fff;
  filter: drop-shadow(0 1px 4px rgb(0 0 0 / 0.5));
}
.cover-band .cover-description {
  padding: 1.5rem 1.25rem 4rem;
}
.cover-arch {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 3.5vh, 2.25rem);
  padding: clamp(1.5rem, 4vh, 3rem) 1.25rem 4.5rem;
  text-align: center;
}
.cover-arch-frame {
  position: relative;
  width: min(100%, calc((100vh - 24rem) * 0.8));
  width: min(100%, calc((100svh - 24rem) * 0.8));
  min-width: min(100%, 220px);
  aspect-ratio: 4 / 5;
  border-radius: 50vw 50vw 0 0;
  overflow: hidden;
}
.cover-editorial {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 5vw, 72px);
  padding: clamp(1.5rem, 4vw, 56px);
}
.cover-editorial .cover-panel {
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 0 3rem;
  text-align: left;
}
.cover-editorial h1 {
  font-size: calc(clamp(2rem, 4.6vw, 4.25rem) * var(--g-title-scale, 1) * var(--g-cover-size, 1));
  letter-spacing: calc(var(--g-title-spacing, 0.24em) * 0.4);
  line-height: 1.15;
}
.cover-editorial .cover-description {
  margin-left: 0;
}
.cover-editorial .cover-scroll {
  left: 21%;
}
.cover-cinema {
  justify-content: center;
  gap: 1.5rem;
  background: var(--g-cover);
  padding-block: calc(9vh + 1.5rem);
}
.cover-cinema .cover-media,
.cover-cinema::after {
  inset: 9vh 0;
}
/* The slow zoom stays inside the picture, so the bars above and below stay clean. */
.cover-cinema .cover-media {
  overflow: hidden;
}
.cover-cinema .cover-scroll {
  color: var(--g-ink);
}
.cover-minimal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.75rem, 5vh, 3.5rem);
  padding: clamp(2rem, 5vh, 4rem) 1.25rem 5rem;
  text-align: center;
}
.cover-minimal h1 {
  font-size: calc(clamp(2rem, 5.2vw, 4.75rem) * var(--g-title-scale, 1) * var(--g-cover-size, 1));
}
.cover-minimal .cover-img {
  max-height: max(200px, calc(100vh - 32rem));
  max-height: max(200px, calc(100svh - 32rem));
}
@media (max-width: 700px) {
  .cover-bar {
    grid-template-columns: auto 1fr;
  }
  .cover-bar .cover-date {
    grid-column: 1 / -1;
    text-align: center;
  }
  .cover-editorial {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 56svh) auto;
  }
  .cover-editorial .cover-side {
    grid-row: 1;
  }
  .cover-editorial .cover-panel {
    gap: 1.25rem;
    padding-bottom: 3.5rem;
  }
  .cover-editorial .cover-scroll {
    left: 50%;
  }
}

/* ---------- Design page: groups, sliders, title samples ---------- */

.design-group {
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 1rem;
}
.design-group[open] {
  display: grid;
  gap: 1.25rem;
  padding-bottom: 1.25rem;
}
.design-group > summary {
  padding: 0.875rem 0;
  font-weight: 500;
  cursor: pointer;
}
.design-color {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.design-color input[type='color'] {
  width: 3rem;
  height: 2rem;
  padding: 2px;
}
.photo-badges {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: grid;
  justify-items: end;
  gap: 0.25rem;
  pointer-events: none;
}
.photo-badges span {
  padding: 0.125rem 0.375rem;
  background: rgb(29 26 23 / 0.75);
  color: #fff;
  font-size: 0.6875rem;
}
.scene-photos figure[draggable='true'] {
  cursor: grab;
}
.scene-photos figure.is-dragging {
  opacity: 0.35;
}
.scene-photos figure.is-concealed .pick img {
  opacity: 0.45;
}
.photo.is-concealed::after {
  content: 'Ascunsă';
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 0.125rem 0.5rem;
  background: rgb(29 26 23 / 0.75);
  color: #fff;
  font-size: 11px;
  pointer-events: none;
}
.photo.is-concealed img {
  filter: grayscale(0.7);
}
.photo-shift {
  display: inline-flex;
  gap: 0.5rem;
}
.photo-shift .link {
  min-width: 1.5rem;
  text-decoration: none;
}
.design-group fieldset {
  margin: 0;
  min-width: 0;
}
.design-group legend {
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
}
.design-sliders {
  display: grid;
  gap: 0.875rem;
}
.design-slider {
  display: grid !important;
  gap: 0.25rem;
}
.design-slider-row {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) 3.5rem;
  align-items: center;
  gap: 0.5rem;
}
.design-slider-row small {
  color: var(--muted);
  font-size: 0.75rem;
}
.design-slider-row small:last-child {
  text-align: right;
}
.design-slider-row input {
  width: 100%;
  padding: 0;
}
.scene-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 0.75rem;
}
.scene-option {
  position: relative;
  display: grid !important;
  gap: 0.375rem;
  cursor: pointer;
  text-align: center;
}
.scene-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.scene-option small {
  color: var(--muted);
  font-size: 0.75rem;
}
.scene-sample.scene-title {
  min-height: 4rem !important;
  margin: 0;
  padding: 0.5rem !important;
  border: 2px solid var(--line);
  gap: 0.5rem;
  overflow: hidden;
  color: var(--ink);
}
.scene-sample .st-text {
  font-size: 0.75rem;
  font-family: var(--serif);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.scene-sample[data-style='banner'],
.scene-sample[data-style='bannerleft'] {
  background: #8f877c;
  color: #fff;
}
.scene-sample[data-style='dark'] {
  background: linear-gradient(to right, #000 62%, #8f877c 62%);
  color: #fff;
}
.scene-option input:checked + .scene-sample {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}
.scene-option input:focus-visible + .scene-sample {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.grid-thumb-airy,
.grid-thumb-scattered {
  display: block;
  padding: 0;
}
.grid-thumb-airy i,
.grid-thumb-scattered i {
  position: absolute;
}
.grid-thumb-airy i:nth-child(1) { left: 10%; top: 12%; width: 22%; height: 36%; }
.grid-thumb-airy i:nth-child(2) { left: 40%; top: 18%; width: 22%; height: 28%; }
.grid-thumb-airy i:nth-child(3) { left: 70%; top: 8%; width: 20%; height: 38%; }
.grid-thumb-airy i:nth-child(4) { left: 12%; top: 58%; width: 20%; height: 30%; }
.grid-thumb-airy i:nth-child(5) { left: 42%; top: 56%; width: 22%; height: 34%; }
.grid-thumb-airy i:nth-child(6) { left: 72%; top: 54%; width: 18%; height: 34%; }
.grid-thumb-scattered i:nth-child(1) { left: 8%; top: 18%; width: 18%; height: 32%; }
.grid-thumb-scattered i:nth-child(2) { left: 38%; top: 8%; width: 26%; height: 24%; }
.grid-thumb-scattered i:nth-child(3) { left: 76%; top: 26%; width: 14%; height: 24%; }
.grid-thumb-scattered i:nth-child(4) { left: 24%; top: 62%; width: 24%; height: 26%; }
.grid-thumb-scattered i:nth-child(5) { left: 58%; top: 48%; width: 14%; height: 28%; }
.grid-thumb-scattered i:nth-child(6) { left: 80%; top: 68%; width: 12%; height: 20%; }
.cover-thumb-band i:first-child {
  display: block;
  width: 100%;
  margin-top: 22%;
}
.cover-thumb-arch i:first-child {
  display: block;
  width: 38%;
  height: 62%;
  margin: 10% auto 0;
  border-radius: 50vw 50vw 0 0;
}
.cover-thumb-editorial i:first-child {
  display: block;
  width: 54%;
  margin: 7% 7% 7% auto;
}
.cover-thumb-cinema {
  background: var(--paper-deep);
}
.cover-thumb-cinema i:first-child {
  display: block;
  width: 100%;
  height: 64%;
  margin-top: 13%;
}
.cover-thumb-minimal i:first-child {
  display: block;
  width: 30%;
  height: 34%;
  margin: 52% auto 0;
}

.scene-photos figure[hidden],
.scene-block[hidden],
.scene-videos[hidden] {
  display: none;
}
.media-tools .admin-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0;
}
.media-tools .admin-filters input[type='search'],
.media-tools .admin-filters select {
  width: auto;
  min-width: 10rem;
}
.media-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1rem;
}
.scene-block {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.scene-block.is-over-target,
#media.is-over .scene-new {
  background: var(--paper-deep);
}
.scene-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
  margin-bottom: 1rem;
}
.scene-head h2 {
  margin: 0;
  font: 400 1rem var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.scene-rename summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.8125rem;
}
.scene-rename summary::-webkit-details-marker {
  display: none;
}
.scene-rename form {
  margin-top: 0.5rem;
}
.scene-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  grid-template-rows: auto;
  gap: 1rem 0.75rem;
}
/* Folded: only the first row shows, and images in the others don't even load. */
.scene-block[data-scene]:not(.is-open, .is-filtering) .scene-photos-fold {
  grid-auto-rows: 0;
  row-gap: 0;
  overflow: hidden;
}
.scene-photos figure {
  margin: 0;
  min-width: 0;
  overflow: hidden;
}
.upload-tile {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  aspect-ratio: 1;
  padding: 0.5rem;
  background: var(--paper-deep);
  text-align: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.15s;
}
.upload-tile:hover,
.upload-tile:focus-within {
  background: var(--line);
}
.upload-tile:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.upload-tile img {
  width: 2rem;
  height: 1.75rem;
}
.scene-toggle {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  margin-top: 1rem;
  padding: 0.25rem 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
}
.scene-toggle::before,
.scene-toggle::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--line);
}
.scene-new {
  display: grid;
  gap: 0.75rem;
  border-bottom: 0;
}
.scene-new input:not([type='file']) {
  width: min(22rem, 100%);
}
.new-scene-form {
  display: grid;
  gap: 0.375rem;
}
.new-scene-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.scene-delete {
  display: inline;
}
.scene-new p {
  margin: 0;
}
/* In the client's gallery a scene's clips stand apart, above its photos. */
.scene-videos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(2rem, 4vw, 4rem);
  margin-bottom: clamp(3rem, 7vh, 5rem);
}
.scene-video {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.75rem;
  margin: 0;
  max-width: 100%;
}
.scene-video video {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 85vh;
  background: #000;
}
.scene-row-title {
  margin: 1rem 0 0.5rem;
  font: 400 0.8125rem var(--sans);
  color: var(--muted);
}
.scene-head + .scene-row-title {
  margin-top: 0;
}
.confirm-dialog {
  max-width: min(26rem, calc(100vw - 2rem));
  border: 1px solid var(--line);
  padding: 1.5rem;
  background: #fff;
  color: var(--ink);
}
.confirm-dialog::backdrop {
  background: rgb(0 0 0 / 0.45);
}
.confirm-dialog p {
  margin: 0 0 1.25rem;
}
.confirm-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}
.danger-btn {
  background: #8c2f28;
  border-color: #8c2f28;
  color: #fff;
}
.pick {
  position: relative;
  display: block;
  cursor: pointer;
}
.pick input {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--accent);
}
.is-picked img {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}
@media (max-width: 760px) {
  .gal-shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .gal-nav {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}
.cover-description {
  max-width: 40rem;
  font-weight: 300 !important;
  white-space: pre-line;
}

/* ---------- Admin people ---------- */

.design-form {
  max-width: 48rem;
}
.font-picker {
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
}
.font-option,
.palette-option,
.cover-option {
  position: relative;
}
.font-option,
.palette-option {
  display: grid !important;
  cursor: pointer;
}
.font-option input,
.palette-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.font-card {
  display: grid;
  gap: 0.375rem;
  min-height: 5rem;
  align-content: center;
  border: 2px solid var(--line);
  border-radius: 3px;
  padding: 0.625rem 0.75rem;
}
.font-sample {
  font-size: 1.25rem;
  line-height: 1.25;
}
.font-card small {
  color: var(--muted);
  font-size: 0.75rem;
}
.font-option input:checked + .font-card,
.palette-option input:checked + .palette-swatch {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}
.font-option input:focus-visible + .font-card,
.palette-option input:focus-visible + .palette-swatch {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.palette-picker {
  grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
}
.palette-option {
  gap: 0.375rem;
  justify-items: center;
  text-align: center;
  font-size: 0.8125rem;
}
.palette-swatch {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border: 2px solid var(--line);
  border-radius: 50%;
  font-size: 1.125rem;
  font-weight: 500;
}
.cover-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.75rem;
}
.design-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}
.design-layout > * {
  min-width: 0;
}
.design-preview {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  gap: 0.5rem;
  background: var(--paper);
  padding-block: 0.5rem;
}
.design-preview-tabs {
  display: flex;
  gap: 0.5rem;
}
.design-preview-gap {
  flex: 1;
}
.design-preview-tabs .is-active {
  border-color: var(--ink);
  color: var(--ink);
}
html:has(.cover-preview) {
  scrollbar-width: none;
}
.design-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  max-height: 38vh;
  width: 100%;
  overflow: hidden;
  background: var(--paper-deep);
  border: 1px solid var(--line);
}
.design-stage iframe {
  position: absolute;
  left: 50%;
  top: 0;
  border: 0;
  background: #fff;
  transform-origin: top left;
}
@media (min-width: 1400px) {
  .design-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .design-preview {
    grid-column: 2;
    grid-row: 1;
    top: 1rem;
  }
  .design-stage {
    max-height: 62vh;
  }
}
.focus-picker {
  display: grid;
  grid-template-columns: minmax(0, 10rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.focus-picker legend {
  font: inherit;
  font-size: 0.875rem;
}
.focus-photo {
  position: relative;
  cursor: crosshair;
  line-height: 0;
}
.focus-photo img {
  width: 100%;
}
.focus-dot {
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  margin: -0.625rem 0 0 -0.625rem;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #000;
  pointer-events: none;
}
.focus-controls {
  display: grid;
  gap: 0.75rem;
}
.focus-controls label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.8125rem;
}
.focus-controls input {
  width: 100%;
  padding: 0;
}
.cover-picker legend {
  font: inherit;
  font-size: 0.875rem;
}
.cover-option {
  display: grid !important;
  gap: 0.375rem;
  justify-items: center;
  text-align: center;
  cursor: pointer;
  font-size: 0.8125rem;
}
.cover-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.cover-thumb {
  position: relative;
  display: flex;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--paper-deep);
  border: 2px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}
.cover-option input:checked + .cover-thumb {
  border-color: var(--ink);
}
.cover-option input:focus-visible + .cover-thumb {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.cover-thumb i {
  display: none;
  background: #a89f94;
}
.cover-thumb-classic i:first-child {
  display: block;
  width: 34%;
  height: 58%;
  margin: 12% auto 0;
}
.cover-thumb-full {
  background: #a89f94;
}
.cover-thumb-triptych {
  gap: 4%;
  padding: 34% 8% 8%;
}
.cover-thumb-triptych i {
  display: block;
  flex: 1;
}
.cover-thumb-triptych i:nth-child(n + 4) {
  display: none;
}
.grid-thumb {
  display: grid;
  gap: 4%;
  padding: 8%;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
}
.grid-thumb i {
  display: block;
  min-height: 0;
}
.grid-thumb-columns {
  grid-template-rows: repeat(3, 1fr);
}
.grid-thumb-columns i:nth-child(1),
.grid-thumb-columns i:nth-child(3),
.grid-thumb-columns i:nth-child(4) {
  grid-row: span 2;
}
.grid-thumb-mosaic {
  grid-template-rows: repeat(3, 1fr);
}
.grid-thumb-mosaic i:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}
.grid-thumb-rows {
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(2, 1fr);
}
.grid-thumb-rows i:nth-child(1) {
  grid-column: span 4;
}
.grid-thumb-rows i:nth-child(2) {
  grid-column: span 2;
}
.grid-thumb-rows i:nth-child(n + 3):nth-child(-n + 5) {
  grid-column: span 2;
}
.grid-thumb-rows i:nth-child(6) {
  display: none;
}
.grid-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
}
.chip-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip-picker legend {
  font: inherit;
  font-size: 0.875rem;
}
.chip-option {
  position: relative;
  display: block !important;
  cursor: pointer;
  font-size: 0.8125rem;
}
.chip-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.chip-option span {
  display: block;
  min-width: 4.5rem;
  padding: 0.625rem 0.875rem;
  border: 2px solid var(--line);
  border-radius: 3px;
  text-align: center;
}
.chip-option input:checked + span {
  border-color: var(--ink);
}
.chip-option input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.cover-thumb-split i:first-child {
  display: block;
  width: 58%;
  margin-left: auto;
}
.cover-thumb-frame i:first-child {
  display: block;
  flex: 1;
  margin: 7%;
}
.cover-thumb-bold {
  background: #a89f94;
}
.cover-thumb-bold i:first-child {
  display: block;
  width: 62%;
  height: 16%;
  margin: auto 0 9% 8%;
  background: #fff;
}
.admin-people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
  gap: 1rem 0.75rem;
  margin-top: 0.75rem;
}
.admin-people figure {
  margin: 0;
  text-align: center;
}
.admin-people img {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  object-fit: cover;
  margin-inline: auto;
}
.admin-people figcaption {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* ---------- Dialogs ---------- */

dialog {
  width: min(26rem, calc(100vw - 2rem));
  border: 0;
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  padding: 1.75rem;
}
dialog::backdrop {
  background: rgb(18 16 14 / 0.6);
}
dialog h2 {
  font-size: 1.75rem;
}
dialog p {
  color: var(--muted);
  margin: 0.5rem 0 1.25rem;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.share-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 30;
  max-width: calc(100vw - 2rem);
  background: var(--ink);
  color: var(--paper);
  padding: 0.625rem 1rem;
  border-radius: 2px;
  font-size: 0.875rem;
}

/* ---------- Forms ---------- */

input:not([type='checkbox'], [type='file']),
select,
textarea {
  width: 100%;
  min-height: 44px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.5rem 0.75rem;
}
.search input {
  background: transparent;
  width: 15rem;
  border-width: 0 0 1px;
  border-radius: 0;
  padding: 0.25rem 0;
}
.stack {
  display: grid;
  gap: 0.875rem;
}
.stack label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.875rem;
}
.stack .check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.check input {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--accent);
}

/* ---------- Centered pages ---------- */

.centered {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
.gate {
  width: min(24rem, 100%);
  text-align: center;
}
.gate h1 {
  font-size: 2.5rem;
  margin: 2.5rem 0 0.75rem;
}
.gate p {
  color: var(--muted);
}
.gate form {
  display: grid;
  gap: 0.625rem;
  margin-top: 1.5rem;
}
.gate .error {
  color: var(--accent);
  margin-top: 1rem;
}

/* ---------- Admin ---------- */

.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding: 1rem var(--gutter);
}
.admin-head nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.875rem;
}
.admin-main {
  padding: 2rem var(--gutter) 5rem;
  max-width: 90rem;
  margin: 0 auto;
}
.admin-main h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}
.admin-main h1 small {
  font: 400 1rem var(--sans);
  color: var(--muted);
}
.admin-main section > h2,
.panel h2 {
  font-size: 1.5rem;
  margin-bottom: 0.875rem;
}
.admin-main section {
  margin-bottom: 2.5rem;
}
.admin-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 21rem;
  gap: 2rem clamp(2rem, 4vw, 4rem);
  align-items: start;
  margin-top: 1.5rem;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  padding: 1.25rem;
  margin-bottom: 1.25rem !important;
}
.back {
  display: inline-block;
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: none;
  margin-bottom: 1rem;
}
.admin-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.notice {
  background: #fff;
  border-left: 3px solid var(--accent);
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
}
.admin-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.totals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 1rem;
}
.totals div {
  background: #fff;
  border: 1px solid var(--line);
  padding: 1rem 1.25rem;
  display: grid;
}
.totals strong {
  font: 400 1.75rem/1.2 var(--serif);
}
.totals span {
  color: var(--muted);
  font-size: 0.875rem;
}
.table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
}
.activity {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  background: #fff;
}
.activity th,
.activity td {
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.activity th {
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--muted);
}
.activity th:first-child,
.activity td:first-child {
  text-align: left;
  white-space: normal;
}
.admin-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.admin-list a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.admin-list a:hover strong {
  color: var(--accent);
}
.admin-thumb {
  width: 3.5rem;
  height: 3.5rem;
  background: var(--paper-deep);
  flex-shrink: 0;
  overflow: hidden;
}
.admin-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.admin-list-text {
  display: grid;
  min-width: 0;
  flex: 1;
}
.admin-list-text span {
  color: var(--muted);
  font-size: 0.875rem;
}
.admin-list-text strong {
  font-weight: 500;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  justify-content: flex-end;
}
.badge {
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0 0.375rem;
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}

.progress {
  position: sticky;
  top: 0;
  z-index: 6;
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
}
.progress-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  margin-bottom: 0.5rem;
}
.progress-head strong {
  font-size: 1.25rem;
  font-weight: 500;
}
.progress-head strong[hidden] {
  display: none;
}
.progress-head p {
  margin: 0;
}
.progress-active {
  list-style: none;
  display: grid;
  gap: 0.375rem;
  margin: 0.625rem 0 0;
  padding: 0 !important;
}
.progress-active:empty {
  display: none;
}
.progress-active li {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.75rem;
}
.progress-active span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.progress-active small {
  flex-shrink: 0;
}
.progress-active i {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
}
.progress-bar {
  height: 6px;
  background: var(--paper-deep);
}
.progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.2s linear;
}
.progress ul {
  font-size: 0.8125rem;
  padding-left: 1.125rem;
}

.scene-photos .pick img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--paper-deep);
}
.scene-photos .is-cover .pick img {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.scene-photos figcaption {
  font-size: 0.75rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 0.375rem;
}
.admin-photo-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}
.admin-photo-actions .link {
  min-height: 32px;
}
.selection {
  border-top: 1px solid var(--line);
  padding: 0.625rem 0;
}
.selection summary {
  cursor: pointer;
  font-size: 0.875rem;
}
.selection textarea {
  margin: 0.5rem 0;
  font-size: 0.75rem;
}

@media (max-width: 640px) {
  .admin-filters {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .gallery-search {
    flex-basis: 100%;
  }
  .gallery-search input {
    width: 100%;
  }
  .admin-cols {
    grid-template-columns: minmax(0, 1fr);
  }
  .actions {
    width: 100%;
  }
  .actions > * {
    flex: 1;
  }
}

/* ---------- Motion ---------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes settle {
  from {
    opacity: 0;
    transform: scale(1.05);
  }
}
@keyframes slow-zoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}
@keyframes unveil {
  from {
    clip-path: inset(0 0 100% 0);
  }
  to {
    clip-path: inset(0);
  }
}
@keyframes nudge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}
@keyframes slide-in {
  from {
    transform: translateX(-100%);
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  /* Cover */
  .cover .logo-square {
    animation: fade 0.8s ease-out both;
  }
  .cover-img {
    animation: settle 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s both;
  }
  .cover-media img {
    animation:
      fade 1.2s ease-out both,
      slow-zoom 18s ease-out 0.2s both;
  }
  .cover h1 {
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.45s both;
  }
  .cover-date {
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.6s both;
  }
  .cover-description {
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.72s both;
  }
  .cover-trio-item {
    animation: unveil 1.1s cubic-bezier(0.65, 0, 0.25, 1) both;
  }
  .cover-trio-item:nth-child(2) {
    animation-delay: 0.14s;
  }
  .cover-trio-item:nth-child(3) {
    animation-delay: 0.28s;
  }
  .cover-trio-item img {
    animation: settle 1.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .cover-scroll {
    animation:
      fade 0.8s ease-out 1.1s both,
      nudge 2.2s ease-in-out 1.9s infinite;
  }

  /* Portfolio */
  .pf-head > * {
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .pf-head > :nth-child(2) {
    animation-delay: 0.12s;
  }
  .pf-head > :nth-child(n + 3) {
    animation-delay: 0.24s;
  }
  .home .filters {
    animation: fade 0.9s ease-out 0.36s both;
  }
  .anim .card {
    opacity: 0;
    transform: translateY(22px);
    transition:
      opacity 0.75s ease-out var(--delay, 0ms),
      transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) var(--delay, 0ms);
  }
  .anim .card.is-in {
    opacity: 1;
    transform: none;
  }
  .card-img img {
    transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .card:hover .card-img img {
    transform: scale(1.04);
  }

  /* Gallery */
  /* How photos appear: each state below only applies until the photo is shown. */
  .grid-motion .photo:not(.is-shown) > a img {
    opacity: 0;
  }
  .grid-motion[data-animation='blur'] .photo:not(.is-shown) > a img {
    filter: blur(16px);
  }
  .grid-motion[data-animation='color'] .photo:not(.is-shown) > a {
    background: color-mix(in srgb, var(--g-ink) 12%, var(--g-bg));
  }
  .grid-motion[data-animation='color'] .photo > a img {
    transition-duration: 1.2s, 0.9s, 0.8s;
  }
  .grid-motion[data-animation='pop'] .photo:not(.is-shown) > a {
    opacity: 0;
    transform: scale(0.86);
  }
  .grid-motion[data-animation='align'] .photo:not(.is-shown) > a {
    opacity: 0;
    transform: translateY(40px);
  }
  .grid-motion[data-animation='zoom'] .photo:not(.is-shown) > a img {
    transform: scale(1.2);
  }
  /* A veil that slides away: clipping the photo itself would stop it from ever loading. */
  .grid-motion[data-animation='unveil'] .photo > a {
    position: relative;
  }
  .grid-motion[data-animation='unveil'] .photo > a::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: var(--g-bg);
    transform-origin: bottom;
    transform: scaleY(0);
    transition: transform 0.9s cubic-bezier(0.65, 0, 0.25, 1);
    pointer-events: none;
  }
  .grid-motion[data-animation='unveil'] .photo:not(.is-shown) > a::before {
    transform: scaleY(1);
  }
  .grid-motion[data-animation='unveil'] .photo:not(.is-shown) > a img {
    opacity: 1;
  }
  .grid-motion[data-animation='parallax'] .photo > a img {
    height: 118%;
    margin-top: -9%;
    transform: translateY(var(--py, 0));
    transition: opacity 0.6s ease-out;
  }
  .grid-motion[data-animation='parallax'] .photo:hover > a img {
    transform: translateY(var(--py, 0)) scale(1.04);
  }
  .grid-motion .photo > a {
    transition:
      opacity 0.6s ease-out,
      transform 0.8s cubic-bezier(0.2, 1.3, 0.4, 1);
  }
  .anim .scene-title {
    opacity: 0;
    transform: translateY(14px);
    transition:
      opacity 0.7s ease-out,
      transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .anim .scene-title.is-in {
    opacity: 1;
    transform: none;
  }
  .photo > a {
    overflow: hidden;
  }
  /* Soft zoom under the mouse; phones have no hover, so they stay still. */
  .photo > a img {
    transition:
      opacity 0.6s ease-out,
      transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
      filter 0.8s ease-out;
  }
  @media (hover: hover) {
    .photo:hover > a img {
      transform: scale(1.06);
    }
  }
  .photo > a:focus-visible img {
    transform: scale(1.06);
  }
  .lightbox:not([hidden]) {
    animation: fade 0.25s ease-out both;
  }
  .search-panel:not([hidden]) {
    animation: rise 0.25s ease-out both;
  }
  dialog[open]:not(.drawer) {
    animation: rise 0.3s ease-out both;
  }
  dialog.drawer[open] {
    animation: slide-in 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  dialog[open]::backdrop {
    animation: fade 0.25s ease-out both;
  }
  .btn,
  .btn-quiet,
  .bar-icon {
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  }
  .btn:active,
  .btn-quiet:active,
  .bar-icon:active {
    transform: scale(0.97);
  }
}

/* Files page: more actions under each photo, kept compact. */
.scene-photos .admin-photo-actions {
  gap: 0 0.5rem;
}
.scene-photos .admin-photo-actions .link {
  min-height: 28px;
  font-size: 0.75rem;
}

/* Files page: a click on the photo opens it; only the box in the corner selects. */
.admin-viewer {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #fbfaf8;
  color: var(--ink);
}
.admin-viewer[open] {
  display: grid;
  grid-template-columns: clamp(44px, 7vw, 96px) minmax(0, 1fr) clamp(44px, 7vw, 96px);
  grid-template-rows: 3.5rem minmax(0, 1fr);
}
.viewer-bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1rem;
  font-size: 0.875rem;
}
.viewer-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.viewer-close,
.viewer-nav {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  font: 300 2.25rem/1 var(--sans);
  opacity: 0.7;
}
.viewer-close {
  width: 44px;
  height: 44px;
}
.viewer-close:hover,
.viewer-nav:hover {
  opacity: 1;
}
.viewer-stage {
  display: grid;
  place-items: center;
  min-height: 0;
  padding-bottom: 1.5rem;
}
.viewer-stage img,
.viewer-stage video {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 5.5rem);
  max-height: calc(100dvh - 5.5rem);
  object-fit: contain;
}

/* Design page: choosing the cover photo */
.cover-photo-picker {
  display: grid;
  gap: 0.5rem;
}
.cover-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.75rem, 1fr));
  gap: 0.375rem;
  max-height: 15rem;
  overflow-y: auto;
  padding: 3px;
}
.cover-photo {
  position: relative;
  display: block !important;
  aspect-ratio: 1;
  cursor: pointer;
  background: var(--paper-deep);
}
.cover-photo input {
  position: absolute;
  opacity: 0;
}
.cover-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover-photo:has(input:checked) {
  outline: 3px solid var(--ink);
  outline-offset: -1px;
}
.cover-photo:has(input:focus-visible) {
  outline: 3px solid var(--accent);
}
.cover-photo-auto span {
  display: grid;
  place-content: center;
  height: 100%;
  padding: 0.25rem;
  font-size: 0.75rem;
  text-align: center;
}
.cover-photo-auto small {
  color: var(--muted);
  font-size: 0.625rem;
}

/* The upload panel stays in the corner on every admin page. */
.upload-panel {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  width: min(25rem, calc(100vw - 2rem));
  max-height: min(60vh, 28rem);
  overflow-y: auto;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 30px rgb(29 26 23 / 0.16);
}
.upload-panel[hidden] {
  display: none;
}
.upload-panel .progress-head {
  position: relative;
  padding-right: 1.75rem;
}
.upload-panel .up-text {
  color: var(--muted);
  font-size: 0.8125rem;
}
.upload-panel .up-note {
  margin: 0.625rem 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
}
.upload-panel .up-errors {
  margin: 0.5rem 0 0;
  padding-left: 1.125rem;
  font-size: 0.8125rem;
}
.upload-panel .up-errors:empty {
  display: none;
}
.up-close {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  font-size: 1.25rem;
}
.up-close[hidden] {
  display: none;
}
.up-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.2s linear;
}
.is-loading,
.is-loading * {
  cursor: progress;
}

/* A click anywhere on a photo selects it; only selected ones show a tick and go darker. */
.scene-photos .pick {
  cursor: pointer;
  user-select: none;
}
.scene-photos .pick input {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.scene-photos .pick img {
  transition: filter 0.15s ease;
}
.scene-photos .is-picked .pick img {
  filter: brightness(0.5);
}
.scene-photos .pick input:focus-visible ~ img {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.pick-mark {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  display: none;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: #fff;
  color: #1d1a17;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
}
.scene-photos .is-picked .pick-mark {
  display: grid;
}
.bulk-when {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.bulk-bar [hidden] {
  display: none;
}
.bulk-bar .bulk-when input {
  flex: 0 1 13rem;
  width: 13rem;
  min-width: 8rem;
}

/* Photos load only once the grid has placed them, so only those near the screen are fetched. */
#grid:not(.is-placed) .photo img {
  display: none;
}

