/* Bernard Figueroa — site styles */

:root {
  --ink: #111;
  --muted: #6e6e6e;
  --line: #e4e4e4;
  --paper: #fff;
  --plate: #f3f3f3;       /* the soft grey behind product photos */
  --display: "Syncopate", "Arial Black", sans-serif;
  --text: "Nunito Sans", "Avenir Next", Avenir, "Helvetica Neue", sans-serif;
  --gutter: clamp(16px, 3vw, 40px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
/* Always reserve the scrollbar's space, so full-width elements never shift when it appears */
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 300 16px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
figure { margin: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ------------------------------------------------------------ header */

.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: var(--max); margin: 0 auto;
  padding: 20px var(--gutter);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(8px);
}
.brand {
  display: flex; align-items: center; gap: 18px;
  text-decoration: none;
}
.brand img { width: 56px; height: 56px; object-fit: contain; }
.brand span {
  font: 700 clamp(15px, 2vw, 22px)/1 var(--display);
  letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
}

.site-nav > ul { display: flex; gap: clamp(16px, 2.6vw, 36px); align-items: center; }
.site-nav a, .sub-toggle {
  font: 700 11px/1 var(--display);
  letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  padding: 8px 0; display: inline-block;
  text-underline-offset: 5px; text-decoration-thickness: 1.5px;
}
.site-nav a:hover, .sub-toggle:hover,
.site-nav > ul > li > a[aria-current], .sub-toggle.is-current { text-decoration: underline; }

.has-sub { position: relative; }
.sub {
  position: absolute; top: 100%; left: -18px; min-width: 170px;
  padding: 10px 18px; background: var(--paper);
  box-shadow: 0 10px 30px rgb(0 0 0 / .08);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.sub a { display: block; padding: 9px 0; font-size: 10px; }
.sub a[aria-current] { text-decoration: underline; }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub {
  opacity: 1; visibility: visible; transform: none;
}

.menu-toggle {
  display: none;
  font: 700 11px/1 var(--display); letter-spacing: .2em; text-transform: uppercase;
  padding: 10px 0;
}
.menu-close { display: none; }

@media (max-width: 860px) {
  /* backdrop-filter would trap the fixed overlay inside the header */
  .site-header { backdrop-filter: none; background: var(--paper); padding-block: 14px; }
  .menu-toggle { display: block; position: relative; z-index: 2; flex-shrink: 0; }
  .brand img { width: 44px; height: 44px; }
  .brand { gap: 12px; position: relative; z-index: 2; }
  .site-nav {
    position: fixed; inset: 0; z-index: 1;
    background: var(--paper);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  }
  .site-nav > ul { flex-direction: column; gap: 22px; text-align: center; }
  .site-nav a, .sub-toggle { font-size: 15px; }
  .sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; padding: 8px 0 0; min-width: 0;
    display: none;
  }
  .has-sub .sub { display: block; }
  .sub a { font-size: 11px; color: var(--muted); }
  body.menu-is-open { overflow: hidden; }
  @media (max-width: 440px) {
    .brand img { width: 34px; height: 34px; }
    .brand { gap: 10px; }
    .brand span { font-size: 12px; letter-spacing: .1em; }
  }
  @media (max-width: 340px) {
    .brand img { display: none; }
    .brand span { font-size: 11px; letter-spacing: .08em; }
  }
  body.menu-is-open .site-nav { opacity: 1; visibility: visible; }
  body.menu-is-open .menu-open { display: none; }
  body.menu-is-open .menu-close { display: inline; }
}

/* ------------------------------------------------------------ layout */

main {
  max-width: var(--max); margin: 0 auto;
  padding: 12px var(--gutter) clamp(48px, 8vw, 96px);
}

.page-title {
  font: 700 clamp(30px, 6vw, 64px)/1.05 var(--display);
  letter-spacing: .16em; text-transform: uppercase;
  margin: clamp(16px, 4vw, 48px) 0 clamp(32px, 6vw, 72px);
}

/* ------------------------------------------------------------ home mosaic */

/* Masonry: CSS columns without JS; with JS a left-to-right grid (site.js sets row spans) */
[data-masonry] { --cols: 4; --gap: 24px; columns: var(--cols); column-gap: var(--gap); }
[data-masonry] > * { break-inside: avoid; margin: 0 0 var(--gap); }
[data-masonry].is-masonry {
  columns: auto; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  grid-auto-rows: 4px; column-gap: var(--gap); grid-auto-flow: row dense; align-items: start;
}
[data-masonry].is-masonry > * { margin: 0; }
[data-masonry].is-masonry > .tile--feature { grid-column: span 2; }
.sculpture-grid { --cols: 3; }
@media (max-width: 960px) { .mosaic { --cols: 3; } }
@media (max-width: 700px) {
  [data-masonry], .sculpture-grid { --cols: 2; --gap: 12px; }
}
.tile {
  position: relative; display: block; background: var(--plate); overflow: hidden;
  text-decoration: none;
}
.tile img { width: 100%; transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .3s; }
.tile-label {
  position: absolute; left: 14px; bottom: 12px;
  font: 700 10px/1 var(--display); letter-spacing: .2em; text-transform: uppercase;
  background: var(--paper); padding: 7px 9px;
  opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s;
}
a.tile:hover img { transform: scale(1.03); }
a.tile:hover .tile-label, a.tile:focus-visible .tile-label { opacity: 1; transform: none; }
@media (hover: none) { .tile-label { opacity: 1; transform: none; } }
@media (max-width: 520px) {
  .tile-label { left: 8px; bottom: 8px; font-size: 8px; padding: 5px 6px; }
}

/* ------------------------------------------------------------ lights (product pages) */
/* Live-site layout kept: collection name top right over the photo column; rows alternate
   text-left/photo-right, then photo-left/text-right. Photos larger, specs labelled. */

.lp-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.lp-title {
  grid-column: 2; justify-self: center; margin: clamp(8px, 2vw, 24px) 0 clamp(28px, 4vw, 56px);
  font: 700 clamp(34px, 5.6vw, 76px)/1 var(--display); letter-spacing: .14em; text-transform: uppercase;
}

.item {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding: clamp(36px, 6vw, 88px) 0;
}
.item:first-of-type { padding-top: 0; }
.item--flip .item-text { order: 2; }
.item-text { padding-inline: clamp(0px, 3vw, 48px); }

.item h2 {
  font: 700 clamp(26px, 3.6vw, 46px)/1.05 var(--display);
  letter-spacing: .16em; text-transform: uppercase; margin: 0 0 clamp(24px, 3vw, 40px);
}
.specs { margin: 0; display: grid; gap: 14px; }
.spec { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; align-items: baseline; }
.spec dt {
  font: 700 9.5px/1.4 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  padding-top: 2px;
}
.spec dd { margin: 0; font-size: 15px; line-height: 1.55; }
.spec dd b { font-weight: 400; color: var(--ink); display: inline-block; min-width: 4.6em; }
.inquire {
  display: inline-block; margin-top: clamp(24px, 3vw, 36px);
  font: 700 10px/1 var(--display); letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 6px;
}
.inquire:hover { color: var(--muted); }

/* gallery: big square plate, round arrows on the photo, a row of four thumbnails underneath */
.gallery { min-width: 0; }
.gallery-frame { position: relative; }
.gallery-stage { background: var(--plate); cursor: zoom-in; overflow: hidden; }
.gallery-main {
  width: 100%; aspect-ratio: 1; object-fit: contain;
  transition: opacity .3s, transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.gallery-stage:hover .gallery-main { transform: scale(1.025); }
.gallery-main.is-swapping { opacity: 0; }
.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; background: rgb(255 255 255 / .92);
  display: grid; place-items: center; font: 300 28px/1 var(--text); color: var(--ink);
  box-shadow: 0 2px 14px rgb(0 0 0 / .08);
  opacity: 0; transition: opacity .25s, background .2s;
}
.gallery-prev { left: 14px; } .gallery-next { right: 14px; }
.gallery-frame:hover .gallery-arrow, .gallery-arrow:focus-visible { opacity: 1; }
.gallery-arrow:hover { background: #fff; }
@media (hover: none) { .gallery-arrow { opacity: 1; width: 40px; height: 40px; } }
.gallery-thumbs {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 30px) / 4);
  gap: 10px; margin-top: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumbs button {
  aspect-ratio: 1; background: var(--plate); scroll-snap-align: start;
  opacity: .5; outline-offset: 2px; transition: opacity .2s; position: relative;
}
.gallery-thumbs button:hover, .gallery-thumbs button[aria-current] { opacity: 1; }
.gallery-thumbs button[aria-current]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ink);
}
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* Lights landing page: seven collections, flush 4×4 square grid — three big tiles, four small */
.lights-grid {
  --g: clamp(10px, 1.7vw, 20px);
  display: grid; gap: var(--g); aspect-ratio: 1 / 1;
  grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(0, 1fr));
  grid-template-areas: "a a b b" "a a b b" "c d d e" "f d d g";
}
.li-tile { display: block; min-height: 0; height: 100%; }
.li-tile img { width: 100%; height: 100%; object-fit: cover; }
.li-tile.tile--fit img { object-fit: contain; }
.li-label {
  position: absolute; left: 14px; bottom: 14px; right: 14px; display: flex; flex-direction: column; gap: 6px;
  align-items: flex-start; pointer-events: none;
}
.li-label b, .li-label span {
  background: var(--paper); padding: 7px 10px 6px;
}
.li-label b { font: 700 clamp(12px, 1.3vw, 16px)/1 var(--display); letter-spacing: .18em; text-transform: uppercase; }
.li-label span { font-size: 12px; line-height: 1.3; color: var(--muted); padding-top: 5px; opacity: 0; transform: translateY(-4px); transition: opacity .25s, transform .25s; }
.li-tile:hover .li-label span, .li-tile:focus-visible .li-label span { opacity: 1; transform: none; }
@media (hover: none) { .li-label span { opacity: 1; transform: none; } }
@media (max-width: 700px) {
  .lights-grid {
    aspect-ratio: auto; grid-template-columns: 1fr 1fr; grid-template-rows: none;
    grid-template-areas: "a a" "b b" "c e" "d d" "f g";
  }
  .li-tile { aspect-ratio: 1; }
  .li-label { left: 8px; bottom: 8px; }
}

/* previous / next collection */
.lp-nav {
  display: flex; justify-content: space-between; gap: 24px;
  margin-top: clamp(40px, 6vw, 80px); padding-top: 22px; border-top: 1px solid var(--line);
}
.lp-nav a {
  display: flex; flex-direction: column; gap: 8px; text-decoration: none;
  font: 700 clamp(16px, 2vw, 24px)/1 var(--display); letter-spacing: .16em; text-transform: uppercase;
}
.lp-nav a span { font-size: 9.5px; letter-spacing: .22em; color: var(--muted); }
.lp-nav .lp-prev::before { content: "\2190"; font: 300 22px/1 var(--text); order: -1; }
.lp-nav .lp-next { text-align: right; align-items: flex-end; }
.lp-nav .lp-next::before { content: "\2192"; font: 300 22px/1 var(--text); order: -1; }
.lp-nav a:hover { color: var(--muted); }
.lp-nav .lp-all {
  align-self: flex-end; font-size: 10px; letter-spacing: .22em; color: var(--muted);
  border-bottom: 1.5px solid currentColor; padding-bottom: 5px;
}
.lp-nav .lp-all:hover { color: var(--ink); }
@media (max-width: 600px) { .lp-nav { flex-wrap: wrap; } .lp-nav .lp-all { order: 3; width: 100%; text-align: center; align-items: center; border: 0; } }

@media (max-width: 640px) {
  .lp-head { display: block; }
  .lp-title { margin-bottom: 24px; }
  .item { grid-template-columns: 1fr; gap: 24px; }
  .item .gallery { order: -1; }
  .item--flip .item-text { order: 0; }
  .item-text { padding-inline: 0; }
}

/* ------------------------------------------------------------ sculptures */

/* ---- Selected work: the live site's layout. Tight 20px gaps, 1:2:1:2 collage rows, then the
        big image + title + text block in the lower right. */
.sc-selected { --g: clamp(10px, 1.7vw, 20px); }
.sc-label {
  display: flex; justify-content: space-between; margin: clamp(4px, 1vw, 12px) 0 14px;
  font: 700 10px/1 var(--display); letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
.collage {
  display: grid; grid-template-columns: 1fr 2fr 1fr 2fr; gap: var(--g);
  aspect-ratio: 2.08 / 1; margin-bottom: var(--g);
}
.collage .col--stack { display: flex; flex-direction: column; gap: var(--g); min-height: 0; }
.collage figure, .new-grid figure { background: var(--plate); overflow: hidden; cursor: zoom-in; min-height: 0; }
.collage .col--stack figure { flex: 1; }
.collage img, .new-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.collage figure:hover img, .new-grid figure:hover img { transform: scale(1.03); }
/* Home: same collage, square slots (big = 2×2, stacks = two 1×1), alternate rows mirrored */
.home-collage { --g: clamp(10px, 1.7vw, 20px); margin-top: clamp(4px, 1vw, 12px); }
.collage--square { aspect-ratio: 3 / 1; }
.collage--mirror { grid-template-columns: 2fr 1fr 2fr 1fr; }
.collage .tile { display: block; height: 100%; min-height: 0; }
.collage .col--stack .tile { flex: 1; }
.collage .tile img { width: 100%; height: 100%; object-fit: cover; }
.collage .tile--fit img { object-fit: contain; }
.collage .tile--fit:hover img { transform: scale(1.03); }
@media (max-width: 700px) {
  .collage--square .tile { aspect-ratio: 1; }
  .collage--square .col--big { grid-column: span 2; }
}
@media (max-width: 700px) {
  .collage { grid-template-columns: 1fr 1fr; aspect-ratio: auto; }
  .collage .col--stack { display: contents; }
  .collage figure { aspect-ratio: 2 / 3; }
  .collage .col--big { grid-column: span 2; aspect-ratio: 4 / 5; }
}

.sc-hero {
  --g: clamp(10px, 1.7vw, 20px);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--g); align-items: stretch;
}

/* ---- New work: its own chapter — full-width grey band, big heading, even square grid */
body { overflow-x: clip; }
.sc-new {
  background: var(--plate);
  margin: clamp(72px, 10vw, 140px) calc(50% - 50vw) calc(-1 * clamp(48px, 8vw, 96px));
  padding: clamp(48px, 7vw, 96px) calc(50vw - 50%);
}
.sc-new-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: clamp(24px, 3.5vw, 44px);
}
.sc-new-head h2 {
  margin: 0; font: 700 clamp(30px, 6vw, 76px)/.95 var(--display);
  letter-spacing: .12em; text-transform: uppercase;
}
.sc-new-head p {
  margin: 0 0 .4em; display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
  font: 700 11px/1 var(--display); letter-spacing: .22em; text-transform: uppercase;
}
.sc-new-head p span + span { color: var(--muted); }
.new-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.new-grid figure { aspect-ratio: 1; background: #fff; }
@media (max-width: 900px) { .new-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .new-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .sc-new-head { flex-direction: column; align-items: flex-start; }
  .sc-new-head p { flex-direction: row; gap: 16px; }
}
.sc-hero figure { background: var(--plate); overflow: hidden; cursor: zoom-in; }
.sc-hero img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.sc-hero figure:hover img { transform: scale(1.025); }
/* Big image stretches to the full height of the right column, so its bottom lines up with
   the end of the text block (the image is absolutely placed so it doesn't push the row taller). */
.sc-hero-main { position: relative; }
.sc-hero-main img { position: absolute; inset: 0; }
.sc-hero-side { display: flex; flex-direction: column; min-width: 0; }
/* Small images: fixed square block so the tall one and the stacked pair end on the same line */
.sc-hero-pics {
  display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--g); aspect-ratio: 1 / 1;
}
.sc-hero-a { grid-row: 1 / 3; }
.sc-hero-pics figure { min-height: 0; height: 100%; }
.sc-title {
  font: 700 clamp(30px, 4.6vw, 62px)/1 var(--display);
  letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  margin: calc(var(--g) * 1.1) 0 calc(var(--g) * .6);
}
.sc-essay {
  columns: 2; column-gap: var(--g);
  font-size: 14px; line-height: 1.62; text-align: justify; hyphens: auto; -webkit-hyphens: auto;
}
.sc-essay p { margin: 0 0 1em; }
.sc-sign { text-align: left; margin-top: 1.4em !important; }
@media (max-width: 800px) {
  .sc-hero { grid-template-columns: 1fr; align-items: start; }
  .sc-hero-main { aspect-ratio: 1; }
  .sc-hero-side { display: contents; }
  .sc-hero-pics { aspect-ratio: 3 / 2; }
  .sc-hero-pics { order: 3; margin-top: 8px; }
  .sc-title { order: 1; font-size: clamp(26px, 9vw, 48px); margin-top: 0; }
  .sc-hero-main { order: 0; }
  .sc-essay { order: 2; columns: 1; font-size: 15px; }
}
@media (min-width: 601px) and (max-width: 800px) {
  .sc-hero-main { aspect-ratio: 4 / 3; }
  .sc-essay { columns: 2; font-size: 14.5px; }
}

.section-title {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  font: 700 clamp(15px, 2vw, 22px)/1 var(--display); letter-spacing: .18em; text-transform: uppercase;
  margin: clamp(64px, 9vw, 120px) 0 clamp(20px, 3vw, 36px);
  padding-top: 18px; border-top: 1px solid var(--ink);
}
.section-title span { font-size: .62em; color: var(--muted); letter-spacing: .2em; }

/* ------------------------------------------------------------ about */

.about {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px);
  font-size: 17px; line-height: 1.75;
}
.about p { margin: 0 0 1.2em; }
/* 404 page */
.nf { max-width: 640px; padding: clamp(24px, 6vw, 80px) 0 clamp(40px, 8vw, 120px); }
.nf p { font-size: 17px; line-height: 1.7; margin: 0 0 32px; }
.nf-links { display: flex; flex-wrap: wrap; gap: 14px 32px; }
.nf-links a {
  font: 700 12px/1 var(--display); letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 6px;
}
.nf-links a:hover { color: var(--muted); }

/* Full-width looping video banner, as on the live About page */
/* sized to the video's own shape (1236×514 crop), so the whole frame shows at every width */
.banner {
  margin: 0 calc(50% - 50vw); background: #111; overflow: hidden;
  aspect-ratio: 1236 / 514;
}
.banner video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; }
.page-about main > .banner:first-child { margin-top: -12px; }
.page-about main > .banner:last-child { margin-top: clamp(48px, 7vw, 96px); margin-bottom: calc(-1 * clamp(48px, 8vw, 96px)); }
.about-portrait { max-width: 420px; margin: 0 0 clamp(32px, 5vw, 56px); }
.about-portrait img { width: 100%; }
.about h2 {
  font: 700 13px/1 var(--display); letter-spacing: .2em; text-transform: uppercase;
  margin: 0 0 24px;
}
@media (max-width: 640px) {
  .about { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------ footer */

.site-footer {
  background: #f0f0f0;
  padding: 36px var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px clamp(24px, 5vw, 64px);
}
.site-footer > * { margin: 0; }
.site-footer h2 { font: 700 15px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 10px clamp(20px, 4vw, 48px); font-size: 14px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.copyright { margin-left: auto !important; font-size: 12px; color: var(--muted); }
@media (max-width: 700px) {
  .site-footer { flex-direction: column; align-items: flex-start; }
  .site-footer ul { flex-direction: column; }
  .copyright { margin-left: 0 !important; }
}

/* ------------------------------------------------------------ lightbox */

.lightbox {
  position: fixed; inset: 0; z-index: 50;
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  padding: 56px 16px 16px;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  cursor: zoom-out;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; object-fit: contain; }
.lightbox-close, .lightbox-count {
  position: absolute; top: 18px;
  font: 700 11px/1 var(--display); letter-spacing: .2em; text-transform: uppercase;
  padding: 10px 0;
}
.lightbox-close { right: var(--gutter); }
.lightbox-count { left: var(--gutter); color: var(--muted); }
.lightbox img { transition: opacity .25s, transform .35s cubic-bezier(.2,.7,.2,1); touch-action: pan-y; }
.lightbox img.is-swapping { opacity: 0; }
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px; display: grid; place-items: center; cursor: pointer;
  font: 300 30px/1 var(--text); color: var(--ink); opacity: .55; transition: opacity .2s;
}
.lightbox-prev:hover, .lightbox-next:hover { opacity: 1; }
.lightbox-prev { left: 4px; } .lightbox-next { right: 4px; }
.lightbox.single .lightbox-prev, .lightbox.single .lightbox-next, .lightbox.single .lightbox-count { display: none; }
@media (hover: none) { .lightbox-prev, .lightbox-next { display: none; } }

/* ------------------------------------------------------------ motion */

html.js .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s ease, transform 1.1s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0ms);
}
html.js .reveal.is-in { opacity: 1; transform: none; }
.site-header { transition: box-shadow .3s; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html.js .reveal { opacity: 1; transform: none; }
}
