:root {
  --ink: #17211c;
  --muted: #5f6b65;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --line: #dfe5df;
  --jade: #0f6b58;
  --jade-dark: #0b4d42;
  --cinnabar: #ad392d;
  --gold: #c89b3c;
  --teal-soft: #e7f3ef;
  --red-soft: #f8e7e3;
  --shadow: 0 18px 50px rgba(23, 33, 28, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    "Noto Sans SC", "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

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

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 32px;
  background: rgba(251, 250, 246, 0.94);
  border-bottom: 1px solid rgba(223, 229, 223, 0.88);
  backdrop-filter: blur(18px);
}

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

.brand-logo {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--cinnabar);
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(173, 57, 45, 0.28);
}

.brand-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand-text strong {
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-text small {
  color: var(--jade-dark);
  font-size: 0.76rem;
  font-weight: 600;
}

.site-nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  min-width: 0;
}

.site-nav > a,
.nav-group > button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 11px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.92rem;
  white-space: nowrap;
}

.site-nav > a:hover,
.site-nav > a:focus-visible,
.nav-group > button:hover,
.nav-group > button:focus-visible {
  color: var(--jade-dark);
  background: var(--teal-soft);
  outline: none;
}

.admin-link {
  color: #fff !important;
  background: var(--ink) !important;
}

.nav-group {
  position: relative;
}

.mega-menu {
  position: fixed;
  top: var(--mega-menu-top, 73px);
  left: 50%;
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 20px;
  width: min(760px, calc(100vw - 64px));
  max-height: calc(100vh - var(--mega-menu-top, 73px) - 20px);
  overflow: auto;
  padding: 22px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, 8px);
  pointer-events: none;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.history-menu {
  width: min(880px, calc(100vw - 64px));
}

.compact-menu {
  grid-template-columns: minmax(220px, 1fr);
  width: min(340px, calc(100vw - 64px));
}

.nav-group:hover .mega-menu,
.nav-group:focus-within .mega-menu,
.nav-group.open .mega-menu {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.header-tools {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.site-search {
  display: flex;
  align-items: center;
  width: 174px;
  min-height: 40px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.site-search input {
  min-height: 38px;
  padding: 7px 4px 7px 13px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.88rem;
}

.site-search input:focus {
  outline: none;
  border: 0;
}

.site-search button,
.language-toggle button,
.tool-link {
  display: inline-grid;
  min-width: 38px;
  min-height: 38px;
  place-items: center;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.site-search button {
  color: var(--jade-dark);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.language-toggle {
  display: flex;
  gap: 2px;
  padding: 2px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.language-toggle button {
  min-width: 34px;
  min-height: 34px;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.language-toggle button.active {
  color: #fff;
  background: var(--jade);
}

.tool-link {
  padding: 0 11px;
  color: var(--jade-dark);
  background: #fff;
  border: 1px solid var(--line);
  white-space: nowrap;
}

.whatsapp-link {
  color: #fff;
  background: var(--jade);
  border-color: var(--jade);
}

.mega-menu h3 {
  margin: 0 0 9px;
  color: var(--cinnabar);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.mega-menu a {
  display: block;
  padding: 6px 0;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.35;
}

.mega-menu a:hover,
.mega-menu a:focus-visible {
  color: var(--jade);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  background: var(--ink);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only),
.nav-toggle span:not(.sr-only)::before,
.nav-toggle span:not(.sr-only)::after {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 99px;
  content: "";
}

.nav-toggle span:not(.sr-only)::before {
  transform: translateY(-6px);
}

.nav-toggle span:not(.sr-only)::after {
  transform: translateY(4px);
}

.hero {
  --hero-bg: url("show1.jpg");
  position: relative;
  overflow: hidden;
  min-height: 620px;
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1fr);
  padding: 132px 32px 56px;
  color: #fff;
  background: #14231d;
}

.event-spotlight {
  width: 100%;
  max-width: none;
  padding: 54px max(24px, calc((100vw - 1180px) / 2)) 44px;
  background:
    linear-gradient(90deg, rgba(248, 231, 227, 0.9), rgba(231, 243, 239, 0.96)),
    var(--paper);
  border-bottom: 1px solid var(--line);
}

.spotlight-copy {
  max-width: 760px;
}

.spotlight-copy h1 {
  margin: 0;
  font-size: 3.4rem;
  line-height: 1.06;
  letter-spacing: 0;
}

.spotlight-copy p:not(.eyebrow) {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.spotlight-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 16px 0 14px;
}

.spotlight-arrow {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

.spotlight-track {
  display: grid;
  grid-auto-columns: minmax(320px, 32%);
  grid-auto-flow: column;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 2px 0 14px;
}

.spotlight-track::-webkit-scrollbar {
  height: 8px;
}

.spotlight-track::-webkit-scrollbar-thumb {
  background: rgba(15, 107, 88, 0.35);
  border-radius: 999px;
}

.spotlight-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 398px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(23, 33, 28, 0.08);
  scroll-snap-align: start;
}

.spotlight-card:hover,
.spotlight-card:focus-within {
  border-color: rgba(15, 107, 88, 0.45);
}

.spotlight-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--teal-soft);
}

.spotlight-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.spotlight-card-body {
  display: grid;
  padding: 18px 20px 20px;
}

.spotlight-card .event-meta {
  margin-bottom: 12px;
}

.spotlight-card h2 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.25;
}

.spotlight-card p {
  margin: 10px 0 18px;
  color: var(--muted);
}

.spotlight-card button {
  align-self: end;
  justify-self: start;
  padding: 0;
  color: var(--jade-dark);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10, 17, 14, 0.95) 0%, rgba(10, 17, 14, 0.78) 40%, rgba(10, 17, 14, 0.22) 100%),
    linear-gradient(0deg, rgba(10, 17, 14, 0.42), rgba(10, 17, 14, 0.08));
  content: "";
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slides::before {
  position: absolute;
  inset: -30px;
  background: var(--hero-bg) center / cover no-repeat;
  filter: blur(18px);
  opacity: 0.78;
  transform: scale(1.04);
  content: "";
}

.hero-slides::after {
  position: absolute;
  inset: 0 0 0 auto;
  right: 0;
  z-index: 2;
  width: min(58%, 860px);
  background: url("show2.jpg") left center / auto 100% no-repeat;
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 800ms ease;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.28) 12%, #000 30%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.28) 12%, #000 30%, #000 100%);
}

.hero-slides img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transition: opacity 800ms ease;
}

.hero-slides img.active {
  opacity: 1;
}

.hero-slides img.hero-slide-building {
  transform: scaleX(-1);
}

.hero.hero-building-active .hero-slides::after {
  opacity: 1;
}

.hero-copy,
.hero-facts,
.section,
.today-strip,
.site-footer {
  width: min(1180px, calc(100vw - 48px));
  margin-inline: auto;
}

.hero-copy {
  position: relative;
  z-index: 2;
  margin-inline: auto;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 12px 0 18px;
  font-size: 4.6rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy h1 span {
  display: block;
  margin-top: 10px;
  font-size: 2.25rem;
  font-weight: 600;
}

.hero-copy p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--cinnabar);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd485;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-photo-toggle {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.hero-photo-toggle button {
  width: 38px;
  height: 10px;
  padding: 0;
  background: rgba(255, 255, 255, 0.36);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.hero-photo-toggle button.active {
  background: #ffd485;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button.primary {
  color: #fff;
  background: var(--cinnabar);
  box-shadow: 0 8px 20px rgba(173, 57, 45, 0.28);
}

.button.secondary {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.button.ghost {
  color: var(--jade-dark);
  background: var(--teal-soft);
  border-color: rgba(15, 107, 88, 0.18);
}

.button.danger {
  color: #fff;
  background: var(--cinnabar);
}

.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.hero-facts {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 76px;
}

.hero-facts div {
  min-height: 104px;
  padding: 18px;
  border-left: 3px solid rgba(255, 212, 133, 0.72);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.hero-facts strong {
  display: block;
  font-size: 1.55rem;
}

.hero-facts span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.today-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 34px 0 8px;
}

.today-strip article {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.today-strip span,
.card-kicker,
.story-list span {
  color: var(--jade);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.today-strip strong {
  display: block;
  margin-top: 8px;
  font-size: 1.1rem;
  line-height: 1.35;
}

.today-strip p,
.feature-card p,
.archive-grid p,
.culture-grid p,
.group-row p,
.membership-grid p,
.story-list p,
.timeline p {
  margin: 9px 0 0;
  color: var(--muted);
}

.section {
  padding: 78px 0;
}

.section-intro {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-intro.narrow {
  max-width: 880px;
  margin-inline: auto;
  text-align: center;
}

.section-intro.with-action {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-intro h2,
.split-section h2,
.contact-layout h2 {
  margin: 0;
  font-size: 2.45rem;
  line-height: 1.13;
  letter-spacing: 0;
}

.section-intro p:not(.eyebrow),
.prose p,
.contact-layout p,
.governance-section p,
.temple-section p,
.associations-section p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.feature-grid,
.culture-grid,
.membership-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.culture-grid article,
.membership-grid article,
.story-list article,
.group-row article,
.archive-grid article,
.event-card,
.login-panel,
.event-form,
.admin-recovery-panel,
.admin-list-panel,
.admin-content-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature-card,
.culture-grid article,
.membership-grid article,
.story-list article,
.group-row article,
.archive-grid article {
  padding: 24px;
}

.content-card {
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.content-card:hover,
.content-card:focus-visible {
  border-color: rgba(15, 107, 88, 0.38);
  box-shadow: 0 16px 34px rgba(19, 32, 26, 0.12);
  outline: none;
  transform: translateY(-2px);
}

.feature-card h3,
.culture-grid h3,
.membership-grid h3,
.story-list h3,
.group-row h3,
.archive-grid h3,
.timeline h3 {
  margin: 7px 0 0;
  font-size: 1.28rem;
  line-height: 1.25;
}

.split-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.prose {
  max-width: 780px;
}

.vision-band {
  width: 100%;
  max-width: none;
  padding-inline: max(24px, calc((100vw - 1180px) / 2));
  background: linear-gradient(180deg, #ffffff 0%, var(--teal-soft) 100%);
}

.value-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 900px;
  margin: 28px auto 0;
}

.value-list span,
.filter-button {
  min-height: 40px;
  padding: 8px 14px;
  color: var(--jade-dark);
  background: #fff;
  border: 1px solid rgba(15, 107, 88, 0.18);
  border-radius: 999px;
  font-weight: 700;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.timeline article {
  min-height: 190px;
  padding: 22px;
  background: var(--ink);
  border-radius: var(--radius);
  color: #fff;
}

.timeline time {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 10px;
  color: #fff;
  background: var(--cinnabar);
  border-radius: 999px;
  font-weight: 800;
}

.timeline h3 {
  margin-top: 18px;
}

.timeline p {
  color: rgba(255, 255, 255, 0.74);
}

.archive-band {
  width: 100%;
  max-width: none;
  padding-inline: max(24px, calc((100vw - 1180px) / 2));
  background: #fff;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.story-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.culture-section {
  border-top: 1px solid var(--line);
}

.culture-grid article {
  min-height: 246px;
  display: grid;
  align-content: start;
}

.culture-grid span {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: #fff;
  background: var(--jade);
  border-radius: 50%;
  font-size: 1.3rem;
  font-weight: 800;
}

.culture-grid article:nth-child(2) span {
  background: var(--cinnabar);
}

.culture-grid article:nth-child(3) span {
  background: var(--ink);
}

.culture-grid article:nth-child(4) span {
  background: var(--gold);
}

.group-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.events-section {
  width: 100%;
  max-width: none;
  padding-inline: max(24px, calc((100vw - 1180px) / 2));
  background: var(--teal-soft);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter-button {
  cursor: pointer;
}

.filter-button.active {
  color: #fff;
  background: var(--jade);
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.event-card {
  min-height: 100%;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(15, 107, 88, 0.08);
}

.event-media {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(173, 57, 45, 0.14), rgba(15, 107, 88, 0.18)),
    #f7f1e8;
}

.event-media img,
.event-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.event-media img.legacy-media {
  padding: 18px;
  object-fit: contain;
  background: #fff;
}

.event-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 18px;
  color: var(--jade-dark);
  text-align: center;
  font-weight: 800;
}

.event-document,
.document-preview {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 22px;
  color: var(--jade-dark);
  text-align: center;
}

.event-document span,
.document-preview span {
  padding: 4px 10px;
  color: #fff;
  background: var(--jade);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.event-document strong,
.document-preview strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.event-body {
  padding: 20px;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

.event-meta span {
  padding: 2px 8px;
  background: var(--red-soft);
  border-radius: 999px;
}

.event-body h3 {
  margin: 13px 0 0;
  font-size: 1.25rem;
  line-height: 1.24;
}

.event-body p {
  margin: 9px 0 0;
  color: var(--muted);
}

.event-body a {
  display: inline-flex;
  margin-top: 12px;
  color: var(--jade-dark);
  font-weight: 800;
}

.event-source,
.event-attachment {
  display: inline-flex;
  margin-top: 12px;
  margin-right: 8px;
  padding: 4px 9px;
  color: var(--jade-dark);
  background: var(--teal-soft);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.event-detail-link {
  display: inline-flex;
  width: max-content;
  margin-top: 16px;
  padding: 0;
  color: var(--jade-dark);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 900;
}

.event-detail-link:hover,
.event-detail-link:focus-visible,
.spotlight-card button:hover,
.spotlight-card button:focus-visible {
  text-decoration: underline;
}

body.detail-open,
body.content-detail-open {
  overflow: hidden;
}

.event-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 17, 14, 0.72);
}

.event-detail-overlay[hidden] {
  display: none;
}

.event-detail-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
  width: min(1180px, calc(100vw - 32px));
  height: min(860px, calc(100vh - 32px));
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.event-detail-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: rgba(10, 17, 14, 0.9);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.event-detail-media {
  min-height: 0;
  background:
    linear-gradient(135deg, rgba(173, 57, 45, 0.18), rgba(15, 107, 88, 0.2)),
    #f7f1e8;
}

.event-detail-media > img,
.event-detail-media > video,
.event-detail-media .event-photo-button,
.event-detail-media .event-photo-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.event-detail-media .event-photo-button {
  display: block;
}

.event-detail-content {
  overflow: auto;
  padding: 42px;
}

.event-detail-content h2 {
  margin: 4px 0 14px;
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  line-height: 1.05;
}

.event-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.event-detail-meta span {
  padding: 4px 10px;
  color: var(--jade-dark);
  background: var(--teal-soft);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.event-detail-summary {
  color: var(--ink);
  font-size: 1.04rem;
  font-weight: 700;
}

.event-detail-description {
  color: var(--muted);
  line-height: 1.75;
}

.event-detail-description p {
  margin: 0 0 1em;
}

.event-detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 8px;
  margin-top: 22px;
}

.event-detail-gallery:empty {
  display: none;
}

.event-photo-button,
.event-gallery-item {
  overflow: hidden;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  cursor: zoom-in;
}

.event-gallery-item:focus-visible,
.event-photo-button:focus-visible {
  outline: 3px solid rgba(15, 107, 88, 0.45);
  outline-offset: 3px;
}

.event-detail-gallery img,
.event-detail-gallery video,
.event-gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
}

.event-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.event-detail-actions span {
  color: var(--muted);
  font-size: 0.9rem;
}

.content-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 82;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 17, 14, 0.7);
}

.content-detail-overlay[hidden] {
  display: none;
}

.content-detail-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.42fr) minmax(620px, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1480px, calc(100vw - 56px));
  height: min(860px, calc(100vh - 56px));
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.content-detail-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: rgba(10, 17, 14, 0.9);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.content-detail-heading {
  grid-row: 1 / span 2;
  min-height: 0;
  overflow: auto;
  padding: 46px 40px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(13, 40, 32, 0.96), rgba(15, 107, 88, 0.82)),
    var(--jade-dark);
}

.content-detail-heading .eyebrow {
  color: #ffd485;
}

.content-detail-heading h2 {
  margin: 8px 0 18px;
  color: #fff;
  font-size: clamp(2.1rem, 3.3vw, 3.6rem);
  line-height: 1.04;
}

.content-detail-summary {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.12rem;
  line-height: 1.72;
}

.content-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.content-detail-meta span {
  padding: 5px 10px;
  color: #0b241c;
  background: #d6efe7;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 850;
}

.content-detail-actions {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-self: start;
  padding: 38px 60px 0;
}

.content-detail-body {
  grid-column: 2;
  grid-row: 2;
  min-height: 0;
  overflow-y: auto;
  padding: 30px 60px 50px;
  color: var(--ink);
  font-size: 1.14rem;
  line-height: 1.9;
}

.content-detail-actions:empty {
  display: none;
}

.content-detail-images {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
}

.content-detail-image {
  margin: 0 0 24px;
}

.content-detail-image img {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  background: #f4f7f5;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.content-detail-body p {
  margin: 0 0 1.08em;
}

.content-detail-body p:first-child {
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 760;
}

.photo-viewer {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 30px;
  background: rgba(7, 12, 10, 0.9);
}

.photo-viewer[hidden],
.photo-viewer-nav[hidden] {
  display: none;
}

.photo-viewer img {
  max-width: min(1120px, calc(100vw - 128px));
  max-height: calc(100vh - 92px);
  object-fit: contain;
  background: #111;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.photo-viewer-close,
.photo-viewer-nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(10, 17, 14, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
}

.photo-viewer-close {
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
}

.photo-viewer-nav {
  top: 50%;
  width: 52px;
  height: 52px;
  transform: translateY(-50%);
  font-size: 2.2rem;
}

.photo-viewer-prev {
  left: 22px;
}

.photo-viewer-next {
  right: 22px;
}

.event-search-status {
  min-height: 24px;
  margin: 0 0 16px;
  color: var(--jade-dark);
  font-weight: 800;
}

.event-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.event-pagination button {
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  color: var(--jade-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.event-pagination button.active {
  color: #fff;
  background: var(--jade);
  border-color: var(--jade);
}

.admin-section {
  width: 100%;
  max-width: none;
  padding-inline: max(24px, calc((100vw - 1180px) / 2));
  background: var(--ink);
  color: #fff;
}

.admin-page .admin-section {
  min-height: calc(100vh - 72px);
  padding-top: 64px;
}

.admin-page .site-nav {
  flex: 0 1 auto;
}

.admin-section .eyebrow {
  color: #ffd485;
}

.admin-section .section-intro h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  line-height: 1.08;
}

.admin-section .section-intro p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.68);
}

.admin-gate {
  max-width: 560px;
}

.login-panel,
.event-form,
.admin-recovery-panel,
.admin-list-panel,
.admin-publication-panel,
.admin-document-panel,
.admin-security-panel,
.admin-content-panel {
  padding: 24px;
  color: var(--ink);
}

.login-panel label,
.event-form label,
.publication-form label,
.document-form label,
.security-form label,
.content-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.inline-control {
  display: flex;
  gap: 10px;
}

.inline-control input {
  flex: 1;
}

.field-note {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.45;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfd8d1;
  border-radius: var(--radius);
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--jade);
  outline: 3px solid rgba(15, 107, 88, 0.16);
}

.admin-workspace {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

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

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

.content-form .form-actions,
.content-form .form-status {
  grid-column: 1 / -1;
}

.full-field {
  grid-column: 1 / -1;
}

.media-preview {
  display: grid;
  aspect-ratio: 16 / 7;
  place-items: center;
  margin-top: 16px;
  overflow: hidden;
  color: var(--muted);
  background: #f4f7f5;
  border: 1px dashed #b9c6bf;
  border-radius: var(--radius);
}

.edit-mode-banner {
  display: grid;
  gap: 5px;
  margin-bottom: 16px;
  padding: 14px 16px;
  color: var(--jade-dark);
  background: #e6f4ef;
  border: 1px solid rgba(15, 107, 88, 0.28);
  border-radius: var(--radius);
  font-weight: 800;
}

.edit-mode-banner span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.media-preview img,
.media-preview video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.form-status {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--jade-dark);
  font-weight: 800;
}

.admin-note,
.remote-note {
  display: block;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.admin-list-panel,
.admin-recovery-panel,
.admin-publication-panel,
.admin-document-panel,
.admin-security-panel,
.admin-content-panel {
  min-height: 360px;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 24px;
  color: var(--ink);
}

.admin-toolbar strong,
.admin-toolbar span {
  display: block;
}

.admin-toolbar span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

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

.panel-heading h3 {
  margin: 0;
}

.panel-heading span {
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.admin-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 150px minmax(220px, auto);
  gap: 12px;
  align-items: center;
  min-height: 42px;
  padding: 8px 12px;
  background: #f8faf8;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.admin-item:last-child {
  border-bottom: 0;
}

.admin-item.editing {
  background: #e6f4ef;
  box-shadow: inset 4px 0 0 var(--jade);
}

.admin-item strong {
  overflow: hidden;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-item span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-item button {
  justify-self: start;
  min-height: 34px;
  padding: 0 11px;
  color: #fff;
  background: var(--cinnabar);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-row-actions button[data-edit-event],
.admin-row-actions button[data-move-event] {
  background: var(--jade);
}

.admin-row-actions button[data-delete-event] {
  background: var(--cinnabar);
}

.recovery-admin-list:empty {
  display: none;
}

.recovery-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 150px;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  padding: 9px 12px;
  color: var(--ink);
  background: #f8faf8;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.recovery-item:last-child {
  border-bottom: 0;
}

.recovery-item input {
  width: 18px;
  min-height: 18px;
  margin: 0;
}

.recovery-item strong,
.recovery-item span {
  display: block;
}

.recovery-item span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.publication-form,
.document-form,
.security-form {
  margin-bottom: 18px;
}

.resource-cover-placeholder {
  display: grid;
  place-items: center;
  color: var(--jade-dark);
  background: #eef6f1;
  font-size: 1.2rem;
}

.membership-section {
  background: var(--paper);
}

.demo-pill {
  display: inline-flex;
  margin-top: 16px;
  color: var(--jade-dark);
  font-weight: 800;
}

.resources-section {
  width: 100%;
  max-width: none;
  padding-inline: max(24px, calc((100vw - 1180px) / 2));
  background: #fff;
}

.resource-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 34px 30px;
  align-items: start;
}

.resource-card {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 8px;
  min-height: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  text-align: center;
  font-weight: 800;
}

.resource-cover {
  width: min(100%, 178px);
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 22px rgba(10, 17, 14, 0.12);
}

.resource-card span,
.resource-card em {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.resource-card p {
  display: none;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.resource-card em {
  display: none;
  font-style: normal;
}

.resource-download {
  justify-self: center;
  margin-top: 4px;
  color: var(--jade-dark);
  font-size: 0.86rem;
  font-weight: 850;
}

.media-library {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.media-library article {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.media-library img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-library span {
  display: block;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.contact-section {
  width: 100%;
  max-width: none;
  padding-inline: max(24px, calc((100vw - 1180px) / 2));
  background: var(--jade-dark);
  color: #fff;
}

.contact-section .eyebrow {
  color: #ffd485;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
}

.contact-layout p {
  color: rgba(255, 255, 255, 0.74);
}

.contact-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.contact-list div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-list dt {
  color: rgba(255, 212, 133, 0.95);
  font-weight: 800;
}

.contact-list dd {
  margin: 0;
}

.contact-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 42px;
  color: var(--muted);
}

.site-footer div {
  display: grid;
}

.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.site-footer strong {
  color: var(--ink);
}

.site-footer a {
  color: var(--jade-dark);
  font-weight: 800;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 32px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

@media (max-width: 1400px) {
  .site-header {
    padding-inline: 22px;
    gap: 12px;
  }

  .nav-toggle {
    display: grid;
    order: 4;
  }

  .site-nav {
    position: fixed;
    inset: 72px 16px auto 16px;
    display: none;
    max-height: calc(100vh - 92px);
    overflow: auto;
    align-items: stretch;
    flex-direction: column;
    justify-content: flex-start;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .header-tools {
    order: 3;
    margin-left: auto;
  }

  .site-search {
    width: 142px;
  }

  body.menu-open .site-nav {
    display: flex;
  }

  .site-nav > a,
  .nav-group > button {
    justify-content: flex-start;
    width: 100%;
    border-radius: var(--radius);
  }

  .nav-group {
    width: 100%;
  }

  .mega-menu {
    position: static;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    max-height: 0;
    margin: 0;
    padding: 0 14px;
    overflow: hidden;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    box-shadow: none;
    border: 0;
    background: var(--paper);
  }

  .nav-group.open .mega-menu {
    max-height: 900px;
    padding: 14px;
    margin: 4px 0 10px;
    opacity: 1;
    transform: none;
  }

  .hero-copy h1 {
    font-size: 3.5rem;
  }

  .hero-copy h1 span {
    font-size: 1.75rem;
  }

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

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

@media (max-width: 820px) {
  .site-header {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .site-nav {
    inset: 118px 16px auto 16px;
    max-height: calc(100vh - 138px);
  }

  .header-tools {
    flex: 1 0 100%;
    width: 100%;
    min-width: 0;
    order: 5;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .header-tools::-webkit-scrollbar {
    display: none;
  }

  .brand {
    flex: 1 1 0;
  }

  .nav-toggle {
    margin-left: auto;
  }

  .site-search {
    flex: 1 0 180px;
  }

  .event-spotlight {
    padding: 38px 24px 32px;
  }

  .event-detail-panel {
    grid-template-columns: 1fr;
    width: min(100%, calc(100vw - 20px));
    height: min(760px, calc(100vh - 20px));
  }

  .event-detail-media {
    min-height: 240px;
    height: 34vh;
    max-height: 34vh;
  }

  .event-detail-content {
    padding: 30px 24px;
  }

  .content-detail-panel {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto minmax(0, 1fr);
    width: min(100%, calc(100vw - 20px));
    height: min(820px, calc(100vh - 20px));
  }

  .content-detail-heading {
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
    max-height: 34vh;
    padding: 34px 28px 28px;
  }

  .content-detail-actions {
    grid-column: 1;
    grid-row: 2;
    padding: 28px 28px 0;
  }

  .content-detail-body {
    grid-column: 1;
    grid-row: 3;
    padding: 30px 28px;
  }

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

  .photo-viewer img {
    max-width: calc(100vw - 72px);
  }

  .spotlight-copy h1 {
    font-size: 2.35rem;
  }

  .spotlight-track {
    grid-auto-columns: minmax(272px, 84%);
  }

  .hero {
    min-height: 620px;
    padding: 104px 24px 38px;
  }

  .hero-copy,
  .hero-facts,
  .section,
  .today-strip,
  .site-footer {
    width: min(100% - 32px, 1180px);
  }

  .hero-copy h1 {
    font-size: 2.45rem;
  }

  .hero-copy h1 span {
    font-size: 1.18rem;
  }

  .hero-facts,
  .today-strip,
  .feature-grid,
  .culture-grid,
  .membership-grid,
  .group-row,
  .archive-grid,
  .event-grid,
  .contact-layout,
  .split-section {
    grid-template-columns: 1fr;
  }

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

  .hero-facts {
    margin-top: 42px;
  }

  .section {
    padding: 56px 0;
  }

  .section-intro.with-action {
    align-items: start;
    flex-direction: column;
  }

  .section-intro h2,
  .split-section h2,
  .contact-layout h2 {
    font-size: 1.9rem;
  }

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

  .admin-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
    min-height: 0;
    padding: 10px 12px;
  }

  .admin-item strong,
  .admin-item span {
    white-space: normal;
  }

  .contact-list div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 12px 16px;
  }

  .tool-link {
    padding: 0 10px;
  }

  .language-toggle button {
    min-width: 32px;
  }

  .event-spotlight {
    padding-inline: 16px;
  }

  .spotlight-copy h1 {
    font-size: 2.05rem;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .brand-text small {
    display: none;
  }

  .hero {
    min-height: 580px;
    padding-inline: 16px;
  }

  .hero-copy p {
    font-size: 1rem;
  }

  .hero-actions,
  .form-actions,
  .inline-control,
  .contact-actions,
  .site-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer .footer-links {
    justify-content: flex-start;
  }

  .timeline,
  .story-list,
  .media-library {
    grid-template-columns: 1fr;
  }

  .event-detail-overlay {
    padding: 10px;
  }

  .event-detail-content {
    padding: 26px 18px;
  }

  .event-detail-content h2 {
    font-size: 1.65rem;
  }

  .content-detail-overlay {
    padding: 10px;
  }

  .content-detail-heading {
    padding: 30px 20px 22px;
  }

  .content-detail-heading h2 {
    font-size: 1.9rem;
  }

  .content-detail-actions {
    padding: 22px 20px 0;
  }

  .content-detail-body {
    padding: 24px 20px;
    font-size: 1.06rem;
  }

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

  .photo-viewer {
    padding: 16px;
  }

  .photo-viewer img {
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 118px);
  }

  .photo-viewer-nav {
    top: auto;
    bottom: 18px;
    width: 46px;
    height: 46px;
    transform: none;
  }

  .timeline article {
    min-height: 160px;
  }
}
