/* ==========================================================================
   Wren & Field — public site
   Palette is deliberately near-neutral: the photographs supply the colour.
   ========================================================================== */

:root {
  --paper: #e7e1d8;
  --wash: #dcd4c6;
  --ink: #1b1a18;
  --soft: #5f5c57;
  --muted: #97938c;
  --line: #e6e3dd;

  --display: 'Cormorant Garamond', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', 'Avenir Next', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 5rem);
  --measure: 34rem;
  --nav-h: 88px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}

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

/* --------------------------------------------------------------- type kit */

.eyebrow {
  margin: 0 0 1.25rem;
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--light { color: rgba(255, 255, 255, 0.82); }

.link-underline {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  transition: opacity 0.3s var(--ease), letter-spacing 0.4s var(--ease);
}
.link-underline:hover { opacity: 0.55; letter-spacing: 0.26em; }

.button {
  display: inline-block;
  padding: 1rem 2.25rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.6875rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.button:hover { background: transparent; color: var(--ink); }
.button--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.button--light:hover { background: transparent; color: var(--paper); }
.button--small { padding: 0.7rem 1.5rem; font-size: 0.625rem; }
.button--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.button--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* -------------------------------------------------------------- masthead */

.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease);
}
.masthead--overlay {
  position: fixed;
  left: 0; right: 0;
  background: transparent;
  border-color: transparent;
  color: #fff;
}
.masthead--overlay.is-solid {
  background: rgba(231, 225, 216, 0.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-color: var(--line);
  color: var(--ink);
}

.masthead__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: var(--nav-h);
  padding: 0 var(--gutter);
}

.masthead__links {
  display: flex;
  gap: 2.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.masthead__links--right { justify-content: flex-end; }
.masthead__links a { position: relative; padding-bottom: 3px; opacity: 0.85; transition: opacity 0.3s var(--ease); }
.masthead__links a:hover { opacity: 1; }
.masthead__links a.is-current::after,
.masthead__links a:hover::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
}

.masthead__logo {
  height: 52px;
  max-height: 52px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Two logo files, one shown at a time. By default (a solid white header, or
   any non-overlay page) the black logo shows. Over an overlay hero photo
   that hasn't switched to dark text, the white logo takes over instead —
   riding the same state that already flips the nav text colour. */
.masthead__logo--light { display: none; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35)); }
.masthead__logo--dark { display: block; }

.masthead--overlay:not(.is-solid):not(.masthead--dark-text) .masthead__logo--light { display: block; }
.masthead--overlay:not(.is-solid):not(.masthead--dark-text) .masthead__logo--dark { display: none; }

.masthead__mark { text-align: center; line-height: 1.2; }
.masthead__name {
  display: block;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.masthead__place {
  display: block;
  margin-top: 2px;
  font-size: 0.5625rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.6;
}

.masthead__toggle {
  display: none;
  justify-self: end;
  background: none;
  border: 0;
  padding: 10px 0;
  width: 26px;
  color: inherit;
}
.masthead__toggle:focus { outline: none; }
.masthead__toggle:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }
.masthead__toggle-bar {
  display: block;
  height: 1.5px;
  background: currentColor;
}
.masthead__toggle-bar + .masthead__toggle-bar { margin-top: 5px; }

.drawer {
  position: fixed;
  inset: var(--nav-h) 0 0;
  z-index: 55;
  background: var(--paper);
  animation: fade 0.3s var(--ease);
}
.drawer__inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 2.5rem var(--gutter);
}
.drawer__inner a {
  padding: 0.75rem 0;
  font-family: var(--display);
  font-size: 1.75rem;
  border-bottom: 1px solid var(--line);
}

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  height: 100svh;
  min-height: 540px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  transition: color 0.6s var(--ease);
}

/* Per-photo text colour, set in Settings for each hero image so light and
   dark photos both stay readable without a hardcoded assumption. */
.hero--dark-text { color: var(--ink); }

.masthead--overlay.masthead--dark-text:not(.is-solid) { color: var(--ink); }
.hero__frames { position: absolute; inset: 0; }
.hero__frame {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 1.8s var(--ease), transform 9s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero__frame.is-active { opacity: 1; transform: scale(1); }

.hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.14) 22%, rgba(0,0,0,0.14) 60%, rgba(0,0,0,0.42) 100%);
}

.hero__copy {
  position: relative;
  text-align: center;
  padding: 0 var(--gutter);
  animation: rise 1.4s var(--ease) both;
}
.hero__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.75rem, 9vw, 6.5rem);
  line-height: 1.02;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero__tagline {
  margin: 1.5rem auto 0;
  max-width: 30rem;
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
}
.hero--dark-text .eyebrow--light { color: rgba(27, 26, 24, 0.72); }
.hero--dark-text .hero__tagline { color: rgba(27, 26, 24, 0.85); }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.hero__cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.4s var(--ease);
}
.hero__cue svg {
  width: 26px;
  height: 26px;
  animation: cue-bounce 2s ease-in-out infinite;
}
@keyframes cue-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50% { transform: translateY(7px); opacity: 1; }
}
.hero--dark-text .hero__cue { color: rgba(27, 26, 24, 0.7); }

/* Plain state — no hero photo set, so keep it simple rather than fake a
   photographic look with a gradient. */
.hero-plain {
  text-align: center;
  padding: clamp(4.5rem, 12vw, 8rem) var(--gutter) clamp(3rem, 8vw, 5rem);
  background: var(--paper);
}
.hero-plain__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
}
.hero-plain__tagline {
  margin: 1.25rem auto 0;
  max-width: 28rem;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--soft);
}

/* ------------------------------------------------------------- structure */

.main { padding-top: 0; }
.page--narrow .main { min-height: 60vh; }

.section-head { text-align: center; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-head__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: 0.02em;
}

.page-head {
  text-align: center;
  padding: clamp(3.5rem, 9vw, 7rem) var(--gutter) clamp(2rem, 5vw, 3.5rem);
}
.page-head__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.25rem, 6vw, 4rem);
  letter-spacing: 0.03em;
}
.page-head__text {
  margin: 1rem auto 0;
  max-width: var(--measure);
  color: var(--soft);
}

.statement {
  padding: clamp(4.5rem, 12vw, 9rem) var(--gutter);
  text-align: center;
}
.statement__text {
  max-width: 44rem;
  margin: 0 auto 2.5rem;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.6;
  font-style: italic;
  font-weight: 300;
  color: var(--ink);
}

/* ----------------------------------------------------------- collections */

.collections { padding: 0 var(--gutter) clamp(4rem, 10vw, 8rem); }
.collections__list { display: grid; gap: clamp(3.5rem, 8vw, 7rem); }

.collection {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
.collection--flip .collection__image { order: 2; }

.collection__image {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  max-height: 22rem;
  margin: 0 auto;
}
.collection__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), opacity 0.6s var(--ease);
}
.collection__image:hover img { transform: scale(1.04); }

.collection__index {
  margin: 0 0 0.75rem;
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  color: var(--muted);
}
.collection__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 1.15;
}
.collection__subtitle {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.collection__text {
  margin: 1.25rem 0 1.75rem;
  color: var(--soft);
  max-width: 26rem;
}

/* ---------------------------------------------------------------- tiles */

.tagbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.75rem;
  padding: 0 var(--gutter) clamp(2.5rem, 6vw, 4rem);
}
.tagbar__item {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.tagbar__item:hover { color: var(--ink); }
.tagbar__item.is-active { color: var(--ink); border-color: var(--ink); }

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.75rem);
  padding: 0 var(--gutter) clamp(4rem, 10vw, 8rem);
}
.tile__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
}
.tile__frame--landscape { aspect-ratio: 3 / 2; }
.tile__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.tile:hover .tile__frame img { transform: scale(1.045); }
.tile__lock {
  position: absolute;
  top: 1rem; left: 1rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255,255,255,0.92);
  font-size: 0.5625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.tile__meta { padding: 1.1rem 0 0; text-align: center; }
.tile__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}
.tile__sub {
  margin: 0.3rem 0 0;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ------------------------------------------------------------- services */

.services {
  background: var(--wash);
  padding: clamp(4rem, 10vw, 7rem) var(--gutter);
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  max-width: 68rem;
  margin: 0 auto;
}
.service { text-align: center; }
.service__title {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
}
.service__text { margin: 0; color: var(--soft); font-size: 0.9375rem; }

/* ------------------------------------------------------------------ cta */

.cta {
  position: relative;
  padding: clamp(5rem, 14vw, 10rem) var(--gutter);
  background: #24221f center/cover no-repeat;
  color: #fff;
  text-align: center;
  isolation: isolate;
}
.cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20, 19, 17, 0.55);
  z-index: -1;
}
.cta__inner { max-width: 34rem; margin: 0 auto; }
.cta__title {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.25rem);
}
.cta__text { margin: 0 0 2.25rem; color: rgba(255,255,255,0.85); }

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

.main--gallery { padding-bottom: clamp(4rem, 8vw, 7rem); }

/* Full-bleed cover banner atop the gallery — the studio's mark, the
   gallery's name, and the date, over the chosen cover photo. Each of the
   two blocks (logo and title/date) is positioned independently, set per
   gallery in the admin. */
.gcover {
  position: relative;
  height: 62vh;
  min-height: 380px;
  max-height: 720px;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
  overflow: hidden;
}
.gcover__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 32%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0.5) 100%);
}

.gcover__brand,
.gcover__copy {
  position: absolute;
  display: inline-block;
  max-width: calc(100% - 2 * var(--gutter));
}

/* Shared position system — same 7 placements for both the logo and the
   title/date block, set independently per gallery. */
.gpos-top-left { top: clamp(1.25rem, 3vw, 2.25rem); left: var(--gutter); text-align: left; }
.gpos-top-center { top: clamp(1.25rem, 3vw, 2.25rem); left: 50%; transform: translateX(-50%); text-align: center; }
.gpos-top-right { top: clamp(1.25rem, 3vw, 2.25rem); right: var(--gutter); text-align: right; }
.gpos-center { top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; }
.gpos-bottom-left { bottom: clamp(1.25rem, 3vw, 2.25rem); left: var(--gutter); text-align: left; }
.gpos-bottom-center { bottom: clamp(1.25rem, 3vw, 2.25rem); left: 50%; transform: translateX(-50%); text-align: center; }
.gpos-bottom-right { bottom: clamp(1.25rem, 3vw, 2.25rem); right: var(--gutter); text-align: right; }

.gcover__logo {
  max-height: 68px;
  max-width: 260px;
  width: auto;
  height: 68px;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}
.gcover__name {
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.gcover__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.25rem, 6vw, 4rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.gcover__date {
  margin: 0.85rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

/* Compact bar directly under the cover — title and photographer on the
   left, icon-only actions on the right, all in one row like a real studio
   delivery site rather than a stacked, centered block. */
.gbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem clamp(1rem, 3vw, 2rem);
  background: #14130f;
  color: #fff;
}
.gbar__info { min-width: 0; }
.gbar__title {
  margin: 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gbar__by {
  margin: 0.15rem 0 0;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.gbar__icons { display: flex; align-items: center; gap: 1.1rem; flex-shrink: 0; }
.gbar__icon {
  position: relative;
  display: flex;
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.75);
  padding: 0.25rem;
  transition: color 0.2s var(--ease);
}
.gbar__icon svg { width: 18px; height: 18px; }
.gbar__icon:hover { color: #fff; }
.gbar__icon-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  width: 13px !important;
  height: 13px !important;
  background: #e7e1d8;
  border-radius: 50%;
  padding: 1px;
}

.gnote {
  text-align: center;
  padding: 1.5rem var(--gutter) 0;
  max-width: 40rem;
  margin: 0 auto;
}
.gnote__subtitle {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.gnote__text { margin: 0.75rem 0 0; color: var(--soft); }

@media (max-width: 640px) {
  /* Corners get tight on small screens — pull everything toward the center
     column so the logo and title/date blocks don't collide or run off. */
  .gpos-top-left, .gpos-top-right { left: var(--gutter); right: var(--gutter); text-align: center; transform: none; max-width: none; }
  .gpos-bottom-left, .gpos-bottom-right { left: var(--gutter); right: var(--gutter); text-align: center; transform: none; max-width: none; }
}

/* Dark background variant — set per gallery in the admin. Only the gallery
   content switches; the header and footer stay the site's normal colours so
   navigation always looks consistent. */
body.is-dark { background: #141311; }
body.is-dark .gallery-head__title,
body.is-dark .gallery-head__text { color: #f2efe9; }
body.is-dark .gallery-head__subtitle,
body.is-dark .eyebrow { color: #8f897d; }
body.is-dark .button--ghost { border-color: rgba(255,255,255,0.22); color: #f2efe9; }
body.is-dark .button--ghost:hover { background: #f2efe9; color: #141311; border-color: #f2efe9; }
body.is-dark .button:not(.button--ghost) { background: #f2efe9; color: #141311; border-color: #f2efe9; }
body.is-dark .button:not(.button--ghost):hover { background: transparent; color: #f2efe9; }
body.is-dark .empty-state__text { color: #8f897d; }
body.is-dark .lightbox__caption { color: rgba(255,255,255,0.72); }

.banner {
  margin: 0;
  padding: 0.85rem var(--gutter);
  background: #2f2c27;
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
}

.gallery-head {
  text-align: center;
  padding: clamp(3rem, 8vw, 6rem) var(--gutter) clamp(2rem, 5vw, 3.25rem);
  max-width: 46rem;
  margin: 0 auto;
}
.gallery-head__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.25rem, 6vw, 4rem);
  letter-spacing: 0.03em;
}
.gallery-head__subtitle {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.gallery-head__text { margin: 1.25rem 0 0; color: var(--soft); }

.gtoolbar {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.25rem, 4vw, 2.25rem);
  justify-content: center;
  margin-top: 2rem;
}
.gtoolbar__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: 0;
  color: var(--soft);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.2s var(--ease);
}
.gtoolbar__btn svg { width: 20px; height: 20px; }
.gtoolbar__btn:hover { color: var(--ink); }
body.is-dark .gtoolbar__btn { color: #a39d92; }
body.is-dark .gtoolbar__btn:hover { color: #f2efe9; }

.photos { padding: 0; }

/* Justified rows are positioned by gallery.js. Photos start collapsed so the
   full-size images never flash before the layout pass runs. */
.photos--justified .photo {
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 0;
  margin: 0;
  overflow: hidden;
}
.photos--justified .photo img { width: 100%; height: 100%; object-fit: cover; }

.photos--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 3px;
}
.photos--grid .photo { margin: 0; aspect-ratio: 1; overflow: hidden; }
.photos--grid .photo img { width: 100%; height: 100%; object-fit: cover; }

.photos--column {
  max-width: 62rem;
  margin: 0 auto;
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
}
.photos--column .photo { margin: 0; }

.photo {
  background: var(--photo-color, var(--wash));
  cursor: zoom-in;
}
.photo img {
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
}
.photo:hover img { opacity: 0.9; }

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

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(18, 17, 16, 0.97);
  display: grid;
  place-items: center;
  animation: fade 0.25s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox__stage {
  width: min(94vw, 1600px);
  height: 84vh;
  display: grid;
  place-items: center;
}
.lightbox__image {
  max-width: 100%;
  max-height: 84vh;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.lightbox__image.is-ready { opacity: 1; }

.lightbox__spinner {
  position: absolute;
  width: 24px; height: 24px;
  border: 1px solid rgba(255,255,255,0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.lightbox__spinner[hidden] { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.lightbox__bar {
  position: absolute;
  left: 0; right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1rem, 3vw, 2rem);
  color: rgba(255,255,255,0.85);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.lightbox__bar--top { top: 0; }
.lightbox__tools { display: flex; align-items: center; gap: 1.5rem; }
.lightbox__tool {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  padding: 0;
  opacity: 0.85;
  transition: opacity 0.2s var(--ease);
}
.lightbox__tool svg { width: 20px; height: 20px; flex-shrink: 0; }
.lightbox__tool:hover { opacity: 1; }
.lightbox__tool[hidden] { display: none; }
.lightbox__tool-label { display: none; }
@media (min-width: 640px) {
  .lightbox__tool-label { display: inline; }
}

/* A generous click/tap zone spans the edge for easy hitting, but the
   visible button is a proper circle set well in from the edge — hover only
   affects that circle, not the whole zone, so the feedback matches what's
   actually on screen. */
.lightbox__nav {
  position: absolute;
  top: 0; bottom: 0;
  z-index: 1;
  width: clamp(80px, 15%, 160px);
  display: flex;
  align-items: center;
  background: none;
  border: 0;
  cursor: pointer;
}
.lightbox__nav--prev { left: 0; justify-content: flex-start; }
.lightbox__nav--next { right: 0; justify-content: flex-end; }

.lightbox__nav-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 clamp(1.25rem, 4vw, 3rem);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.88);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.lightbox__nav-circle svg { width: 20px; height: 20px; }
.lightbox__nav:hover .lightbox__nav-circle,
.lightbox__nav:focus-visible .lightbox__nav-circle {
  background: rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.32);
  transform: scale(1.06);
}

@media (max-width: 640px) {
  .lightbox__nav-circle { width: 44px; height: 44px; margin: 0 0.75rem; }
  .lightbox__nav-circle svg { width: 18px; height: 18px; }
}

.lightbox__caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  max-width: 44rem;
  text-align: center;
  color: rgba(255,255,255,0.72);
  font-size: 0.8125rem;
  pointer-events: none;
}

/* ---------------------------------------------------------- share dialog */

.sharedialog {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  background: rgba(20, 19, 17, 0.55);
  padding: 1.5rem;
  animation: fade 0.2s var(--ease);
}
.sharedialog[hidden] { display: none; }
.sharedialog__panel {
  position: relative;
  width: min(26rem, 100%);
  background: var(--paper);
  padding: clamp(1.75rem, 5vw, 2.5rem);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.sharedialog__label {
  margin: 0 0 1rem;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.sharedialog__row { display: flex; gap: 0.5rem; }
.sharedialog__input {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 0.875rem;
  color: var(--ink);
  background: var(--wash);
  border: 1px solid var(--line);
}
.sharedialog__copy {
  padding: 0 1.5rem;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.sharedialog__copy:hover { background: transparent; color: var(--ink); }
.sharedialog__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: 0;
  color: var(--muted);
  padding: 0.25rem;
}
.sharedialog__close svg { width: 18px; height: 18px; }
.sharedialog__close:hover { color: var(--ink); }

/* ---------------------------------------------------------------- forms */

.gate {
  max-width: 26rem;
  margin: 0 auto;
  padding: clamp(4rem, 12vw, 8rem) var(--gutter);
  text-align: center;
}
.gate__title {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3rem);
}
.gate__text { margin: 0 0 2rem; color: var(--soft); }
.gate__form { display: grid; gap: 1.25rem; text-align: left; }
.gate__foot { margin-top: 1.5rem; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.gate__foot a:hover { color: var(--ink); }

.field { display: block; }
.field__label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.625rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.field__hint { text-transform: none; letter-spacing: 0.06em; opacity: 0.8; }
.field__input {
  width: 100%;
  padding: 0.9rem 1rem;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  transition: border-color 0.3s var(--ease);
}
.field__input:focus { border-color: var(--ink); outline: none; }
textarea.field__input { resize: vertical; }
.field__error { margin: 0; color: #a1362c; font-size: 0.875rem; }

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(3.5rem, 9vw, 7rem) var(--gutter) clamp(4rem, 10vw, 7rem);
  max-width: 76rem;
  margin: 0 auto;
}
.contact__title {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
}
.contact__text { margin: 0 0 2rem; color: var(--soft); }
.contact__details { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.contact__details li { display: grid; gap: 0.15rem; }
.contact__details span {
  font-size: 0.625rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.form { display: grid; gap: 1.5rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form .button { justify-self: start; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }

.notice {
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--line);
  background: var(--wash);
  font-size: 0.9375rem;
}
.notice p { margin: 0; }
.notice--good { border-color: #cdd8c9; background: #f2f6f0; }

.empty-state {
  text-align: center;
  padding: clamp(3rem, 10vw, 7rem) var(--gutter);
}
.empty-state__text { max-width: 30rem; margin: 0 auto 2rem; color: var(--soft); }

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

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(3.5rem, 9vw, 7rem) var(--gutter);
  max-width: 76rem;
  margin: 0 auto;
}
.about__portrait {
  aspect-ratio: 4 / 5;
  background: var(--wash) center/cover no-repeat;
}
.about__title {
  margin: 0 0 1.5rem;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
}
.about__text { margin: 0 0 1.25rem; color: var(--soft); max-width: var(--measure); }
.about__body .link-underline { margin-top: 1rem; }

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

.footer {
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 7vw, 5rem) var(--gutter) 1.5rem;
  background: var(--paper);
}
.footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  align-items: start;
  padding-bottom: 3rem;
}
.footer__name {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.footer__tagline { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.875rem; max-width: 22rem; }
.footer__nav, .footer__contact {
  display: grid;
  gap: 0.6rem;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.footer__contact { text-transform: none; letter-spacing: 0.1em; }
.footer__nav a:hover, .footer__contact a:hover { opacity: 0.6; }

.footer__base {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer__admin:hover { color: var(--ink); }

/* ------------------------------------------------------------ responsive */

@media (max-width: 900px) {
  :root { --nav-h: 72px; }

  .masthead__inner { grid-template-columns: 1fr auto; }
  .masthead__links { display: none; }
  .masthead__mark { justify-self: start; text-align: left; }
  .masthead__toggle { display: block; }

  .collection { grid-template-columns: 1fr; }
  .collection--flip .collection__image { order: 0; }
  .collection__image { aspect-ratio: 3 / 2; }

  .contact, .about { grid-template-columns: 1fr; }
  .about__portrait { max-height: 60vh; }
  .form__row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
