/* Романовское барокко — имперская изумрудно-золотая тема */

:root {
  --green-dark: #0b2e23;
  --green: #14453a;
  --green-soft: #1d5c4b;
  --gold: #c9a227;
  --gold-bright: #e3c565;
  --gold-dim: #8a6d1f;
  --ivory: #f7f1df;
  --paper: #fdf9ec;
  --burgundy: #6d1a2d;
  --ink: #241d12;
  --ink-soft: #5f5340;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 19px;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
}

.wrap { max-width: 1220px; margin: 0 auto; padding: 0 28px; }
h1, h2, h3, .brand-title, .deck-name, .year, .pub-title { font-family: var(--serif); }
a { text-underline-offset: .18em; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid var(--burgundy); outline-offset: 3px; }
.site-header :focus-visible, .lightbox :focus-visible { outline-color: var(--gold-bright); }

/* ---------- шапка ---------- */
.site-header {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .25), transparent 30%),
    linear-gradient(180deg, var(--green-dark), var(--green));
  color: var(--ivory);
  border-bottom: 4px double var(--gold);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 14px rgba(11, 46, 35, .45);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 28px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-link, .hero-link { display: inline-block; line-height: 0; }
.brand-link { flex: 0 0 auto; }
.brand > div { min-width: 0; }
.brand-crest {
  display: block;
  width: 72px;
  height: 72px;
  max-width: none;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px double var(--gold);
  padding: 3px;
  box-shadow: 0 0 0 2px rgba(227, 197, 101, .28), 0 2px 8px rgba(0, 0, 0, .3);
  object-fit: contain;
  background: #f5f0e2;
  transition: transform .15s;
}
.brand-link:hover .brand-crest { transform: scale(1.04); }
.brand-title {
  font-size: 1.65rem;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold-bright);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}
.brand-sub {
  font-size: .72rem;
  font-style: italic;
  color: #cfc39a;
  letter-spacing: .04em;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 2px; }
.site-nav a {
  color: var(--ivory);
  text-decoration: none;
  padding: 10px 12px;
  font-size: .88rem;
  letter-spacing: .03em;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.site-nav a:hover { color: var(--gold-bright); border-bottom-color: var(--gold); }
.site-nav a.active { color: var(--gold-bright); border-bottom-color: var(--gold-bright); }
.nav-toggle {
  display: none;
  flex: 0 0 auto;
  background: none;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  font-size: 1.4rem;
  border-radius: 3px;
  min-width: 48px;
  min-height: 48px;
  padding: 2px 12px;
  cursor: pointer;
}

/* ---------- титул страницы ---------- */
.page-title {
  text-align: center;
  margin: 40px 0 8px;
  position: relative;
  padding: 18px 40px;
}
.page-title h1 {
  margin: 0;
  font-size: clamp(2.45rem, 5vw, 3.45rem);
  font-weight: 600;
  color: var(--green-dark);
  letter-spacing: .04em;
}
.page-title .subtitle {
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.05rem;
}
.page-title::before,
.page-title::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  max-width: 70%;
  height: 3px;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
}
.page-title::before { top: 0; }
.page-title::after { bottom: 0; }

/* ---------- орнаментальный разделитель ---------- */
.ornament { display: block; margin: 26px auto; width: 320px; max-width: 80%; height: 26px; }

/* ---------- герой главной ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  align-items: center;
  gap: clamp(22px, 6vw, 76px);
  min-height: 420px;
  padding: 58px clamp(24px, 5vw, 70px);
  margin-top: 28px;
  background: linear-gradient(110deg, #10392e, #0b2e23 72%);
  color: var(--ivory);
  border: 1px solid var(--gold);
  box-shadow: 0 14px 30px rgba(11, 46, 35, .18);
}
.hero .crest-big {
  width: min(100%, 310px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 6px double var(--gold);
  outline: 1px solid var(--gold-bright);
  outline-offset: 7px;
  box-shadow: 0 15px 36px rgba(0, 0, 0, .4);
  object-fit: contain;
  background: #f5f0e2;
}
.hero .motto {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.28;
  color: var(--ivory);
  margin: 14px 0 28px;
}

/* ---------- карточки разделов ---------- */
.deck {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin: 26px 0;
}
.deck a {
  position: relative;
  display: block;
  text-align: center;
  text-decoration: none;
  color: var(--green-dark);
  background: var(--paper);
  border: 1px solid var(--gold-dim);
  outline: 3px double var(--gold);
  outline-offset: -7px;
  padding: 26px 16px;
  transition: transform .15s, box-shadow .15s;
}
.deck a:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(20, 69, 58, .25); }
.deck .deck-name { display: block; font-size: 1.25rem; font-weight: 600; letter-spacing: .05em; }
.deck .deck-hint { display: block; margin-top: 6px; font-size: .84rem; color: var(--ink-soft); }

/* ---------- панели и цели ---------- */
.panel {
  background: var(--paper);
  border: 1px solid var(--gold-dim);
  outline: 3px double var(--gold);
  outline-offset: -7px;
  padding: 26px 32px;
  margin: 22px 0;
}
.panel h2 {
  margin: 0 0 14px;
  font-size: 1.7rem;
  color: var(--green-dark);
  text-align: center;
  letter-spacing: .04em;
}
h2.ruled {
  font-size: 1.7rem;
  color: var(--green-dark);
  text-align: center;
  letter-spacing: .04em;
  margin: 34px 0 18px;
  padding-bottom: 8px;
  border-bottom: 3px double var(--gold);
}

.goals { counter-reset: goal; list-style: none; padding: 0; margin: 0; }
.goals li {
  counter-increment: goal;
  padding: 10px 0 10px 58px;
  position: relative;
  border-bottom: 1px dashed rgba(138, 109, 31, .35);
}
.goals li::before {
  content: counter(goal, upper-roman);
  position: absolute;
  left: 0; top: 8px;
  width: 40px; height: 40px;
  line-height: 40px;
  text-align: center;
  font-size: .95rem;
  font-weight: 600;
  color: var(--gold-bright);
  background: var(--green-dark);
  border: 2px solid var(--gold);
  border-radius: 50%;
}

/* ---------- новости ---------- */
.news-item {
  background: var(--paper);
  border: 1px solid var(--gold-dim);
  border-left: 5px solid var(--gold);
  padding: 20px 26px;
  margin-bottom: 20px;
}
.news-item h3 { margin: 0 0 4px; font-size: 1.65rem; line-height: 1.15; color: var(--burgundy); font-weight: 700; }
.news-item .news-date {
  color: var(--ink-soft);
  font-style: italic;
  font-size: .95rem;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(138, 109, 31, .3);
  padding-bottom: 8px;
}
.news-item .news-body p { text-align: justify; margin: 8px 0; }
.news-item .news-body p:first-child { margin-top: 0; }
.news-item .chron-photo-strip { margin-top: 14px; }
.doc-link a { color: var(--burgundy); }
.doc-link a::before { content: "⬇ "; color: var(--gold-dim); }

/* ---------- хроника ---------- */
.year-block { margin-bottom: 30px; }
.year-block { scroll-margin-top: 130px; }
.year-heading { display: flex; align-items: center; gap: 16px; margin: 30px 0 14px; }
.year-heading .year {
  background: var(--green-dark);
  color: var(--gold-bright);
  border: 2px solid var(--gold);
  border-radius: 50%;
  width: 76px; height: 76px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 600;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(11, 46, 35, .4);
}
.year-heading .year-line { flex: 1; border-top: 3px double var(--gold); }
#chronicle p { text-align: justify; margin: 6px 0; text-indent: 1.6em; }
#chronicle .year-block > .year-body > p:first-of-type { text-indent: 0; }
#chronicle .year-block > .year-body > p:first-of-type::first-letter {
  font-size: 3.1em;
  float: left;
  line-height: .82;
  padding: 4px 8px 0 0;
  color: var(--burgundy);
  font-weight: 600;
}

/* ---------- фото-рамы ---------- */
.frame {
  background: #fff;
  padding: 7px;
  border: 1px solid var(--gold-dim);
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  box-shadow: 0 3px 10px rgba(36, 29, 18, .25);
  cursor: zoom-in;
}
.frame img { display: block; width: 100%; background: #e8e2d2; }

.chron-photo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  margin: 22px 0 26px;
}
.chron-photo-strip figure {
  margin: 0;
  flex: 0 1 360px;
  max-width: 380px;
}
.chron-photo-strip .frame img {
  width: 100%;
  height: auto;
}
.chron-photo-strip figcaption {
  font-size: .84rem;
  color: var(--ink);
  text-align: center;
  line-height: 1.4;
  margin-top: 8px;
}

/* ---------- галерея ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 14px 0 24px; }
.filter-bar button {
  font-family: var(--serif);
  font-size: 1rem;
  background: var(--paper);
  border: 1px solid var(--gold-dim);
  color: var(--green-dark);
  padding: 5px 16px;
  border-radius: 20px;
  cursor: pointer;
  letter-spacing: .03em;
}
.filter-bar button:hover { border-color: var(--gold); }
.filter-bar button.active {
  background: linear-gradient(180deg, var(--green), var(--green-dark));
  color: var(--gold-bright);
  border-color: var(--gold);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 28px 22px;
}
.grid figure { margin: 0; }
.grid .frame img { aspect-ratio: 4 / 3; object-fit: cover; }
.grid figcaption { font-size: .84rem; color: var(--ink); line-height: 1.5; margin-top: 11px; }
.grid .year-badge { color: var(--burgundy); font-weight: 600; margin-right: 5px; }

/* ---------- публикации ---------- */
.pub-item {
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding: 13px 6px;
  border-bottom: 1px dashed rgba(138, 109, 31, .4);
}
.pub-year {
  min-width: 58px;
  color: var(--gold-bright);
  background: linear-gradient(180deg, var(--green), var(--green-dark));
  border: 1px solid var(--gold);
  text-align: center;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
}
.pub-title { font-style: italic; font-size: 1.08rem; }
.pub-authors { color: var(--ink-soft); font-size: .85rem; }

/* ---------- видео ---------- */
.video-box { text-align: center; }
.video-box video {
  width: 100%;
  max-width: 760px;
  border: 3px solid var(--gold);
  background: #000;
}
.video-links { margin-top: 10px; }
.video-links a { color: var(--burgundy); }

/* ---------- правление ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.card {
  background: var(--paper);
  border: 1px solid var(--gold-dim);
  border-top: 4px solid var(--gold);
  padding: 18px 22px;
  text-align: center;
}
.card .card-role {
  color: var(--burgundy);
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.card h3 { margin: 6px 0 10px; font-size: 1.3rem; color: var(--green-dark); font-weight: 600; }
.card a { color: var(--burgundy); }

/* ---------- подвал ---------- */
.site-footer {
  margin-top: 56px;
  background: linear-gradient(180deg, var(--green), var(--green-dark));
  border-top: 4px double var(--gold);
  color: #cfc39a;
  text-align: center;
  padding: 30px 0;
}
.site-footer .footer-title { color: var(--gold-bright); letter-spacing: .06em; }
.site-footer p { margin: 4px 0; }

/* ---------- лайтбокс ---------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(8, 20, 15, .94);
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; text-align: center; }
.lb-figure img {
  max-width: 86vw; max-height: 78vh;
  border: 4px solid var(--gold);
  background: #111;
}
.lb-figure figcaption {
  color: var(--ivory);
  font-size: 1.05rem;
  font-style: italic;
  margin: 14px auto 0;
  max-width: 72vw;
  line-height: 1.5;
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: none; border: none;
  color: var(--gold-bright);
  font-size: 3rem;
  cursor: pointer;
  padding: 10px 20px;
  line-height: 1;
}
.lb-close { top: 10px; right: 16px; font-size: 2.4rem; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { color: #fff; }

img { max-width: 100%; }

/* ---------- адаптив: планшет ---------- */
@media (max-width: 1024px) {
  .brand-title { font-size: 1.3rem; }
  .brand-sub { font-size: .75rem; }
  .site-nav a { padding: 8px 10px; font-size: .98rem; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 22px 18px; }
  .deck { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .panel { padding: 20px 22px; }
}

/* ---------- адаптив: большой телефон ---------- */
@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .header-inner { position: relative; flex-wrap: nowrap; }
  .site-nav { display: none; width: 100%; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; padding: 8px 16px 16px; background: var(--green-dark); border-bottom: 3px double var(--gold); box-shadow: 0 12px 20px rgba(0,0,0,.22); }
  .site-nav.open { display: flex; }
  .site-nav a { min-height: 48px; display: flex; align-items: center; font-size: 1rem; }
  .brand-title { font-size: 1.25rem; }
  .brand-crest { width: 58px; height: 58px; }
  .hero { grid-template-columns: minmax(0, 1fr) 210px; padding: 42px 32px; min-height: 0; }
  .hero .crest-big { width: 190px; }
  .page-title { padding: 14px 20px; margin: 28px 0 6px; }
  .page-title h1 { font-size: 1.9rem; }
  body { font-size: 18px; }
  .panel { padding: 16px; }
  .deck { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px 16px; }
  .year-heading .year { width: 60px; height: 60px; font-size: 1.05rem; }
  .chron-photo-strip figure { flex: 1 1 100%; max-width: 100%; }
  #chronicle p, .news-item .news-body p { text-align: left; text-indent: 0; }
  .goals li { padding-left: 48px; }
  .goals li::before { width: 34px; height: 34px; line-height: 34px; }
  .news-item { padding: 16px; }
  .pub-item { flex-wrap: wrap; gap: 8px; }
  .filter-bar { gap: 6px; }
  .lb-close, .lb-prev, .lb-next { font-size: 2.2rem; padding: 8px 12px; }
  .lb-figure figcaption { max-width: 86vw; font-size: .9rem; }
}

/* ---------- адаптив: маленький телефон ---------- */
@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .brand-sub { display: none; }
  .brand { gap: 8px; }
  .brand-title { font-size: clamp(1rem, 5.8vw, 1.15rem); letter-spacing: 0; }
  .brand-crest { width: 52px; height: 52px; }
  .header-inner { padding: 8px 14px; gap: 8px; }
  .page-title h1 { font-size: 2.25rem; }
  .page-title .subtitle { font-size: 1rem; }
  .hero { display: flex; flex-direction: column-reverse; text-align: center; gap: 22px; padding: 32px 20px; }
  .hero .crest-big { width: 190px; }
  h2.ruled { font-size: 1.35rem; }
  .grid { grid-template-columns: 1fr; gap: 28px; }
  .grid figcaption { font-size: .9rem; }
  .goals li { padding-left: 42px; }
}

/* ---------- обновлённая архивная композиция ---------- */
.page-main { padding-bottom: 18px; }
.hero-copy h1 {
  max-width: 680px;
  margin: 0;
  color: var(--gold-bright);
  font-size: clamp(3rem, 5.4vw, 5.2rem);
  line-height: .95;
  letter-spacing: -.015em;
  font-weight: 600;
}
.hero-eyebrow {
  margin: 0 0 20px;
  color: #eedda8;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid var(--gold-bright);
  color: var(--ivory);
  font-size: .85rem;
  font-weight: 650;
  text-decoration: none;
  transition: transform .2s, background .2s, color .2s;
}
.action-link.primary { color: var(--green-dark); background: var(--gold-bright); }
.action-link:hover { transform: translateY(-2px); background: var(--ivory); color: var(--green-dark); }
.hero-emblem {
  position: relative;
  min-width: 0;
  display: grid;
  place-items: center;
  padding: 0;
  aspect-ratio: 1;
  background: url("../media/heraldic-frame.svg?v=20261016a") center / contain no-repeat;
}
.hero-emblem::before, .hero-emblem::after {
  content: none;
}
.hero .hero-emblem .crest-big {
  position: relative;
  z-index: 1;
  width: 68%;
  border: 2px solid #d8bc76;
  outline: none;
  box-shadow: 0 8px 30px rgba(0,0,0,.3);
}
.ornament { margin: 30px auto; }
.featured { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 40px 0 38px; }
.featured-photo {
  display: block;
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid var(--gold-dim);
  background: var(--green-dark);
  color: white;
  text-decoration: none;
}
.featured-photo img {
  display: block;
  width: 100%;
  height: clamp(300px, 34vw, 420px);
  min-height: 0;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center top;
  background: #0c281f;
  transition: transform .35s;
}
.featured-photo:hover img { transform: scale(1.02); }
.featured-photo-caption {
  position: relative;
  display: block;
  padding: 14px 16px 16px;
  background: #0c281f;
  font-size: .79rem;
  line-height: 1.35;
  font-weight: 600;
}
.featured-photo-caption span { display: block; margin-bottom: 3px; color: var(--gold-bright); font-size: .85rem; }
.panel p { max-width: 78ch; margin-left: auto; margin-right: auto; }
.panel h2, h2.ruled { font-size: 2.1rem; line-height: 1.15; }
.deck a, .news-item, .card { transition: transform .2s, box-shadow .2s; }
.news-item:hover, .card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(20,69,58,.1); }
.news-item a, .doc-link a, .card a, .video-links a { color: var(--burgundy); font-weight: 650; }
.news-item a:hover, .doc-link a:hover, .card a:hover, .video-links a:hover { color: var(--green-dark); }
.news-item[id] { scroll-margin-top: 130px; }
.history-tools {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 26px auto 34px;
  font-size: .85rem;
  font-weight: 650;
}
.history-tools select { min-width: 180px; min-height: 48px; padding: 8px 12px; border: 1px solid var(--gold-dim); background: var(--paper); color: var(--ink); }
.gallery-tools {
  display: grid;
  grid-template-columns: minmax(230px, 1.4fr) minmax(150px, .65fr) minmax(170px, .75fr) auto;
  align-items: end;
  gap: 14px;
  padding: 20px;
  margin: 28px 0 12px;
  border: 1px solid var(--gold-dim);
  background: var(--paper);
}
.gallery-tools label { display: flex; flex-direction: column; gap: 6px; font-size: .77rem; font-weight: 700; color: var(--green-dark); }
.gallery-tools input, .gallery-tools select {
  width: 100%; min-height: 48px; padding: 9px 12px;
  border: 1px solid #837458;
  border-radius: 0;
  background: white;
  color: var(--ink);
  font-size: .85rem;
}
.gallery-tools input::placeholder { color: #6c665a; }
.clear-filters { min-height: 48px; padding: 9px 14px; border: 1px solid var(--green); background: transparent; color: var(--green-dark); font-size: .81rem; font-weight: 650; cursor: pointer; }
.clear-filters:hover { background: var(--green-dark); color: white; }
.clear-filters[hidden] { display: none; }
.section-note { margin: 0 0 22px; color: var(--ink-soft); font-size: .82rem; }
.gallery-empty { grid-column: 1 / -1; padding: 32px 20px; border: 1px dashed var(--gold-dim); text-align: center; }
.photo-trigger { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.photo-trigger img { width: 100%; }
.frame { transition: transform .2s, box-shadow .2s; }
.frame:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(36,29,18,.25); }
.grid .year-badge { display: inline-block; margin-right: 8px; font-size: .78rem; }
.lightbox-open { overflow: hidden; }
.lb-figure { max-width: calc(100vw - 120px); }
.lb-figure img { max-width: 100%; max-height: 70vh; object-fit: contain; }
.lb-counter { margin-top: 10px; color: var(--gold-bright); font-size: .76rem; font-weight: 700; letter-spacing: .1em; }
.lb-figure figcaption { max-width: 70ch; max-height: 16vh; overflow: auto; font-family: var(--body); font-style: normal; font-size: .86rem; }
.lb-close, .lb-prev, .lb-next { min-width: 48px; min-height: 48px; }
@media (max-width: 900px) {
  .gallery-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-tools .search-field { grid-column: 1 / -1; }
  .featured-photo-caption { font-size: .72rem; }
}
@media (max-width: 780px) {
  .hero-emblem { padding: 0; }
  .featured { gap: 10px; }
  .hero-copy h1 { font-size: clamp(2.6rem, 5.8vw, 4rem); }
}
@media (max-width: 600px) {
  .featured { grid-template-columns: 1fr; gap: 14px; }
  .featured-photo { min-height: 210px; }
  .featured-photo img { height: min(112vw, 430px); }
  .featured-photo-caption { font-size: .84rem; }
  .gallery-tools { padding: 16px; }
}
@media (max-width: 480px) {
  .hero-copy h1 { font-size: 2.9rem; }
  .hero .motto { font-size: 1.58rem; margin: 12px 0 20px; }
  .hero-eyebrow { margin-bottom: 14px; }
  .hero-actions { justify-content: center; }
  .action-link { width: 100%; }
  .hero-emblem { width: 235px; max-width: 100%; }
  .panel h2, h2.ruled { font-size: 1.75rem; }
  .gallery-tools { grid-template-columns: 1fr; gap: 12px; }
  .gallery-tools .search-field { grid-column: auto; }
  .history-tools { align-items: stretch; flex-direction: column; }
  .chron-photo-strip figcaption { font-size: .9rem; }
  .lb-figure { max-width: calc(100vw - 34px); padding-bottom: 48px; }
  .lb-figure img { max-height: 58vh; }
  .lb-figure figcaption { max-width: 100%; max-height: 18vh; font-size: .8rem; }
  .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; }
  .lb-prev { left: 24%; }
  .lb-next { right: 24%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
