h1, h2 {
  font-family: var(--display);
  line-height: 1.15;
  text-wrap: balance;
  margin: 0;
}

.eyebrow {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--berry);
}

.gallery-head {
  display: grid;
  gap: 8px;
  max-width: 46em;
  padding-bottom: 8px;
}

.gallery-head h1 {
  font-family: var(--pixel);
  font-size: clamp(34px, 6vw, 52px);
}

.lede {
  font-size: 19px;
  color: var(--ink-soft);
  margin: 0;
}

.lede strong { color: var(--ink); }

.filters {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-block: 12px;
  margin-block: 16px 0;
  background: var(--ground);
  border-bottom: 1px solid var(--rule);
}

@media (max-width: 560px) {
  .filters { position: static; }
}

.filters button {
  flex: none;
  font: 700 15px var(--display);
  color: var(--ink);
  padding: 6px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--panel);
  cursor: pointer;
}

.filters button span {
  font-weight: 400;
  color: var(--ink-soft);
  margin-left: 2px;
}

.filters button[aria-pressed="true"],
.filters button:hover {
  background: var(--ink);
  color: var(--panel);
}

.filters button[aria-pressed="true"] span,
.filters button:hover span { color: inherit; }

.filters button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

[hidden] { display: none !important; }

.kind {
  display: grid;
  gap: 16px;
  padding-top: 32px;
  scroll-margin-top: 72px;
}

.kind h2 { font-size: 26px; }

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 20px;
  align-items: start;
}

.shots figure {
  margin: 0;
  display: grid;
  gap: 8px;
}

.shots figcaption {
  font-size: 15px;
  color: var(--ink-soft);
}

.shots figcaption b {
  display: block;
  color: var(--ink);
}

.shot {
  display: block;
  background: var(--ink);
  border-radius: 14px;
  padding: 10px;
  box-shadow: var(--shadow);
  cursor: zoom-in;
  transition: transform 120ms ease;
}

.shot:hover { transform: translateY(-2px); }

.shot:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.shot img,
.lightbox img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  image-rendering: pixelated;
}

.shot img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
}

.gallery-foot {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 3px solid var(--ink);
  color: var(--ink-soft);
  font-size: 15px;
}

.lightbox {
  width: min(1100px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 12px;
  border: 0;
  border-radius: 14px;
  background: var(--ink);
  color: var(--panel);
  overflow: auto;
}

.lightbox::backdrop { background: rgba(10, 14, 24, 0.82); }

.lightbox img {
  max-height: calc(100vh - 140px);
  object-fit: contain;
}

.lightbox p {
  margin: 10px 4px 2px;
  font-size: 16px;
}

.lightbox p b { margin-right: 4px; }

.lightbox form { display: flex; justify-content: flex-end; margin: 0 0 8px; }

.lightbox .close {
  font: 700 22px/1 var(--display);
  width: 40px;
  height: 40px;
  color: var(--ink);
  background: var(--panel);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.lightbox .close:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .shot { transition: none; }
  .shot:hover { transform: none; }
}
