
:root {
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --radius-soft: 12px;
  --radius-round: 50px;
  --shadow-soft: 0 10px 30px rgba(0,0,0,0.1);
  --shadow-strong: 0 20px 40px rgba(0,0,0,0.3);
}

[data-theme="light"] {
  --shadow-soft: 0 10px 30px rgba(0,0,0,0.05);
  --shadow-strong: 0 20px 40px rgba(0,0,0,0.12);
}


/* --- GLOBAL POLISH --- */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Unified Button Polish */
.btn {
  transition: var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-strong);
}

/* Unified Card Polish */
.detail-card, .couple-card, .count-item, .gallery-item {
  border-radius: var(--radius-soft) !important;
  transition: var(--transition-bounce) !important;
}

/* Refined Navigation Blur */
.nav {
  transition: var(--transition-smooth) !important;
  border-bottom: 1px solid var(--panel-line) !important;
}

/* Enhanced Gallery Hover */
.gallery-item:hover {
  box-shadow: var(--shadow-strong) !important;
  z-index: 10;
}


body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}


body::before {
  opacity: 0.12;
  filter: blur(80px);
  transition: opacity 1.5s ease;
}

:root {
  --bg: #1c0a12;
  --bg-soft: #26121b;
  --bg-raised: #2f1822;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-line: rgba(201, 162, 75, 0.22);
  --blush: #3a1f2b;
  --rose: #c98a97;
  --rose-deep: #a96a78;
  --gold: #c9a24b;
  --gold-soft: #e6c98f;
  --ink: #f3e5ea;
  --ink-light: #c3aab3;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-deep: 0 18px 44px rgba(0, 0, 0, 0.55);
  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Great Vibes", cursive;
  --sans: "Montserrat", Arial, sans-serif;
  --safe-bottom: 92px;
  --nav-bg: rgba(22, 7, 9, 0.82);
}


[data-theme="light"] {
  --bg: #FCFAFA;
  --bg-soft: #F2EFEF;
  --bg-raised: #FFFFFF;
  --panel: rgba(0, 0, 0, 0.06);
  --panel-line: rgba(150, 120, 80, 0.5);
  --blush: #FDF7F7;
  --rose: #C88A8A;
  --rose-deep: #A66A6A;
  --gold: #967B4B;
  --gold-soft: #A68B5B;
  --ink: #110F0F;
  --ink-light: #443C3E;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-deep: 0 18px 44px rgba(0, 0, 0, 0.18);
  --nav-bg: rgba(255, 255, 255, 0.95);
}

/* ============ THEME TOGGLE UI ============ */
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--panel);
  color: var(--gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin: 0 12px;
  position: relative;
  overflow: hidden;
  z-index: 100;
}
.theme-toggle:hover {
  background: var(--gold);
  color: var(--bg);
}
.theme-toggle svg {
  width: 20px;
  height: 20px;
  position: absolute;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  fill: none;
  stroke: currentColor;
}
.sun-icon { transform: translateY(0); opacity: 1; }
.moon-icon { transform: translateY(30px); opacity: 0; }

[data-theme="light"] .sun-icon { transform: translateY(30px); opacity: 0; }
[data-theme="light"] .moon-icon { transform: translateY(0); opacity: 1; }


/* ============ FOUNDATION ============ */


/* Great Vibes has no Ethiopic glyphs, so in Amharic the display face falls
   back to the system's Ethiopic serif rather than boxes. */
html[lang="am"] {
  --script: "Noto Serif Ethiopic", "Nyala", "Abyssinica SIL", serif;
  --serif: "Noto Serif Ethiopic", "Nyala", Georgia, serif;
}

html[lang="am"] body,
html[lang="om"] body {
  letter-spacing: 0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  background: var(--bg);
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  max-width: 100%;
  line-height: 1.6;
}

.container {
  width: min(1100px, 90%);
  margin: 0 auto;
}

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: var(--gold);
  color: var(--bg);
}

/* ============ SECTIONS ============ */
.section {
  padding: 100px 0;
}

.section-kicker {
  font-family: var(--script);
  font-size: 1.8rem;
  color: var(--gold-soft);
  text-align: center;
}

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  text-align: center;
  margin: 6px 0 16px;
  letter-spacing: 1px;
  color: var(--ink);
}

.section-subtitle {
  text-align: center;
  color: var(--ink-light);
  max-width: 520px;
  margin: 0 auto 48px;
  font-weight: 300;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--bg-raised);
  background: var(--bg);
  overflow: hidden;
  will-change: transform, opacity;
}

.hero-bg {
  position: absolute;
  inset: -20px;
  background: center/cover no-repeat;
  filter: blur(18px) brightness(0.6) saturate(1.15);
  transform: scale(1.08);
  z-index: 0;
  transition: opacity 1.2s ease;
  opacity: 0;
}

.hero-bg.ready {
  opacity: 1;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at center, transparent 25%, rgba(10, 5, 8, 0.55) 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 20px;
  animation: fadeUp 1.4s ease forwards;
}

.hero-ornament {
  font-size: 1.6rem;
  color: var(--gold);
  letter-spacing: 12px;
}

.hero-date {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 6px;
  font-size: 0.85rem;
  color: #ecd9de;
  margin-top: 18px;
}

.hero-names {
  font-family: var(--script);
  /* "Michael Belayneh" is ~613px wide in Great Vibes at 76px, so the old
     3.2rem floor was already too big to fit a 320px phone and the name
     wrapped mid-word. Letting vw drive the size keeps each name on one line
     on the narrowest phones while still growing to the desktop cap. */
  /* "Michael Belayneh" is ~613px wide in Great Vibes at 76px, so the old
     3.2rem floor was already too big to fit a 320px phone and the name
     wrapped mid-word. Letting vw drive the size keeps each name on one line
     on the narrowest phones while still growing to the desktop cap. */
  font-size: clamp(1.9rem, 8.6vw, 6.5rem);
  font-weight: 400;
  margin: 14px 0;
  text-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.hero-name {
  display: block;
  white-space: nowrap;
}

.hero-amp {
  display: none;
}

.hero-subtitle {
  font-weight: 300;
  max-width: 560px;
  margin: 0 auto 34px;
  color: #f3e4e8;
  font-size: 1.05rem;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.35s ease;
  cursor: pointer;
}

.btn-outline {
  border: 1px solid rgba(255,255,255,0.7);
  color: var(--bg-raised);
  background: transparent;
}

.btn-outline:hover {
  background: var(--bg-raised);
  color: var(--rose-deep);
  border-color: var(--bg-raised);
}

.btn-solid {
  background: var(--rose);
  color: var(--bg-raised);
  border: 1px solid var(--rose);
  margin-top: 18px;
}

.btn-solid:hover {
  background: var(--rose-deep);
  border-color: var(--rose-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ============ HERO SCROLL ============ */
.hero-scroll {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll span {
  display: block;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 20px;
  position: relative;
}

.hero-scroll span::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: var(--bg-raised);
  border-radius: 4px;
  animation: scrollDot 1.8s infinite;
}

@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ============ COUPLE ============ */
.couple-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
}

.couple-card {
  text-align: center;
}

/* The photographs are 2:3 portraits shown in a circle, so the frame is a
   square disc and the image is cropped by `object-fit: cover` rather than
   being letterboxed. The focal point sits a little above centre: a portrait
   cropped to a disc loses the top and bottom equally, and faces are rarely in
   the lower half. */
.couple-photo {
  position: relative;
  width: min(230px, 60vw);
  aspect-ratio: 1 / 1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--bg-raised);
  box-shadow: var(--shadow), 0 0 0 2px rgba(201, 162, 75, 0.55),
    0 0 0 8px rgba(201, 162, 75, 0.1);
  display: grid;
  place-items: center;
}

.couple-photo img {
  /* Pinned to the frame rather than sized as a grid item: the frame is a
     centred grid (so the monogram fallback sits in the middle), and that stops
     the image stretching, leaving it at its 2:3 height and overflowing. */
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* favour the top of a portrait so faces are not cut off */
  object-position: 50% 18%;
}

.couple-photo.monogram {
  font-family: var(--script);
  font-size: 2.6rem;
  color: var(--bg-raised);
  background: linear-gradient(160deg, var(--rose), var(--rose-deep));
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.couple-card h3 {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
}

.couple-card p {
  color: var(--ink-light);
  font-size: 0.9rem;
  font-weight: 300;
}

/* The ampersand sits in its own narrow column on wide screens, but on a phone
   the grid collapses to one column and the symbol becomes a full-width row, so
   it needs centring of its own or it hangs off the left edge. */
.couple-symbol {
  text-align: center;
}

.couple-symbol .ampersand {
  font-family: var(--script);
  font-size: 4rem;
  color: var(--gold);
  display: block;
}

/* ============ COUNTDOWN ============ */
.countdown {
  background: linear-gradient(160deg, var(--bg-soft), var(--bg-raised));
  color: var(--bg-raised);
  position: relative;
  overflow: hidden;
}

.countdown .section-kicker { color: #eec8d0; }
.countdown .section-title { color: var(--bg-raised); }

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 720px;
  margin: 40px auto 0;
}

.count-item {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(201, 162, 75, 0.2);
  border-radius: 14px;
  padding: 26px 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.count-number {
  display: block;
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
  color: var(--gold);
}

.count-label {
  display: block;
  margin-top: 8px;
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #ead9de;
}

/* ============ GALLERY ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  /* the hosting platform's badge sits in the bottom-right corner, so the last
     row keeps its caption clear of it */
  padding-bottom: 8px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  background: var(--bg-raised);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.gallery-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

.gallery-item img {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* The caption and the photo number sit ABOVE the picture, in normal flow.
   They used to be an overlay pinned to the bottom edge, where a corner badge
   or a home indicator covered them on a phone — and being a real element in
   the flow also means they are there for a guest who never hovers. */
.gallery-meta {
  flex: 0 0 auto;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 12px 9px;
  background: linear-gradient(180deg, rgba(28, 10, 18, 0.96), rgba(28, 10, 18, 0.82));
  border-bottom: 1px solid rgba(201, 162, 75, 0.28);
  position: relative;
  z-index: 2;
}

.gallery-num {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--gold);
  background: rgba(201, 162, 75, 0.14);
  border: 1px solid rgba(201, 162, 75, 0.3);
  border-radius: 999px;
  padding: 2px 8px;
  flex: 0 0 auto;
  line-height: 1.5;
}

.gallery-item .gallery-tag {
  color: var(--ink);
  font-size: 0.86rem;
  letter-spacing: 0.6px;
  font-weight: 400;
  font-family: var(--serif);
  line-height: 1.3;
  /* a long caption wraps to two lines rather than pushing the photo away */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-width: 0;
}

/* a soft edge where the caption bar meets the photo */
.gallery-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 96px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* ============ DETAILS ============ */
.details {
  background: var(--bg-soft);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 44px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.detail-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px) saturate(1.6);
  -webkit-backdrop-filter: blur(12px) saturate(1.6);
  border: 1px solid rgba(201, 162, 75, 0.3);
  border-radius: 14px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.detail-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(201, 162, 75, 0.15) 0%, transparent 50%);
  pointer-events: none;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.detail-card:hover::before {
  opacity: 1;
}

.detail-card:hover {
  transform: translateY(-6px);
}

.detail-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(201, 162, 75, 0.13);
  border: 1px solid rgba(201, 162, 75, 0.28);
  display: grid;
  place-items: center;
  color: var(--gold);
}

.detail-icon svg {
  width: 30px;
  height: 30px;
}

.detail-card h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--ink);
}

.detail-card p {
  color: var(--ink-light);
  font-size: 0.95rem;
  font-weight: 300;
}

.program-schedule {
  display: grid;
  gap: 9px;
  margin: 18px 0 12px;
}

.program-schedule[hidden] {
  display: none;
}

.program-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(201, 162, 75, 0.2);
  border-radius: 9px;
  background: rgba(201, 162, 75, 0.055);
  text-align: left;
}

.program-name {
  min-width: 0;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.program-time {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: right;
}

/* ============ TELEGRAM ============ */
.telegram {
  text-align: center;
}

.telegram-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #229ed9;
  border: 1px solid #229ed9;
  color: var(--bg-raised);
  margin-top: 8px;
}

.telegram-btn:hover {
  background: #1d89bb;
  border-color: #1d89bb;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(34, 158, 217, 0.35);
}

.telegram-btn svg {
  width: 22px;
  height: 22px;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--bg-soft);
  color: var(--ink);
  text-align: center;
  padding: 56px 20px calc(56px + var(--safe-bottom));
  font-family: var(--serif);
  font-size: 1.1rem;
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: 14px;
  line-height: 0;
  filter: drop-shadow(0 2px 10px rgba(201, 162, 75, 0.3));
  transition: transform 0.35s ease, filter 0.35s ease;
}

.footer-logo-link:hover,
.footer-logo-link:focus-visible {
  transform: translateY(-2px) scale(1.05);
  filter: drop-shadow(0 4px 16px rgba(201, 162, 75, 0.5));
  outline: none;
}

.footer-logo {
  display: block;
  width: 54px;
  height: auto;
  margin: 0 auto;
}

.footer-ornament {
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.footer-made {
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: #9d8a90;
}

.footer-coder {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-family: var(--sans);
  font-size: 0.82rem;
  color: #b3a2a8;
  letter-spacing: 0.5px;
}

.footer-coder strong {
  color: var(--gold);
  letter-spacing: 1px;
}

.footer-coder a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-coder a:hover {
  color: var(--gold);
}

.heart {
  color: var(--rose);
}

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 12, 15, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: min(88vw, 920px);
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  transform: scale(0.92);
  transition: transform 0.35s ease;
}

.lightbox.open .lightbox-img {
  transform: scale(1);
}

.lightbox-caption {
  position: absolute;
  /* above the picture, not under it */
  top: 20px;
  left: 0;
  right: 0;
  /* stay clear of the close button and the arrows on narrow screens */
  padding: 0 84px;
  text-align: center;
  color: #f0e2e6;
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: 1px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

.lightbox button {
  position: absolute;
  background: transparent;
  border: none;
  color: var(--bg-raised);
  font-size: 2.4rem;
  cursor: pointer;
  transition: color 0.25s ease, transform 0.25s ease;
  z-index: 2;
}

.lightbox button:hover {
  color: var(--gold);
}

.lightbox-close {
  top: 26px;
  right: 30px;
}

.lightbox-close:hover {
  transform: rotate(90deg);
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

.lightbox-prev:hover { transform: translateX(-4px); }
.lightbox-next:hover { transform: translateX(4px); }

/* ============ SCROLL REVEAL ============ */
.reveal-init {
  opacity: 0;
  transform: translateY(24px);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .details-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
  }
  .couple-grid {
    grid-template-columns: 1fr;
  }
  .couple-symbol .ampersand {
    font-size: 3rem;
  }
}

@media (max-width: 560px) {
  .section { padding: 70px 0; }
  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .lightbox-prev { left: 14px; }
  .lightbox-next { right: 14px; }

  /* stacked names need a little more air than the single-line desktop form */
  .hero-names {
    margin: 10px 0;
  }

  /* The caption now sits above the picture, so on a narrow screen it needs
     room of its own: less inset so the text stays on one line, and a little
     less image height so the two cannot collide. */
  .lightbox-caption {
    padding: 0 52px;
    font-size: 1rem;
  }
  .lightbox-img {
    max-height: calc(80vh - 52px);
  }
}

/* ============ NAVIGATION ============ */
/* The bar is a solid strip at every scroll position. It used to be transparent
   until you scrolled, which meant its white wordmark and links vanished over
   the lighter panels — the bar has to carry its own background, not borrow
   whatever it happens to be sitting on. */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  padding: 14px 0;
  background: var(--nav-bg);
  border-bottom: 1px solid rgba(201, 162, 75, 0.16);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  transition: padding 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
  padding: 8px 0;
  background: var(--nav-bg);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
}

.nav-inner {
  width: min(1200px, 92%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex: none;
  line-height: 0;
  text-decoration: none;
  filter: drop-shadow(0 2px 10px rgba(201, 162, 75, 0.3));
  transition: transform 0.35s ease, filter 0.35s ease;
}

.nav-logo:hover,
.nav-logo:focus-visible {
  transform: translateY(-1px) scale(1.06);
  filter: drop-shadow(0 4px 16px rgba(201, 162, 75, 0.5));
  outline: none;
}

.nav-logo-img {
  display: block;
  width: 36px;
  height: auto;
}

.nav-brand {
  font-family: var(--script);
  font-size: 1.7rem;
  line-height: 1;
  color: var(--bg-raised);
  text-decoration: none;
  letter-spacing: 1px;
  white-space: nowrap;
}

.nav-brand span {
  color: var(--gold);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  position: relative;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  transition: color 0.3s ease;
  padding: 4px 0;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width 0.35s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* the drawer's own copy of the switcher only exists on small screens */
.nav-lang-slot {
  display: none;
}

.nav-toggle {
  display: none;
  background: rgba(201, 162, 75, 0.18);
  border: 1px solid rgba(201, 162, 75, 0.5);
  cursor: pointer;
  padding: 9px;
  border-radius: 12px;
  position: relative;
  z-index: 82;
  transition: background 0.3s ease, transform 0.3s ease;
}

.nav-toggle:hover {
  background: rgba(201, 162, 75, 0.4);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--bg-raised);
  border-radius: 2px;
  margin: 4.5px auto;
  transition: transform 0.35s ease, opacity 0.25s ease, width 0.25s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: translateX(-8px);
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ----- dim overlay behind the menu -----
   Fixed positioning inside .nav resolves against .nav, not the viewport: the
   nav's own backdrop-filter makes it the containing block for fixed children.
   So these panels are sized explicitly to the viewport instead of using
   inset: 0, which would stop at the bottom of the 60px bar. */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 79;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.nav-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    /* top/right anchor to the bar, which sits at the viewport origin, but the
       height must be stated: bottom: 0 would resolve against the nav strip
       (it is a containing block for fixed children) and clip the menu to the
       60px bar, leaving only the "Menu" heading on screen. */
    top: 0;
    right: 0;
    width: min(300px, 82vw);
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    z-index: 81;
    /* an opaque ground of its own: the drawer is read over every section,
       so it cannot rely on the page behind it for contrast */
    background:
      linear-gradient(180deg, rgba(201, 162, 75, 0.1), transparent 30%),
      linear-gradient(180deg, var(--bg-soft) 0%, var(--bg-raised) 52%, var(--bg) 100%);
    box-shadow: -18px 0 50px rgba(0, 0, 0, 0.65);
    padding: 0;
    list-style: none;
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
    border-left: 1px solid rgba(201, 162, 75, 0.35);
    overflow-y: auto;
    /* a phone with a home indicator or a notched status bar: the last item
       must not sit under it */
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .nav-links.open { transform: translateX(0); }

  /* the switcher lives in the drawer on small screens, so it is never hidden
     behind the hamburger */
  .lang-mount--bar { display: none; }
  .nav-lang-slot { display: block; }

  .nav-menu-head {
    padding: 26px 22px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    margin-bottom: 10px;
  }

  .nav-menu-title {
    font-family: var(--script);
    font-size: 1.6rem;
    color: var(--gold);
  }

  .nav-links li {
    margin: 0;
  }

  .nav-links .nav-link {
    display: block;
    padding: 15px 26px;
    font-size: 0.95rem;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transition: background 0.3s ease, color 0.3s ease, padding-left 0.3s ease;
  }

  .nav-links .nav-link::after {
    display: none;
  }

  .nav-links .nav-link:hover,
  .nav-links .nav-link.active {
    color: var(--gold);
    background: rgba(201, 162, 75, 0.12);
    padding-left: 34px;
  }

  .nav-lang-slot {
    padding: 18px 22px 26px;
  }
}

/* ============ LANGUAGE SWITCHER ============ */
.lang-mount {
  position: relative;
  flex: 0 0 auto;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 75, 0.4);
  background: rgba(201, 162, 75, 0.12);
  color: var(--gold-soft);
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 1.2px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.lang-toggle:hover,
.lang-toggle[aria-expanded="true"] {
  background: rgba(201, 162, 75, 0.24);
  border-color: rgba(201, 162, 75, 0.75);
  color: var(--bg-raised);
}

.lang-toggle svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.lang-caret {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.25s ease;
}

.lang-toggle[aria-expanded="true"] .lang-caret {
  transform: translateY(2px) rotate(-135deg);
}

.lang-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 168px;
  list-style: none;
  padding: 6px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid rgba(201, 162, 75, 0.34);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 90;
}

.lang-list.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.84rem;
  letter-spacing: 0.4px;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-option:hover {
  background: rgba(201, 162, 75, 0.16);
}

.lang-option[aria-selected="true"] {
  color: var(--gold);
  font-weight: 600;
}

.lang-option[aria-selected="true"]::after {
  content: "\2713";
  font-size: 0.8rem;
}

.lang-tag {
  font-size: 0.64rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink-light);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 1px 6px;
}

.lang-option[aria-selected="true"] .lang-tag {
  color: var(--gold);
  border-color: rgba(201, 162, 75, 0.4);
}

/* in the drawer the switcher gets the full width of the panel */
.nav-lang-slot .lang-toggle {
  width: 100%;
  justify-content: space-between;
}

/* In the drawer the switcher gets the full width of the panel, and its list
   flows in the document rather than floating: the panel is the last thing in a
   scrolling drawer, so a dropdown hanging below it would be clipped out of
   sight. Expanding in place keeps it reachable.

   It has to actually collapse, though. These three declarations used to be
   `opacity: 1; visibility: visible` unconditionally, which pinned the list open
   for good - the toggle still toggled the `open` class, so the control looked
   dead and tapping it appeared to do nothing. */
.nav-lang-slot .lang-list {
  position: static;
  width: 100%;
  margin-top: 0;
  max-height: 0;
  /* padding and border are outside max-height, so they have to be taken to
     zero as well or the closed list still leaves a gap in the drawer */
  padding: 0;
  border-width: 0;
  opacity: 0;
  visibility: hidden;
  /* a collapsed list must not swallow taps meant for what sits below it */
  pointer-events: none;
  overflow: hidden;
  transform: none;
  background: rgba(0, 0, 0, 0.34);
  box-shadow: none;
  transition: max-height 0.32s ease, opacity 0.24s ease, margin-top 0.32s ease,
    visibility 0.24s;
}

.nav-lang-slot .lang-list.open {
  max-height: 400px;
  margin-top: 8px;
  padding: 6px;
  border-width: 1px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ============ RISING GOLDEN LIGHT-MOTES ============ */
.petals {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.spark {
  position: absolute;
  bottom: -20px;
  border-radius: 50%;
  opacity: 0;
  animation: sparkRise linear infinite;
  will-change: transform, opacity;
}

.spark.s-gold {
  background: radial-gradient(circle,
    rgba(255, 247, 218, 0.95) 0%,
    rgba(230, 205, 140, 0.6) 38%,
    rgba(201, 162, 75, 0) 72%);
}

.spark.s-rose {
  background: radial-gradient(circle,
    rgba(255, 236, 241, 0.95) 0%,
    rgba(220, 166, 182, 0.6) 38%,
    rgba(201, 138, 151, 0) 72%);
}

.spark.s-white {
  background: radial-gradient(circle,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(240, 228, 232, 0.55) 38%,
    rgba(240, 228, 232, 0) 72%);
}

@keyframes sparkRise {
  0% {
    transform: translateY(0) translateX(0) scale(0.3);
    opacity: 0;
  }
  12% { opacity: var(--o, 0.8); }
  40% { transform: translateY(-42vh) translateX(30px) scale(1); }
  65% { transform: translateY(-68vh) translateX(-22px) scale(0.85); }
  88% { opacity: var(--o, 0.8); }
  100% {
    transform: translateY(-112vh) translateX(12px) scale(0.55);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .petals { display: none; }
}

/* ============ SECTION TITLE ORNAMENT ============ */
.section-title {
  position: relative;
  padding-bottom: 26px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--gold) 0,
    var(--gold) 4px,
    var(--rose) 4px,
    var(--rose) 8px,
    var(--gold) 8px,
    var(--gold) 12px
  );
  animation: goldDraw 1.4s ease forwards;
  transform-origin: center;
}

@keyframes goldDraw {
  from { width: 0; opacity: 0; }
  to { width: 72px; opacity: 1; }
}

/* ============ HERO ENHANCEMENTS ============ */
.hero-names {
  animation: shimmerText 5s ease-in-out infinite;
}

@keyframes shimmerText {
  0%, 100% { text-shadow: 0 4px 30px rgba(0,0,0,0.4); }
  50% { text-shadow: 0 4px 50px rgba(201, 162, 75, 0.55); }
}

.hero-ornament {
  animation: twinkle 2.6s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.25); }
}

.hero-scroll span::after {
  animation-duration: 1.8s;
}

/* ============ BUTTON SHINE ============ */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-25deg);
  transition: left 0.6s ease;
}

.btn:hover::before {
  left: 140%;
}

/* ============ COUNTDOWN GLOW ============ */
.count-item {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  animation: floatCard 6s ease-in-out infinite;
}

.count-item:nth-child(2) { animation-delay: 0.8s; }
.count-item:nth-child(3) { animation-delay: 1.6s; }
.count-item:nth-child(4) { animation-delay: 2.4s; }

.count-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  animation-play-state: paused;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.count-number {
  text-shadow: 0 0 22px rgba(201, 162, 75, 0.35);
}

/* ============ GALLERY STAGGER ============ */
.gallery-item {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item img {
  transition: transform 0.6s ease, filter 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.1) rotate(0.6deg);
  filter: brightness(1.06);
}

/* ============ LIGHTBOX ZOOM ============ */
.lightbox.open .lightbox-img {
  animation: lightboxZoom 0.5s ease forwards;
}

@keyframes lightboxZoom {
  from { transform: scale(0.82) translateY(14px); opacity: 0.6; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.lightbox-prev,
.lightbox-next {
  background: rgba(255,255,255,0.06) !important;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.4rem !important;
  transition: background 0.3s ease, transform 0.3s ease;
  backdrop-filter: blur(4px);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(201, 162, 75, 0.35) !important;
}

/* ============ FOOTER HEART PULSE ============ */
.heart {
  display: inline-block;
  animation: heartBeat 1.6s ease-in-out infinite;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.35); }
  30% { transform: scale(1); }
  45% { transform: scale(1.25); }
}

/* ============ BACK TO TOP ============
   Sits above the platform's corner badge rather than underneath it. */
.back-top {
  position: fixed;
  right: 22px;
  bottom: var(--safe-bottom);
  z-index: 70;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(28, 10, 18, 0.9);
  color: var(--gold);
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: all 0.4s ease;
  backdrop-filter: blur(6px);
}

.back-top svg {
  width: 20px;
  height: 20px;
}

.back-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-top:hover {
  background: var(--rose-deep);
  color: var(--bg-raised);
}

/* ============ COUPLE PHOTO FLOAT ============ */
.couple-photo {
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  animation: gentleFloat 8s ease-in-out infinite;
}

.couple-card:nth-of-type(3) .couple-photo {
  animation-delay: 1s;
}

.couple-photo:hover {
  transform: scale(1.04) rotate(1.5deg);
  animation-play-state: paused;
}

@keyframes gentleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ============ DETAIL CARD ICON BOUNCE ============ */
.detail-card:hover .detail-icon {
  animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
  0% { transform: scale(1); }
  35% { transform: scale(1.18) rotate(-6deg); }
  70% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

/* ============ CURVY WAVE DIVIDERS ============ */
.section {
  position: relative;
  z-index: 1;
}

.wave {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 70px;
  line-height: 0;
  z-index: 2;
  pointer-events: none;
}

.wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ============ AURORA BACKGROUND ============ */
body::before {
  content: "";
  position: fixed;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(201, 138, 151, 0.18), transparent 60%),
    radial-gradient(circle at 88% 72%, rgba(201, 162, 75, 0.18), transparent 60%),
    radial-gradient(circle at 72% 12%, rgba(169, 106, 120, 0.15), transparent 60%),
    radial-gradient(circle at 28% 90%, rgba(169, 106, 120, 0.15), transparent 60%);
  animation: aurora 20s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes aurora {
  0%   { transform: translate3d(-1.5%, -1%, 0) scale(1); filter: hue-rotate(0deg); }
  50%  { transform: translate3d(1%, 1.5%, 0) scale(1.1); filter: hue-rotate(14deg); }
  100% { transform: translate3d(-1%, 1%, 0) scale(1.05); filter: hue-rotate(6deg); }
}

.footer {
  position: relative;
  z-index: 1;
}

/* ============ HERO ORNAMENT FLOURISH ============ */
.hero-sep {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 16px 0 24px;
}

.hero-sep-line {
  display: block;
  width: 70px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
  animation: sepLine 2.4s ease-in-out infinite alternate;
}

.hero-sep-line:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.hero-sep-diamond {
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  border: 1px solid var(--gold);
  animation: spinDiamond 7s linear infinite;
}

@keyframes sepLine {
  from { width: 34px; opacity: 0.4; }
  to { width: 84px; opacity: 1; }
}

@keyframes spinDiamond {
  to { transform: rotate(405deg); }
}

/* ============ GALLERY 3D REVEAL + TILT ============ */
.gallery-grid {
  perspective: 1200px;
}

.reveal-3d {
  opacity: 0;
  transform: perspective(800px) rotateX(42deg) translateY(30px);
  transition: opacity 0.95s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.95s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.45s ease;
}

.reveal-3d.visible {
  opacity: 1;
  transform: perspective(800px) rotateX(0deg) translateY(0);
}

.gallery-item.tilt {
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.gallery-item:hover {
  box-shadow: 0 20px 44px rgba(63, 52, 56, 0.3),
    0 0 0 2px rgba(201, 162, 75, 0.8),
    0 0 26px rgba(201, 162, 75, 0.5);
}

/* ============ LIGHTBOX SLIDE ============ */
.lightbox-img.slide-left {
  animation: slideLeft 0.38s ease;
}

.lightbox-img.slide-right {
  animation: slideRight 0.38s ease;
}

@keyframes slideLeft {
  from { transform: translateX(-70px) scale(0.94); opacity: 0.4; }
  to { transform: translateX(0) scale(1); opacity: 1; }
}

@keyframes slideRight {
  from { transform: translateX(70px) scale(0.94); opacity: 0.4; }
  to { transform: translateX(0) scale(1); opacity: 1; }
}

/* ============ GOLD EDGE GLOW ============ */
.detail-card:hover {
  box-shadow: 0 20px 44px rgba(63, 52, 56, 0.22),
    0 0 0 2px rgba(201, 162, 75, 0.7),
    0 0 22px rgba(201, 162, 75, 0.4);
}

.couple-photo:hover {
  box-shadow: 0 0 0 4px rgba(201, 162, 75, 0.9),
    0 0 0 8px rgba(201, 162, 75, 0.28),
    0 22px 44px rgba(0, 0, 0, 0.55);
}

/* ============ NOSCRIPT FALLBACK ============ */
.noscript-note {
  max-width: 32rem;
  margin: 0 auto;
  padding: 22vh 24px 0;
  text-align: center;
  color: #f3e6ea;
  font-family: var(--serif);
}
.noscript-note h1 {
  font-family: var(--script);
  font-size: 2.6rem;
  color: var(--gold);
  margin-bottom: 16px;
}
.noscript-note p {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

/* ============ DIGITAL ENVELOPE ============ */
.envelope-wrapper {
  position: relative;
  z-index: 2;
  cursor: pointer;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ ETHIOPIAN TILET PATTERN ============ */
.tilet-border {
  background: repeating-linear-gradient(
    45deg,
    var(--gold) 0px,
    var(--gold) 2px,
    transparent 2px,
    transparent 4px,
    var(--rose) 4px,
    var(--rose) 6px,
    transparent 6px,
    transparent 8px
  );
  height: 4px;
  width: 100%;
}

.envelope-body {
  position: relative;
  background: var(--bg-raised);
  padding: 40px 20px;
  border-radius: 4px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6), inset 0 0 100px rgba(0,0,0,0.3);
  border: 2px solid var(--gold);
  z-index: 1;
}

.envelope-body::before,
.envelope-body::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--gold) 0,
    var(--gold) 4px,
    var(--bg-raised) 4px,
    var(--bg-raised) 8px,
    var(--rose) 8px,
    var(--rose) 12px,
    var(--bg-raised) 12px,
    var(--bg-raised) 16px,
    var(--gold) 16px
  );
  z-index: 2;
}

.envelope-body::before { top: 0; }
.envelope-body::after { bottom: 0; }

.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--bg-soft);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  z-index: 3;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: top;
  border-bottom: 3px solid var(--gold);
}


.envelope-wrapper.open .envelope-flap {
  transform: rotateX(180deg);
  z-index: 0;
}

.envelope-wrapper.open {
  transform: translateY(20px);
}

/* Adjust intro-open to fit inside envelope */
.intro-open {
  width: auto;
  max-width: 300px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: center;
  cursor: pointer;
}


.intro::before {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(circle at 30% 30%, rgba(201, 162, 75, 0.16), transparent 45%),
    radial-gradient(circle at 75% 70%, rgba(201, 138, 151, 0.16), transparent 45%);
  animation: introGlow 3.5s ease-in-out infinite alternate;
}

@keyframes introGlow {
  from { transform: scale(0.9); opacity: 0.6; }
  to { transform: scale(1.12); opacity: 1; }
}

.intro.closing {
  opacity: 0;
  pointer-events: none;
}

/* ============ PRESS-TO-OPEN WEDDING INTRO ============ */
.intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 24px;
  background:
    radial-gradient(circle at 15% 12%, rgba(236, 201, 143, 0.25), transparent 28rem),
    radial-gradient(circle at 86% 88%, rgba(201, 138, 151, 0.25), transparent 26rem),
    linear-gradient(145deg, #10060b, #371827 52%, #160910);
  transition: opacity 0.75s ease, visibility 0.75s ease;
}

.intro::before {
  inset: 0;
  background-image: linear-gradient(120deg, transparent 48%, rgba(255,255,255,.07) 50%, transparent 52%);
  background-size: 12px 12px;
  opacity: .45;
}

.intro-open {
  position: relative;
  z-index: 2;
  width: min(92vw, 560px);
  min-height: min(72vh, 640px);
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 32px);
  border: 1px solid rgba(230, 201, 143, .64);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255,255,255,.11), rgba(255,255,255,.025));
  box-shadow: 0 28px 80px rgba(0,0,0,.48), inset 0 0 0 8px rgba(255,255,255,.035);
  overflow: hidden;
  cursor: pointer;
  transform: perspective(1000px) rotateX(2deg);
  transition: transform .5s ease, box-shadow .5s ease;
}
.intro-open:hover, .intro-open:focus-visible { transform: perspective(1000px) translateY(-7px) rotateX(0); box-shadow: 0 36px 90px rgba(0,0,0,.58), 0 0 0 3px rgba(201,162,75,.22); outline: none; }
.intro-photo { position:absolute; width:54%; height:72%; background:center / cover no-repeat; border:7px solid rgba(255,255,255,.82); box-shadow: 0 18px 36px rgba(0,0,0,.35); opacity:.7; transition: transform .7s ease, opacity .7s ease; }
.intro-photo--left { left:-13%; top:6%; background-image:linear-gradient(rgba(30,8,18,.08),rgba(30,8,18,.08)),url("../img/photo-1.jpg"); transform:rotate(-11deg); }
.intro-photo--right { right:-14%; bottom:4%; background-image:linear-gradient(rgba(30,8,18,.09),rgba(30,8,18,.09)),url("../img/photo-2.jpg"); transform:rotate(11deg); }
.intro-open:hover .intro-photo--left { transform:rotate(-15deg) translate(-12px,-8px) scale(1.03); }
.intro-open:hover .intro-photo--right { transform:rotate(15deg) translate(12px,8px) scale(1.03); }
.intro-card { position:relative; z-index:2; display:block; width:min(100%,390px); padding:clamp(30px,7vw,58px) clamp(18px,6vw,42px); border:1px solid rgba(255,255,255,.45); border-radius:18px; background:linear-gradient(145deg,rgba(49,19,35,.91),rgba(20,7,14,.92)); box-shadow:0 16px 50px rgba(0,0,0,.35); }
.intro-orb { position:absolute; border-radius:50%; filter:blur(5px); opacity:.55; animation:introFloat 7s ease-in-out infinite alternate; }
.intro-orb--one { width:32rem; height:32rem; left:-14rem; bottom:-14rem; background:#b66a83; }
.intro-orb--two { width:28rem; height:28rem; right:-12rem; top:-12rem; background:#b99548; animation-delay:-4s; }
.intro-birds { position:absolute; inset:0; z-index:4; pointer-events:none; }
.intro-bird { position:absolute; color:#f7e4c0; font-size:clamp(2.2rem,6vw,4.6rem); opacity:0; text-shadow:0 5px 18px rgba(0,0,0,.34); }
.bird--one { left:10%; top:62%; } .bird--two { left:2%; top:76%; font-size:2.5rem; } .bird--three { left:20%; top:83%; font-size:2rem; }
.intro-birds.flying .intro-bird { animation:birdFly 1.65s cubic-bezier(.2,.8,.25,1) forwards; }
.intro-birds.flying .bird--two { animation-delay:.12s; } .intro-birds.flying .bird--three { animation-delay:.24s; }
.intro.opening .intro-photo--left { transform:translate(-100%,-18%) rotate(-23deg); opacity:0; }
.intro.opening .intro-photo--right { transform:translate(100%,18%) rotate(23deg); opacity:0; }
.intro.opening .intro-card { animation:introCardAway .72s ease forwards; }
@keyframes introFloat { to { transform:translate(4rem,-2rem) scale(1.12); } }
@keyframes birdFly { 0% { opacity:0; transform:translate(0,0) scale(.55) rotate(-15deg); } 18% { opacity:1; } 100% { opacity:0; transform:translate(115vw,-84vh) scale(1.25) rotate(12deg); } }
@keyframes introCardAway { to { transform:scale(.86) translateY(18px); opacity:0; } }
@media (max-width: 560px) { .intro-open { min-height:min(70vh,570px); border-radius:22px; } .intro-photo { width:66%; height:57%; opacity:.55; } .intro-card { padding:32px 18px; } }
@media (prefers-reduced-motion: reduce) { .intro-orb, .intro-birds.flying .intro-bird, .intro.opening .intro-card { animation:none; } .intro-open, .intro-photo { transition:none; } }

.intro-logo-link {
  position: relative;
  z-index: 2;
  flex: none;
  display: block;
  line-height: 0;
  /* a soft halo, so the mark reads as a deliberate badge rather than a stray
     image dropped on the background */
  filter: drop-shadow(0 6px 24px rgba(201, 162, 75, 0.35));
  transition: transform 0.45s ease, filter 0.45s ease;
  animation: introFade 1.2s ease 0.1s both;
}

.intro-logo-link:hover,
.intro-logo-link:focus-visible {
  transform: translateY(-3px) scale(1.03);
  filter: drop-shadow(0 10px 34px rgba(201, 162, 75, 0.5));
  outline: none;
}

/* the click/keyboard target: a real button, so no role juggling is needed */
.intro-open {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  max-width: min(30rem, 100%);
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.intro-open:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 14px;
  border-radius: 14px;
}

.intro-logo {
  display: block;
  width: clamp(96px, 26vw, 132px);
  height: auto;
  margin: 0 auto;
}

.intro-kicker {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 7px;
  text-transform: uppercase;
  color: #e6c9cf;
  animation: introFade 1.2s ease 0.2s both;
}

.intro-initials {
  display: block;
  font-family: var(--script);
  font-size: clamp(4rem, 14vw, 7rem);
  color: var(--gold);
  text-shadow: 0 6px 40px rgba(201, 162, 75, 0.4);
  animation: introPop 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) 0.45s both;
}

.intro-names {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 3.4vw, 1.6rem);
  color: #f3e6ea;
  margin-top: 6px;
  animation: introFade 1.2s ease 0.85s both;
}

.intro-line {
  display: block;
  height: 2px;
  width: 0;
  margin: 30px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: introLine 1.1s ease 1s both;
}

.intro-hint {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #e8dcc0;
  opacity: 0;
  animation: introFade 1.2s ease 1.9s both, hintPulse 2.4s ease-in-out 2.9s infinite;
}

@media (prefers-reduced-motion: no-preference) {
  .intro-open:hover .intro-hint {
    animation-duration: 1.4s;
  }
}

@keyframes hintPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@keyframes introFade {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes introPop {
  0% { opacity: 0; transform: scale(0.6); filter: blur(8px); }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

@keyframes introLine {
  from { width: 0; opacity: 0; }
  to { width: 160px; opacity: 1; }
}

/* ============ HERO NAME LETTER-BY-LETTER ============ */
.hero-names .ch {
  display: inline-block;
  white-space: normal;
  opacity: 0;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  animation: charUp 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) forwards,
    shimmerText 5s 1.8s ease-in-out infinite;
  animation-play-state: paused, paused;
  will-change: transform, opacity;
}

body.intro-done .hero-names .ch {
  animation-play-state: running, running;
}

@keyframes charUp {
  from { opacity: 0; transform: translateY(26px) rotate(4deg); }
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

/* ============ SECTION KICKER GLOW ============ */
.section-kicker {
  animation: kickerGlow 4s ease-in-out infinite alternate;
}

@keyframes kickerGlow {
  from { letter-spacing: 4px; opacity: 0.75; }
  to { letter-spacing: 9px; opacity: 1; }
}

/* ============ EMBEDDED MAP ============ */
.map-wrap {
  margin: 56px auto 0;
  max-width: 920px;
  text-align: center;
}

.map-heading {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.map-frame {
  width: 100%;
  height: 380px;
  border: 0;
  border-radius: 16px;
  border: 1px solid var(--panel-line);
  box-shadow: var(--shadow);
  filter: saturate(0.9);
  transition: filter 0.5s ease;
  background: var(--bg-raised);
}

.map-frame:hover {
  filter: saturate(1.05);
}

/* ============ MUSIC TOGGLE ============ */
.music-btn {
  position: fixed;
  left: 22px;
  bottom: var(--safe-bottom);
  z-index: 70;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 75, 0.45);
  background: rgba(28, 10, 18, 0.9);
  color: var(--gold);
  cursor: pointer;
  display: grid;
  place-items: center;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: all 0.35s ease, transform 0.45s ease;
  box-shadow: 0 8px 22px rgba(0,0,0,0.45);
}

/* waiting on a buffer: the button says so instead of pretending to play */
.music-btn.buffering {
  color: var(--rose);
  border-color: rgba(201, 138, 151, 0.6);
}

.music-btn.buffering .music-bars {
  opacity: 1;
}

.music-btn:hover {
  background: var(--rose-deep);
  color: var(--bg-raised);
}

.music-btn.playing {
  animation: musicPulse 2.4s ease-in-out infinite;
}

@keyframes musicPulse {
  0%, 100% { box-shadow: 0 8px 22px rgba(0,0,0,0.25); }
  50% { box-shadow: 0 8px 30px rgba(201, 162, 75, 0.45); }
}

.music-note {
  font-size: 1.3rem;
  line-height: 1;
  position: absolute;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.music-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.music-bars i {
  width: 4px;
  border-radius: 2px;
  background: currentColor;
  height: 6px;
  animation: eq 1s ease-in-out infinite;
}

.music-bars i:nth-child(2) { animation-delay: 0.25s; }
.music-bars i:nth-child(3) { animation-delay: 0.5s; }

.music-btn.playing .music-note { opacity: 0; transform: scale(0.6); }
.music-btn.playing .music-bars { opacity: 1; }

@keyframes eq {
  0%, 100% { height: 5px; }
  50% { height: 18px; }
}

/* ============ SHARE ROW ============ */
.share-row {
  margin-top: 26px;
}

.share-label {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #9d8a90;
  margin-bottom: 12px;
}

.share-btns {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.share-btn {
  display: inline-block;
  padding: 9px 20px;
  border-radius: 50px;
  border: 1px solid rgba(201, 162, 75, 0.4);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.share-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
}

/* ============ HERO KICKER ============ */
.hero-kicker {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 7px;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 14px;
}

/* ============ TOAST ============
   A short, non-blocking notice — used when the music cannot start on its own
   and when a language is switched. Positioned on the left so it never lands on
   the platform's corner badge. */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--safe-bottom) + 66px);
  transform: translate(-50%, 16px);
  z-index: 120;
  max-width: min(88vw, 460px);
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(18, 5, 7, 0.95);
  border: 1px solid rgba(201, 162, 75, 0.45);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.4px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ============ MAP PLACEMENT ============
   A visible placeholder stands in for the embed until the section is nearly
   in view, so nothing jumps and no third-party request is made too early. */
.map-wrap {
  position: relative;
}

.map-frame:not([src]) {
  min-height: 200px;
}

@media (max-width: 820px) {
  .map-frame {
    height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  .hero-names .ch { animation-play-state: running, paused; opacity: 1; transform: none; }
}

/* ==========================================================================
   ULTIMATE VISIBILITY OVERRIDE (FOR LIGHT THEME)
   ========================================================================== */
[data-theme="light"] h1, 
[data-theme="light"] h2, 
[data-theme="light"] h3, 
[data-theme="light"] .section-title, 
[data-theme="light"] .hero-names, 
[data-theme="light"] .nav-brand {
  color: var(--ink) !important;
}

[data-theme="light"] p, 
[data-theme="light"] span, 
[data-// theme="light"] .section-subtitle, 
[data-theme="light"] .hero-date, 
[data-theme="light"] .hero-subtitle, 
[data-theme="light"] .nav-link, 
[data-theme="light"] .footer-made, 
[data-theme="light"] .footer-coder {
  color: var(--ink-light) !important;
}

[data-theme="light"] .section-kicker, 
[data-theme="light"] .hero-ornament, 
[data-theme="light"] .footer-ornament {
  color: var(--gold) !important;
}

[data-theme="light"] .btn-outline {
  color: var(--ink) !important;
  border-color: var(--ink) !important;
}

[data-theme="light"] .hero::before,
[data-theme="light"] .hero-overlay {
  background: radial-gradient(ellipse at center, transparent 30%, rgba(255, 255, 255, 0.6) 100%) !important;
}

[data-theme="light"] .hero-bg {
  filter: blur(18px) brightness(1.2) saturate(1.1) !important;
}


/* ==========================================================================
   FINAL VISIBILITY SHIELD (WHITE THEME ONLY)
   Targeting every possible text element to ensure 100% visibility.
   ========================================================================== */

/* 1. All Headings and Titles -> Deep Obsidian */
[data-theme="light"] h1, 
[data-theme="light"] h2, 
[data-theme="light"] h3, 
[data-theme="light"] .section-title, 
[data-theme="light"] .hero-names, 
[data-theme="light"] .nav-brand, 
[data-theme="light"] .nav-menu-title,
[data-theme="light"] .countdown .section-title {
  color: var(--ink) !important;
}

/* 2. All Body, Subtitle, and Label Text -> Strong Graphite */
[data-theme="light"] p, 
[data-theme="light"] span, 
[data-theme="light"] .section-subtitle, 
[data-theme="light"] .hero-date, 
[data-theme="light"] .hero-subtitle, 
[data-theme="light"] .nav-link, 
[data-theme="light"] .footer-made, 
[data-theme="light"] .footer-coder,
[data-theme="light"] .count-label,
[data-theme="light"] .detail-card p,
[data-theme="light"] .couple-card p,
[data-theme="light"] .gallery-item .gallery-tag,
[data-theme="light"] .lightbox-caption {
  color: var(--ink-light) !important;
}

/* 3. All Accents and Kickers -> Deep Gold */
[data-theme="light"] .section-kicker, 
[data-theme="light"] .hero-ornament, 
[data-theme="light"] .footer-ornament,
[data-theme="light"] .nav-brand span,
[data-theme="light"] .count-number,
[data-theme,="light"] .gallery-num {
  color: var(--gold) !important;
}

/* 4. Buttons and Interactive Elements */
[data-theme="light"] .btn-outline {
  color: var(--ink) !important;
  border-color: var(--ink) !important;
}

[data-theme="light"] .btn-outline:hover {
  background: var(--ink) !important;
  color: #fff !important;
}

/* 5. Component-Specific Backgrounds in Light Mode */
[data-theme="light"] .gallery-meta {
  background: rgba(242, 239, 239, 0.95) !important;
  color: var(--ink) !important;
}

[data-theme="light"] .nav-overlay {
  background: rgba(255, 255, 255, 0.9) !important;
}

[data-theme="light"] .nav-links {
  background: linear-gradient(180deg, rgba(201, 162, 75, 0.1), transparent 30%),
              linear-gradient(180deg, #FCFAFA 0%, #F2EFEF 52%, #FFFFFF 100%) !important;
}


/* ============ REFINED FOOTER SIZING ============ */
.footer {
  padding: 100px 20px calc(100px + var(--safe-bottom)) !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-logo {
  width: 64px !important; /* Slightly larger for presence */
  margin-bottom: 20px !important;
}

.footer-ornament {
  font-size: 1.5rem !important;
  margin-bottom: 12px !important;
}

#footerNames {
  font-family: var(--serif);
  font-size: 1.4rem !important;
  font-weight: 500;
  margin-bottom: 16px !important;
}

.footer-made {
  font-size: 0.85rem !important;
  margin-bottom: 24px !important;
  opacity: 0.8;
}

.footer-coder {
  font-size: 0.8rem !important;
  padding-top: 24px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 600px;
  margin: 0 auto 40px !important;
  line-height: 1.8 !important;
}

.share-row {
  margin-top: 40px !important;
  text-align: center;
}

.share-label {
  font-size: 0.75rem !important;
  margin-bottom: 16px !important;
  letter-spacing: 3px !important;
}

.share-btns {
  gap: 12px !important;
  justify-content: center !important;
}

.share-btn {
  padding: 10px 24px !important;
  font-size: 0.75rem !important;
  border-radius: 50px !important;
}


/* ==========================================================================
   GALLERY & LIGHTBOX WHITE THEME POLISH
   Ensures images and transitions look seamless in light mode.
   ========================================================================== */

/* 1. Gallery Item Base */
[data-theme="light"] .gallery-item {
  background: var(--bg-raised) !important;
  border: 1px solid var(--panel-line) !important;
  box-shadow: var(--shadow) !important;
}

/* 2. Gallery Meta Bar (Captions) */
[data-theme="light"] .gallery-meta {
  background: rgba(255, 255, 255, 0.9) !important;
  color: var(--ink) !important;
  border-bottom: 1px solid var(--panel-line) !important;
}

[data-theme="light"] .gallery-num {
  background: rgba(201, 162, 75, 0.15) !important;
  color: var(--gold) !important;
  border: 1px solid var(--gold) !important;
}

[data-theme="light"] .gallery-item .gallery-tag {
  color: var(--ink-light) !important;
}

/* 3. Lightbox (The full-screen slider) */
[data-theme="light"] .lightbox {
  background: rgba(252, 250, 250, 0.96) !important;
  backdrop-filter: blur(10px) !important;
}

[data-theme="light"] .lightbox-caption {
  color: var(--ink) !important;
  text-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}

[data-theme="light"] .lightbox button {
  color: var(--ink) !important;
}

[data-theme="light"] .lightbox button:hover {
  color: var(--gold) !important;
}

/* 4. Transition effects - removing the dark shadows from the 'slide' animations */
[data-theme="light"] .gallery-item:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
}


/* --- CLEAN HEADER TEXTS --- */
.nav-brand, 
.nav-brand span, 
.nav-link, 
.nav-links li {
  background: transparent !important;
  background-color: transparent !important;
}

/* Ensure the nav bar itself has the clean background */
[data-theme="light"] .nav {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(14px) saturate(1.2) !important;
  border-bottom: 1px solid var(--panel-line) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05) !important;
}


/* ==========================================================================
   HEADER TOTAL CLEANUP (WHITE THEME)
   ========================================================================== */

/* 1. Remove any background from the brand and links */
[data-theme="light"] .nav-brand, 
[data-theme="light"] .nav-brand span, 
[data-theme="light"] .nav-link, 
[data-theme="light"] .nav-links li,
[data-theme="light"] .nav-logo {
  background: transparent !important;
  background-color: transparent !important;
  text-shadow: none !important;
}

/* 2. Force the Navigation Bar to be a clean, solid white-ish blur */
[data-theme="light"] .nav, 
[data-theme="light"] .nav.scrolled {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(15px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(15px) saturate(1.2) !important;
  border-bottom: 1px solid var(--panel-line) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05) !important;
}

/* 3. Force the text colors again to be absolutely sure */
[data-theme="light"] .nav-brand {
  color: var(--ink) !important;
}
[data-theme="light"] .nav-brand span {
  color: var(--gold) !important;
}
[data-theme="light"] .nav-link {
  color: var(--ink-light) !important;
}
[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
  color: var(--gold) !important;
}


/* ============ FOOTER SPACING TIGHTENING ============ */
.footer {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px !important; /* Reduce gap between main elements */
  padding: 60px 20px calc(60px + var(--safe-bottom)) !important;
}

.footer p, 
.footer span, 
.footer-made, 
.footer-coder {
  margin-top: 0 !important;
  margin-bottom: 4px !important;
  line-height: 1.4 !important; /* Reduce from 1.6 or 1.8 */
}

.footer-logo-link {
  margin-bottom: 10px !important;
}

.footer-ornament {
  margin-bottom: 4px !important;
  margin-top: 0 !important;
}

#footerNames {
  margin-bottom: 8px !important;
  line-height: 1.2 !important;
}

.footer-made {
  margin-bottom: 12px !important;
}

.footer-coder {
  margin-top: 12px !important;
  padding-top: 12px !important;
  margin-bottom: 20px !important;
}

.share-row {
  margin-top: 20px !important;
}

.share-label {
  margin-bottom: 8px !important;
}


/* ============ FOOTER LOGO VISIBILITY FIX ============ */
.footer {
  overflow: visible !important;
  padding-top: 100px !important; /* Push content down to clear the wave */
}

.footer-logo-link {
  position: relative !important;
  z-index: 10 !important; /* Sit above the wave */
  margin-top: 20px !important;
  display: block !important;
  text-align: center !important;
}

.footer-logo {
  position: relative !important;
  z-index: 11 !important;
}
