:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #898989;
  --line: #dedede;
  --nav-height: 100px;
  --photo-width: min(41.6667vw, 680px);
  --photo-max-height: calc(100svh - 170px);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

html {
  background: var(--bg);
}

body {
  position: fixed;
  inset: 0;
  margin: 0;
  overflow: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
button:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--nav-height);
  gap: 5px;
  color: #ffffff;
  mix-blend-mode: difference;
}

.nav-button {
  min-width: 0;
  min-height: 35px;
  padding: 10px 5px;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  letter-spacing: 0;
  -webkit-tap-highlight-color: transparent;
}

.index-button {
  font-weight: 700;
}

.thumbs-button {
  font-weight: 500;
}

.nav-separator {
  display: inline-block;
  width: 19px;
  height: 1px;
  background: currentColor;
  margin: 0 5px;
}

.nav-button:focus-visible,
.gallery-surface:focus-visible,
.index-link:focus-visible,
.thumb-button:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 5px;
}

.intro-active .intro-screen {
  color: #ffffff;
}

.thumbs-open .site-nav {
  opacity: 0;
  pointer-events: none;
}

.gallery,
.gallery-surface,
.intro-screen,
.index-panel,
.thumbs-panel {
  position: fixed;
  inset: 0;
}

.gallery {
  z-index: 1;
  background: var(--bg);
}

.gallery-surface {
  z-index: 2;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 85px 6% var(--nav-height);
  background: transparent;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.photo-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--photo-width);
  max-width: 100%;
  max-height: var(--photo-max-height);
}

.photo-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: var(--photo-max-height);
  object-fit: contain;
  opacity: 0;
  user-select: none;
  transform: translateZ(0);
  transition: opacity 280ms ease;
}

.photo-image.is-loaded {
  opacity: 1;
}

.photo-counter {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  color: rgba(17, 17, 17, 0.56);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.intro-screen {
  z-index: 60;
  display: flex;
  align-items: center;
  padding: 0 10%;
  background: #000000;
  cursor: pointer;
}

.intro-copy {
  display: flex;
  align-items: baseline;
  gap: 52px;
  transform: translateY(1vh);
}

.intro-copy strong,
.intro-copy span {
  display: block;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0;
}

.intro-copy strong {
  font-weight: 700;
}

.intro-copy span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
}

body:not(.intro-active) .intro-screen {
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.index-panel {
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1fr;
  pointer-events: none;
}

.index-backdrop {
  grid-column: 1;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.84);
  border: 0;
  cursor: pointer;
  pointer-events: auto;
}

.index-sheet {
  grid-column: 2;
  min-width: 0;
  height: 100%;
  padding: 58px 52px 82px;
  overflow: hidden;
  background: #ffffff;
  color: var(--text);
  pointer-events: auto;
}

.index-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 22px;
  margin-bottom: 67px;
}

.index-tab {
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  cursor: default;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.index-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0;
  color: #363636;
}

.index-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  min-height: 22px;
  gap: 24px;
}

.index-row span:last-child {
  text-align: right;
}

.index-spacer {
  height: 28px;
}

.index-link:hover span:last-child {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.thumbs-panel {
  z-index: 45;
  display: block;
  pointer-events: auto;
}

.thumbs-wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(255, 255, 255, 0.9);
}

.thumbs-grid {
  position: absolute;
  top: 85px;
  right: 0;
  bottom: 85px;
  left: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(12, minmax(54px, 1fr));
  align-content: start;
  gap: 32px 30px;
  padding: 15px 7%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.thumb-button {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  opacity: 0.88;
}

.thumb-button.is-active {
  opacity: 0.28;
}

.thumb-button img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: saturate(0.86);
}

.thumbs-footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--nav-height);
  color: rgba(17, 17, 17, 0.78);
}

body.photo-pool-empty .photo-frame::before {
  content: "";
  display: block;
  width: min(72vw, 620px);
  height: min(62vh, 520px);
  border: 1px solid var(--line);
}

@media (max-width: 960px) {
  :root {
    --nav-height: 80px;
    --photo-width: calc(100vw - 42px);
    --photo-max-height: calc(100svh - 150px);
  }

  body {
    font-size: 16px;
  }

  .site-nav {
    top: 0;
    bottom: auto;
    height: var(--nav-height);
    font-size: 16px;
  }

  .thumbs-open .site-nav {
    opacity: 0.18;
  }

  .gallery-surface {
    align-items: center;
    padding: var(--nav-height) 21px 42px;
  }

  .photo-frame {
    width: var(--photo-width);
  }

  .photo-counter {
    font-size: 16px;
  }

  .intro-screen {
    padding: 0 18%;
  }

  .intro-copy {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .intro-copy strong,
  .intro-copy span {
    font-size: 16px;
  }

  .index-panel {
    grid-template-columns: 1fr;
  }

  .index-backdrop {
    display: none;
  }

  .index-sheet {
    grid-column: 1;
    padding: 94px 24px 38px;
    overflow-y: auto;
  }

  .index-tabs {
    justify-content: flex-start;
    margin-bottom: 44px;
  }

  .index-row {
    min-height: 26px;
  }

  .thumbs-grid {
    top: var(--nav-height);
    bottom: 88px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 28px 12px;
    padding: 86px 19px 0;
  }

  .thumbs-footer {
    height: 88px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .gallery-surface {
    padding-top: 80px;
  }

  .thumbs-grid {
    gap: 26px 12px;
  }
}

@media (max-width: 800px) and (orientation: landscape) {
  :root {
    --nav-height: 42px;
    --photo-width: min(42vw, 520px);
    --photo-max-height: calc(100svh - 74px);
  }

  .site-nav {
    height: var(--nav-height);
    font-size: 12px;
  }

  .gallery-surface {
    padding: var(--nav-height) 6% 32px;
  }

  .thumbs-grid {
    top: var(--nav-height);
    bottom: 50px;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 14px;
    padding: 20px 6%;
  }

  .thumbs-footer {
    height: 50px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .photo-image,
  body:not(.intro-active) .intro-screen {
    transition: none;
  }
}
