@font-face {
  font-family: "Gowun Batang Local";
  src: url("../fonts/gowun-batang-korean-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

@font-face {
  font-family: "Gowun Batang Local";
  src: url("../fonts/gowun-batang-korean-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: block;
}

@font-face {
  font-family: "Noto Serif KR Heading";
  src: url("../fonts/NotoSerifKR-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: block;
}

:root {
  --deep: #071630;
  --midnight: #0a2455;
  --royal: #0c4b94;
  --light-blue: #38bdeb;
  --sky: #74ddff;
  --warm: #f1c675;
  --bg: #f5f8fc;
  --paper: #ffffff;
  --ink: #172033;
  --muted: #66758a;
  --line: #dce6f1;
  --danger: #b42318;
  --ok: #147a3c;
  --shadow: 0 18px 42px rgba(7, 22, 48, 0.12);
  --serif: "Gowun Batang Local", "Malgun Gothic", serif;
  --sans: "Malgun Gothic", Arial, sans-serif;
  --display: "Malgun Gothic", Arial, sans-serif;
  --hero-title: "Gowun Batang Local", "Malgun Gothic", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
}

body.adminBody {
  background: #eef3f9;
}

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

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

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

button {
  cursor: pointer;
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

:focus-visible {
  outline: 3px solid rgba(56, 189, 235, 0.7);
  outline-offset: 3px;
}

.skipLink {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--deep);
  border-radius: 6px;
  transform: translateY(-140%);
}

.skipLink:focus {
  transform: translateY(0);
}

.siteHeader {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 220ms ease, border-color 220ms ease, color 220ms ease;
  color: #ffffff;
  border-bottom: 1px solid transparent;
}

.siteHeader.isScrolled,
.siteHeader.siteHeader--solid {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: rgba(10, 36, 85, 0.1);
  backdrop-filter: blur(14px);
}

.siteHeader__inner,
.sectionInner,
.footerInner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.siteHeader__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.brandMark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.brandMark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(2.65);
}

.isScrolled .brandMark,
.siteHeader--solid .brandMark {
  border-color: rgba(10, 36, 85, 0.2);
}

.brandText {
  display: grid;
  line-height: 1.15;
}

.brandText small {
  font-size: 11px;
  letter-spacing: 0.12em;
  opacity: 0.75;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  font-weight: 800;
}

.nav a {
  opacity: 0.9;
  transition: color 180ms ease, opacity 180ms ease;
}

.nav a:hover {
  opacity: 1;
  color: var(--warm);
}

.menuButton {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: transparent;
  color: inherit;
}

.hero {
  min-height: 92vh;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 18%, rgba(56, 189, 235, 0.2), transparent 30%),
    radial-gradient(circle at 78% 42%, rgba(241, 198, 117, 0.18), transparent 26%),
    linear-gradient(135deg, #061226 0%, #082452 52%, #071630 100%);
}

.hero::before {
  content: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: -30% -24%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.64;
  background:
    radial-gradient(ellipse at 24% 38%, rgba(58, 192, 214, 0.22), transparent 43%),
    radial-gradient(ellipse at 58% 24%, rgba(98, 129, 214, 0.18), transparent 42%),
    radial-gradient(ellipse at 76% 54%, rgba(241, 198, 117, 0.13), transparent 40%),
    linear-gradient(105deg, transparent 12%, rgba(85, 197, 211, 0.1) 36%, transparent 62%);
  filter: blur(34px);
  transform: translate3d(-1%, 1%, 0) scale(1.04) rotate(-3deg);
  animation: heroAuroraVeil 34s ease-in-out infinite alternate;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  min-height: 92vh;
  margin: 0 auto;
  display: grid;
  grid-template-areas:
    "copy scene"
    "homecoming homecoming";
  grid-template-columns: minmax(0, 1fr) 360px;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 72px;
  padding: 112px 0 80px;
}

.heroCopy {
  grid-area: copy;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--royal);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--warm);
  font-size: 16px;
  letter-spacing: 0.2em;
}

.hero h1,
.sectionTitle,
.pageTitle,
.detailHero h1 {
  font-family: var(--serif);
  letter-spacing: 0;
}

.hero h1 {
  margin: 0;
  font-family: "Noto Serif KR Heading", "Malgun Gothic", serif;
  font-weight: 600;
  font-size: clamp(3.25rem, 7vw, 6.75rem);
  line-height: 1.06;
}

.ctaInvite__copy .sectionTitle {
  font-family: "Noto Serif KR Heading", "Malgun Gothic", serif;
  font-weight: 600;
}

.hero h1 span {
  display: block;
}

.heroLead {
  margin: 24px 0 0;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
  line-height: 1.8;
  word-break: keep-all;
  overflow-wrap: normal;
}

.verse {
  margin: 20px 0 0;
  max-width: 620px;
  padding-left: 16px;
  border-left: 2px solid rgba(241, 198, 117, 0.72);
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.85;
}

.buttonRow {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button,
.ghostButton,
.smallButton {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  font-weight: 900;
  border: 1px solid transparent;
  padding: 0 18px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.button {
  background: var(--warm);
  color: #06152e;
  box-shadow: 0 10px 22px rgba(241, 198, 117, 0.18);
}

.ghostButton {
  border-color: rgba(255, 255, 255, 0.42);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.ghostButton--dark {
  border-color: rgba(10, 36, 85, 0.18);
  color: var(--deep);
  background: var(--paper);
}

.button:hover,
.smallButton:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(241, 198, 117, 0.28);
  background: #ffd883;
}

.ghostButton:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
}

.ghostButton--dark:hover {
  border-color: rgba(12, 75, 148, 0.32);
  color: var(--royal);
  background: #f8fbff;
  box-shadow: 0 14px 28px rgba(7, 22, 48, 0.1);
}

.button:active,
.ghostButton:active,
.smallButton:active {
  transform: translateY(-1px);
}

.heroScene {
  grid-area: scene;
  position: relative;
  min-height: 420px;
  display: grid;
  align-content: center;
  justify-items: end;
}

.heroHomecoming {
  grid-area: homecoming;
  justify-self: center;
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  margin-top: 12px;
  color: #ffd77d;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-shadow: 0 4px 22px rgba(241, 198, 117, 0.3);
  transition: color 180ms ease, text-shadow 180ms ease, transform 180ms ease;
  animation: heroHomecomingGlow 5.8s ease-in-out infinite;
}

.heroHomecoming strong {
  font-family: var(--sans);
  font-size: 1.1em;
  letter-spacing: 0.1em;
}

.heroHomecoming:hover {
  color: #fff4d7;
  transform: translateY(-2px);
}

@keyframes heroHomecomingGlow {
  0%,
  100% {
    text-shadow: 0 4px 18px rgba(241, 198, 117, 0.2);
  }
  50% {
    text-shadow: 0 4px 30px rgba(255, 215, 125, 0.5), 0 0 12px rgba(255, 215, 125, 0.26);
  }
}

.anniversaryVisual {
  position: relative;
  width: min(380px, 100%);
  min-height: 380px;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: visible;
}

.anniversaryRipple {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(
    circle,
    transparent 67%,
    rgba(241, 198, 117, 0.2) 70%,
    rgba(116, 221, 255, 0.12) 73%,
    transparent 78%
  );
  filter: blur(0.25px);
  transform: scale(0.9);
  animation: anniversaryRipple 8.8s ease-out infinite;
  will-change: transform, opacity;
}

.anniversaryRipple--2 {
  background: radial-gradient(
    circle,
    transparent 68%,
    rgba(116, 221, 255, 0.14) 71%,
    rgba(241, 198, 117, 0.12) 74%,
    transparent 79%
  );
  animation-delay: 2.9s;
}

.anniversaryRipple--3 {
  background: radial-gradient(
    circle,
    transparent 69%,
    rgba(255, 255, 255, 0.12) 72%,
    rgba(241, 198, 117, 0.1) 75%,
    transparent 80%
  );
  animation-delay: 5.8s;
}

.anniversaryLogoImage {
  display: grid;
  place-items: center;
  overflow: hidden;
}

.anniversaryLogoImage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.anniversaryLogoImage--hero {
  width: min(330px, 100%);
  aspect-ratio: 1 / 1;
  padding: 22px;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    #faf7f0 0 58%,
    rgba(250, 247, 240, 0.94) 67%,
    rgba(250, 247, 240, 0.5) 76%,
    rgba(250, 247, 240, 0) 100%
  );
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.14);
}

.anniversaryLogoImage--hero img {
  transform: scale(2.7);
}

.heroLine {
  width: min(330px, 100%);
  height: 1px;
  margin: 30px 0 18px;
  background: linear-gradient(90deg, transparent, rgba(241, 198, 117, 0.65), transparent);
}

.heroSideText {
  width: min(360px, 100%);
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 17px;
  line-height: 1.8;
  text-align: center;
}

@keyframes anniversaryRipple {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  16% {
    opacity: 0.36;
  }
  64% {
    opacity: 0.12;
  }
  100% {
    opacity: 0;
    transform: scale(1.24);
  }
}

@keyframes heroAuroraVeil {
  0% {
    opacity: 0.46;
    transform: translate3d(-2.5%, 1.2%, 0) scale(1.03) rotate(-3deg);
  }
  50% {
    opacity: 0.68;
    transform: translate3d(0.8%, -0.8%, 0) scale(1.08) rotate(1deg);
  }
  100% {
    opacity: 0.52;
    transform: translate3d(2.2%, -1.4%, 0) scale(1.05) rotate(3deg);
  }
}

main {
  background: var(--bg);
}

.section {
  padding: 88px 0;
}

.section[id] {
  scroll-margin-top: 88px;
}

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

.section--events {
  background: #f3f7fb;
}

.section--navy {
  background: var(--deep);
  color: #ffffff;
}

.section--blue {
  color: #ffffff;
  background: linear-gradient(135deg, var(--midnight), var(--royal));
}

.section--invite {
  background:
    radial-gradient(circle at 72% 26%, rgba(241, 198, 117, 0.16), transparent 28%),
    linear-gradient(135deg, var(--midnight), var(--royal));
}

.ctaInvite {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  align-items: center;
  gap: 56px;
}

.ctaInvite__copy {
  max-width: 820px;
}

.ctaInvite__card {
  padding: 30px;
  border: 1px solid rgba(194, 147, 93, 0.66);
  border-radius: 8px;
  color: var(--deep);
  text-align: center;
  background: #faf7f0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.anniversaryLogoImage--card {
  width: min(100%, 266px);
  aspect-ratio: 1.38 / 1;
  margin: 0 auto;
}

.anniversaryLogoImage--card img {
  transform: scale(2.45);
}

.ctaInvite__message {
  width: min(100%, 240px);
  margin: 14px auto 22px;
  padding: 13px 0;
  border-top: 1px solid rgba(151, 110, 65, 0.28);
  border-bottom: 1px solid rgba(151, 110, 65, 0.28);
  color: #674b2d;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.75;
}

.section--invite .eyebrow {
  color: var(--warm);
  font-size: 15px;
}

.section--invite .sectionTitle {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.12;
}

.section--invite .sectionDescription {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.section--invite .button {
  display: inline-flex;
  flex: none;
}

.sectionHead {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 34px;
}

.sectionTitle,
.pageTitle {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.15;
}

.section--navy .sectionTitle,
.section--blue .sectionTitle {
  color: #ffffff;
}

.sectionDescription {
  max-width: 660px;
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section--navy .sectionDescription,
.section--blue .sectionDescription {
  color: rgba(255, 255, 255, 0.72);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 34px;
}

.stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.stat strong {
  display: inline;
  flex: none;
  color: var(--royal);
  font-size: 28px;
}

.splitGrid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 44px;
  align-items: center;
}

.videoShell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #081a38;
  box-shadow: var(--shadow);
}

.videoPending {
  min-height: 280px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: #ffffff;
  background:
    radial-gradient(circle at 50% 42%, rgba(241, 198, 117, 0.45), transparent 24%),
    linear-gradient(145deg, #0a2455, #071630);
}

.videoPending strong {
  color: var(--warm);
  letter-spacing: 0.18em;
}

.videoThumb {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  color: #ffffff;
  border: 0;
  width: 100%;
  background:
    linear-gradient(135deg, rgba(7, 22, 48, 0.25), rgba(12, 75, 148, 0.5)),
    radial-gradient(circle at 50% 42%, rgba(241, 198, 117, 0.45), transparent 24%),
    linear-gradient(145deg, #0a2455, #071630);
}

.playIcon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--warm);
  color: var(--deep);
  font-size: 24px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.25);
}

.videoShell iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

.cardGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.eventCard,
.albumCard,
.adminCard,
.timelinePanel,
.detailBlock {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.eventCard,
.albumCard {
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.eventCard:hover,
.albumCard:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.albumCard__visual {
  aspect-ratio: 2 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--muted);
  background: #f4f4f1;
}

.albumCard__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.imagePlaceholder {
  position: relative;
  min-height: 190px;
  display: flex;
  align-items: end;
  overflow: hidden;
  padding: 14px;
  color: #ffffff;
  background:
    linear-gradient(150deg, rgba(7, 22, 48, 0.15), rgba(7, 22, 48, 0.55)),
    radial-gradient(circle at 78% 20%, rgba(241, 198, 117, 0.45), transparent 22%),
    linear-gradient(135deg, #4a87bc, #0a2455 64%, #071630);
}

.imagePlaceholder__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.imagePlaceholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 22, 48, 0.72), rgba(7, 22, 48, 0.08));
  pointer-events: none;
}

.imagePlaceholder > span {
  position: relative;
  z-index: 1;
}

.eventCard .imagePlaceholder {
  min-height: 0;
  aspect-ratio: 2 / 1;
}

.eventCard .imagePlaceholder::after,
.eventCard .imagePlaceholder > span {
  display: none;
}

.eventCard .imagePlaceholder__img {
  transition: transform 260ms ease;
}

.eventCard:hover .imagePlaceholder__img {
  transform: scale(1.025);
}

.imagePlaceholder--warm {
  background:
    linear-gradient(150deg, rgba(7, 22, 48, 0.1), rgba(7, 22, 48, 0.55)),
    radial-gradient(circle at 78% 22%, rgba(241, 198, 117, 0.55), transparent 25%),
    linear-gradient(135deg, #bba76c, #0c4b94);
}

.aboutSlideshow {
  position: relative;
  min-height: 0;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(7, 22, 48, 0.1), rgba(7, 22, 48, 0.55)),
    linear-gradient(135deg, #bba76c, #0c4b94);
  box-shadow: var(--shadow);
}

.aboutSlideshow__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: none;
  transition: opacity 700ms ease;
}

.aboutSlideshow__image.isActive {
  opacity: 1;
}

.cardBody {
  padding: 20px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  color: var(--royal);
  background: #eaf6ff;
}

.badge--ongoing {
  color: var(--ok);
  background: #e7f7ed;
}

.badge--ended {
  color: #5c6677;
  background: #eef2f7;
}

.badge--cancelled,
.badge--postponed {
  color: var(--danger);
  background: #fff0ec;
}

.cardTitle {
  margin: 12px 0 8px;
  font-size: 21px;
  line-height: 1.35;
}

.meta {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.cardText {
  color: var(--muted);
  line-height: 1.7;
}

.timeline {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
}

.timelineTabs {
  display: grid;
  gap: 10px;
}

.timelineTab {
  min-height: 54px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 16px;
  font-weight: 900;
}

.timelineTab.isActive {
  border-color: var(--royal);
  color: #ffffff;
  background: var(--royal);
}

.timelinePanel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  min-height: 320px;
  overflow: hidden;
}

.timelinePanel .imagePlaceholder {
  min-height: 320px;
}

.timelineContent {
  padding: 32px;
}

.timelineYear {
  color: var(--royal);
  font-size: 44px;
  font-weight: 900;
}

.galleryGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 20px;
}

.galleryItem {
  display: grid;
  gap: 11px;
  border: 0;
  text-align: left;
  color: var(--ink);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: color 180ms ease;
}

.galleryItem__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e3e6e8;
  border-radius: 5px;
  background: #f4f4f1;
  box-shadow: 0 5px 12px rgba(7, 22, 48, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.galleryItem__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 240ms ease;
}

.galleryItem__empty {
  color: var(--muted);
  font-size: 14px;
}

.galleryItem:focus-visible {
  outline: 3px solid var(--warm);
  outline-offset: 3px;
}

@media (hover: hover) {
  .galleryItem:hover {
    color: #d7a13e;
  }

  .galleryItem:hover .galleryItem__visual {
    transform: translateY(-3px);
    box-shadow: 0 14px 24px rgba(7, 22, 48, 0.13);
  }

  .galleryItem:hover .galleryItem__image {
    transform: scale(1.018);
  }
}

.galleryItem__caption {
  display: block;
  min-width: 0;
  padding: 0 2px;
}

.galleryItem__caption strong {
  display: block;
  color: inherit;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.55;
  word-break: keep-all;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.filterBar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filterButton {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  font-weight: 900;
}

.filterButton.isActive {
  color: #ffffff;
  border-color: var(--royal);
  background: var(--royal);
}

.pageHero,
.detailHero {
  padding: 132px 0 70px;
  color: #ffffff;
  background:
    radial-gradient(circle at 16% 24%, rgba(56, 189, 235, 0.2), transparent 28%),
    linear-gradient(135deg, var(--deep), var(--midnight));
}

.pageHero .pageTitle,
.detailHero h1 {
  color: #ffffff;
}

.pageLead {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 18px;
  line-height: 1.8;
}

.detailGrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
}

.eventDetailSection {
  background: #ffffff;
}

.eventDetailDocument {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.eventDetailDocument + .detailBlock {
  margin-top: 20px;
}

.detailBlock {
  padding: 26px;
  margin-bottom: 16px;
}

.detailBlock h2 {
  margin-top: 0;
}

.detailContent {
  padding: 0 28px;
}

.detailContent .detailBlock {
  margin: 0;
  padding: 26px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.detailContent .detailBlock + .detailBlock {
  border-top: 1px solid #e5ebf2;
}

.detailContent .detailBlock h2 {
  position: relative;
  margin-bottom: 18px;
  padding-left: 13px;
}

.detailContent .detailBlock h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 3px;
  background: var(--gold);
}

.detailImage {
  overflow: hidden;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #f6f8fb;
}

.detailImage img {
  display: block;
  width: 100%;
  height: auto;
}

.sideBox {
  position: sticky;
  top: 92px;
  align-self: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.sitePopup {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  overflow: hidden;
  background: rgba(7, 22, 48, 0.62);
}

.sitePopup__panel {
  position: relative;
  display: flex;
  width: min(470px, 100%);
  min-height: 0;
  max-height: 100vh;
  flex-direction: column;
  overflow: hidden;
  border-radius: 0;
  background: #ffffff;
  box-shadow: -22px 0 48px rgba(7, 22, 48, 0.28);
}

.sitePopup__panel.isEntering {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  animation-duration: 260ms;
  animation-timing-function: cubic-bezier(0.22, 0.72, 0.3, 1);
  animation-fill-mode: both;
}

.sitePopup__panel.isEntering--next {
  animation-name: sitePopupEnterNext;
}

.sitePopup__panel.isEntering--previous {
  animation-name: sitePopupEnterPrevious;
}

@keyframes sitePopupEnterNext {
  from {
    transform: translateX(16px);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes sitePopupEnterPrevious {
  from {
    transform: translateX(-16px);
  }
  to {
    transform: translateX(0);
  }
}

.sitePopup__visual {
  display: block;
  flex: 0 0 auto;
  overflow: hidden;
  background: transparent;
  line-height: 0;
}

.sitePopup__image {
  display: block;
  width: 100%;
  height: min(64vh, 680px);
  object-fit: cover;
  object-position: center top;
}

.sitePopup__content {
  display: grid;
  gap: 8px;
  padding: 18px 30px 20px;
  background: #ffffff;
}

.sitePopup__eyebrow {
  margin: 0;
  color: #d46286;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.sitePopup__topRow {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.sitePopup__controls {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.sitePopup__controls button {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: #526176;
  background: transparent;
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.sitePopup__controls button:hover,
.sitePopup__controls button:focus-visible {
  color: #d7a13e;
}

.sitePopup__controls button[data-popup-toggle] {
  position: relative;
  font-size: 0;
}

.sitePopup__controls button[data-popup-prev],
.sitePopup__controls button[data-popup-next] {
  transform: translateY(-2px);
}

.sitePopup__controls button[data-popup-toggle]::before,
.sitePopup__controls button[data-popup-toggle]::after {
  content: "";
  position: absolute;
  top: 7px;
  width: 2px;
  height: 10px;
  background: currentColor;
}

.sitePopup__controls button[data-popup-toggle]::before {
  left: 8px;
}

.sitePopup__controls button[data-popup-toggle]::after {
  right: 8px;
}

.sitePopup__controls button[data-popup-toggle][aria-pressed="false"]::before {
  top: 6px;
  left: 9px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid currentColor;
  background: transparent;
}

.sitePopup__controls button[data-popup-toggle][aria-pressed="false"]::after {
  display: none;
}

.sitePopup__eventRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sitePopup__title {
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
}

.sitePopup__cta {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 6px;
  color: var(--ink);
  background: var(--warm);
  box-shadow: 0 8px 16px rgba(241, 198, 117, 0.28);
  font-size: 16px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.sitePopup__cta:hover,
.sitePopup__cta:focus-visible {
  transform: translateY(-1px);
  color: var(--ink);
  background: #ffd883;
  box-shadow: 0 11px 20px rgba(241, 198, 117, 0.38);
}

.sitePopup__cta.isDisabled {
  color: var(--muted);
  background: #eef2f6;
  box-shadow: none;
}

.sitePopup__actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 30px;
  border-top: 1px solid var(--line);
}

.sitePopup__dismiss {
  padding: 4px 0;
  border: 0;
  color: #53637a;
  background: transparent;
  font-size: 13px;
}

.sitePopup__dismiss:hover,
.sitePopup__dismiss:focus-visible {
  color: var(--deep);
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .sitePopup__panel.isLeaving,
  .sitePopup__panel.isEntering {
    animation: none;
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 42px 72px;
  background: rgba(18, 18, 18, 0.96);
}

.lightbox.isOpen {
  display: flex;
}

html.isLightboxOpen,
body.isLightboxOpen {
  overflow: hidden;
}

.lightbox__panel {
  width: min(1180px, 100%);
  height: min(860px, calc(100vh - 84px));
  height: min(860px, calc(100dvh - 84px));
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.92);
}

.lightbox__meta h3,
.lightbox__meta p {
  white-space: pre-line;
}

@media (min-width: 641px) {
  .lightbox__panel {
    grid-template-rows: minmax(0, 1fr) clamp(174px, 24dvh, 246px);
  }

  .lightbox__meta {
    box-sizing: border-box;
    height: 100%;
    max-height: none;
  }
}

.lightbox__stage {
  position: relative;
  box-sizing: border-box;
  height: auto;
  min-height: 0;
  max-height: none;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 52px 84px 22px;
  background: #161616;
}

.lightbox__visual {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  place-items: center;
  overflow: hidden;
  background: transparent;
}

.lightbox__image {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  transform: translate(-50%, -50%);
  will-change: transform, filter;
}

/* Author display rules override the browser's default hidden rule. */
.lightbox__image[hidden] {
  display: none !important;
}

.lightbox__image--enter-next {
  animation: lightboxImageEnterFromRight 340ms cubic-bezier(0.22, 0.78, 0.28, 1) both;
}

.lightbox__image--enter-prev {
  animation: lightboxImageEnterFromLeft 340ms cubic-bezier(0.22, 0.78, 0.28, 1) both;
}

@keyframes lightboxImageEnterFromRight {
  from {
    filter: blur(1.2px);
    transform: translate(calc(-50% + 24px), -50%);
  }
  to {
    filter: blur(0);
    transform: translate(-50%, -50%);
  }
}

@keyframes lightboxImageEnterFromLeft {
  from {
    filter: blur(1.2px);
    transform: translate(calc(-50% - 24px), -50%);
  }
  to {
    filter: blur(0);
    transform: translate(-50%, -50%);
  }
}

@media (min-width: 641px) {
  .lightbox__visual {
    box-sizing: border-box;
    padding: 14px 28px 38px;
  }

  .lightbox__image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
  }
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  z-index: 1;
  display: grid;
  padding: 0;
  place-items: center;
  border: 0;
  color: rgba(255, 255, 255, 0.48);
  background: transparent;
  line-height: 1;
  opacity: 0.58;
  transition: color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.lightbox__close {
  top: 10px;
  right: 16px;
  width: 34px;
  height: 34px;
  font-size: 29px;
  font-weight: 300;
}

.lightbox__nav--prev {
  top: 50%;
  left: 14px;
  width: 68px;
  height: 96px;
  font-size: 54px;
  font-weight: 300;
  transform: translateY(-50%);
}

.lightbox__nav--next {
  top: 50%;
  right: 14px;
  width: 68px;
  height: 96px;
  font-size: 54px;
  font-weight: 300;
  transform: translateY(-50%);
}

.lightbox__stage:hover .lightbox__nav,
.lightbox__close:hover,
.lightbox__close:focus-visible,
.lightbox__nav:hover,
.lightbox__nav:focus-visible {
  color: var(--warm);
  opacity: 1;
}

.lightbox__nav--prev:hover,
.lightbox__nav--prev:focus-visible {
  transform: translate(-3px, -50%);
}

.lightbox__nav--next:hover,
.lightbox__nav--next:focus-visible {
  transform: translate(3px, -50%);
}

.lightbox__meta {
  display: flex;
  min-height: 0;
  max-height: min(30dvh, 280px);
  flex: 0 1 auto;
  justify-content: space-between;
  gap: 28px;
  align-items: start;
  padding: 18px 2px 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.34) transparent;
}

.lightbox__meta::-webkit-scrollbar {
  width: 6px;
}

.lightbox__meta::-webkit-scrollbar-track {
  background: transparent;
}

.lightbox__meta::-webkit-scrollbar-thumb {
  min-height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
}

.lightbox__meta:hover::-webkit-scrollbar-thumb {
  background: rgba(241, 198, 117, 0.72);
}

.lightbox__meta h3 {
  margin: 0;
  color: #ffffff;
  font-size: 20px;
}

.lightbox__meta p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.65;
}

.lightbox__count {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

.siteFooter {
  padding: 46px 0;
  color: rgba(255, 255, 255, 0.78);
  background: var(--deep);
}

.footerInner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.footerPhone {
  margin: 8px 0 0;
  font-size: 14px;
}

.footerPhone a {
  color: #ffffff;
  font-weight: 800;
}

.adminLayout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.adminSidebar {
  color: #ffffff;
  background: var(--deep);
  padding: 24px;
}

.adminSidebar nav {
  display: grid;
  gap: 8px;
  margin-top: 28px;
}

.adminSidebar a {
  padding: 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.adminSidebar a.isActive,
.adminSidebar a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.adminMain {
  padding: 30px;
}

.adminTop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.adminGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.adminCard {
  padding: 20px;
}

.adminCard strong {
  display: block;
  color: var(--royal);
  font-size: 32px;
}

.adminPanel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 22px;
  margin-bottom: 18px;
}

.mainPageLinkPanel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.mainPageLinkPanel h2 {
  margin-bottom: 6px;
}

.adminTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.adminTable th,
.adminTable td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.adminActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.adminActions .smallButton {
  min-height: 36px;
  padding: 0 12px;
}

.featuredEvents__top {
  align-items: flex-start;
  margin-bottom: 14px;
}

.featuredEvents__top h2 {
  margin-bottom: 6px;
}

.featuredEvents__top .meta {
  margin: 0;
}

.featuredEvents__count {
  flex: none;
  color: var(--royal);
  font-size: 18px;
}

.featuredEvents {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 76px;
  padding: 12px;
  border: 1px dashed #9db9d7;
  border-radius: 8px;
  background: #f8fbff;
  transition: border-color 180ms ease, background 180ms ease;
}

.featuredEvents.isDragOver {
  border-color: var(--royal);
  background: #eef6ff;
}

.featuredEvents__empty {
  align-self: center;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.featuredEvent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid #b9cde2;
  border-radius: 8px;
  color: var(--deep);
  background: #ffffff;
  cursor: grab;
}

.featuredEvent.isDragging,
.eventListRow.isDragging {
  opacity: 0.48;
}

.featuredEvent strong {
  overflow: hidden;
  max-width: 260px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.featuredEvent__order,
.homeBadge {
  display: inline-grid;
  min-width: 24px;
  min-height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--royal);
  font-size: 12px;
  font-weight: 900;
}

.featuredEvent__remove {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: var(--muted);
  background: transparent;
  font-size: 20px;
  line-height: 1;
}

.featuredEvent__remove:hover {
  color: var(--danger);
  background: #fff0ee;
}

.dragHandle {
  display: inline-block;
  margin-right: 6px;
  color: #8ca2ba;
  letter-spacing: 1px;
  cursor: grab;
  user-select: none;
}

.eventListRow {
  cursor: grab;
}

.homeBadge {
  min-width: auto;
  padding: 3px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

.dangerButton {
  border-color: rgba(180, 35, 24, 0.22);
  color: var(--danger);
  background: #fff8f7;
}

.dangerButton:hover {
  border-color: rgba(180, 35, 24, 0.42);
  color: #8f1d14;
  background: #fff0ee;
}

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

.formField {
  display: grid;
  gap: 7px;
}

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

.formField span {
  font-size: 13px;
  font-weight: 900;
  color: var(--muted);
}

.formField input,
.formField select,
.formField textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #ffffff;
}

.formField textarea {
  min-height: 110px;
  resize: vertical;
}

.formField--compact textarea {
  min-height: 74px;
}

.formSaveActions {
  display: flex;
  margin-top: 24px;
}

.formDetails {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f8fbff;
}

.formDetails summary {
  cursor: pointer;
  font-weight: 900;
  color: var(--deep);
}

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

.uploadBox {
  display: grid;
  gap: 8px;
  border: 1px dashed #b9c9dc;
  border-radius: 8px;
  padding: 14px;
  background: #f8fbff;
}

.uploadBox input {
  width: 100%;
}

.uploadPreview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.uploadPreview__item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.uploadPreview__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
}

.uploadPreview__item .smallButton {
  width: calc(100% - 16px);
  min-height: 34px;
  margin: 8px;
}

.uploadPreview--single {
  grid-template-columns: minmax(0, 260px);
}

.popupAdminPreview {
  display: grid;
  margin-top: 12px;
}

.popupAdminPreview__item {
  width: min(100%, 320px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.popupAdminPreview__item img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #ffffff;
}

.popupAdminPreview__item .smallButton {
  width: calc(100% - 16px);
  min-height: 34px;
  margin: 8px;
}

.popupManagerHeader {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.popupManagerHeader h2 {
  margin: 0;
}

.popupManagerHeader .meta {
  margin: 8px 0 0;
}

.popupManagerList {
  display: grid;
  gap: 10px;
}

.popupManagerItem {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.popupManagerItem.isSelected {
  border-color: #d7a13e;
  box-shadow: 0 0 0 3px rgba(215, 161, 62, 0.12);
}

.popupManagerItem__select {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  padding: 0;
  color: var(--ink);
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.popupManagerItem__thumb {
  width: 54px;
  height: 70px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 4px;
  color: var(--muted);
  font-size: 11px;
  background: #f4f4f1;
}

.popupManagerItem__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popupManagerItem__body {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.popupManagerItem__body strong,
.popupManagerItem__body small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.popupManagerItem__body small {
  color: var(--muted);
}

.popupManagerItem__actions {
  flex: 0 0 auto;
  display: flex;
  gap: 6px;
}

.popupManagerItem__actions .smallButton {
  min-height: 34px;
}

.popupManagerItem__actions .iconButton {
  width: 34px;
  padding: 0;
}

.eventCropEditor {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.eventCropEditor__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.eventCropEditor__head strong {
  color: var(--deep);
  font-size: 14px;
}

.eventCropEditor__head .meta {
  margin: 5px 0 0;
}

.eventCropCanvas {
  position: relative;
  height: clamp(240px, 30vw, 360px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #edf2f8;
  touch-action: none;
  user-select: none;
}

.eventCropCanvas__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.eventCropFrame {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: end start;
  overflow: visible;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 999px rgba(7, 22, 48, 0.52), 0 0 0 1px rgba(7, 22, 48, 0.35);
  cursor: grab;
  touch-action: none;
}

.eventCropFrame:active {
  cursor: grabbing;
}

.eventCropFrame span {
  margin: 0 0 8px 8px;
  padding: 4px 7px;
  color: #ffffff;
  background: rgba(7, 22, 48, 0.78);
  font-size: 12px;
  font-weight: 800;
}

.uploadPreview__item .eventCoverPreview__image {
  aspect-ratio: 2 / 1;
}

.aboutCropCanvas {
  height: clamp(210px, 26vw, 320px);
}

.aboutImageEditor {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.aboutImageEditor__preview {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.aboutImageEditor__preview > span {
  color: var(--deep);
  font-size: 13px;
  font-weight: 800;
}

.aboutImageEditor__previewFrame {
  width: min(100%, 560px);
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #eef2f7;
}

.aboutImageEditor__previewFrame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.button--file {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.button--file input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.photoManager {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.photoManager--notice {
  padding-bottom: 2px;
}

.photoManager__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.photoManager__head h3 {
  margin: 0 0 4px;
}

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

.photoGrid > .meta {
  grid-column: 1 / -1;
}

.photoCard {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.photoCard.isCover {
  border-color: #d4a649;
  box-shadow: 0 0 0 2px rgba(212, 166, 73, 0.15);
}

.photoCard__previewLabel {
  margin: 0;
  padding: 10px 14px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.photoCard__previewFrame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-top: 1px solid #e3e6e8;
  border-bottom: 1px solid #e3e6e8;
  background: #f4f4f1;
}

.photoCard__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.photoCard__body {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.photoCard__galleryTitle {
  min-height: 64px !important;
}

.photoPreviewFocus {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
}

.photoPreviewFocus > summary {
  color: var(--deep);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.photoPreviewFocus[open] > summary {
  margin-bottom: 12px;
}

.photoPreviewFocus__canvas {
  height: clamp(200px, 26vw, 280px);
}

.photoPreviewFocus__controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.photoPreviewFocus__controls label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  color: var(--deep);
  font-size: 13px;
  font-weight: 800;
}

.photoPreviewFocus__controls input[type="range"] {
  width: 100%;
  min-height: auto;
  padding: 0;
  accent-color: #b98738;
}

.photoPreviewFocus__controls output {
  min-width: 36px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.photoPreviewFocus__status {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.photoCard__cover {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  color: #6f4d00;
  background: #fff3d3;
  font-size: 12px;
  font-weight: 900;
}

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

.saveToast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 120;
  min-width: 180px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  color: #ffffff;
  background: #0a2455;
  box-shadow: 0 14px 34px rgba(7, 22, 48, 0.24);
  font-size: 14px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.saveToast.isVisible {
  opacity: 1;
  transform: translateY(0);
}

.loginBox {
  width: min(440px, calc(100% - 32px));
  margin: 12vh auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.message {
  color: var(--danger);
  font-weight: 800;
}

.hidden {
  display: none !important;
}

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

@media (max-width: 920px) {
  .siteHeader__inner,
  .sectionInner,
  .footerInner,
  .hero__inner {
    width: min(100% - 28px, 720px);
  }

  .menuButton {
    display: grid;
    place-items: center;
  }

  .nav {
    position: absolute;
    top: 72px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .nav.isOpen {
    display: flex;
  }

  .hero__inner,
  .splitGrid,
  .timelinePanel,
  .detailGrid,
  .adminLayout {
    grid-template-columns: 1fr;
  }

  .hero__inner {
    grid-template-areas:
      "copy"
      "scene"
      "homecoming";
    grid-template-rows: auto;
    padding-top: 110px;
    gap: 24px;
    text-align: center;
  }

  .heroCopy {
    display: grid;
    justify-items: center;
    margin: 0 auto;
  }

  .heroLead,
  .verse {
    margin-right: auto;
    margin-left: auto;
  }

  .verse {
    padding: 16px 0 0;
    border-top: 2px solid rgba(241, 198, 117, 0.72);
    border-left: 0;
  }

  .heroCopy .buttonRow {
    justify-content: center;
  }

  .heroScene {
    min-height: auto;
    justify-items: center;
    padding-bottom: 32px;
  }

  .anniversaryVisual,
  .anniversaryLogoImage--hero,
  .heroLine,
  .heroSideText {
    width: min(300px, 100%);
  }

  .anniversaryVisual {
    min-height: 320px;
  }

  .cardGrid,
  .adminGrid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .timelineTabs {
    display: flex;
    overflow-x: auto;
  }

  .timelineTab {
    min-width: 120px;
  }

  .galleryGrid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ctaInvite {
    grid-template-columns: 1fr;
  }

  .ctaInvite__card {
    width: min(100%, 360px);
  }

  .adminSidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }

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

  .heroLead {
    font-size: 16px;
  }

  .anniversaryVisual {
    min-height: 280px;
  }

  .anniversaryLogoImage--hero {
    width: min(260px, 90%);
    padding: 18px;
  }

  .cardGrid,
  .stats,
  .galleryGrid,
  .adminGrid,
  .formGrid,
  .formDetails__grid,
  .uploadPreview,
  .photoGrid,
  .photoCard__fields {
    grid-template-columns: 1fr;
  }

  .homeEventGrid > .eventCard:nth-child(n + 4) {
    display: none;
  }

  .homeEventGrid .cardBody {
    padding: 18px;
  }

  .homeEventGrid .cardText {
    display: none;
  }

  .homeGalleryGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 12px;
  }

  .homeGalleryGrid .galleryItem {
    gap: 8px;
  }

  .homeGalleryGrid .galleryItem__caption strong {
    font-size: 14px;
    line-height: 1.45;
  }

  .sectionHead,
  .footerInner,
  .adminTop,
  .mainPageLinkPanel {
    align-items: start;
    flex-direction: column;
  }

  .ctaInvite {
    align-items: start;
  }

  .photoManager__head {
    align-items: start;
    flex-direction: column;
  }

  .photoPreviewFocus__controls {
    grid-template-columns: 1fr;
  }

  .saveToast {
    top: 14px;
    right: 14px;
    left: 14px;
    min-width: 0;
  }

  .ctaInvite__card {
    width: 100%;
  }

  .detailContent {
    padding: 0 20px;
  }

  .sitePopup {
    align-items: flex-end;
  }

  .sitePopup__panel {
    width: 100%;
    min-height: 0;
    max-height: min(92vh, 760px);
    border-radius: 12px 12px 0 0;
  }

  .sitePopup__image {
    height: min(62vh, 570px);
  }

  .sitePopup__content,
  .sitePopup__actions {
    padding-right: 20px;
    padding-left: 20px;
  }

  .sitePopup__cta {
    font-size: 18px;
  }

  .sitePopup__title {
    font-size: 18px;
  }

  .lightbox {
    padding: 0;
    overscroll-behavior: contain;
  }

  .lightbox__panel {
    width: 100%;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .lightbox__stage {
    height: min(54dvh, 480px);
    flex: 0 0 auto;
    padding: 48px 58px 16px;
  }

  .lightbox__image {
    max-height: 100%;
  }

  .lightbox__close,
  .lightbox__nav {
    opacity: 0.72;
  }

  .lightbox__close {
    top: 8px;
    right: 12px;
    width: 34px;
    height: 34px;
  }

  .lightbox__nav--prev {
    left: 2px;
    width: 54px;
    height: 84px;
    font-size: 46px;
  }

  .lightbox__nav--next {
    right: 2px;
    width: 54px;
    height: 84px;
    font-size: 46px;
  }

  .lightbox__meta {
    min-height: 0;
    max-height: none;
    flex: 1 1 auto;
    align-items: start;
    padding: 16px 20px 22px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .lightbox__meta h3 {
    font-size: 17px;
  }

  .popupManagerHeader {
    align-items: stretch;
    flex-direction: column;
  }

  .popupManagerHeader .button {
    width: 100%;
  }
}
