
.gallery-page {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: var(--pad);
  padding-top: clamp(42px, 5vw, 76px);
}

.gallery-intro {
  margin-bottom: clamp(32px, 5vw, 68px);
}

.gallery-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.gallery-title-row h1 {
  margin: 0;
  font-size: clamp(24px, 3vw, 44px);
  font-weight: 500;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.gallery-count {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-top: 20px;
}

.filter {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px 0;
  min-height: 44px;
  font: inherit;
  font-size: 11px;
  letter-spacing: .13em;
  cursor: pointer;
  border-bottom: 1px solid transparent;
}

.filter.is-active {
  color: var(--text);
  border-bottom-color: var(--text);
}

.filter:focus-visible,
.gallery-item:focus-visible,
.lightbox button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}

.gallery-grid {
  columns: 3;
  column-gap: clamp(12px, 1.3vw, 22px);
}

.gallery-item {
  display: block;
  width: 100%;
  margin: 0 0 clamp(12px, 1.3vw, 22px);
  padding: 0;
  border: 0;
  background: transparent;
  break-inside: avoid;
  cursor: zoom-in;
}

.gallery-item[hidden] {
  display: none;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
}

@media (hover: hover) and (pointer: fine) {
  .gallery-item img {
    transition: opacity 180ms ease;
  }
  .gallery-item:hover img {
    opacity: .84;
  }
}

.print-note {
  max-width: 620px;
  margin: clamp(80px, 10vw, 150px) auto;
  text-align: center;
  color: var(--muted);
  line-height: 1.75;
}

.print-note strong {
  color: var(--text);
  font-weight: 500;
}

.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(15, 16, 17, .96);
  color: var(--text);
}

.lightbox::backdrop {
  background: rgba(15, 16, 17, .96);
}

.lightbox-shell {
  min-height: 100%;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 70px;
  grid-template-rows: auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px 22px 28px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text);
  min-width: 44px;
  min-height: 44px;
  font: inherit;
  cursor: pointer;
}

.lightbox-close {
  grid-column: 3;
  justify-self: end;
  font-size: 34px;
  font-weight: 200;
}

.lightbox-prev,
.lightbox-next {
  grid-row: 2;
  font-size: 25px;
  color: var(--muted);
}

.lightbox-prev { grid-column: 1; }
.lightbox-next { grid-column: 3; }

.lightbox-figure {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  display: grid;
  place-items: center;
  min-width: 0;
}

.lightbox-figure img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 120px);
  width: auto;
  height: auto;
}

.lightbox-figure figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
}

@media (max-width: 900px) {
  .gallery-grid { columns: 2; }
}

@media (max-width: 600px) {
  .gallery-page {
    padding-top: 28px;
  }

  .gallery-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .filters {
    gap: 4px 14px;
  }

  .gallery-grid { columns: 1; }

  .lightbox-shell {
    grid-template-columns: 50px minmax(0, 1fr) 50px;
    padding-inline: 8px;
    gap: 4px;
  }

  .lightbox-figure img {
    max-height: calc(100vh - 150px);
  }
}

.print-inquiry {
  display:inline-flex;
  margin-top:10px;
  min-height:32px;
  align-items:center;
  color:var(--text);
  border-bottom:1px solid var(--line);
  font-size:10px;
  letter-spacing:.12em;
}
