:root {
  --paper: #eee6da;
  --paper-light: #f7f1e8;
  --paper-deep: #e4d9ca;
  --cream: #fffaf2;
  --ink: #2d2925;
  --muted: #776e65;
  --line: rgba(91, 72, 59, .22);
  --line-soft: rgba(91, 72, 59, .12);
  --accent: #6f5342;
  --accent-light: #9a7a64;
  --dark: #11100f;
  --dark-soft: #191715;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shell: min(1500px, calc(100% - 72px));
}

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

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 300px;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 4%, rgba(255, 255, 255, .48), transparent 28rem),
    radial-gradient(circle at 86% 22%, rgba(127, 96, 75, .035), transparent 25rem),
    repeating-linear-gradient(90deg, rgba(82, 62, 47, .012) 0 1px, transparent 1px 5px),
    linear-gradient(180deg, var(--paper-light) 0, var(--paper) 48%, #e9dfd2 100%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: clip;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(rgba(65, 47, 35, .055) .45px, transparent .45px);
  background-size: 4px 4px;
  content: "";
  opacity: .32;
  pointer-events: none;
}

body.modal-open { overflow: hidden; }
button, input, textarea { font: inherit; }
button { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }

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

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding-block: clamp(70px, 9vh, 130px) clamp(110px, 14vh, 170px);
  overflow: hidden;
}

.hero::after {
  position: absolute;
  right: 2vw;
  bottom: 10vh;
  width: clamp(130px, 15vw, 240px);
  height: clamp(130px, 15vw, 240px);
  border: 1px solid rgba(111, 83, 66, .08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: clamp(22px, 3vw, 52px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  grid-column: 1 / span 7;
  transform: translate3d(0, var(--parallax-y, 0), 0);
  will-change: transform;
}

.eyebrow {
  margin: 0 0 clamp(24px, 4vh, 48px);
  color: var(--accent);
  font-size: clamp(.67rem, .78vw, .78rem);
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
}

h1 {
  max-width: 1050px;
  margin: 0;
  font-family: Iowan Old Style, Baskerville, "Palatino Linotype", Georgia, serif;
  font-size: clamp(4.25rem, 8.5vw, 9rem);
  font-weight: 400;
  letter-spacing: -.065em;
  line-height: .87;
  text-wrap: balance;
}

.subtitle {
  max-width: 510px;
  margin: clamp(30px, 5vh, 56px) 0 0 clamp(6px, 5vw, 82px);
  color: var(--muted);
  font-family: Iowan Old Style, Baskerville, Georgia, serif;
  font-size: clamp(1.05rem, 1.75vw, 1.42rem);
  font-style: italic;
  line-height: 1.45;
}

.hero-photo-wrap {
  position: relative;
  z-index: 1;
  grid-column: 8 / span 5;
  width: min(100%, 560px);
  justify-self: end;
  transform: translate3d(0, var(--parallax-y, 0), 0);
  will-change: transform;
}

.hero-photo-wrap::before {
  position: absolute;
  inset: -22px 22px 22px -22px;
  border: 1px solid rgba(111, 83, 66, .16);
  content: "";
  pointer-events: none;
}

.hero-photo {
  position: relative;
  height: clamp(360px, 56vw, 690px);
  margin: 0;
  overflow: hidden;
  background: linear-gradient(145deg, #ded4c7, #f2eadf);
  box-shadow: 0 30px 80px rgba(57, 42, 31, .14);
}

.hero-photo::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .24);
  content: "";
  pointer-events: none;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 1.2s var(--ease), transform 2s var(--ease);
}

.hero-photo.is-ready img {
  opacity: 1;
  transform: scale(1);
}

.hero-photo-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 40px;
  color: rgba(88, 68, 55, .6);
  font-family: Iowan Old Style, Baskerville, Georgia, serif;
  font-style: italic;
  text-align: center;
}

.hero-photo.is-ready .hero-photo-fallback { display: none; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(26px, 4vh, 48px);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 650;
  letter-spacing: .19em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue::after {
  width: 1px;
  height: 44px;
  background: var(--accent-light);
  content: "";
  opacity: .65;
  transform-origin: top;
  animation: scrollLine 2.2s var(--ease) infinite;
}

.toolbar-wrap {
  position: sticky;
  z-index: 20;
  top: 0;
  border-block: 1px solid var(--line-soft);
  background: rgba(238, 230, 218, .88);
  backdrop-filter: blur(18px) saturate(.8);
}

.toolbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.tabs {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 46px);
}

.tab {
  position: relative;
  min-height: 52px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: Iowan Old Style, Baskerville, Georgia, serif;
  font-size: 1.24rem;
  transition: color .35s ease;
}

.tab::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}

.tab:hover, .tab.active { color: var(--ink); }
.tab.active::after, .tab:hover::after { transform: scaleX(1); transform-origin: left; }

.search {
  position: relative;
  flex: 0 1 360px;
  border-bottom: 1px solid var(--line);
}

.search svg {
  position: absolute;
  top: 50%;
  left: 0;
  width: 17px;
  color: var(--muted);
  pointer-events: none;
  transform: translateY(-50%);
}

.search input {
  width: 100%;
  min-height: 48px;
  padding: 9px 40px 9px 28px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
}

.search input::placeholder { color: #8c8379; }

.search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 1px 0 var(--accent);
}

.clear-search {
  position: absolute;
  top: 50%;
  right: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transform: translateY(-50%);
}

.clear-search:hover { background: rgba(111, 83, 66, .08); }

.search-suggestions {
  position: absolute;
  z-index: 30;
  top: calc(100% + 9px);
  right: 0;
  left: 0;
  max-height: min(420px, 65vh);
  padding: 7px;
  overflow-y: auto;
  border: 1px solid rgba(91, 72, 59, .2);
  border-radius: 3px;
  background: rgba(255, 250, 242, .98);
  box-shadow: 0 20px 52px rgba(54, 40, 30, .2);
  backdrop-filter: blur(18px);
}

.search-suggestion {
  display: grid;
  width: 100%;
  min-height: 57px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 9px 10px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.search-suggestion:last-child { border-bottom: 0; }
.search-suggestion:hover, .search-suggestion.is-active { background: rgba(111, 83, 66, .09); }
.search-suggestion-copy { display: grid; gap: 1px; min-width: 0; }
.search-suggestion-copy strong { overflow: hidden; font: 400 1.04rem Iowan Old Style, Baskerville, Georgia, serif; text-overflow: ellipsis; white-space: nowrap; }
.search-suggestion-copy small { color: var(--muted); font-size: .7rem; }
.search-suggestion-kind {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  font-size: .61rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.content { padding: clamp(70px, 10vw, 150px) 0 150px; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  margin-bottom: clamp(58px, 8vw, 120px);
}

.section-heading {
  margin: 0;
  font-family: Iowan Old Style, Baskerville, "Palatino Linotype", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 5rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1;
}

.result-count {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: .88rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.back-button {
  min-height: 42px;
  padding: 0 0 5px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font-family: Iowan Old Style, Baskerville, Georgia, serif;
  font-size: 1.06rem;
}

.back-button:hover { border-color: var(--accent); }

.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  column-gap: clamp(18px, 2.6vw, 44px);
  row-gap: clamp(80px, 12vw, 190px);
}

.photo-card {
  --parallax-y: 0px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.photo-open-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  text-align: left;
}

.photo-card.layout-0 { grid-column: 1 / span 7; }
.photo-card.layout-1 { grid-column: 9 / span 4; margin-top: clamp(50px, 10vw, 150px); }
.photo-card.layout-2 { grid-column: 2 / span 4; }
.photo-card.layout-3 { grid-column: 7 / span 6; margin-top: clamp(24px, 5vw, 72px); }
.photo-card.layout-4 { grid-column: 1 / span 12; width: 88%; justify-self: center; }
.photo-card.layout-5 { grid-column: 1 / span 5; }
.photo-card.layout-6 { grid-column: 8 / span 4; margin-top: clamp(70px, 12vw, 170px); }
.photo-card.layout-7 { grid-column: 3 / span 8; }
.photo-card.layout-8 { grid-column: 1 / span 4; margin-top: clamp(30px, 6vw, 90px); }
.photo-card.layout-9 { grid-column: 6 / span 7; }

.photo-card.layout-4[data-orientation="portrait"],
.photo-card.layout-7[data-orientation="portrait"] {
  width: auto;
  grid-column: 4 / span 6;
}

.photo-card.reveal {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  transition:
    opacity 1s var(--ease) var(--reveal-delay, 0ms),
    transform 1.25s var(--ease) var(--reveal-delay, 0ms);
}

.photo-card.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.photo-frame {
  position: relative;
  display: block;
  min-height: 160px;
  overflow: hidden;
  background: #ddd3c7;
  box-shadow: 0 18px 48px rgba(54, 40, 30, .11);
  transform: translate3d(0, var(--parallax-y), 0);
  transition: box-shadow .65s var(--ease), transform .18s linear;
  will-change: transform;
}

.photo-frame.is-loaded { min-height: 0; }

.photo-card.physical-photo .photo-frame {
  padding: clamp(6px, .65vw, 10px);
  border: 1px solid rgba(102, 79, 63, .13);
  background: #fdf9f1;
  box-shadow: 0 17px 42px rgba(54, 40, 30, .09);
}

.photo-frame::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .16);
  content: "";
  pointer-events: none;
}

.photo-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transform: scale(1);
  transform-origin: center;
  transition: transform .9s var(--ease);
}

.photo-open-button:hover .photo-frame { box-shadow: 0 28px 68px rgba(54, 40, 30, .17); }
.photo-open-button:hover img { transform: scale(1.035); }

.photo-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: baseline;
  padding-top: 15px;
  color: var(--muted);
}

.photo-date {
  overflow: hidden;
  color: var(--ink);
  font-family: Iowan Old Style, Baskerville, Georgia, serif;
  font-size: clamp(1.02rem, 1.3vw, 1.18rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-place {
  max-width: 22ch;
  overflow: hidden;
  font-size: .78rem;
  letter-spacing: .08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.image-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  min-height: 220px;
  padding: 28px;
  color: var(--muted);
  background: linear-gradient(145deg, #d9cfc2, #eee5d9);
  font-family: Iowan Old Style, Baskerville, Georgia, serif;
  font-style: italic;
  text-align: center;
}

.image-fallback.visible { display: grid; }

.collections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(28px, 5vw, 80px);
}

.collection-card {
  display: grid;
  min-height: 128px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  padding: 30px 0 22px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: padding .45s var(--ease), color .3s ease;
}

.collection-card:hover { padding-left: 12px; color: var(--accent); }

.collection-name {
  overflow-wrap: anywhere;
  font-family: Iowan Old Style, Baskerville, Georgia, serif;
  font-size: clamp(1.3rem, 2.15vw, 1.82rem);
  line-height: 1.15;
}

.collection-count {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 250, 242, .34);
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .06em;
  text-align: right;
  text-transform: uppercase;
  white-space: nowrap;
}

.collection-card:hover .collection-count {
  border-color: var(--accent-light);
  background: rgba(255, 250, 242, .72);
  color: var(--accent);
}

.people-collections {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(44px, 5vw, 82px) clamp(22px, 3vw, 46px);
}

.person-collection-card {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: start;
  align-content: start;
  justify-items: center;
  gap: 0;
  min-height: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  text-align: center;
  transition: color .3s ease, transform .45s var(--ease);
}

.person-collection-card:hover {
  padding-left: 0;
  transform: translateY(-5px);
}

.person-portrait-frame {
  position: relative;
  display: block;
  width: min(100%, 230px);
  min-width: min(100%, 230px);
  max-width: 230px;
  aspect-ratio: 3 / 4;
  justify-self: center;
  overflow: hidden;
  border: clamp(7px, .7vw, 10px) double #9d7a61;
  border-radius: 50%;
  background: linear-gradient(145deg, #d7cbbf, #eee5d9);
  box-shadow:
    inset 0 0 0 2px rgba(255, 248, 238, .82),
    0 18px 34px rgba(54, 40, 30, .16),
    0 0 0 1px rgba(79, 57, 43, .22);
  transition: border-color .35s ease, box-shadow .45s var(--ease), transform .55s var(--ease);
}

.person-portrait-frame::after {
  position: absolute;
  z-index: 3;
  inset: 5px;
  border: 1px solid rgba(255, 248, 238, .68);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.person-collection-card:hover .person-portrait-frame {
  border-color: var(--accent);
  box-shadow:
    inset 0 0 0 2px rgba(255, 248, 238, .9),
    0 25px 48px rgba(54, 40, 30, .22),
    0 0 0 1px rgba(79, 57, 43, .3);
  transform: scale(1.018);
}

.person-portrait-image {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .65s ease;
}

.person-portrait-frame.is-ready .person-portrait-image { opacity: 1; }

.person-portrait-placeholder {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  background:
    radial-gradient(circle at 34% 22%, rgba(255,255,255,.45), transparent 29%),
    linear-gradient(145deg, #d7cbbf, #eee5d9 54%, #c9b9aa);
}

.person-placeholder-head {
  position: absolute;
  top: 23%;
  left: 50%;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(108, 84, 67, .43);
  transform: translateX(-50%);
}

.person-placeholder-body {
  position: absolute;
  right: 18%;
  bottom: -5%;
  left: 18%;
  height: 48%;
  border-radius: 50% 50% 18% 18%;
  background: rgba(108, 84, 67, .43);
}

.person-card-copy {
  display: grid;
  width: 100%;
  min-height: 0;
  justify-items: center;
  gap: 11px;
  padding: 22px 6px 0;
}

.person-card-copy .collection-name {
  display: grid;
  min-height: 2.25em;
  align-items: center;
  font-size: clamp(1.18rem, 1.65vw, 1.55rem);
  line-height: 1.1;
  text-align: center;
}

.person-card-copy .collection-count {
  min-height: 32px;
  padding: 6px 12px;
  text-align: center;
}

.identify-person-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid rgba(111, 83, 66, .38);
  border-radius: 3px;
  background: #fffdf8;
  box-shadow: 0 9px 24px rgba(54, 40, 30, .1);
  color: #352d28;
  cursor: pointer;
  font-size: .84rem;
  font-weight: 720;
  line-height: 1.25;
  text-align: center;
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s var(--ease);
}

.identify-person-button:hover {
  border-color: var(--accent);
  box-shadow: 0 13px 30px rgba(54, 40, 30, .16);
  transform: translateY(-2px);
}

.identify-person-button--card { margin-top: 17px; }

.places-map {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 52px);
  border: 1px solid rgba(111, 83, 66, .28);
  border-radius: 3px;
  overflow: hidden;
  background-color: var(--dark);
  background-image:
    radial-gradient(circle at 35% 24%, rgba(111, 83, 66, .24), transparent 38%),
    linear-gradient(145deg, var(--dark-soft), var(--dark) 72%);
  box-shadow: 0 32px 80px rgba(54, 40, 30, .17);
  color: var(--cream);
}

.places-map::before {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(238, 230, 218, .065) .5px, transparent .5px);
  background-size: 5px 5px;
  content: "";
  opacity: .34;
  pointer-events: none;
}

.places-map-heading {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(154, 122, 100, .36);
}

.places-map-title {
  margin: 0;
  font-family: Iowan Old Style, Baskerville, Georgia, serif;
  font-size: clamp(1.8rem, 3.4vw, 3.4rem);
  font-weight: 400;
}

.places-map-hint {
  margin: 0;
  color: #a99d91;
  font-size: clamp(.7rem, 1vw, .84rem);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.places-map-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 20px auto 0;
}

.places-map-geography {
  position: absolute;
  z-index: 1;
  top: 2%;
  left: 50%;
  height: 96%;
  aspect-ratio: 1000 / 1280;
  transform: translateX(-50%);
}

.places-map-svg,
.places-map-markers {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-country {
  fill: #342d27;
  stroke: #7d6a5c;
  stroke-linejoin: round;
  stroke-width: 1.35;
  vector-effect: non-scaling-stroke;
}

.map-country:nth-child(even) {
  fill: #2c2722;
}

.places-map-connectors,
.places-map-labels {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.places-map-connectors {
  z-index: 2;
  overflow: visible;
  pointer-events: none;
}

.map-connector {
  stroke: #bca896;
  stroke-linecap: round;
  stroke-width: 1.15;
  vector-effect: non-scaling-stroke;
}

.map-connector--compact {
  display: none;
}

.places-map-labels {
  z-index: 4;
  pointer-events: none;
}

.place-pin-marker {
  position: absolute;
  z-index: 3;
  top: var(--map-y);
  left: var(--map-x);
  width: 19px;
  height: 19px;
  padding: 0;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 5px 14px rgba(0, 0, 0, .5);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform .28s var(--ease), box-shadow .28s ease;
}

.place-pin-marker::after {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--cream);
  content: "";
}

.place-pin-marker:hover,
.place-pin-marker:focus-visible {
  z-index: 5;
  box-shadow: 0 7px 19px rgba(0, 0, 0, .65);
  transform: translate(-50%, -50%) scale(1.25);
}

.place-pin-label {
  position: absolute;
  top: var(--label-y);
  left: var(--label-x);
  display: inline-flex;
  min-height: 37px;
  align-items: center;
  gap: 13px;
  padding: 7px 13px;
  border: 1px solid var(--accent-light);
  border-radius: 999px;
  background: rgba(17, 16, 15, .95);
  color: var(--cream);
  cursor: pointer;
  font-family: Iowan Old Style, Baskerville, Georgia, serif;
  font-size: clamp(.82rem, 1.35vw, 1.18rem);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  pointer-events: auto;
  transform: translateY(-50%);
  transition: color .25s ease, background .25s ease, border-color .25s ease, transform .25s var(--ease);
  backdrop-filter: blur(7px);
}

.place-pin-label--left {
  transform: translate(-100%, -50%);
}

.place-pin-label strong {
  min-width: 1.15em;
  color: var(--paper);
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: .84em;
  font-weight: 800;
  text-align: center;
}

.place-pin-label:hover {
  border-color: var(--paper);
  background: var(--dark-soft);
  color: #fff;
}

.place-pin-label--left:hover {
  transform: translate(-100%, -50%) scale(1.035);
}

.place-pin-label--right:hover {
  transform: translateY(-50%) scale(1.035);
}

.unmapped-places {
  margin-top: 72px;
}

.years-block + .years-block { margin-top: 82px; }

.years-label {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.year-chips { display: flex; flex-wrap: wrap; gap: 10px 28px; }

.year-chip {
  min-width: 78px;
  min-height: 46px;
  padding: 6px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font-family: Iowan Old Style, Baskerville, Georgia, serif;
  font-size: 1.28rem;
}

.year-chip:hover { border-color: var(--accent); color: var(--accent); }
.year-chip small { margin-left: 7px; color: var(--muted); font: .76rem Inter, sans-serif; }

.state {
  display: grid;
  min-height: 46vh;
  place-items: center;
  padding: 70px 20px;
  color: var(--muted);
  text-align: center;
}

.state-inner { max-width: 540px; }

.spinner {
  width: 38px;
  height: 38px;
  margin: 0 auto 24px;
  border: 1px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.state h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font: 400 clamp(1.55rem, 3vw, 2.2rem) Iowan Old Style, Baskerville, Georgia, serif;
}

.state p { margin: 0; }
.technical-hint { margin-top: 14px !important; font-size: .82rem; }
.sentinel { height: 2px; margin-top: 40px; }

.modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: stretch;
  background: rgba(10, 9, 8, 0);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease, background .35s ease;
}

.modal.is-open {
  background: rgba(10, 9, 8, .985);
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop { position: absolute; inset: 0; }

.modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  min-height: 100dvh;
  grid-template-columns: minmax(0, 1fr) clamp(280px, 25vw, 390px);
  overflow: hidden;
  background: var(--dark);
  transform: translate3d(0, 14px, 0);
  transition: transform .55s var(--ease);
}

.modal.is-open .modal-panel { transform: translate3d(0, 0, 0); }

.modal-visual {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 100dvh;
  place-items: center;
  padding: clamp(60px, 7vw, 110px);
  overflow: hidden;
  background: #0d0c0b;
}

.modal-photo {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - clamp(120px, 14vw, 220px));
  object-fit: contain;
  opacity: 1;
  user-select: none;
  transition: opacity .28s ease;
  -webkit-user-drag: none;
}

.modal-photo.is-switching { opacity: 0; }

.modal-details {
  min-height: 100dvh;
  overflow-y: auto;
  padding: clamp(92px, 10vh, 130px) clamp(30px, 3.2vw, 52px) 50px;
  border-left: 1px solid rgba(255, 255, 255, .08);
  background: var(--dark-soft);
  color: #e8e1d8;
}

.modal-close {
  position: absolute;
  z-index: 4;
  top: 22px;
  right: 22px;
}

.icon-button {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
  background: rgba(20, 18, 16, .42);
  color: #f7f2eb;
  cursor: pointer;
  font-size: 1.1rem;
  backdrop-filter: blur(8px);
  transition: background .3s ease, border-color .3s ease;
}

.icon-button:hover { border-color: rgba(255, 255, 255, .6); background: rgba(28, 25, 22, .84); }

.modal-nav {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
}

.modal-prev { left: 20px; }
.modal-next { right: 20px; }

.detail-kicker {
  margin: 0 0 18px;
  color: #aa9382;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.detail-title {
  margin: 0 0 44px;
  color: #f5efe7;
  font-family: Iowan Old Style, Baskerville, Georgia, serif;
  font-size: clamp(1.85rem, 3vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -.03em;
  line-height: 1.08;
}

.detail-list { margin: 0; }

.detail-row {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, .11);
}

.detail-row dt {
  margin-bottom: 7px;
  color: #9f958b;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.detail-row dd {
  margin: 0;
  color: #ddd6cd;
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.person-link {
  color: #eee4d9;
  text-decoration-color: rgba(238, 228, 217, .42);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color .25s ease, text-decoration-color .25s ease;
}

.person-link:hover {
  color: #fffaf2;
  text-decoration-color: #c5a991;
}

.person-link:focus-visible {
  border-radius: 2px;
  outline: 2px solid rgba(255, 255, 255, .72);
  outline-offset: 4px;
}

.identify-person-button--modal {
  width: 100%;
  margin-top: 30px;
  border-color: rgba(255, 255, 255, .7);
  background: var(--cream);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .28);
}

.modal-position { margin: 34px 0 0; color: #8d847b; font-size: .7rem; letter-spacing: .1em; }

.identification-modal {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 54px);
  background: rgba(12, 10, 9, 0);
  opacity: 0;
  pointer-events: none;
  transition: opacity .26s ease, background .26s ease;
}

.identification-modal.is-open {
  background: rgba(12, 10, 9, .88);
  opacity: 1;
  pointer-events: auto;
}

.identification-backdrop { position: absolute; inset: 0; }

.identification-panel {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(940px, 100%);
  max-height: calc(100dvh - clamp(36px, 8vw, 108px));
  grid-template-columns: minmax(260px, .82fr) minmax(360px, 1.18fr);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 4px;
  background: var(--paper-light);
  box-shadow: 0 36px 90px rgba(0, 0, 0, .44);
  transform: translateY(18px) scale(.985);
  transition: transform .38s var(--ease);
}

.identification-modal.is-open .identification-panel { transform: translateY(0) scale(1); }

.identification-close {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(45, 41, 37, .2);
  border-radius: 50%;
  background: rgba(255, 250, 242, .9);
  cursor: pointer;
  font-size: 1.25rem;
}

.identification-preview {
  position: relative;
  display: grid;
  min-height: 100%;
  align-content: center;
  padding: clamp(24px, 4vw, 48px);
  background: var(--dark-soft);
  color: #d8cfc5;
}

.identification-preview img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .35);
}

.identification-photo-reference {
  margin: 18px 0 0;
  color: #a99e94;
  font-size: .7rem;
  letter-spacing: .05em;
  line-height: 1.55;
}

.identification-content { padding: clamp(42px, 6vw, 72px) clamp(28px, 5vw, 64px) 46px; }
.identification-content .detail-kicker { color: var(--accent); }
.identification-content h2 {
  margin: 0;
  font: 400 clamp(2rem, 4vw, 3.35rem)/1 Iowan Old Style, Baskerville, Georgia, serif;
  letter-spacing: -.04em;
}

.identification-intro { margin: 20px 0 30px; color: var(--muted); font-size: .92rem; }
.identification-content form { display: grid; gap: 17px; }

.form-field { display: grid; gap: 7px; }
.form-field > span { color: var(--ink); font-size: .78rem; font-weight: 700; letter-spacing: .04em; }
.form-field small { color: var(--muted); font-weight: 500; }
.form-field input, .form-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(91, 72, 59, .27);
  border-radius: 2px;
  outline: 0;
  background: rgba(255, 253, 248, .82);
  color: var(--ink);
  resize: vertical;
}

.form-field textarea { min-height: 92px; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(111, 83, 66, .1); }

.form-honeypot {
  position: fixed;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.identification-status { min-height: 21px; margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.identification-status.is-error { color: #8a3e32; }
.identification-status.is-success { color: #356344; font-weight: 650; }

.identification-submit {
  min-height: 50px;
  padding: 11px 20px;
  border: 1px solid var(--accent);
  border-radius: 3px;
  background: var(--accent);
  color: var(--cream);
  cursor: pointer;
  font-weight: 720;
  transition: background .3s ease, transform .3s var(--ease);
}

.identification-submit:hover { background: #594235; transform: translateY(-1px); }
.identification-submit:disabled { cursor: wait; opacity: .62; transform: none; }

.footer {
  padding: 0 20px 42px;
  color: var(--muted);
  font-family: Iowan Old Style, Baskerville, Georgia, serif;
  font-size: .82rem;
  font-style: italic;
  text-align: center;
}

.photo-open-button:focus-visible,
.collection-card:focus-visible,
.place-pin-marker:focus-visible,
.year-chip:focus-visible,
.tab:focus-visible,
.icon-button:focus-visible,
.back-button:focus-visible,
.clear-search:focus-visible,
.search-suggestion:focus-visible,
.identify-person-button:focus-visible,
.identification-close:focus-visible,
.identification-submit:focus-visible,
.search input:focus-visible,
.scroll-cue:focus-visible {
  outline: 2px solid rgba(111, 83, 66, .55);
  outline-offset: 5px;
}

.modal .icon-button:focus-visible { outline-color: rgba(255, 255, 255, .72); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes scrollLine {
  0%, 100% { opacity: .25; transform: scaleY(.45); }
  50% { opacity: .8; transform: scaleY(1); }
}

@media (max-width: 1050px) {
  :root { --shell: min(100% - 44px, 1500px); }
  .hero-copy { grid-column: 1 / span 7; }
  .hero-photo-wrap { grid-column: 8 / span 5; }
  .collections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modal-panel { grid-template-columns: minmax(0, 1fr) 320px; }
}

@media (max-width: 800px) {
  :root { --shell: min(100% - 30px, 1500px); }

  .hero {
    min-height: auto;
    padding-block: 78px 115px;
  }

  .hero-inner { gap: 60px 18px; }
  .hero-copy { grid-column: 1 / -1; }
  h1 { max-width: 690px; font-size: clamp(4rem, 15vw, 7rem); }
  .subtitle { margin-left: 0; }
  .hero-photo-wrap { grid-column: 3 / span 9; width: 100%; }
  .hero-photo-wrap::before { inset: -14px 14px 14px -14px; }
  .hero-photo { height: min(112vw, 680px); }
  .scroll-cue { bottom: 28px; }

  .toolbar { min-height: 0; align-items: stretch; flex-direction: column; gap: 8px; padding: 10px 0 12px; }
  .tabs { justify-content: space-between; gap: 16px; }
  .tab { min-height: 44px; font-size: 1.08rem; }
  .search { flex-basis: auto; max-width: none; }
  .search input { min-height: 42px; }

  .content { padding-top: 78px; }
  .section-head { margin-bottom: 64px; }

  .gallery { grid-template-columns: 1fr; row-gap: 74px; }
  .photo-card,
  .photo-card.layout-0,
  .photo-card.layout-1,
  .photo-card.layout-2,
  .photo-card.layout-3,
  .photo-card.layout-4,
  .photo-card.layout-5,
  .photo-card.layout-6,
  .photo-card.layout-7,
  .photo-card.layout-8,
  .photo-card.layout-9,
  .photo-card.layout-4[data-orientation="portrait"],
  .photo-card.layout-7[data-orientation="portrait"] {
    width: 100%;
    margin-top: 0;
    grid-column: 1;
  }

  .photo-card.layout-1,
  .photo-card.layout-5,
  .photo-card.layout-8 { width: 84%; justify-self: start; }

  .photo-card.layout-2,
  .photo-card.layout-6 { width: 84%; justify-self: end; }

  .photo-frame { transform: none !important; transition: box-shadow .55s var(--ease); }
  .photo-meta { padding-top: 12px; }

  .places-map-stage { aspect-ratio: 2 / 3; }
  .places-map-geography { top: 3%; height: 80%; }
  .map-connector--desktop { display: none; }
  .map-connector--compact { display: block; }
  .place-pin-label {
    top: var(--label-compact-y);
    left: var(--label-compact-x);
  }

  .modal-panel {
    min-height: 100dvh;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(58dvh, 1fr) auto;
    overflow-y: auto;
  }

  .modal-visual { min-height: 58dvh; padding: 70px 22px 48px; }
  .modal-photo { max-height: calc(58dvh - 100px); }
  .modal-details { min-height: 0; padding: 38px 24px 50px; border-top: 1px solid rgba(255, 255, 255, .08); border-left: 0; }
  .modal-close { position: fixed; top: 14px; right: 14px; }
  .modal-prev { left: 10px; }
  .modal-next { right: 10px; }

  .identification-panel { grid-template-columns: 1fr; }
  .identification-preview { min-height: 260px; padding: 34px 58px 26px; }
  .identification-preview img { max-height: 34dvh; }
  .identification-photo-reference { margin-top: 12px; }
}

@media (max-width: 540px) {
  :root { --shell: min(100% - 22px, 1500px); }
  .hero { padding-top: 58px; }
  .eyebrow { margin-bottom: 26px; font-size: .62rem; }
  h1 { font-size: clamp(3.8rem, 20vw, 5.8rem); }
  .subtitle { margin-top: 26px; font-size: 1.03rem; }
  .hero-photo-wrap { grid-column: 2 / span 11; }
  .hero-photo { height: 116vw; }
  .scroll-cue span { display: none; }

  .tabs { gap: 9px; }
  .tab { font-size: .98rem; }
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .section-heading { font-size: clamp(2.5rem, 13vw, 4rem); }
  .back-button { justify-self: start; }

  .gallery { row-gap: 60px; }
  .photo-card.layout-1,
  .photo-card.layout-2,
  .photo-card.layout-5,
  .photo-card.layout-6,
  .photo-card.layout-8 { width: 92%; }
  .photo-meta { grid-template-columns: 1fr; gap: 3px; }
  .photo-place { max-width: 100%; }

  .collections { grid-template-columns: 1fr; }
  .collection-card { min-height: 105px; }
  .person-collection-card { min-height: 0; }
  .person-portrait-frame { width: min(78vw, 270px); }
  .person-card-copy { min-height: 0; padding: 18px 8px 0; }
  .identify-person-button--card { width: 100%; }

  .places-map { padding: 20px 12px 24px; }
  .places-map-heading { display: block; padding-inline: 8px; }
  .places-map-hint { margin-top: 7px; font-size: .62rem; }
  .places-map-stage { width: 100%; margin-top: 18px; }
  .place-pin-marker { width: 16px; height: 16px; border-width: 2px; }
  .place-pin-marker::after { inset: 4px; }
  .place-pin-label {
    min-height: 29px;
    gap: 6px;
    padding: 5px 7px;
    font-size: clamp(.56rem, 2.45vw, .68rem);
  }

  .modal-visual { min-height: 54dvh; }
  .modal-photo { max-height: calc(54dvh - 90px); }
  .icon-button { width: 40px; height: 40px; }
  .detail-title { margin-bottom: 34px; }

  .identification-modal { padding: 9px; }
  .identification-panel { max-height: calc(100dvh - 18px); }
  .identification-preview { min-height: 210px; padding: 28px 44px 22px; }
  .identification-preview img { max-height: 30dvh; }
  .identification-content { padding: 34px 20px 30px; }
  .identification-close { top: 9px; right: 9px; }
}

@media (hover: none) {
  .photo-open-button:hover img { transform: none; }
  .photo-open-button:hover .photo-frame { box-shadow: 0 18px 48px rgba(54, 40, 30, .11); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .hero-copy, .hero-photo-wrap, .photo-frame { transform: none !important; }
  .photo-card.reveal { opacity: 1 !important; transform: none !important; }
}
