/* ==========================================================
   Ekene's Magical Birthday Party Layer — Animations & Visual FX
   High-performance Vanilla CSS, 3D transformations, glassmorphism,
   magical particles, shimmering typography, & interactive UI.
   ========================================================== */

/* ---------- Magical Title Font ---------- */
@font-face {
  font-family: "MedievalSharp";
  src: url("fonts/MedievalSharp.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --party-gold: #d4af37;
  --party-gold-bright: #ffe27a;
  --party-crimson: #a3111c;
  --party-crimson-dark: #6b0812;
  --party-purple: #3a2a63;
  --party-night: #1b1435;
  --party-glow-gold: 0 0 15px rgba(212, 175, 55, 0.45);
  --party-glow-star: 0 0 20px rgba(255, 226, 122, 0.7);
  --party-wand-cursor:
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2240%22%20height%3D%2240%22%20viewBox%3D%220%200%2040%2040%22%3E%0A%3Cline%20x1%3D%2232%22%20y1%3D%2232%22%20x2%3D%2214%22%20y2%3D%2214%22%20stroke%3D%22%238b5e34%22%20stroke-width%3D%224%22%20stroke-linecap%3D%22round%22/%3E%0A%3Cline%20x1%3D%2230%22%20y1%3D%2230%22%20x2%3D%2216%22%20y2%3D%2216%22%20stroke%3D%22%23caa472%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22/%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%225%22%20fill%3D%22%23ffe27a%22%20opacity%3D%220.55%22/%3E%0A%3Cpath%20d%3D%22M10%204%20L11.5%208.5%20L16%2010%20L11.5%2011.5%20L10%2016%20L8.5%2011.5%20L4%2010%20L8.5%208.5%20Z%22%20fill%3D%22%23ffe27a%22/%3E%0A%3C/svg%3E")
      10 10,
    auto;
}

html {
  scroll-behavior: smooth;
}

/* ---------- Overlay Canvas & Containers ---------- */
#party-magical-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9988;
}

.party-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 9990;
}

/* ---------- Floating Friendly Ghosts ---------- */
.party-balloon {
  position: absolute;
  bottom: -160px;
  animation: party-balloon-rise linear forwards;
  will-change: transform;
}
.party-balloon svg {
  display: block;
  filter: drop-shadow(0 0 10px rgba(180, 210, 255, 0.7));
  animation:
    party-balloon-sway ease-in-out infinite alternate,
    party-ghost-shimmer 2.4s ease-in-out infinite;
}
@keyframes party-balloon-rise {
  from { transform: translateY(0); }
  to { transform: translateY(-135vh); }
}
@keyframes party-balloon-sway {
  from { transform: translateX(-20px) rotate(-5deg); }
  to { transform: translateX(20px) rotate(5deg); }
}
@keyframes party-ghost-shimmer {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* ---------- Golden Snitch Mini-Game ---------- */
.party-snitch {
  position: absolute;
  z-index: 9992;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.15s ease-out;
  padding: 8px;
}
.party-snitch:hover {
  filter: drop-shadow(0 0 12px rgba(255, 226, 122, 0.95));
}
.party-snitch svg {
  display: block;
  filter: drop-shadow(0 0 6px rgba(232, 185, 63, 0.8));
}
.party-snitch-wing {
  animation: party-snitch-flap 0.08s linear infinite;
}
@keyframes party-snitch-flap {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.25); }
}
.party-snitch-spin {
  animation: party-snitch-spin-anim 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes party-snitch-spin-anim {
  0% { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
  50% { transform: translate(-50%, -50%) rotate(360deg) scale(1.4); }
  100% { transform: translate(-50%, -50%) rotate(720deg) scale(1); }
}

.party-snitch-spark {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--party-gold-bright);
  box-shadow: 0 0 8px 3px rgba(255, 214, 102, 0.9);
  transform: translate(-50%, -50%);
  animation: party-snitch-spark-fade 0.65s ease-out forwards;
  z-index: 9991;
  pointer-events: none;
}
@keyframes party-snitch-spark-fade {
  from { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
  to { opacity: 0; transform: translate(-50%, -50%) scale(0.1); }
}

.party-snitch-score {
  position: absolute;
  z-index: 9999;
  font-family: "MedievalSharp", cursive, serif;
  font-size: 1.4rem;
  font-weight: bold;
  color: #fff3c4;
  text-shadow: 0 0 8px #d4af37, 0 0 16px #ff6900;
  pointer-events: none;
  white-space: nowrap;
  animation: party-score-float 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes party-score-float {
  0% { opacity: 0; transform: translate(-50%, 0) scale(0.5); }
  20% { opacity: 1; transform: translate(-50%, -20px) scale(1.2); }
  80% { opacity: 1; transform: translate(-50%, -60px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -80px) scale(0.8); }
}

/* ---------- Owl Post Delivery ---------- */
.party-owl {
  position: absolute;
  z-index: 9994;
  will-change: transform;
}
.party-owl svg {
  display: block;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.25));
}
.party-owl-wing {
  animation: party-owl-flap 0.3s ease-in-out infinite;
}
@keyframes party-owl-flap {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.48); }
}
.party-owl-envelope {
  position: absolute;
  left: 50%;
  top: 50px;
  transform-origin: 50% -10px;
  transition: opacity 0.2s ease;
  animation: party-owl-envelope-swing 1s ease-in-out infinite;
}
@keyframes party-owl-envelope-swing {
  0%, 100% { transform: translateX(-50%) rotate(-8deg); }
  50% { transform: translateX(-50%) rotate(8deg); }
}

/* ---------- Dropped Invitation Letter ---------- */
.party-letter-drop {
  position: absolute;
  z-index: 9993;
  perspective: 300px;
  animation: party-letter-fall 0.65s ease-in forwards;
}
@keyframes party-letter-fall {
  0% { transform: translate(-50%, -80%) rotate(-12deg); opacity: 0; }
  60% { opacity: 1; }
  100% { transform: translate(-50%, -50%) rotate(2deg); opacity: 1; }
}
.party-envelope-flap {
  transition: transform 0.6s ease;
}
.party-letter-drop--open .party-envelope-flap {
  transform: rotateX(150deg);
}
.party-envelope-paper {
  transition: transform 0.6s ease, opacity 0.5s ease;
}
.party-letter-drop--open .party-envelope-paper {
  transform: translateY(-20px);
}
.party-letter-drop--fade {
  transition: opacity 0.8s ease;
  opacity: 0;
}

/* ---------- Wand Cursor & Multi-Sparkle Trail ---------- */
@media (hover: hover) and (pointer: fine) {
  body {
    cursor: var(--party-wand-cursor);
  }
  a, button, .elementor-button, input[type="submit"], input[type="button"], [role="button"], label, select {
    cursor: var(--party-wand-cursor) !important;
  }
}

.party-wand-spark {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: var(--party-glow-star);
  animation: party-wand-spark-fade 0.6s ease-out forwards;
  z-index: 9993;
  pointer-events: none;
}
.party-wand-spark--star {
  background: none !important;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  color: var(--party-gold-bright);
  text-shadow: 0 0 8px rgba(255, 226, 122, 0.95);
}
@keyframes party-wand-spark-fade {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) translate(0, 0) scale(1.1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translate(var(--wx, 0px), var(--wy, -18px)) scale(0.2);
  }
}

/* ---------- Confetti & Smoke ---------- */
.party-confetti {
  position: absolute;
  top: -20px;
  border-radius: 2px;
  animation-name: party-confetti-fall;
  animation-timing-function: linear;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
  will-change: transform;
  pointer-events: none;
}
.party-confetti--round { border-radius: 50%; }
.party-confetti--ribbon { border-radius: 40% 60% 40% 60%; }
@keyframes party-confetti-fall {
  0% { transform: translateY(0) translateX(0) rotate(0turn); }
  25% { transform: translateY(28vh) translateX(28px) rotate(0.6turn); }
  50% { transform: translateY(56vh) translateX(-24px) rotate(1.2turn); }
  75% { transform: translateY(84vh) translateX(24px) rotate(1.8turn); }
  100% { transform: translateY(115vh) translateX(-18px) rotate(2.4turn); }
}

.party-smoke-flash {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.95) 0%, rgba(255,215,0,0.7) 45%, transparent 75%);
  pointer-events: none;
  z-index: 9994;
  transform: translate(-50%, -50%) scale(0.3);
  animation: party-smoke-flash-pop 0.35s ease-out forwards;
}
@keyframes party-smoke-flash-pop {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0.3); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2.8); }
}
.party-smoke-puff {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,248,220,0.9), rgba(212,175,55,0.5) 55%, rgba(120,90,30,0) 80%);
  filter: blur(1.5px);
  pointer-events: none;
  z-index: 9993;
  opacity: 0.85;
  transform: translate(-50%, -50%) scale(0.4) rotate(0deg);
  animation: party-smoke-puff-drift 0.95s ease-out forwards;
}
@keyframes party-smoke-puff-drift {
  0% { opacity: 0.85; transform: translate(-50%, -50%) scale(0.4) rotate(0deg); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--sx)), calc(-50% + var(--sy))) scale(var(--sscale)) rotate(var(--srot)); }
}

/* ---------- Decorative Floating Art & Photos ---------- */
img[src*="aksen2"] { animation: party-wiggle 3.2s ease-in-out infinite; transform-origin: 50% 50%; }
img[src*="flower1"] { animation: party-spin-slow 16s linear infinite; transform-origin: 50% 50%; }
img[src*="crown-right"] { animation: party-bob 2.6s ease-in-out infinite; }
img[src*="party%402x"], img[src*="party@2x"] { animation: party-bounce-soft 2.2s ease-in-out infinite; }
img[src*="Quotemarks"] { animation: party-bob 3s ease-in-out infinite; }
img[src*="cutout"] { animation: party-float 5s ease-in-out infinite; }

@keyframes party-wiggle { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes party-spin-slow { to { transform: rotate(1turn); } }
@keyframes party-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes party-float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-12px) rotate(0.8deg); } }
@keyframes party-bounce-soft { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-8px) scale(1.06); } }

/* ---------- Shimmering Metallic Typography ---------- */
.party-word {
  display: inline-block;
  white-space: nowrap;
  font-weight: inherit;
  font-family: "MedievalSharp", cursive, serif !important;
}
.party-letter {
  display: inline-block;
  font-style: normal;
  font-weight: inherit;
  font-family: "MedievalSharp", cursive, serif !important;
  animation: party-letter-bounce 2.6s ease-in-out infinite;
  animation-delay: calc(var(--pl-i) * 0.08s);
  will-change: transform;
}
@keyframes party-letter-bounce {
  0%, 20%, 100% { transform: translateY(0); }
  10% { transform: translateY(-0.2em) scale(1.08); text-shadow: 0 0 12px rgba(255, 215, 0, 0.8); }
}

.ekit-heading--title span span,
.party-letter:nth-child(odd) {
  background: linear-gradient(135deg, #d4af37 0%, #ffe27a 50%, #b8952d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}
.party-letter:nth-child(even) {
  background: linear-gradient(135deg, #c81e2c 0%, #ff5252 50%, #8a0d17 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(200, 30, 44, 0.3);
}

/* ---------- Parchment Styling ---------- */
.party-parchment {
  position: relative !important;
  overflow: hidden;
  border-radius: 18px !important;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
.party-parchment::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(120, 90, 40, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 78% 68%, rgba(120, 90, 40, 0.1) 0%, transparent 45%),
    repeating-linear-gradient(0deg, rgba(120, 90, 40, 0.04) 0px, rgba(120, 90, 40, 0.04) 1px, transparent 1px, transparent 3px);
  mix-blend-mode: multiply;
  opacity: 0.85;
}
.party-parchment::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 15%, rgba(255, 200, 120, 0.3) 0%, transparent 65%);
  animation: party-parchment-glow 4.5s ease-in-out infinite;
  mix-blend-mode: soft-light;
}
@keyframes party-parchment-glow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.95; }
}

/* ---------- Wax-Seal Button Styling ---------- */
.elementor-button, .elementor-button:visited, input[type="submit"], button[type="submit"] {
  background: linear-gradient(135deg, #a3111c 0%, #7d0a12 100%) !important;
  border: 2px solid #d4af37 !important;
  color: #fff2d0 !important;
  font-family: "MedievalSharp", cursive, serif !important;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(163, 17, 28, 0.35);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.elementor-button:hover, .elementor-button:focus, input[type="submit"]:hover, button[type="submit"]:hover {
  background: linear-gradient(135deg, #d4af37 0%, #b8952d 100%) !important;
  border-color: #a3111c !important;
  color: #4a080d !important;
  transform: translateY(-3px) scale(1.04) !important;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5) !important;
}

form .elementor-button {
  position: relative;
  overflow: visible;
  background: radial-gradient(circle at 32% 28%, #c81e2c 0%, #8a0d17 55%, #6b0812 100%) !important;
  box-shadow: inset 0 2px 3px rgba(255,255,255,0.3), inset 0 -4px 7px rgba(0,0,0,0.4), 0 4px 12px rgba(0,0,0,0.3);
}

.party-seal-emblem {
  display: inline-flex;
  margin-right: 8px;
  vertical-align: -3px;
}
.party-seal-emblem svg { display: block; }
.party-seal-crack-overlay {
  position: absolute;
  inset: -8px;
  pointer-events: none;
  opacity: 0;
}
.party-seal-crack-overlay svg { display: block; width: 100%; height: 100%; }
.party-seal-cracking .party-seal-crack-overlay {
  animation: party-seal-crack-flash 0.45s ease-out;
}
@keyframes party-seal-crack-flash {
  0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; }
}

/* ---------- Magical Celebration Cheer Banner ---------- */
.party-cheer {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 9999;
  pointer-events: none;
  font-family: "MedievalSharp", cursive, serif;
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  color: #fff3c4;
  text-shadow: 0 0 20px #d4af37, 0 0 40px #a3111c;
  background: rgba(27, 20, 53, 0.92);
  padding: 20px 40px;
  border-radius: 30px;
  border: 3px solid #d4af37;
  transform: translate(-50%, -50%) scale(0);
  animation: party-cheer-pop 2.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes party-cheer-pop {
  0% { transform: translate(-50%, -50%) scale(0) rotate(-12deg); opacity: 0; }
  18% { transform: translate(-50%, -50%) scale(1.1) rotate(3deg); opacity: 1; }
  28% { transform: translate(-50%, -50%) scale(1) rotate(0); }
  80% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -55%) scale(0.9); opacity: 0; }
}

/* ---------- Interactive Birthday Countdown Clock ---------- */
.party-countdown-wrap {
  margin: 30px auto 10px;
  padding: 24px 28px;
  max-width: 680px;
  background: rgba(27, 20, 53, 0.9);
  border: 2px solid rgba(212, 175, 55, 0.5);
  border-radius: 24px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.3), inset 0 0 20px rgba(212, 175, 55, 0.15);
  text-align: center;
  position: relative;
  z-index: 10;
  animation: party-float 6s ease-in-out infinite;
}
.party-countdown-title {
  font-family: "MedievalSharp", cursive, serif;
  font-size: 1.35rem;
  color: #ffe27a;
  margin-bottom: 16px;
  text-shadow: 0 0 10px rgba(255, 226, 122, 0.6);
  letter-spacing: 1px;
}
.party-countdown-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.party-countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 226, 122, 0.3);
  border-radius: 16px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}
.party-countdown-unit:hover {
  transform: translateY(-4px) scale(1.05);
  border-color: rgba(255, 226, 122, 0.7);
}
.party-countdown-number {
  font-family: "MedievalSharp", cursive, serif;
  font-size: 2.2rem;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 0 0 12px #d4af37;
  line-height: 1.1;
}
.party-countdown-label {
  font-family: "Quicksand", sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #d4c3f5;
  margin-top: 4px;
}

/* ---------- Floating Celebration Spell Menu (FAB) ---------- */
.party-fab-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9997;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 12px;
}
.party-fab-trigger {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle, #d4af37 0%, #a3111c 100%);
  border: 2px solid #ffe27a;
  color: #fff;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), var(--party-glow-star);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  outline: none;
}
.party-fab-trigger:hover {
  transform: scale(1.12) rotate(15deg);
  box-shadow: 0 12px 30px rgba(255, 226, 122, 0.8);
}
.party-fab-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.8);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.party-fab-wrap.party-fab-open .party-fab-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.party-fab-item {
  background: rgba(27, 20, 53, 0.95);
  border: 1px solid rgba(212, 175, 55, 0.6);
  color: #fff2d0;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: "Quicksand", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.party-fab-item:hover {
  background: rgba(163, 17, 28, 0.95);
  border-color: #ffe27a;
  transform: translateX(-6px) scale(1.04);
  box-shadow: 0 8px 22px rgba(212, 175, 55, 0.4);
}

/* ---------- Scroll Reveal Animations ---------- */
.party-reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  transition: opacity 0.6s ease-out, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.party-reveal.party-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ---------- Nav Scrollspy & Active Link ---------- */
.party-nav-active {
  color: var(--party-crimson) !important;
  text-shadow: 0 0 10px rgba(163, 17, 28, 0.3);
}

/* ---------- Gallery & Lightbox ---------- */
.elementor-element-3412668 {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, #fdf8ec 0%, #f9edcf 55%, #f3e0ae 100%) !important;
}
.elementor-element-3412668::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 90px;
  background-image: url("bg-bookshelf.svg");
  background-repeat: repeat-x;
  background-position: bottom left;
  background-size: auto 100%;
  pointer-events: none;
  z-index: 1;
}
.elementor-element-3412668 > .elementor-container { position: relative; z-index: 2; }

.eael-gallery-grid-item > a.gallery-item-thumbnail-wrap {
  display: block;
  cursor: pointer;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.eael-gallery-grid-item:hover a.gallery-item-thumbnail-wrap {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 14px 30px rgba(0,0,0,0.2), var(--party-glow-gold);
}

.party-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 10, 25, 0.95);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.party-lightbox--open { display: flex; opacity: 1; }
body.party-lightbox-lock { overflow: hidden; }

.party-lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 14px;
  border: 2px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7), var(--party-glow-star);
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.party-lightbox--open .party-lightbox-img { transform: scale(1); }

.party-lightbox-close, .party-lightbox-prev, .party-lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 226, 122, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.party-lightbox-close:hover, .party-lightbox-prev:hover, .party-lightbox-next:hover {
  background: rgba(212, 175, 55, 0.4);
  border-color: #ffe27a;
  box-shadow: var(--party-glow-star);
}
.party-lightbox-close { top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%; font-size: 26px; }
.party-lightbox-prev, .party-lightbox-next { top: 50%; width: 50px; height: 50px; border-radius: 50%; font-size: 20px; transform: translateY(-50%); }
.party-lightbox-prev { left: 20px; }
.party-lightbox-next { right: 20px; }
.party-lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #ffe27a;
  background: rgba(27, 20, 53, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 8px 20px;
  border-radius: 999px;
  font-family: "Quicksand", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.elementor-element-7c7430f {
  position: relative !important;
  overflow: hidden;
  background: linear-gradient(to bottom, #1b1435 0%, #2c1f52 55%, #3a2a63 100%) !important;
  color: #ffffff !important;
}
.elementor-element-7c7430f::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 170px;
  background-image: url("bg-castle.svg");
  background-repeat: repeat-x;
  background-position: bottom left;
  background-size: auto 100%;
  pointer-events: none;
  z-index: 1;
}
.elementor-element-7c7430f > .elementor-container { position: relative; z-index: 2; }

/* Ensure high contrast visibility for all footer text, links, social icons, & copyright */
footer#colophon,
footer#colophon .elementor-widget-text-editor,
footer#colophon .elementor-widget-container,
footer#colophon p,
footer#colophon span,
footer#colophon div,
footer#colophon li,
footer#colophon a,
.ekit_socialshare li a,
.ekit_socialshare li a i,
.elementor-element-dc07a7e,
.elementor-element-dc07a7e .elementor-widget-container {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
  font-weight: 600 !important;
}

footer#colophon a:hover,
.ekit_socialshare li a:hover {
  color: #ffe27a !important;
  text-shadow: 0 0 10px rgba(255, 226, 122, 0.9) !important;
}

/* Set wave divider shape fill before the footer to match the footer top color (#1b1435) */
.elementor-element-746833b > .elementor-shape-bottom .elementor-shape-fill {
  fill: #1b1435 !important;
}

/* ---------- Photo Cutout Fixes & Animations ---------- */
.elementor-element-54cb4ca > .elementor-widget-container > img { display: none !important; }
.elementor-element-54cb4ca > .elementor-widget-container {
  background-image: url("../ekene/ekene-playing-with-stingray.jpeg") !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  aspect-ratio: 694 / 526;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}
.elementor-element-ae5767c > .elementor-widget-container {
  background-image: url("../ekene/ekene-the-village-boy.jpg") !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}
.elementor-element-54cb4ca, .elementor-element-ae5767c {
  animation: party-photo-float 6s ease-in-out infinite;
}
.elementor-element-ae5767c { animation-delay: -3s; }
@keyframes party-photo-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(0.8deg); }
}

/* ---------- Accessibility Override ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #party-magical-canvas, .party-layer, .party-fab-wrap { display: none !important; }
  .party-letter, img, .party-reveal, .party-parchment { animation: none !important; transition: none !important; transform: none !important; opacity: 1 !important; }
}
