/* Photo archive: the page remains a complete, navigable gallery without JavaScript. */
.gallery-page {
  --gallery-paper: #f0eadf;
  --gallery-ink: #24251e;
  --gallery-muted: #b9b3a5;
  --gallery-line: rgba(197, 165, 90, .3);
}
.gallery-page [hidden] { display: none !important; }
.gallery-page #main-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1560px;
  margin: auto;
  padding: 138px clamp(20px, 5vw, 88px) 96px;
}
.gallery-page a:focus-visible,
.gallery-page button:focus-visible,
.gallery-page input:focus-visible {
  outline: 2px solid var(--gold-light, #d4b96e);
  outline-offset: 5px;
}
.gallery-skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10001;
  padding: 12px 18px;
  color: #111;
  background: var(--gold, #c5a55a);
  font: 500 .9rem/1.5 'Jost', sans-serif;
  transform: translateY(-180%);
}
.gallery-skip:focus { transform: translateY(0); }
.gallery-hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 100px);
  align-items: center;
  margin: 24px 0 clamp(70px, 9vw, 130px);
}
.gallery-hero-copy { min-width: 0; }
.gallery-page .gallery-eyebrow {
  margin: 0 0 20px;
  color: var(--gold, #c5a55a);
  font: 400 .7rem/1.7 'Jost', sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.gallery-hero h1 {
  max-width: 10ch;
  margin: 0 0 30px;
  font-size: clamp(3.25rem, 6.7vw, 6.6rem);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.025em;
}
.gallery-hero h1 em { color: var(--gold-light, #d4b96e); font-weight: 400; }
.gallery-hero-copy > p:not(.gallery-eyebrow):not(.gallery-summary) {
  max-width: 44ch;
  margin: 0;
  color: #d5cfc2;
  font-size: clamp(1.1rem, 1.7vw, 1.25rem);
  line-height: 1.65;
}
.gallery-page .gallery-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 28px 0 24px;
  padding-top: 18px;
  border-top: 1px solid var(--gallery-line);
  color: var(--gallery-muted);
  font: 400 .7rem/1.6 'Jost', sans-serif;
  letter-spacing: .04em;
}
.gallery-hero .text-link { display: inline-flex; align-items: center; min-height: 44px; }
.gallery-hero-image {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--gallery-line);
  background: #171914;
  box-shadow: 0 20px 70px #0005;
  transform: rotate(1deg);
}
.gallery-hero-image img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-hero-image figcaption {
  padding: 13px 8px 5px;
  color: #cbc3b3;
  font: 400 .65rem/1.6 'Jost', sans-serif;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 20px 28px;
  margin-bottom: 56px;
  padding: 30px 0 24px;
  border-top: 1px solid var(--gallery-line);
  border-bottom: 1px solid var(--gallery-line);
  scroll-margin-top: 100px;
}
.gallery-toolbar-heading { flex-basis: 100%; margin-bottom: 6px; }
.gallery-toolbar-heading .gallery-eyebrow { margin-bottom: 8px; }
.gallery-toolbar-heading h2 { margin: 0; font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 400; line-height: 1.2; }
.gallery-filters { display: flex; flex: 1 1 620px; flex-wrap: wrap; gap: 7px; }
.gallery-filters a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid var(--gallery-line);
  color: #e0d8c9;
  text-decoration: none;
  font: 400 .75rem/1.5 'Jost', sans-serif;
  transition: color .18s, border-color .18s, background .18s;
}
.gallery-filters a span { font-size: .65rem; opacity: .7; }
.gallery-filters a:hover { border-color: var(--gold, #c5a55a); color: #fff; }
.gallery-filters a[aria-current='true'] { border-color: var(--gold, #c5a55a); color: #141610; background: var(--gold, #c5a55a); }
.gallery-search-wrap { flex: 1 1 230px; max-width: 330px; min-width: 0; }
.gallery-search-label { display: block; margin-bottom: 8px; color: #d3cbbd; font: 400 .7rem/1.5 'Jost', sans-serif; }
.gallery-page #gallery-search {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid var(--gallery-line);
  border-radius: 0;
  color: var(--ivory, #f5f0e8);
  background: #151712;
  font: 400 1rem/1.5 'Crimson Text', Georgia, serif;
  color-scheme: dark;
}
.gallery-page #gallery-search::placeholder { color: #aaa597; opacity: 1; }
.gallery-page #gallery-status { flex-basis: 100%; margin: 0; color: #d3cbbd; font: 400 .76rem/1.6 'Jost', sans-serif; }
.gallery-page .gallery-collection-note { flex-basis: 100%; max-width: 82ch; margin: -10px 0 0; color: var(--gallery-muted); font-size: 1rem; line-height: 1.5; }
.gallery-collection { margin-bottom: clamp(64px, 8vw, 112px); scroll-margin-top: 105px; }
.collection-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 28px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--gallery-line); }
.collection-heading > div { flex: 1 1 380px; min-width: 0; }
.collection-heading h2 { margin: 0 0 10px; font-size: clamp(2.5rem, 4vw, 3.6rem); font-weight: 400; line-height: 1.05; }
.collection-heading p { max-width: 65ch; margin: 0; color: var(--gallery-muted); font-size: 1.1rem; line-height: 1.5; }
.collection-heading .collection-count { margin-bottom: 12px; color: var(--gold, #c5a55a); font: 400 .68rem/1.6 'Jost', sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.collection-contact { display: inline-flex; align-items: center; min-height: 44px; color: var(--gold-light, #d4b96e); font: 400 .75rem/1.6 'Jost', sans-serif; text-underline-offset: 5px; }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: start; }
.photo-card { min-width: 0; margin: 0; overflow: hidden; color: var(--gallery-ink); background: var(--gallery-paper); border: 1px solid #d6cfbf; box-shadow: 0 10px 25px #0002; }
.photo-open { position: relative; display: block; aspect-ratio: 4 / 3; background: #ded8ca; overflow: hidden; }
.photo-open img { display: block; width: 100%; height: 100%; object-fit: contain; transition: filter .2s; }
.photo-open:hover img { filter: brightness(1.04); }
.gallery-page .photo-open:focus-visible { outline-offset: -5px; outline-width: 3px; z-index: 1; }
.photo-expand { position: absolute; right: 9px; bottom: 9px; max-width: calc(100% - 18px); padding: 7px 10px; color: #f5f0e8; background: #171914e8; font: 400 .6rem/1.5 'Jost', sans-serif; letter-spacing: .03em; }
.photo-card figcaption { padding: 22px 24px 25px; overflow-wrap: anywhere; }
.photo-card .photo-kicker { margin: 0 0 10px; color: #6e5e3b; font: 500 .62rem/1.5 'Jost', sans-serif; letter-spacing: .09em; text-transform: uppercase; }
.photo-kicker span { white-space: nowrap; }
.photo-card h3 { margin: 0 0 10px; color: var(--gallery-ink); font-size: clamp(1.45rem, 1.8vw, 1.7rem); font-weight: 500; line-height: 1.15; }
.photo-card .photo-description { margin: 0; color: #4c4b40; font-size: 1rem; line-height: 1.55; }
.photo-card .photo-note { margin: 15px 0 0; padding: 9px 0 9px 12px; border-left: 2px solid #9c8145; color: #5c523e; font-size: .92rem; line-height: 1.5; }
.gallery-empty { padding: clamp(34px, 7vw, 80px) 20px; margin-bottom: 72px; border: 1px solid var(--gallery-line); text-align: center; }
.gallery-empty h2 { margin: 0 0 12px; font-size: 2.5rem; font-weight: 400; line-height: 1.1; }
.gallery-empty p { max-width: 45ch; margin: 0 auto 24px; color: var(--gallery-muted); font-size: 1.1rem; }
.gallery-empty button { min-height: 44px; padding: 10px 20px; border: 1px solid var(--gold, #c5a55a); color: var(--gold-light, #d4b96e); background: transparent; cursor: pointer; font: 400 .8rem/1.5 'Jost', sans-serif; }
html.gallery-has-modal, .gallery-page.gallery-has-modal { overflow: hidden; }
.gallery-lightbox {
  position: fixed;
  inset: 0;
  width: min(1320px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid #857249;
  color: #f0eadf;
  background: #171914;
  overflow: auto;
  overscroll-behavior: contain;
  box-shadow: 0 20px 100px #0008;
}
.gallery-lightbox::backdrop { background: #080907ec; }
.gallery-lightbox-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 9px 15px 9px 22px; border-bottom: 1px solid var(--gallery-line); }
.gallery-lightbox-collection { margin: 0; color: var(--gold-light, #d4b96e); font: 400 .72rem/1.5 'Jost', sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.gallery-lightbox button { min-width: 44px; min-height: 44px; padding: 9px 12px; border: 1px solid var(--gallery-line); border-radius: 0; color: #eee5d5; background: transparent; cursor: pointer; font: 400 .78rem/1.5 'Jost', sans-serif; }
.gallery-lightbox button:hover { border-color: var(--gold, #c5a55a); background: #c5a55a14; }
.gallery-lightbox button:disabled { opacity: .4; cursor: default; }
.gallery-lightbox-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 310px); }
.gallery-lightbox-media { position: relative; min-width: 0; height: min(72vh, 760px); min-height: 280px; background: #0d0f0b; }
.gallery-lightbox-media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.gallery-lightbox-loading { position: absolute; z-index: 1; inset: auto 16px 16px; width: fit-content; max-width: calc(100% - 32px); margin: auto; padding: 7px 10px; color: #ece5d7; background: #151712e8; font: 400 .75rem/1.5 'Jost', sans-serif; }
.gallery-lightbox-caption { display: flex; flex-direction: column; min-width: 0; padding: 26px; overflow-wrap: anywhere; }
.gallery-lightbox-kicker { margin: 0 0 14px; color: var(--gold, #c5a55a); font: 400 .65rem/1.6 'Jost', sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.gallery-lightbox-title { margin: 0 0 18px; font-size: clamp(1.9rem, 2.6vw, 2.4rem); font-weight: 400; line-height: 1.08; }
.gallery-lightbox-description { margin: 0 0 20px; color: #d0c9bb; font-size: 1.1rem; line-height: 1.55; }
.gallery-lightbox-note { margin: 0 0 20px; padding-left: 12px; border-left: 2px solid #9c8145; color: #c9bda5; font-size: .98rem; line-height: 1.5; }
.gallery-lightbox-original { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 24px; color: var(--gold-light, #d4b96e); font: 400 .72rem/1.5 'Jost', sans-serif; text-underline-offset: 5px; }
.gallery-lightbox-navigation { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; margin-top: auto; padding-top: 22px; border-top: 1px solid var(--gallery-line); }
.gallery-lightbox-counter { margin: 0; text-align: center; color: #d0c9bb; font: 400 .73rem/1.5 'Jost', sans-serif; white-space: nowrap; }
.gallery-screen-reader { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 1050px) {
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .gallery-search-wrap { max-width: none; }
  .gallery-lightbox-layout { grid-template-columns: minmax(0, 1fr) minmax(240px, 290px); }
}
@media (max-width: 700px) {
  .gallery-page #main-content { padding: 110px 20px 56px; }
  .gallery-hero { grid-template-columns: minmax(0, 1fr); gap: 38px; margin-top: 12px; }
  .gallery-hero h1 { font-size: clamp(3.6rem, 13vw, 5.6rem); }
  .gallery-hero-copy > p:not(.gallery-eyebrow):not(.gallery-summary) { max-width: 45ch; }
  .gallery-hero-image { transform: none; }
  .gallery-toolbar { gap: 18px; margin-bottom: 44px; }
  .gallery-search-wrap { flex-basis: 100%; }
  .gallery-filters { flex-basis: 100%; }
  .gallery-filters a { padding-inline: 10px; gap: 7px; }
  .collection-heading { gap: 10px; }
  .collection-heading > div { flex-basis: 100%; }
  .photo-card figcaption { padding: 18px; }
  .gallery-lightbox { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
  .gallery-lightbox-layout { grid-template-columns: minmax(0, 1fr); }
  .gallery-lightbox-media { height: 43svh; min-height: 220px; }
  .gallery-lightbox-caption { padding: 22px; }
  .gallery-lightbox-title { max-width: 30ch; }
  .gallery-lightbox-description { margin-bottom: 12px; }
  .gallery-lightbox-original { margin-bottom: 12px; }
  .gallery-lightbox-navigation { padding-top: 16px; }
}
@media (max-width: 480px) {
  .photo-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .photo-card figcaption { padding: 22px; }
  .photo-card h3 { font-size: 1.7rem; }
  .gallery-summary { column-gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-page *, .gallery-page *::before, .gallery-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.gallery-visit { padding: clamp(48px, 7vw, 96px) 20px; border-top: 1px solid var(--gallery-line); text-align: center; }
.gallery-visit h2 { margin: 0 0 18px; font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 400; line-height: 1.1; }
.gallery-visit > p:not(.gallery-eyebrow) { margin: 0 auto 30px; max-width: 48ch; color: var(--gallery-muted); font-size: 1.2rem; line-height: 1.6; }

.collection-return { display: inline-flex; align-items: center; min-height: 44px; margin-top: 24px; color: var(--gold-light, #d4b96e); font: 400 .8rem/1.6 'Jost', sans-serif; text-underline-offset: 5px; }
