:root {
  color-scheme: light;
  --paper: #f8f6f1;
  --ink: #25231f;
  --muted: #5b554e;
  --rule: #d8d1c7;
  --photo-ground: #eae6df;
  --focus: #7a4d30;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  line-height: 1.5;
}

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

body, h1, p, figure {
  margin: 0;
}

a, button {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

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

.page {
  width: min(100% - 2 * clamp(20px, 5.25vw, 72px), 1100px);
  margin-inline: auto;
  padding-block: clamp(42px, 7.5vw, 96px) clamp(56px, 9vw, 120px);
}

.intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: clamp(24px, 4vw, 38px);
  margin-bottom: clamp(24px, 4vw, 42px);
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.14em;
}

h1 {
  font-size: clamp(1.75rem, 4.8vw, 3.875rem);
  font-weight: 650;
  letter-spacing: -0.06em;
  line-height: 1.15;
  word-break: keep-all;
}

.description {
  margin-top: 13px;
  color: var(--muted);
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  word-break: keep-all;
}

.bundle, .png, .lightbox-actions > * {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  font-size: 0.875rem;
  white-space: nowrap;
}

.bundle {
  border: 1px solid var(--rule);
  padding-inline: 13px;
}

.bundle:hover, .png:hover, .lightbox button:hover, .lightbox-download:hover {
  background-color: var(--photo-ground);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4.25vw, 52px) clamp(20px, 3vw, 38px);
}

.scene--cover {
  grid-column: 1 / -1;
}

.photo {
  display: block;
  background-color: var(--photo-ground);
  cursor: zoom-in;
}

.photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.scene figcaption {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--rule);
}

.scene-name {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  word-break: keep-all;
}

.scene-number, .lightbox-count {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.png {
  padding-inline: 8px;
  color: var(--muted);
}

.lightbox {
  width: min(calc(100% - 32px), 1100px);
  max-height: calc(100% - 32px);
  border: 1px solid var(--rule);
  padding: 0;
  background: var(--paper);
  color: var(--ink);
}

.lightbox::backdrop {
  background: rgb(25 23 20 / 85%);
}

.lightbox-bar, .lightbox-actions {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px clamp(6px, 2.5vw, 20px);
}

.lightbox-caption {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-inline-start: 8px;
  font-size: 0.95rem;
  font-weight: 600;
}

.lightbox-close {
  width: 44px;
  min-height: 44px;
  font-size: 1.625rem;
  line-height: 1;
}

.lightbox-media {
  display: grid;
  height: min(70dvh, 680px);
  place-items: center;
  background-color: #211f1c;
}

.lightbox-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.lightbox-actions > * {
  padding-inline: clamp(6px, 2vw, 12px);
}

@media (max-width: 640px) {
  .intro {
    flex-direction: column;
    align-items: flex-start;
  }

  .gallery {
    grid-template-columns: minmax(0, 1fr);
  }

  .lightbox-media {
    height: min(70dvh, 67vw);
  }
}

@media (max-height: 500px) {
  .lightbox-media {
    height: max(100px, calc(100dvh - 148px));
  }
}
