:root {
  color-scheme: dark;
  --bg: #090b0a;
  --bg-soft: #10120f;
  --bg-panel: #151611;
  --line: rgba(240, 230, 215, 0.13);
  --line-strong: rgba(240, 230, 215, 0.26);
  --text: #f6f0e7;
  --muted: #a8a197;
  --faint: #746f66;
  --warm: #d7a36d;
  --terracotta: #d96b43;
  --green: #6d8a7a;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  --max: 1440px;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

body.light {
  color-scheme: light;
  --bg: #f1ede4;
  --bg-soft: #e7dfd2;
  --bg-panel: #fffaf0;
  --line: rgba(46, 36, 27, 0.14);
  --line-strong: rgba(46, 36, 27, 0.28);
  --text: #211d19;
  --muted: #685f55;
  --faint: #8a7b6b;
  --shadow: 0 22px 60px rgba(61, 44, 26, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 25% 0%, rgba(109, 138, 122, 0.15), transparent 34rem),
    radial-gradient(circle at 86% 18%, rgba(217, 107, 67, 0.1), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  z-index: 30;
  inset: 0 0 auto 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 4vw, 60px);
  min-height: 82px;
  padding: 18px clamp(20px, 4vw, 54px);
  color: #fffaf2;
  transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.site-header.scrolled,
body.admin-mode .site-header {
  background: rgba(9, 11, 10, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  flex: 0 0 auto;
  font-size: clamp(2rem, 3vw, 2.65rem);
  line-height: 1;
  letter-spacing: 0;
}

.brand-copy {
  color: currentColor;
  font-size: 0.73rem;
  line-height: 1.35;
  letter-spacing: 0.24em;
}

.main-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(18px, 3vw, 48px);
  min-width: 0;
}

.main-nav a,
.site-footer nav a,
.text-command,
.ghost-link {
  color: rgba(255, 250, 242, 0.72);
  font-size: 0.73rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 160ms ease;
}

body.light .main-nav a,
body.light .site-footer nav a,
body.light .text-command,
body.light .ghost-link {
  color: rgba(33, 29, 25, 0.72);
}

.main-nav a:hover,
.site-footer nav a:hover,
.text-command:hover,
.ghost-link:hover {
  color: var(--text);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: currentColor;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease, color 160ms ease;
}

.icon-button svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.5;
}

.icon-button:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.mobile-only {
  display: none;
}

.site-shell {
  background: var(--bg);
}

.section-band {
  position: relative;
  padding-inline: clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
}

.hero {
  display: grid;
  align-items: center;
  min-height: min(760px, 78svh);
  padding-top: 96px;
  overflow: hidden;
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background:
    linear-gradient(90deg, rgba(3, 4, 4, 0.82) 0%, rgba(3, 4, 4, 0.42) 44%, rgba(3, 4, 4, 0.18) 100%),
    var(--hero-image, linear-gradient(135deg, #20231e, #090b0a));
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
  transition: opacity 260ms ease;
}

.hero-shade {
  background:
    linear-gradient(180deg, rgba(9, 11, 10, 0.1), rgba(9, 11, 10, 0.42) 72%, var(--bg) 100%),
    radial-gradient(circle at 78% 20%, rgba(215, 163, 109, 0.18), transparent 28rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
  margin-left: clamp(0px, 6vw, 86px);
}

.hero h1,
.section-heading h2,
.map-copy h2,
.story-copy h2,
.about-copy h2,
.admin-header h1,
.lock-card h2,
.modal-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 690px;
  font-size: clamp(3.65rem, 7.8vw, 8.6rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-lead {
  margin: 26px 0 0;
  max-width: 520px;
  color: rgba(255, 250, 242, 0.78);
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
}

.line-button,
.text-command {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.line-button {
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.line-button svg,
.text-command svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.6;
}

.line-button:hover {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
  transform: translateY(-1px);
}

.hero-index {
  position: absolute;
  z-index: 2;
  left: clamp(20px, 4vw, 54px);
  top: 30%;
  display: grid;
  justify-items: center;
  gap: 14px;
  color: rgba(255, 250, 242, 0.78);
  font-size: 0.78rem;
}

.hero-line {
  width: 1px;
  height: 230px;
  background: rgba(255, 250, 242, 0.55);
}

.hero-controls {
  position: absolute;
  z-index: 3;
  right: clamp(20px, 4vw, 54px);
  bottom: 58px;
  display: inline-flex;
  gap: 12px;
  color: rgba(255, 250, 242, 0.78);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), 100%);
  margin: 0 auto 28px;
}

.section-heading h2,
.map-copy h2,
.story-copy h2,
.about-copy h2 {
  font-size: clamp(2rem, 3.2vw, 3.35rem);
  line-height: 1.04;
}

.collections {
  padding-top: clamp(44px, 6vw, 74px);
  padding-bottom: clamp(46px, 7vw, 84px);
  background:
    linear-gradient(180deg, rgba(9, 11, 10, 0), rgba(14, 16, 13, 0.86)),
    var(--bg);
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.album-card,
.photo-card,
.story-thumb,
.admin-item {
  position: relative;
  overflow: hidden;
  background: #161812;
}

.album-card {
  isolation: isolate;
  display: flex;
  align-items: end;
  min-height: clamp(210px, 20vw, 290px);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, filter 180ms ease;
}

.album-card::after,
.photo-card::after,
.story-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 20%, rgba(0, 0, 0, 0.74) 100%);
}

.album-card:hover,
.album-card.active {
  border-color: rgba(215, 163, 109, 0.75);
  transform: translateY(-3px);
  filter: saturate(1.06);
}

.album-card img,
.photo-card img,
.story-thumb img,
.about-portrait img,
.admin-item img,
.modal-copy + img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.album-card img,
.photo-card img,
.story-thumb img {
  position: absolute;
  inset: 0;
}

.album-info,
.photo-info,
.story-thumb span {
  position: relative;
  z-index: 2;
}

.album-info {
  width: 100%;
  padding: 20px;
}

.album-info h3,
.photo-info h3 {
  margin: 0 0 5px;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.1;
}

.album-info p,
.photo-info p {
  margin: 0;
  color: rgba(255, 250, 242, 0.72);
  font-size: 0.78rem;
}

.map-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.3fr) minmax(0, 0.7fr);
  gap: clamp(28px, 5vw, 84px);
  align-items: center;
  min-height: 500px;
  padding-top: clamp(44px, 7vw, 92px);
  padding-bottom: clamp(44px, 7vw, 92px);
  background: #0b0e0d;
}

.map-copy {
  width: min(340px, 100%);
  justify-self: end;
}

.map-copy p:not(.eyebrow),
.story-copy p:not(.eyebrow),
.about-copy p {
  color: var(--muted);
}

.map-copy .line-button {
  margin-top: 22px;
}

.map-board {
  position: relative;
  min-height: clamp(360px, 35vw, 540px);
  overflow: hidden;
  border-left: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(11, 14, 13, 0.25), rgba(11, 14, 13, 0.02)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 620'%3E%3Cg fill='%23efe6d8' fill-opacity='.2'%3E%3Cellipse cx='220' cy='220' rx='150' ry='82'/%3E%3Cellipse cx='310' cy='385' rx='78' ry='142' transform='rotate(-18 310 385)'/%3E%3Cpath d='M454 188c66-64 173-83 260-54 38 13 72 7 111 10 58 5 113 39 143 86 25 39 17 85-24 101-35 14-75 2-109 19-48 25-46 82-91 111-43 28-102 12-129-31-21-33-17-78-50-104-37-29-93-8-125-42-25-27-14-62 14-96z'/%3E%3Cpath d='M552 327c41 34 79 72 82 129 3 62-34 116-76 145-50-32-71-87-64-146 5-43 24-74 58-128z'/%3E%3Cpath d='M829 270c39-25 83-19 122 2 42 22 79 22 122 26 43 4 78 30 91 69-44 24-100 17-143 6-44-12-78-1-120-8-53-9-85-45-72-95z'/%3E%3Cellipse cx='955' cy='458' rx='115' ry='54' transform='rotate(-8 955 458)'/%3E%3Cellipse cx='174' cy='128' rx='68' ry='34'/%3E%3Cellipse cx='450' cy='92' rx='58' ry='25'/%3E%3Cellipse cx='617' cy='92' rx='88' ry='28'/%3E%3C/g%3E%3Cg stroke='%23efe6d8' stroke-opacity='.08' fill='none'%3E%3Cpath d='M0 310h1200M600 0v620M120 0v620M360 0v620M840 0v620M1080 0v620'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(circle at 60% 42%, rgba(215, 163, 109, 0.16), transparent 18rem);
  background-position: center, center, center;
  background-repeat: no-repeat;
  background-size: cover, min(96%, 1080px) auto, cover;
}

.map-board::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 14, 13, 0.86), rgba(11, 14, 13, 0.14) 45%, rgba(11, 14, 13, 0.72)),
    radial-gradient(circle at 60% 42%, rgba(215, 163, 109, 0.12), transparent 18rem);
}

.map-pin {
  position: absolute;
  z-index: 2;
  left: var(--x);
  top: var(--y);
  display: grid;
  grid-template-columns: auto minmax(90px, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 128px;
  transform: translate(-16px, -16px);
  color: #fffaf2;
}

.map-pin::before {
  content: "";
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 250, 242, 0.75);
  border-radius: 50%;
  background: radial-gradient(circle, #fff8ec 0 16%, var(--warm) 17% 34%, rgba(215, 163, 109, 0.26) 35% 100%);
  box-shadow: 0 0 0 8px rgba(215, 163, 109, 0.14), 0 0 34px rgba(215, 163, 109, 0.78);
}

.map-pin strong {
  display: block;
  font-size: 0.84rem;
}

.map-pin span {
  display: block;
  color: rgba(255, 250, 242, 0.64);
  font-size: 0.74rem;
}

.story-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.22fr) minmax(0, 0.78fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding-top: 28px;
  padding-bottom: 28px;
  background: var(--bg-soft);
}

.story-copy {
  width: min(320px, 100%);
  justify-self: end;
}

.story-strip {
  display: grid;
  grid-template-columns: 1.65fr repeat(4, 0.54fr);
  gap: 10px;
  min-height: clamp(250px, 21vw, 330px);
}

.story-thumb {
  min-width: 0;
  min-height: 250px;
}

.story-thumb:first-child {
  min-height: 310px;
}

.story-thumb span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  color: rgba(255, 250, 242, 0.78);
  font-size: 0.75rem;
  opacity: 0;
  transition: opacity 160ms ease;
}

.story-thumb:hover span {
  opacity: 1;
}

.gallery-section {
  padding-top: clamp(44px, 6vw, 76px);
  padding-bottom: clamp(50px, 7vw, 92px);
  background: var(--bg);
}

.section-heading.compact {
  align-items: center;
}

.filter-row {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.chip {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 680;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.chip.active,
.chip:hover {
  border-color: rgba(215, 163, 109, 0.72);
  background: rgba(215, 163, 109, 0.12);
  color: var(--text);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.photo-card {
  isolation: isolate;
  min-height: clamp(250px, 25vw, 420px);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease;
}

.photo-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.photo-info {
  position: absolute;
  inset: auto 0 0;
  padding: 18px;
}

.photo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.photo-tags span {
  padding: 4px 8px;
  border: 1px solid rgba(255, 250, 242, 0.18);
  color: rgba(255, 250, 242, 0.68);
  font-size: 0.68rem;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.22fr) minmax(260px, 0.34fr) minmax(320px, 0.44fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding-top: clamp(38px, 6vw, 74px);
  padding-bottom: clamp(38px, 6vw, 74px);
  background: var(--bg-soft);
}

.about-portrait {
  width: min(330px, 100%);
  aspect-ratio: 4 / 3.5;
  margin: 0;
  overflow: hidden;
  background: #151611;
  filter: grayscale(1);
}

.about-copy {
  max-width: 560px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(90px, 1fr));
  gap: 10px;
}

.stats-grid article {
  display: grid;
  align-content: center;
  min-height: 154px;
  padding: 18px;
  border-left: 1px solid var(--line);
}

.stats-grid svg {
  width: 28px;
  height: 28px;
  margin-bottom: 18px;
  color: var(--text);
  stroke-width: 1.35;
}

.stats-grid strong {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.4vw, 2.7rem);
  font-weight: 400;
  line-height: 1;
}

.stats-grid span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.site-footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 24px clamp(20px, 4vw, 54px);
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.site-footer nav {
  display: flex;
  justify-content: flex-end;
  gap: clamp(16px, 3vw, 44px);
}

.admin-shell {
  display: none;
  min-height: 100svh;
  padding: 112px clamp(18px, 4vw, 54px) 54px;
  background:
    radial-gradient(circle at 80% 8%, rgba(217, 107, 67, 0.13), transparent 32rem),
    var(--bg);
}

body.admin-mode .site-shell,
body.admin-mode .site-footer {
  display: none;
}

body.admin-mode .admin-shell {
  display: block;
}

.admin-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--max), 100%);
  margin: 0 auto 28px;
}

.admin-header h1 {
  font-size: clamp(2.4rem, 5vw, 5.4rem);
  line-height: 0.95;
}

.admin-lock {
  display: grid;
  place-items: center;
  min-height: 56svh;
}

.lock-card,
.admin-panel {
  border: 1px solid var(--line);
  background: rgba(21, 22, 17, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

body.light .lock-card,
body.light .admin-panel {
  background: rgba(255, 250, 240, 0.86);
}

.lock-card {
  display: grid;
  gap: 18px;
  width: min(420px, 100%);
  padding: 30px;
}

.lock-card > svg {
  width: 34px;
  height: 34px;
  color: var(--warm);
  stroke-width: 1.35;
}

.lock-card label,
.photo-form label,
.author-fields label {
  display: grid;
  gap: 8px;
}

.lock-card label span,
.photo-form label span,
.author-fields label span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  outline: none;
  padding: 10px 12px;
  transition: border-color 160ms ease, background 160ms ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(215, 163, 109, 0.75);
  background: rgba(255, 255, 255, 0.07);
}

select option {
  color: #1b1712;
}

.admin-workspace {
  display: grid;
  grid-template-columns: minmax(250px, 0.85fr) minmax(320px, 1.15fr) minmax(320px, 1.2fr);
  gap: 14px;
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.admin-panel {
  min-width: 0;
  padding: 20px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.panel-title h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
}

.panel-actions {
  display: inline-flex;
  gap: 6px;
}

.file-command {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.file-command input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.author-editor {
  display: grid;
  gap: 14px;
}

.author-fields {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
}

.photo-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.wide {
  grid-column: 1 / -1;
}

.check-row {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border: 1px solid var(--line);
  padding: 0 12px;
}

.check-row input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--warm);
}

.check-row span {
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.upload-preview {
  grid-column: 1 / -1;
  display: none;
  min-height: 220px;
  border: 1px solid var(--line);
  background-position: center;
  background-size: cover;
}

.upload-preview.has-image {
  display: block;
}

.admin-list {
  display: grid;
  gap: 10px;
  max-height: 690px;
  overflow: auto;
  padding-right: 4px;
}

.admin-item {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 100px;
  border: 1px solid var(--line);
}

.admin-item img {
  width: 94px;
  height: 100px;
}

.admin-item h3 {
  margin: 0 0 4px;
  font-size: 0.96rem;
}

.admin-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.admin-item-actions {
  display: inline-flex;
  padding-right: 8px;
}

.photo-modal {
  width: min(1120px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  padding: 0;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow);
}

.photo-modal::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
}

.photo-modal[open] {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(280px, 0.32fr);
}

.photo-modal img {
  width: 100%;
  height: min(78svh, 760px);
  object-fit: cover;
  background: #111;
}

.modal-close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
}

.modal-copy {
  display: grid;
  align-content: end;
  gap: 12px;
  min-height: 360px;
  padding: clamp(24px, 4vw, 44px);
}

.modal-copy h2 {
  font-size: clamp(2rem, 3vw, 3.4rem);
  line-height: 1;
}

.modal-copy p {
  margin: 0;
  color: var(--muted);
}

.empty-state {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 220px;
  border: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1180px) {
  .album-grid,
  .photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .about-section,
  .admin-workspace {
    grid-template-columns: 1fr 1fr;
  }

  .stats-grid {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .site-header {
    min-height: 72px;
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .mobile-only {
    display: inline-grid;
  }

  .main-nav {
    position: fixed;
    inset: 72px 0 auto;
    display: none;
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 16px 20px 22px;
    border-bottom: 1px solid var(--line);
    background: rgba(9, 11, 10, 0.96);
    backdrop-filter: blur(18px);
  }

  body.light .main-nav {
    background: rgba(241, 237, 228, 0.96);
  }

  body.nav-open .main-nav {
    display: grid;
  }

  .main-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .hero {
    min-height: 76svh;
    padding-top: 86px;
  }

  .hero-content {
    margin-left: 0;
  }

  .hero-index {
    display: none;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 6.1rem);
  }

  .section-heading,
  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .map-section,
  .story-section,
  .about-section,
  .admin-workspace {
    grid-template-columns: 1fr;
  }

  .map-copy,
  .story-copy {
    width: 100%;
    justify-self: start;
  }

  .map-board {
    border-left: 0;
    min-height: 420px;
  }

  .story-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-thumb:first-child {
    grid-column: 1 / -1;
  }

  .photo-modal[open] {
    grid-template-columns: 1fr;
  }

  .photo-modal img {
    height: 52svh;
  }

  .modal-copy {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .brand-copy {
    display: none;
  }

  .hero-controls {
    bottom: 22px;
  }

  .hero-lead {
    max-width: 330px;
  }

  .album-grid,
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .album-card,
  .photo-card {
    min-height: 280px;
  }

  .filter-row {
    justify-content: flex-start;
  }

  .story-strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }

  .story-thumb {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }

  .story-thumb:first-child {
    min-height: 250px;
  }

  .stats-grid,
  .photo-form {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .site-footer nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .admin-item {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .admin-item img {
    width: 82px;
  }

  .admin-item-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    padding: 0 8px 8px;
  }
}
