:root {
  --bg: #0b0b0d;
  --bg-alt: #111114;
  --text: #f3f3f5;
  --muted: #b9bcc4;
  --amber: #c7853d;
  --amber-strong: #e1a15a;
  --gold: #f2bb72;
  --card: rgba(22, 23, 28, 0.9);
  --border: rgba(255, 255, 255, 0.14);
  --shadow: 0 16px 42px rgba(0, 0, 0, 0.45);
  --radius: 0px;
  --panel-padding: 28px;
  --control-height: 44px;
  --textarea-min-height: 120px;
  --btn-height: 44px;
  --btn-padding-x: 22px;
  --btn-font-size: 0.9375rem;
  --cta-gradient: linear-gradient(135deg, var(--amber), #dba55c);
  --font-heading: "Jost", sans-serif;
  --font-body: "Google Sans", "Google Sans Text", "Inter", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: linear-gradient(180deg, #09090b 0%, #101116 46%, #151821 100%);
}
body.page-enter { animation: pageIn .65s cubic-bezier(.2, .65, .2, 1); }
@keyframes pageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
a { transition: color .22s ease; }

.container { width: min(1160px, 92vw); margin: 0 auto; }
.site-bg-glow {
  position: fixed; inset: -40% -30% auto -30%;
  height: 70vh;
  background: radial-gradient(circle, rgba(199, 133, 61, 0.2) 0%, rgba(255, 255, 255, 0) 65%);
  filter: blur(12px); pointer-events: none; z-index: -1;
}

.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(9, 10, 13, 0.82);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px 0;
  gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; }
.brand-avatar {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(242, 187, 114, 0.5);
  box-shadow: 0 0 0 2px rgba(242, 187, 114, 0.2);
}
.site-nav { display: flex; align-items: center; gap: 22px; justify-self: center; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.mobile-nav-toggle { display: none; border: 1px solid var(--border); background: #12131a; color: var(--text); border-radius: 0; padding: 8px 10px; font-size: 1.15rem; line-height: 1; }
.mobile-nav-close { display: none; }
.desktop-tribute-btn { justify-self: end; white-space: nowrap; }

.hero {
  position: relative;
  padding: 120px 0 110px;
  overflow: hidden;
  min-height: 90vh;
  display: grid;
  align-items: center;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.hero-video::-webkit-media-controls {
  display: none !important;
}
.hero-video--mobile {
  display: none;
}
@media (max-width: 760px) {
  .hero-video--desktop {
    display: none;
  }
  .hero-video--mobile {
    display: block;
  }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); margin: 0 0 14px; line-height: 1.15; }
h1 { font-size: clamp(2rem, 4.7vw, 4rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.55rem); }
.hero-copy { text-align: center; max-width: 760px; color: #fff; }
.hero-kicker { margin: 0 0 10px; color: #f2d29d; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; font-size: .9rem; }
.hero-copy h1 { color: #fff; }
.hero-dates { margin: 0; color: #f5cc8a; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hero-tagline { margin-top: 14px; max-width: 56ch; line-height: 1.7; color: rgba(255, 255, 255, 0.9); margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.hero-actions { justify-content: center; }

.section { padding: 80px 0; }
.section-alt { background: linear-gradient(180deg, rgba(15, 16, 22, 0.8), rgba(11, 12, 16, 0.95)); }
.section-decor { position: relative; }
.section-decor::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(350px, 78vw);
  height: 22px;
  background:
    radial-gradient(circle at 50% 50%, rgba(224, 184, 109, 0.75) 0 3px, transparent 4px),
    linear-gradient(90deg, transparent 0%, rgba(224, 184, 109, 0.55) 14%, rgba(224, 184, 109, 0.55) 86%, transparent 100%);
  background-repeat: no-repeat;
  background-size: 10px 10px, 100% 1px;
  background-position: center 9px, center 14px;
  opacity: .72;
}
.section-header { text-align: center; max-width: 760px; margin: 0 auto 30px; }
.section-header p { color: var(--muted); margin: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; align-items: stretch; }

.fun-facts-slider {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 0 20px;
}
.fun-facts-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(340px, 28vw);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 2px 10px;
  scrollbar-width: thin;
}
.fun-facts-track::-webkit-scrollbar { height: 8px; }
.fun-facts-track::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
}
.fun-facts-controls {
  display: none;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}
.fun-facts-nav-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: rgba(17, 20, 29, 0.92);
  color: #f2bb72;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.fun-fact-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
  padding: 22px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
  background-image:
    linear-gradient(180deg, rgba(10, 12, 18, 0.35) 0%, rgba(8, 10, 16, 0.78) 60%, rgba(6, 8, 14, 0.88) 100%),
    var(--fact-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.fun-fact-card h3 {
  margin: 0;
  font-size: 1.35rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.fun-fact-card h3 i {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
}
.fun-fact-card p {
  margin: auto 0 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.55;
}

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--panel-padding);
  position: relative;
  overflow: hidden;
}
.panel p { color: var(--muted); line-height: 1.75; }
.panel::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, -40%) var(--my, -40%), rgba(233, 183, 113, 0.22), transparent 60%);
}

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: center; color: #d7d9de; }
.feature-list i { color: var(--amber-strong); width: 20px; text-align: center; }

.form-card { display: flex; flex-direction: column; gap: 14px; min-height: 100%; }
.form-card > .btn-primary { margin-top: auto; }
.form-card > small { color: var(--muted); font-size: 0.8125rem; line-height: 1.45; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; flex: 1; align-content: start; }
.form-grid .full { grid-column: 1 / -1; }
label { display: grid; gap: 8px; font-size: .93rem; color: #d8dbe2; font-weight: 600; }
input, select, textarea {
  width: 100%; border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0; padding: 0 13px; font: inherit; font-size: 0.9375rem; color: var(--text);
  background: rgba(8, 9, 13, 0.92);
  min-height: var(--control-height);
  box-sizing: border-box;
}
textarea {
  padding: 10px 13px;
  min-height: var(--textarea-min-height);
  resize: vertical;
  line-height: 1.5;
}
input[type="file"] {
  min-height: var(--control-height);
  padding: 8px 13px;
  line-height: 1.4;
}
select { cursor: pointer; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(199, 133, 61, 0.35); border-color: rgba(199, 133, 61, 0.65); }

.cards {
  display: grid;
  gap: 14px;
  max-height: 750px;
  overflow: auto;
  padding-right: 4px;
  min-height: 100%;
  align-self: stretch;
}

.memory-wall-wrap {
  max-width: 980px;
}
.memory-wall-head {
  margin-bottom: 14px;
}
.memory-wall-head h2 {
  text-transform: none;
  margin-bottom: 10px;
}
.memory-wall-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.memory-wall-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}
.memory-wall-filters {
  display: grid;
  grid-template-columns: 220px 220px auto;
  gap: 10px;
  align-items: end;
  width: 100%;
  max-width: 620px;
}
.memory-wall-feed {
  display: grid;
  gap: 12px;
}
.memory-feed-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 18px;
  box-shadow: var(--shadow);
}
.memory-feed-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 10px;
}
.memory-feed-card h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
}
.memory-feed-card p {
  margin: 0;
  color: #d9dde3;
  line-height: 1.65;
}
.memory-feed-author {
  margin-top: 14px;
  text-align: right;
  color: #f0c88f;
  font-weight: 500;
}
.memory-feed-photos {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.memory-feed-photos img {
  width: 92px;
  height: 68px;
  object-fit: cover;
  border: 1px solid var(--border);
}
.post-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.post-action-btn {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  min-height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
}
.post-action-btn .action-count {
  font-weight: 600;
  color: #f2bb72;
}
.emoji-action-wrap { position: relative; }
.emoji-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  display: none;
  gap: 6px;
  padding: 6px;
  background: #111722;
  border: 1px solid var(--border);
  z-index: 5;
}
.emoji-action-wrap.open .emoji-menu { display: flex; }
.emoji-option {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 1rem;
}
.reaction-summary {
  margin-top: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.reaction-summary.is-empty {
  display: none;
}
.reaction-chip {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: #d6dbe2;
  font-size: 0.78rem;
  padding: 4px 7px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.reaction-chip.is-hidden {
  display: none;
}
.reaction-chip strong {
  color: #f2bb72;
  font-weight: 600;
}
.memory-like {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.memory-card {
  background: #151821; border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0; padding: 18px; display: grid; gap: 13px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.memory-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.memory-head span { background: #222735; color: #f0b878; border-radius: 0; font-size: .8rem; padding: 6px 10px; font-weight: 600; }
.memory-meta { display: flex; gap: 14px; flex-wrap: wrap; color: #bfc3cc; font-size: .88rem; }
.memory-photo { width: 100%; max-height: 230px; object-fit: cover; border-radius: 0; border: 1px solid rgba(165, 119, 67, 0.2); }
.memory-photo,
.gallery-item img,
.photo-frame img {
  position: relative;
  background:
    linear-gradient(110deg, rgba(255, 246, 232, 0.9) 8%, rgba(235, 216, 187, 0.8) 20%, rgba(255, 246, 232, 0.92) 35%);
  background-size: 220% 100%;
}
.memory-photo.loading,
.gallery-item img.loading,
.photo-frame img.loading {
  animation: shimmer 1.25s linear infinite;
}
.memory-photo.loaded,
.gallery-item img.loaded,
.photo-frame img.loaded {
  animation: none;
  background: none;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.reaction-row { display: flex; gap: 10px; }
.reaction-row form { margin: 0; }

.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.gallery-tab {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  min-height: var(--btn-height);
  padding: 0 16px;
  cursor: pointer;
  font: inherit;
}
.gallery-tab.active {
  background: var(--cta-gradient);
  color: #fff;
  border-color: rgba(242, 187, 114, 0.35);
}
.gallery-masonry {
  margin-top: 8px;
  column-count: 4;
  column-gap: 10px;
}
.gallery-item {
  margin: 0 0 10px;
  break-inside: avoid;
  overflow: hidden;
  border-radius: 0;
  border: 1px solid var(--border);
  background: #131722; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
}
.gallery-item img { width: 100%; height: auto; object-fit: cover; display: block; }
.gallery-item .gallery-video {
  width: 100%;
  height: auto;
  display: block;
  background: #080a10;
  cursor: pointer;
}
.gallery-media-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: rgba(9, 12, 20, 0.82);
  border: 1px solid rgba(242, 187, 114, 0.55);
  color: #f2bb72;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
}
.gallery-item:hover img { transform: scale(1.04); transition: transform .55s ease; }
.gallery-card.hidden { display: none; }
.gallery-item .post-actions {
  margin: 0;
  padding: 8px;
  border-top: 1px solid var(--border);
}
.gallery-item .reaction-summary {
  margin: 0;
  padding: 0 8px 8px;
}
#galleryUploadHint {
  display: block;
  margin: 8px 0 10px;
  color: var(--muted);
}
.video-viewer-modal {
  width: min(860px, 96vw);
}
#videoViewerPlayer {
  width: 100%;
  max-height: 68vh;
  background: #080a10;
  display: block;
  border: 1px solid var(--border);
}
#videoViewerDownload {
  margin-top: 10px;
}
.quoted-tribute {
  margin-top: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  padding: 10px;
}
.quoted-tribute small {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
}
.quoted-tribute p {
  margin: 0;
}
.quote-live-preview {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  padding: 12px;
  display: grid;
  gap: 8px;
}
.quote-live-preview strong {
  color: #f2bb72;
  font-size: 0.86rem;
}
.quote-live-preview h4 {
  margin: 0;
  font-size: 1.05rem;
}
.quote-live-preview p {
  margin: 0;
}
.quote-preview-meta {
  color: var(--muted);
  font-size: 0.84rem;
}
.quoted-preview-card {
  border: 1px solid var(--border);
  padding: 8px;
  background: rgba(0, 0, 0, 0.18);
}
.quoted-preview-card small {
  display: block;
  color: var(--muted);
  margin-bottom: 4px;
}
.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}
#galleryPageInfo {
  min-width: 130px;
  text-align: center;
  color: var(--muted);
}
.gallery-upload-cta {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.modal.open { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}
.modal-dialog {
  position: relative;
  width: min(820px, calc(100vw - 24px));
  max-width: 100%;
  max-height: 90vh;
  overflow: auto;
  z-index: 1;
  margin: 0 auto;
}
.modal-dialog input[type="file"] {
  width: 100%;
  max-width: 100%;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.guestbook-entry { border-bottom: 1px dashed rgba(255, 255, 255, 0.2); padding: 12px 0; }
.guestbook-entry:last-child { border-bottom: 0; padding-bottom: 0; }
.guestbook-entry header { display: flex; justify-content: space-between; gap: 12px; color: #e7e9ee; }

.btn {
  border: 1px solid transparent;
  border-radius: 0;
  min-height: var(--btn-height);
  padding: 0 var(--btn-padding-x);
  font-size: var(--btn-font-size);
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn-primary {
  background: var(--cta-gradient);
  color: #fff;
  border-color: rgba(242, 187, 114, 0.35);
}
.btn-primary:hover { filter: brightness(1.04); transform: translateY(-1px); box-shadow: 0 10px 20px rgba(180, 118, 48, 0.35); }
.btn-primary:focus-visible {
  outline: 2px solid rgba(242, 187, 114, 0.65);
  outline-offset: 2px;
}
.btn-soft {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
  color: var(--text);
}
.btn-soft:hover { transform: translateY(-1px); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35); }
.btn-soft:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 2px;
}
.nav-tribute-btn {
  box-shadow: 0 0 0 rgba(242, 187, 114, 0);
}
.nav-tribute-btn:hover,
.nav-tribute-btn:focus-visible {
  color: #fff;
  box-shadow: 0 0 14px rgba(242, 187, 114, 0.55), 0 0 28px rgba(242, 187, 114, 0.3);
  transform: translateY(-1px);
}
.nav-tribute-btn:active {
  color: #fff;
  box-shadow: 0 0 18px rgba(242, 187, 114, 0.75), 0 0 34px rgba(242, 187, 114, 0.45);
  transform: translateY(0);
}
.btn-danger { background: #a73824; color: white; }
.reaction-btn {
  border: 1px solid rgba(153, 105, 53, 0.25); border-radius: 0; padding: 7px 12px;
  background: #181b25; color: #f2b675; font-weight: 700; cursor: pointer;
  transition: transform .17s ease, background .17s ease;
}
.reaction-btn:hover { transform: translateY(-1px); background: #202533; }

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(9, 10, 14, 0.92);
}
.footer-content { display: grid; gap: 6px; padding: 24px 0; text-align: center; }
.muted { color: #a9adba; font-style: italic; margin: 0; }
.flash { margin-top: 18px; border-radius: 0; padding: 12px 14px; border: 1px solid; }
.flash-success { background: #ecfaed; color: #1b6b35; border-color: #95d8a7; }
.flash-error { background: #fdeeee; color: #8a2525; border-color: #f3a1a1; }

.auth-body, .admin-body { min-height: 100vh; background: linear-gradient(180deg, #0b0c10, #121520); }
.auth-wrap { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.auth-card { width: min(500px, 100%); background: #151922; border: 1px solid var(--border); border-radius: 0; box-shadow: var(--shadow); padding: var(--panel-padding); display: grid; gap: 14px; }
.admin-panel { padding: 34px 0 56px; display: grid; gap: 20px; }
.admin-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.admin-item { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.2); }
.admin-item:last-child { border-bottom: 0; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: 14px;
  margin-bottom: 18px;
}
.filter-bar--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.filter-bar input[type="hidden"] { display: none; }
.filter-bar label { min-width: 0; }
.filter-bar .btn { min-width: 0; width: 100%; }

.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 22px;
  flex-wrap: wrap;
}
.page-link {
  display: inline-flex;
  min-width: var(--btn-height);
  height: var(--btn-height);
  align-items: center;
  justify-content: center;
  border-radius: 0;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.page-link.active {
  background: linear-gradient(135deg, var(--amber), #dba55c);
  color: #fff;
  border-color: transparent;
}

.timeline {
  max-width: 930px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}
.timeline-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  align-items: start;
  background: rgba(19, 23, 33, 0.92);
  border-radius: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
}
.timeline-item h3 { margin-bottom: 8px; }
.timeline-year {
  background: #212738;
  color: #f2ba76;
  border-radius: 0;
  padding: 10px;
  font-weight: 700;
  text-align: center;
}

.share-toggle-wrap {
  position: fixed;
  right: 50px;
  bottom: 100px;
  z-index: 30;
}
.share-attention-btn {
  animation: sharePulse 1.4s ease-out infinite, shareNudge 2.2s cubic-bezier(.36,.07,.19,.97) infinite;
  transform-origin: center;
}
.share-icon-btn {
  min-width: 132px;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 0;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.share-icon-btn .share-btn-text {
  font-weight: 700;
  letter-spacing: 0.02em;
}
.share-icon-btn .share-icon-svg {
  display: block;
  flex-shrink: 0;
}
.share-attention-btn:hover,
.share-attention-btn:focus-visible {
  animation-play-state: paused;
}
@keyframes sharePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(242, 187, 114, 0.3), 0 8px 20px rgba(0, 0, 0, 0.38); }
  50% { box-shadow: 0 0 0 18px rgba(242, 187, 114, 0), 0 14px 28px rgba(0, 0, 0, 0.48); }
}
@keyframes shareNudge {
  0%, 45%, 100% { transform: translateX(0) rotate(0deg); }
  50% { transform: translateX(-4px) rotate(-1.5deg); }
  56% { transform: translateX(4px) rotate(1.5deg); }
  62% { transform: translateX(-3px) rotate(-1deg); }
  68% { transform: translateX(3px) rotate(1deg); }
  74% { transform: translateX(-1px) rotate(-0.4deg); }
}

.share-modal {
  width: min(520px, 96vw);
}
.share-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.share-platform-btn {
  width: 100%;
  min-height: 50px;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
}
.share-platform-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(242, 187, 114, 0.32);
  background: rgba(242, 187, 114, 0.12);
  color: #f2bb72;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
}
.share-platform-label {
  color: #f3ece0;
  letter-spacing: 0.01em;
}
@media (max-width: 560px) {
  .share-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
#shareStatusText {
  margin-top: 10px;
  color: var(--muted);
  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;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(23, 14, 8, 0.88);
  padding: 24px;
  z-index: 120;
}
.lightbox.open { display: grid; }
.lightbox img {
  max-width: min(1100px, 96vw);
  max-height: 74vh;
  border-radius: 0;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.38);
}
.lightbox-meta {
  color: #f8e9d2;
  text-align: center;
  margin-top: 12px;
  display: grid;
  gap: 6px;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  width: 42px;
  height: 42px;
  border-radius: 0;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  width: 44px;
  height: 44px;
  border-radius: 0;
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lightbox-nav.prev { left: 22px; }
.lightbox-nav.next { right: 22px; }

.interactive-card {
  --mx: -20%;
  --my: -20%;
}
.interactive-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 28px rgba(0, 0, 0, 0.35);
}

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .65s ease, transform .65s ease; transition-delay: var(--reveal-delay, 0ms); }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (max-width: 1024px) {
  .hero-content, .grid-2 { grid-template-columns: 1fr; }
  .gallery-masonry { column-count: 3; }
  .fun-facts-track { grid-auto-columns: minmax(320px, 74vw); }
  .filter-bar,
  .filter-bar--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  html, body, main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  .nav-wrap {
    grid-template-columns: 1fr auto;
  }
  .site-nav {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 84vw);
    height: 100vh;
    background: #11141d;
    border-left: 1px solid var(--border);
    border-radius: 0;
    padding: 86px 16px 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    transform: translateX(100%);
    transition: transform .28s ease;
    z-index: 70;
  }
  .site-nav.open { transform: translateX(0); }
  .mobile-nav-close {
    display: inline-flex;
    position: absolute;
    top: 22px;
    right: 16px;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: #12131a;
    color: #f3ece0;
    font-size: 1.45rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
  }
  .desktop-tribute-btn { display: none; }
  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 60;
  }
  .mobile-nav-toggle { display: inline-block; }
  body.nav-open .mobile-nav-toggle {
    opacity: 0;
    pointer-events: none;
  }
  .modal {
    align-items: center;
    justify-content: center;
    padding: 8px;
  }
  .modal-dialog {
    width: min(420px, calc(100vw - 16px));
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    margin: 0 auto;
    overflow-x: hidden;
    overflow-y: auto;
  }
  #memoryContributeModal,
  #galleryUploadModal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 8px;
    overflow: hidden;
  }
  #memoryContributeModal.open,
  #galleryUploadModal.open {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #memoryContributeModal .modal-dialog,
  #galleryUploadModal .modal-dialog {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    transform: none;
    width: min(420px, calc(100vw - 16px));
    max-width: calc(100vw - 16px);
    box-sizing: border-box;
    max-height: calc(100dvh - 16px);
    margin: 0 auto;
    padding: 16px 12px 14px;
    overflow-x: hidden;
    overflow-y: auto;
  }
  #memoryContributeModal .form-grid,
  #galleryUploadModal .form-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  #memoryContributeModal .form-grid > *,
  #galleryUploadModal .form-grid > * {
    min-width: 0;
  }
  #memoryContributeModal input,
  #memoryContributeModal select,
  #memoryContributeModal textarea,
  #galleryUploadModal input,
  #galleryUploadModal select,
  #galleryUploadModal textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  #memoryContributeModal input[type="file"],
  #galleryUploadModal input[type="file"] {
    font-size: 0.9rem;
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  #galleryUploadHint {
    overflow-wrap: anywhere;
  }
  #memoryContributeModal .btn,
  #galleryUploadModal .btn {
    width: 100%;
  }
  .hero { padding-top: 56px; }
  .section { padding: 62px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .memory-wall-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .memory-wall-filters {
    grid-template-columns: 1fr;
    max-width: none;
  }
  .fun-facts-slider { padding: 0 14px; }
  .fun-facts-track { grid-auto-columns: 88vw; }
  .fun-facts-controls { display: flex; }
  .filter-bar,
  .filter-bar--3 { grid-template-columns: 1fr; }
  .gallery-masonry { column-count: 2; }
  .timeline-item { grid-template-columns: 1fr; }
  .share-toggle-wrap { right: 50px; bottom: 100px; }
  .lightbox-nav { top: auto; bottom: 24px; transform: none; }
  .lightbox-nav.prev { left: calc(50% - 54px); }
  .lightbox-nav.next { right: calc(50% - 54px); }
  .hero { min-height: 90vh; }
}

@media (max-width: 560px) {
  .gallery-masonry { column-count: 1; }
  .share-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
