@font-face {
  font-family: DM Sans;
  src: url(fonts/dm-sans.ttf) format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Barlow Condensed;
  src: url(fonts/barlow-condensed.ttf) format("truetype");
  font-weight: 600;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f2f0e9;
  --ink: #172322;
  --muted: #64716c;
  --line: #d3d8ce;
  --accent: #cd4f31;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
.site-header {
  height: 94px;
  margin: 0 clamp(20px, 4.5vw, 88px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 38px;
  letter-spacing: -1px;
  line-height: 1;
  font-weight: 600;
}
.wordmark span {
  color: var(--accent);
}
.other-site {
  font-size: 14px;
  padding: 14px 0 14px 24px;
}
.other-site span {
  display: inline-block;
  margin-left: 16px;
  color: var(--accent);
}
main {
  max-width: 1760px;
  margin: auto;
  padding: 0 clamp(20px, 4.5vw, 88px);
}
.gallery-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 56px 0 35px;
}
h1 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(68px, 8.5vw, 140px);
  line-height: 0.88;
  letter-spacing: -2px;
  font-weight: 600;
  margin: 0;
}
.collection-count {
  color: var(--muted);
  text-align: right;
  margin: 0 0 4px;
  white-space: nowrap;
  line-height: 1.7;
}
.collection-count strong {
  color: var(--ink);
  font-weight: 400;
}
.collection-count span {
  display: block;
  font-size: 12px;
}
.gallery-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
  border-top: 1px solid var(--line);
  padding: 16px 0 24px;
  margin-top: 8px;
}
.gallery-nav a {
  padding: 10px 16px;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 24px;
  font-size: 13px;
  transition:
    background 0.15s,
    color 0.15s;
}
.gallery-nav a:hover {
  border-color: var(--ink);
}
.gallery-nav a[aria-current] {
  color: var(--paper);
  background: var(--ink);
}
.photo-grid {
  columns: 4;
  column-gap: 18px;
}
.photo {
  display: block;
  position: relative;
  margin: 0 0 18px;
  break-inside: avoid;
  background: #e1e2d9;
  overflow: hidden;
}
.photo img {
  width: 100%;
  height: auto;
  display: block;
  transition: filter 0.25s;
  vertical-align: middle;
}
.photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 16px 15px;
  background: linear-gradient(transparent, rgba(6, 18, 17, 0.72));
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.2s;
}
.photo:hover .photo-overlay,
.photo:focus-visible .photo-overlay {
  opacity: 1;
}
.photo:hover img {
  filter: brightness(0.93);
}
.gallery-footer {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding: 26px 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
}
.gallery-footer p {
  margin: 0;
}
.pagination {
  display: flex;
  align-items: center;
  gap: 24px;
}
.pagination a {
  color: var(--ink);
  font-size: 13px;
  padding: 12px 0;
}
.pagination a:hover {
  color: var(--accent);
}
.empty-state {
  padding: 60px 0;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -100px;
  background: var(--ink);
  color: white;
  padding: 14px;
  z-index: 10;
}
.skip-link:focus {
  top: 12px;
}
.dan-site {
  --paper: #edf0e9;
  --accent: #4b7059;
}
.dan-site .gallery-heading {
  padding-bottom: 45px;
}
.dan-site .photo-grid {
  columns: 3;
}
.lightbox {
  border: 0;
  padding: 0;
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  background: #111a19;
  color: #f2f0e9;
  overflow: hidden;
}
.lightbox[open] {
  display: grid;
  grid-template-rows: 76px minmax(0, 1fr) 70px;
}
.lightbox::backdrop {
  background: #111a19;
}
.lightbox-bar,
.lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  gap: 20px;
}
.lightbox-caption {
  font-size: 13px;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lightbox button {
  background: transparent;
  color: inherit;
  border: 0;
  cursor: pointer;
  min-width: 48px;
  min-height: 48px;
}
.close-lightbox {
  display: flex;
  align-items: center;
  gap: 18px;
}
.close-lightbox span {
  font-size: 32px;
  font-weight: 400;
}
.lightbox-stage {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 70px;
  align-items: center;
  height: 100%;
  min-height: 0;
  gap: 8px;
  padding: 0 12px;
}
.full-photo {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}
.previous-photo,
.next-photo {
  font-size: 26px;
}
.lightbox-footer {
  font-size: 12px;
  color: #c0ccc2;
}
.original-link {
  padding: 15px 0;
}
@media (min-width: 1700px) {
  .photo-grid {
    columns: 5;
  }
}
@media (max-width: 1100px) {
  .photo-grid {
    columns: 3;
  }
  .site-header {
    height: 82px;
  }
  .gallery-heading {
    padding-top: 45px;
  }
}
@media (max-width: 700px) {
  .site-header {
    height: 74px;
  }
  .wordmark {
    font-size: 32px;
  }
  .gallery-heading {
    padding: 36px 0 25px;
    gap: 12px;
  }
  h1 {
    font-size: 72px;
    letter-spacing: -1px;
  }
  .collection-count {
    font-size: 12px;
  }
  .collection-count span {
    font-size: 10px;
  }
  .gallery-nav {
    margin-top: 0;
    padding: 12px 0 20px;
    gap: 2px;
  }
  .gallery-nav a {
    padding: 9px 13px;
    font-size: 12px;
  }
  .photo-grid,
  .dan-site .photo-grid {
    columns: 2;
    column-gap: 12px;
  }
  .photo {
    margin-bottom: 12px;
  }
  .gallery-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 25px;
  }
  .pagination {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }
  .lightbox-bar,
  .lightbox-footer {
    padding: 0 18px;
  }
  .lightbox[open] {
    grid-template-rows: 68px minmax(0, 1fr) 64px;
  }
  .lightbox-stage {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 0;
    padding: 0 3px;
  }
  .lightbox-stage button {
    min-width: 34px;
    padding: 0;
  }
  .close-lightbox {
    font-size: 12px;
    gap: 10px;
  }
  .lightbox-caption {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
@media (max-width: 700px) {
  .gallery-heading {
    display: block;
  }
  .collection-count {
    display: flex;
    gap: 16px;
    text-align: left;
    margin: 18px 0 0;
  }
  .collection-count span {
    display: inline;
  }
}
