:root {
  --row-h: clamp(140px, 20vw, 300px);
  --gallery-gap: .5rem;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
html { scroll-behavior: auto; }
html.lb-open { overflow: hidden; }
.gallery { padding-block-start: var(--space-8); padding-block-end: var(--space-9); }
.gallery__inner { max-inline-size: var(--grid-max); margin-inline: auto; padding-inline: clamp(1.5rem, 4vw, 4rem); }
.gallery__h2 { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-2) var(--space-4); font-weight: 600; }
.gallery__count { display: block; font-size: var(--step-7); line-height: .92; letter-spacing: -.01em; font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1; color: var(--ink); }
.gallery__line { font-family: var(--font-body); font-weight: 400; font-size: var(--step-1); line-height: 1.3; letter-spacing: normal;
  max-width: 22ch; color: var(--ink); padding-block-end: .6rem; text-wrap: balance; }
.gallery__hint { margin-block-start: var(--space-3); color: var(--ink-muted); font-size: var(--step--1); }
.filters { display: flex; flex-wrap: wrap; gap: 0 var(--space-5); margin-block: var(--space-5) var(--space-5); }
.filters[hidden] { display: none; }
.chip { min-height: 44px; padding: .5rem 0; background: transparent; border: 0; border-bottom: 2px solid transparent; border-radius: 0;
  color: var(--ink-muted); font-weight: 700; font-size: var(--step-0); cursor: pointer; }
.chip .n { font-weight: 400; margin-inline-start: .4em; color: var(--ink-muted); }
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--brass-deep); }
.chip:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.wall { display: flex; flex-wrap: wrap; gap: var(--gallery-gap); }
.wall::after { content: ""; flex-grow: 1e4; order: 9999; }
.tile { display: block; position: relative; min-width: 0; overflow: hidden; background: var(--c, var(--dark-1));
  flex: calc(var(--r) * 100) 1 calc(var(--r) * var(--row-h)); }
.tile[hidden] { display: none; }
.tile picture { display: block; }
.tile img { display: block; width: 100%; height: auto; aspect-ratio: var(--r); }
.tile:focus-visible { outline: 2px solid var(--brass); outline-offset: -4px; }
.more { display: flex; justify-content: center; margin-block-start: var(--space-6); }
.more[hidden] { display: none; }
.live { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (hover: hover) and (pointer: fine) {
  .wall .tile img { transition: transform 320ms var(--ease-standard); }
  .wall .tile:hover img { transform: scale(1.03); }
}
.tile { transition: opacity 420ms var(--ease-reveal), transform 420ms var(--ease-reveal); }
html.js .tile.pre { opacity: 0; transform: translateY(12px); }
.cursor-label { position: fixed; left: 0; top: 0; z-index: var(--z-cursor); pointer-events: none; opacity: 0;
  transition: opacity var(--dur-fast) linear; background: var(--bone); color: var(--dark-0); padding: .35rem .85rem; border-radius: 999px;
  font-size: var(--step--1); font-weight: 700; line-height: 1.2; }
.cursor-label.on { opacity: 1; }
.lightbox { padding: 0; border: 0; background: var(--dark-0); color: var(--bone); width: 100%; height: 100%;
  max-width: none; max-height: none; overflow: hidden; }
.lightbox::backdrop { background: var(--dark-0); }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: lb-in 200ms var(--ease-standard) both; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb__bar { display: flex; align-items: center; justify-content: space-between; padding: var(--space-2) var(--space-4); }
.lb__count { color: var(--bone-muted); font-size: var(--step--1); font-variant-numeric: tabular-nums; }
.lb__btn { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; height: 48px; padding: 0 1rem; flex: none;
  background: var(--dark-0); color: var(--bone); border: 1px solid var(--border-int-dark); border-radius: var(--radius); cursor: pointer; font-weight: 700; }
.lb__btn:hover { border-color: var(--bone); }
.lb__btn:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.lb__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.lb__stage { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-3);
  padding-inline: var(--space-4); min-height: 0; touch-action: pinch-zoom; user-select: none; -webkit-user-select: none; }
.lb__fig { margin: 0; min-width: 0; min-height: 0; display: flex; align-items: center; justify-content: center; }
.lb__fig picture { display: block; max-width: 100%; }
.lb__fig img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 11.5rem); max-height: calc(100dvh - 11.5rem); object-fit: contain;
  -webkit-user-drag: none; animation: lb-pop 200ms var(--ease-standard) both; }
@keyframes lb-pop { from { transform: scale(.98); } to { transform: scale(1); } }
.lb__cap { padding: var(--space-3) var(--space-4) var(--space-4); text-align: center; max-width: 72ch; margin-inline: auto; }
.lb__title { font-family: var(--font-display); font-weight: 600; font-size: var(--step-2); line-height: 1.15; }
.lb__story { margin-block-start: .35rem; color: var(--bone-muted); font-size: var(--step--1); }
@media (max-width: 700px) {
  .lb__stage { grid-template-columns: minmax(0, 1fr); padding-inline: 0; }
  .lb__stage .lb__btn { position: absolute; top: 50%; margin-block-start: -24px; z-index: 2; background: rgb(12 11 9 / .72); }
  .lb__prev { inset-inline-start: var(--space-2); }
  .lb__next { inset-inline-end: var(--space-2); }
  .lb__fig img { max-height: calc(100vh - 13rem); max-height: calc(100dvh - 13rem); }
}
@media (prefers-reduced-motion: reduce) {
  .tile, html.js .tile.pre { opacity: 1; transform: none; transition: none; }
  .wall .tile img { transition: none; }
  .wall .tile:hover img { transform: none; }
  .lightbox[open], .lb__fig img { animation: none; }
  .cursor-label { display: none; }
}
.cur-grid { margin-block-start: var(--space-7); display: grid; row-gap: var(--space-9); }
.cur-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-5); align-items: start; }
.cur { display: block; position: relative; min-width: 0; overflow: hidden; background: var(--c, var(--dark-1)); transition: opacity 420ms var(--ease-reveal), transform 420ms var(--ease-reveal); }
.cur picture { display: block; }
.cur img { display: block; width: 100%; height: auto; aspect-ratio: var(--r); }
.cur:focus-visible { outline: 2px solid var(--brass-deep); outline-offset: 4px; }
html.js .cur.pre { opacity: 0; transform: translateY(12px); }
@media (hover: hover) and (pointer: fine) {
  .cur img { transition: transform 320ms var(--ease-standard); }
  .cur:hover img { transform: scale(1.03); }
}
.cur-row { align-items: stretch; grid-auto-rows: clamp(280px, 33vw, 560px); }
.cur-row--3, .cur-row--6 { grid-auto-rows: clamp(220px, 24vw, 420px); }
.cur, .cur picture { height: 100%; }
.cur img { height: 100%; aspect-ratio: auto; object-fit: cover; }
.cur-row--1 .cur:nth-child(1), .cur-row--4 .cur:nth-child(1) { grid-column: 1 / span 7; }
.cur-row--1 .cur:nth-child(2), .cur-row--4 .cur:nth-child(2) { grid-column: 8 / span 5; }
.cur-row--2 .cur:nth-child(1), .cur-row--5 .cur:nth-child(1) { grid-column: 1 / span 5; }
.cur-row--2 .cur:nth-child(2), .cur-row--5 .cur:nth-child(2) { grid-column: 6 / span 7; }
.cur-row--3 .cur:nth-child(1), .cur-row--6 .cur:nth-child(1) { grid-column: 1 / span 4; }
.cur-row--3 .cur:nth-child(2), .cur-row--6 .cur:nth-child(2) { grid-column: 5 / span 4; }
.cur-row--3 .cur:nth-child(3), .cur-row--6 .cur:nth-child(3) { grid-column: 9 / span 4; }
.cur-row .cur:only-child { grid-column: 1 / -1; }
.cur-grid { row-gap: var(--space-5); }
@media (max-width: 760px) {
  .cur-grid { row-gap: var(--space-3); margin-block-start: var(--space-6); }
  .cur-row, .cur-row--3, .cur-row--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-3); row-gap: var(--space-3); grid-auto-rows: auto; }
  .cur-row .cur:nth-child(n) { grid-column: auto; }
  .cur, .cur picture { height: auto; }
  .cur img { aspect-ratio: 1; height: auto; }
  .cur-row--3 .cur:nth-child(1), .cur-row--6 .cur:nth-child(1), .cur-row .cur:only-child { grid-column: 1 / -1; }
  .cur-row--3 .cur:nth-child(1) img, .cur-row--6 .cur:nth-child(1) img, .cur-row .cur:only-child img { aspect-ratio: 4 / 3; }
}
.see-all { display: flex; justify-content: center; margin-block-start: var(--space-8); }
.see-all[hidden], .see-all__btn[hidden] { display: none; }
.see-all__btn { background: none; border: 0; border-bottom: 1px solid var(--brass-deep); padding: .5rem 0 .6rem; min-height: 44px; color: var(--ink); cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: var(--step-3); letter-spacing: -.005em; line-height: 1.1; }
.see-all__btn:hover { color: var(--brass-hover); }
.see-all__btn:focus-visible { outline: 2px solid var(--brass); outline-offset: 6px; }
html.js .gall-all { display: none; }
html.js .gall-all.is-open { display: block; margin-block-start: var(--space-7); }
@media (prefers-reduced-motion: reduce) {
  .cur, html.js .cur.pre { opacity: 1; transform: none; transition: none; }
  .cur img, .cur:hover img { transition: none; transform: none; }
}
.gallery .more .btn--ghost { background: none; border: 0; border-bottom: 1px solid var(--brass-deep); border-radius: 0; padding: .5rem 0 .6rem; min-height: 44px; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); width: auto; }
.gallery .more .btn--ghost:hover { border-bottom-width: 2px; padding-bottom: calc(.6rem - 1px); }
.gallery.is-all .cur-grid, .gallery.is-all .see-all { display: none; }
.gallery.is-all .gall-all.is-open { margin-block-start: var(--space-5); }
