@font-face {
  font-family: Mondwest;
  src: url("PPMondwest-Regular.otf") format("opentype");
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #101114;
  --text: #f2f4f8;
  --muted: #a4a9b4;
  --lime: #53ffb1;
  --line: #ffffff24;
}
* {
  box-sizing: border-box;
  letter-spacing: 0;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    13px Arial,
    sans-serif;
  overflow: hidden;
}
html, body { width: 100%; height: 100%; overflow: hidden; }
main { position: fixed; inset: 0; overflow: hidden; }
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}
button {
  border: 0;
}
button:disabled {
  opacity: 0.3;
  cursor: default;
}
[hidden] {
  display: none !important;
}
#venue,
#pins {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#venue {
  touch-action: none;
}
#pins {
  pointer-events: none;
  overflow: hidden;
}
.contribute {
  position: fixed;
  top: max(24px, env(safe-area-inset-top));
  right: max(32px, env(safe-area-inset-right));
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 16px;
  color: #092319;
  background: var(--lime);
  border: 1px solid #baffdc66;
  border-radius: 4px;
  box-shadow: 0 4px 20px #0004;
  font-size: 12px;
}
.contribute:hover { background: #8fffc9; }
.mobile-upload-icon { display: none; }
.contribute span {
  font-size: 24px;
}
.intro {
  position: absolute;
  left: 36px;
  top: 54px;
  pointer-events: none;
  z-index: 2;
}
.eyebrow {
  font-size: 10px;
  color: var(--lime);
  margin: 0 0 18px;
}
h1 {
  font-family: Mondwest, Georgia, serif;
  font-size: 68px;
  line-height: 0.92;
  font-weight: 400;
  margin: 0;
}
.summary {
  font-size: 11px;
  color: var(--muted);
  margin-top: 21px;
  max-width: 220px;
  line-height: 1.6;
}
.view-switch {
  position: absolute;
  top: 114px;
  right: 32px;
  display: flex;
  border-bottom: 1px solid var(--line);
  z-index: 4;
  gap: 22px;
}
.view-switch button {
  background: none;
  color: var(--muted);
  height: 44px;
  padding: 0 0 10px;
}
.view-switch button[aria-pressed="true"] {
  color: var(--text);
  border-bottom: 2px solid var(--lime);
}
.scene-tools {
  position: absolute;
  left: 32px;
  bottom: 218px;
  display: flex;
  gap: 4px;
  z-index: 3;
}
.scene-tools button {
  height: 44px;
  width: 44px;
  background: #171920db;
  border: 1px solid var(--line);
  font-size: 23px;
  border-radius: 3px;
}
.scene-tools button:hover {
  background: #30343f;
}
.scene-tools button[aria-pressed="true"] {
  color: var(--lime);
}
#locator {
  position: absolute;
  right: 32px;
  bottom: 218px;
  width: 180px;
  pointer-events: none;
  z-index: 3;
}
.locator-top {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
#location-code {
  color: var(--lime);
}
#minimap {
  width: 150px;
  height: 125px;
  display: block;
  margin: 8px auto;
}
#photographer {
  margin: 0;
  font-size: 12px;
}
#location-caption {
  font-size: 10px;
  color: var(--muted);
  margin: 7px 0 0;
}
.pin {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: auto;
  width: 44px;
  height: 44px;
  background: transparent;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  padding: 0;
  will-change: transform;
}
.pin-dot {
  width: 12px;
  height: 12px;
  border: 1px solid #53ffb1aa;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #102b23f0;
  color: #baffdc;
  font-size: 9px;
  box-shadow: 0 0 0 4px #53ffb110;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
.pin.active .pin-dot,
.pin:hover .pin-dot,
.pin:focus-visible .pin-dot {
  background: var(--lime);
  color: #092319;
  box-shadow: 0 0 0 7px #53ffb124;
}
.pin-label {
  display: none;
  position: absolute;
  bottom: 43px;
  background: #141b20f5;
  border: 1px solid var(--line);
  padding: 8px 12px;
  font-size: 11px;
  width: max-content;
  max-width: 180px;
  overflow-wrap: anywhere;
  text-align: center;
  border-radius: 3px;
}
.pin:hover .pin-label,
.pin:focus-visible .pin-label {
  display: block;
}
.pin::after {
  content: "";
  position: absolute;
  width: 1px;
  height: 13px;
  top: 33px;
  background: #53ffb166;
}
#archive {
  position: absolute;
  bottom: 0;
  left: 32px;
  right: 32px;
  height: 190px;
  border-top: 1px solid var(--line);
  z-index: 4;
  background: #101114e8;
}
.archive-heading {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #c4c9d4;
  font-size: 9px;
}
.archive-heading b {
  color: var(--lime);
  font-weight: 400;
  margin-left: 10px;
}
#archive-note {
  color: #9198a6;
}
#filmstrip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 0 12px;
  scrollbar-color: #656e80 transparent;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}
.memory {
  background: #232630;
  padding: 0;
  text-align: left;
  flex: 0 0 128px;
  min-width: 0;
  position: relative;
  scroll-snap-align: start;
}
.memory img {
  display: block;
  width: 100%;
  height: 88px;
  object-fit: cover;
  filter: saturate(0.72);
  transition: filter 0.18s;
}
.memory:hover img,
.memory.active img {
  filter: saturate(1);
}
.memory.active {
  outline: 1px solid var(--lime);
  outline-offset: 2px;
}
.memory-caption {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  background: var(--bg);
  padding: 9px 0 0;
  font-size: 10px;
  min-height: 28px;
}
.memory-caption span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.memory-caption span:last-child {
  color: #98a5b9;
  font-size: 9px;
}
.placeholder {
  height: 88px;
  display: grid;
  place-items: center;
  color: #a8b2c2;
  background: #242832;
  font-size: 12px;
}
#gallery {
  position: absolute;
  inset: 186px 32px 26px 332px;
  overflow: auto;
  padding: 4px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 24px 16px;
  align-content: start;
  z-index: 3;
  background: #101114;
}
.gallery-mode #archive,
.gallery-mode #pins,
.gallery-mode .scene-tools,
.gallery-mode #locator {
  display: none;
}
.gallery-mode #venue {
  opacity: 0.12;
}
.gallery-mode .intro {
  top: 192px;
}
.gallery-mode h1 {
  font-size: 48px;
}
#gallery .memory {
  width: 100%;
}
#gallery .memory img,
#gallery .placeholder {
  height: auto;
  aspect-ratio: 4/3;
}
#gallery .memory img { object-fit: contain; }
#status {
  position: absolute;
  inset: 45% 0 auto;
  text-align: center;
  color: var(--muted);
  z-index: 6;
  pointer-events: none;
}
#retry {
  pointer-events: auto;
  display: block;
  margin: 15px auto;
  background: var(--lime);
  color: #111;
  padding: 12px 22px;
  border-radius: 3px;
}
dialog {
  padding: 0;
  border: 1px solid #ffffff26;
  background: #171a21;
  color: var(--text);
  width: min(1020px, calc(100% - 40px));
  max-height: calc(100dvh - 40px);
  border-radius: 4px;
  box-shadow: 0 30px 100px #0008;
}
dialog::backdrop {
  background: #080a10eb;
  backdrop-filter: blur(9px);
}
.viewer-top,
.viewer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
  min-height: 60px;
}
.viewer-top {
  border-bottom: 1px solid var(--line);
}
dialog button {
  width: 44px;
  height: 44px;
  background: none;
  font-size: 27px;
}
#viewer-name {
  font-size: 13px;
}
#media {
  position: relative;
  height: min(68dvh, 680px);
  display: grid;
  place-items: center;
  background: #0b0d13;
}
#media img,
#media video {
  display: block;
  width: 100%;
  height: 100%;
  max-height: min(68dvh, 680px);
  object-fit: contain;
}
#media p {
  padding: 24px;
  text-align: center;
  color: var(--muted);
}
.viewer-bottom {
  font-size: 11px;
  color: var(--muted);
}
.viewer-bottom > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
#viewer-count {
  min-width: 42px;
  text-align: center;
}
.webgl-failed #space-tab,
.webgl-failed #pins {
  display: none;
}
@media (min-width: 1600px) {
  .intro {
    top: 64px;
  }
  h1 {
    font-size: 80px;
  }
  #archive {
    height: 210px;
  }
  .memory {
    flex-basis: 160px;
  }
  .memory img,
  .placeholder {
    height: 108px;
  }
  .scene-tools,
  #locator {
    bottom: 240px;
  }
}
@media (max-width: 720px) {
  .contribute {
    top: max(16px, env(safe-area-inset-top));
    right: max(18px, env(safe-area-inset-right));
    min-height: 44px;
    padding: 10px 12px;
    font-size: 11px;
    gap: 8px;
  }
  .intro {
    left: 20px;
    top: 98px;
  }
  h1 {
    font-size: 46px;
  }
  .eyebrow {
    font-size: 9px;
    margin-bottom: 13px;
  }
  .summary {
    font-size: 10px;
    margin-top: 13px;
    max-width: 175px;
  }
  .view-switch {
    right: 18px;
    top: 92px;
    gap: 14px;
    font-size: 10px;
  }
  .view-switch button {
    height: 36px;
  }
  .scene-tools {
    left: 18px;
    bottom: 190px;
    gap: 3px;
  }
  .scene-tools button {
    width: 40px;
    height: 44px;
    font-size: 22px;
  }
  #locator {
    right: 18px;
    bottom: 190px;
    width: 128px;
  }
  .locator-top {
    font-size: 8px;
    padding-bottom: 8px;
  }
  #minimap {
    width: 100px;
    height: 83px;
    margin: 3px auto;
  }
  #photographer {
    font-size: 10px;
  }
  #location-caption {
    font-size: 9px;
    line-height: 1.4;
  }
  #archive {
    left: 18px;
    right: 18px;
    height: 167px;
  }
  .archive-heading {
    height: 35px;
    font-size: 8px;
  }
  #archive-note {
    font-size: 7px;
  }
  .memory {
    flex-basis: 108px;
  }
  .memory img,
  .placeholder {
    height: 76px;
  }
  .memory-caption {
    font-size: 9px;
  }
  #filmstrip {
    gap: 9px;
  }
  #gallery {
    inset: 278px 18px 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }
  .gallery-mode .intro {
    top: 100px;
  }
  .gallery-mode h1 {
    font-size: 46px;
  }
  .viewer-top,
  .viewer-bottom {
    padding: 5px 10px;
  }
  dialog {
    width: calc(100% - 20px);
  }
  #viewer-position {
    max-width: 160px;
    line-height: 1.5;
  }
}
@media (max-height: 650px) and (min-width: 721px) {
  h1 {
    font-size: 46px;
  }
  .intro {
    top: 104px;
  }
  #archive {
    height: 142px;
  }
  .memory img {
    height: 62px;
  }
  .scene-tools,
  #locator {
    bottom: 157px;
  }
  #locator #minimap {
    height: 80px;
    width: 96px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
#leaders {
  position: absolute;
  inset: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
}
.gallery-mode #leaders {
  display: none;
}
.viewer-location {
  gap: 12px !important;
}
#viewer-map {
  width: 72px;
  height: 60px;
  flex-shrink: 0;
}
.pin::after {
  display: none;
}
button svg {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  stroke-width: 1.5;
}
.contribute svg {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  stroke-width: 1.5;
}
@media (min-width: 721px) {
  .gallery-mode #locator {
    display: block;
    left: 36px;
    right: auto;
    bottom: 36px;
  }
  .gallery-mode #gallery {
    padding-bottom: 24px;
  }
}
@media (max-width: 720px) {
  #viewer-map {
    width: 54px;
    height: 45px;
  }
  .viewer-location {
    gap: 6px !important;
  }
  .viewer-bottom > div {
    gap: 2px;
  }
  .viewer-bottom {
    font-size: 10px;
  }
  #viewer-position {
    max-width: 122px;
  }
  .scene-tools button {
    width: 44px;
  }
}
.pin.cluster .pin-dot {
  width: 26px;
  height: 26px;
  font-size: 10px;
}
.pin.active, .pin:hover, .pin:focus-visible { z-index: 2; }
.pin-label { pointer-events: none; }
.viewer-actions { display: flex; flex-shrink: 0; }
#viewer-name, #photographer, #location-caption { overflow-wrap: anywhere; min-width: 0; }
.viewer-top { gap: 12px; }
.media-loading {
  position: absolute;
  inset: 0;
  margin: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: #0b0d13;
}
.media-error { text-align: center; padding: 24px; }
.media-error button, .media-error a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 44px;
  padding: 8px 16px;
  font-size: 13px;
}
.media-error button { color: var(--lime); border: 1px solid var(--line); }
#people-viewer { width: min(420px, calc(100% - 32px)); }
#people-list { padding: 8px 18px 18px; }
#people-list button {
  display: block;
  width: 100%;
  height: auto;
  min-height: 52px;
  text-align: left;
  font-size: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
#people-list button:hover { color: var(--lime); }
#share-fallback { display: block; padding: 12px 18px; font-size: 12px; }
#share-url { display: block; width: 100%; min-height: 44px; margin-top: 8px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 720px) {
  .view-switch { display: none; }
  .contribute {
    top: max(16px, env(safe-area-inset-top));
    bottom: auto;
    width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 0;
    gap: 0;
    justify-content: center;
    font-size: 0;
  }
  .contribute .desktop-upload-icon { display: none; }
  .contribute .mobile-upload-icon { display: block; }
  .intro, .gallery-mode .intro { top: max(32px, env(safe-area-inset-top)); width: calc(100% - 88px); }
  .eyebrow { margin-bottom: 8px; }
  h1, .gallery-mode h1 { font-size: 42px; }
  .summary { max-width: 280px; margin-top: 10px; }
  #archive { bottom: env(safe-area-inset-bottom); height: 156px; }
  .scene-tools { bottom: calc(172px + env(safe-area-inset-bottom)); }
  #locator { left: 20px; right: 20px; bottom: calc(228px + env(safe-area-inset-bottom)); width: auto; }
  #locator .locator-top, #locator #minimap { display: none; }
  #photographer { font-size: 11px; }
  #location-caption { font-size: 10px; margin-top: 3px; }
  #gallery { inset: 194px 18px calc(20px + env(safe-area-inset-bottom)); }
  .gallery-mode #locator { display: none; }
  .pin-label { max-width: 130px; }
}
@media (max-width: 720px) and (max-height: 760px) {
  .summary { margin-top: 6px; }
}
@media (max-width: 360px) {
  h1, .gallery-mode h1 { font-size: 36px; }
}
