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

body {
  background: #fff;
  color: #111;
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.5;
}

:root {
  --gallery-row-gap: 30px;
  --gallery-col-gap: 30px;
  --gallery-margin: 20px;
  --thumb-height: 200px;
}

header {
  padding: 0;
}

.site-header {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 1.25rem var(--gallery-margin) 5rem;
  min-height: 7.5rem;
}

.site-brand {
  position: absolute;
  left: var(--gallery-margin);
  top: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.site-name {
  font-family: "Times New Roman", Times, serif;
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #000;
  text-decoration: none;
  text-transform: lowercase;
}

a.site-name:hover {
  opacity: 0.55;
}

.site-collections {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.collection-link {
  font-family: "Roboto", system-ui, -apple-system, sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #5f6368;
  text-decoration: none;
}

.collection-link:hover {
  color: #202124;
}

.site-nav-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.15rem;
}

.collection-title {
  font-family: "Roboto", system-ui, -apple-system, sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #5f6368;
  text-align: center;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
}

.nav-link {
  font-family: "Roboto", system-ui, -apple-system, sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #5f6368;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: #202124;
}

.nav-dot {
  color: #c4c7c5;
  user-select: none;
  font-size: 0.875rem;
  line-height: 1;
}

.videos {
  display: none;
}

.gallery-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem var(--gallery-margin) 2.5rem;
}

.gallery-sections {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.photo-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.photo-section .section-label {
  margin-bottom: 0;
}

.page-grad {
  --thumb-height: 280px;
  --gallery-row-gap: 36px;
  --gallery-col-gap: 36px;
}

.page-grad .gallery-sections {
  gap: 5.5rem;
}

.page-grad .photo-section {
  gap: 1.75rem;
}

.page-grad .section-label {
  text-align: left;
  font-size: 1rem;
}

.page-grad .gallery-grid {
  grid-template-columns: repeat(3, 1fr);
  justify-items: start;
}

.gallery-section.hidden {
  display: none;
}

.section-label {
  font-family: "Times New Roman", Times, serif;
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: lowercase;
  color: #000;
  text-align: center;
  margin-bottom: 1.25rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: start;
  justify-items: center;
  gap: var(--gallery-row-gap) var(--gallery-col-gap);
}

#gallery {
  padding-bottom: 4rem;
}

.gallery-grid .empty-state {
  grid-column: 1 / -1;
}

.thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--thumb-height);
  cursor: zoom-in;
  content-visibility: auto;
  contain-intrinsic-size: auto var(--thumb-height);
}

.thumb img {
  display: block;
  max-height: var(--thumb-height);
  max-width: 100%;
  width: auto;
  height: auto;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.97);
  cursor: zoom-out;
}

.lightbox.hidden {
  display: none;
}

.lightbox-frame {
  position: relative;
  display: grid;
  place-items: center;
  max-width: 100%;
  max-height: 100%;
  cursor: default;
}

.lightbox-layer {
  grid-area: 1 / 1;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-layer-high {
  opacity: 0;
  transition: opacity 120ms ease;
  pointer-events: none;
}

.lightbox-layer-high.is-ready {
  opacity: 1;
}

body.lightbox-open {
  overflow: hidden;
}

.empty-state {
  width: 100%;
  color: #666;
  font-size: 0.95rem;
  padding: 2rem 0;
  text-align: center;
}

@media (max-width: 768px) {
  :root {
    --gallery-row-gap: 25px;
    --gallery-col-gap: 20px;
    --gallery-margin: 20px;
    --thumb-height: 160px;
  }

  .site-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    min-height: 0;
  }

  .site-brand {
    position: static;
  }

  .site-nav-wrap {
    padding-top: 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-grad {
    --thumb-height: 220px;
    --gallery-row-gap: 28px;
    --gallery-col-gap: 24px;
  }

  .page-grad .gallery-sections {
    gap: 4rem;
  }

  .page-grad .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
