/* ========================================================
   THEME: LUXURY MIDNIGHT NAVY & GOLD (AZUL MARINO Y ORO)
   Inspirado en los estilos seleccionados por la novia
   ======================================================== */

:root {
  --navy-darkest: #050d18;
  --navy-deep: #081628;
  --navy-surface: #0c1e36;
  --navy-card: #0e2440;
  --navy-card-border: rgba(223, 177, 91, 0.45);
  --gold-primary: #dfb15b;
  --gold-light: #f5d796;
  --gold-dark: #b88d36;
  --gold-gradient: linear-gradient(135deg, #d4af37 0%, #f6e297 50%, #b88d36 100%);
  --text-primary: #ffffff;
  --text-muted: #cbd5e1;
  --font-serif: "Bree Serif", serif;
}

/* Base Body & Layout */
body {
  background-color: var(--navy-darkest) !important;
  color: var(--text-primary) !important;
}

/* Envelope Screen / Landing Page */
.background-img {
  background-image: url("../images/theme_navy_marble_sym.jpg") !important;
  background-size: cover !important;
  background-position: center !important;
  background-color: var(--navy-darkest) !important;
  min-height: 100vh !important;
  width: 100vw !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

@media (min-width: 900px) {
  .background-img {
    background-image: url("../images/theme_navy_marble_desktop.jpg") !important;
  }
}

.container-index {
  width: 100% !important;
  max-width: 960px !important;
  margin: 0 auto !important;
  padding: 20px 15px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

/* Glassmorphism Instructions Card with Maximum Contrast */
.invitation-instructions {
  background: rgba(5, 13, 24, 0.82) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(223, 177, 91, 0.45) !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.85), inset 0 0 20px rgba(223, 177, 91, 0.08) !important;
  padding: 22px 28px !important;
  margin: 10px auto 25px auto !important;
  max-width: 680px !important;
  width: 92% !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

.invitation-instructions h3 {
  color: #ffdf79 !important;
  font-family: "Pacifico", cursive !important;
  font-size: clamp(22px, 3.8vw, 36px) !important;
  font-weight: 400 !important;
  margin: 0 0 12px 0 !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95), 0 0 16px rgba(223, 177, 91, 0.6) !important;
  line-height: 1.3 !important;
}

.invitation-instructions p {
  color: #ffffff !important;
  font-family: "Times New Roman", Times, serif !important;
  font-size: clamp(15px, 2.2vw, 19px) !important;
  font-style: italic !important;
  font-weight: 600 !important;
  line-height: 1.6 !important;
  margin: 0 !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.95), 0 0 2px #000000 !important;
}

/* ========================================================
   RESPONSIVE ENVELOPE (MÓVIL, TABLETA Y ESCRITORIO)
   ======================================================== */
.envelope-wrapper {
  --env-w: 520px;
  --env-h: 340px;
  width: var(--env-w) !important;
  height: var(--env-h) !important;
  max-width: 90vw !important;
  position: relative !important;
  margin: 20px auto !important;
  aspect-ratio: auto !important;
  background-color: var(--navy-surface) !important;
  border: 2px solid var(--gold-primary) !important;
  border-radius: 16px !important;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.85), 0 0 25px rgba(223, 177, 91, 0.35) !important;
  cursor: pointer !important;
  outline: none !important;
  box-sizing: border-box !important;
  perspective: 1000px !important;
  overflow: hidden !important;
}

.envelope-wrapper.open {
  overflow: visible !important;
}

@media (max-width: 991px) {
  .envelope-wrapper {
    --env-w: 440px;
    --env-h: 290px;
  }
}

@media (max-width: 599px) {
  .envelope-wrapper {
    --env-w: min(320px, 86vw);
    --env-h: calc(var(--env-w) * 0.66);
    margin: 15px auto !important;
  }
}

@media (max-width: 360px) {
  .envelope-wrapper {
    --env-w: 275px;
    --env-h: 180px;
  }
}

/* Envelope Bottom & Flaps */
.envelope-wrapper .envelope {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  border-top: calc(var(--env-h) * 0.48) solid transparent !important;
  border-bottom: calc(var(--env-h) * 0.52) solid #0b1a2e !important;
  border-left: calc(var(--env-w) * 0.5) solid #0e233d !important;
  border-right: calc(var(--env-w) * 0.5) solid #0e233d !important;
  border-radius: 0 0 14px 14px !important;
  z-index: 3 !important;
  pointer-events: none !important;
  box-shadow: inset 0 -2px 10px rgba(0, 0, 0, 0.5) !important;
  box-sizing: border-box !important;
  transition: z-index 0.2s ease, opacity 0.4s ease !important;
}

/* Envelope Top Flap */
.envelope-wrapper .opened-envelope {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  border-top: calc(var(--env-h) * 0.53) solid #112845 !important;
  border-left: calc(var(--env-w) * 0.5) solid transparent !important;
  border-right: calc(var(--env-w) * 0.5) solid transparent !important;
  border-bottom: none !important;
  border-radius: 14px 14px 0 0 !important;
  transform-origin: top center !important;
  z-index: 4 !important;
  pointer-events: none !important;
  box-sizing: border-box !important;
}

/* Letter inside Envelope */
.envelope-wrapper .letter {
  position: absolute !important;
  top: 6px !important;
  left: 6px !important;
  width: calc(var(--env-w) - 12px) !important;
  height: calc(var(--env-h) - 12px) !important;
  min-height: unset !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 15px 12px !important;
  box-sizing: border-box !important;
  border-radius: 12px !important;
  background: var(--navy-surface) url("../images/theme_navy_floral.png") no-repeat center center !important;
  background-size: cover !important;
  border: 1px solid var(--gold-primary) !important;
  outline: 2px double var(--gold-primary) !important;
  outline-offset: -5px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7) !important;
  z-index: 2 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  overflow: hidden !important;
  transition: box-shadow 0.3s ease !important;
}

/* When letter is extracted out of the envelope and rests in front */
.envelope-wrapper.letter-front .letter,
.envelope-wrapper .letter.in-front {
  z-index: 100 !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 35px rgba(223, 177, 91, 0.5) !important;
}

.envelope-wrapper.letter-front .envelope,
.envelope-wrapper.open.letter-front .envelope,
.envelope-wrapper .envelope.behind {
  opacity: 0 !important;
  visibility: hidden !important;
  display: none !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

.envelope-wrapper .letter h1 {
  font-size: clamp(20px, 3.8vw, 34px) !important;
  color: #ffdf79 !important;
  font-family: "Pacifico", cursive !important;
  margin: 0 0 8px 0 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95), 0 0 12px rgba(223, 177, 91, 0.6) !important;
  line-height: 1.2 !important;
  text-align: center !important;
}

.envelope-wrapper .letter p {
  font-size: clamp(12px, 2vw, 16px) !important;
  color: #ffffff !important;
  font-family: "Times New Roman", Times, serif !important;
  font-style: italic !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95) !important;
  text-align: center !important;
}

/* Navigation Header & Links - Maximum priority, always clickable & perfectly aligned */
header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 64px !important;
  z-index: 100000 !important;
  pointer-events: auto !important;
  background-color: rgba(8, 22, 40, 0.96) !important;
  border-bottom: 1px solid rgba(223, 177, 91, 0.35) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
}

header nav.wed_light_nav,
header nav.wed_transp_nav,
header nav {
  height: 64px !important;
  background: transparent !important;
  border: none !important;
  position: relative !important;
  pointer-events: auto !important;
}

header .container {
  position: relative !important;
  height: 64px !important;
  pointer-events: auto !important;
}

.wed_couple_header {
  position: absolute !important;
  left: 15px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  height: 38px !important;
  width: auto !important;
  z-index: 100002 !important;
}

.wed_logo {
  position: absolute !important;
  left: 65px !important;
  top: 13px !important;
  transform: none !important;
  color: var(--gold-primary) !important;
  font-size: 21px !important;
  line-height: 1.1 !important;
  margin: 0 !important;
  padding: 0 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6) !important;
  z-index: 100002 !important;
}

.wed_logo_und {
  position: absolute !important;
  left: 67px !important;
  top: 37px !important;
  color: #cbd5e1 !important;
  font-size: 10px !important;
  letter-spacing: 3px !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 100002 !important;
}

@media (min-width: 1001px) {
  .wed_top_menu_mobile_link {
    display: none !important;
  }

  .wed_top_menu_cont {
    position: absolute !important;
    right: 15px !important;
    top: 0 !important;
    height: 64px !important;
    display: flex !important;
    align-items: center !important;
    z-index: 100002 !important;
    pointer-events: auto !important;
  }

  .wed_top_menu {
    display: flex !important;
    align-items: center !important;
    height: 64px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    float: none !important;
  }

  .wed_top_menu li {
    height: 64px !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    margin: 0 2px !important;
    padding: 0 !important;
  }

  header nav ul li a,
  .wed_top_menu li a {
    height: 64px !important;
    line-height: 64px !important;
    padding: 0 13px !important;
    display: inline-flex !important;
    align-items: center !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    color: #ffffff !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    transition: color 0.3s ease !important;
  }

  .wed_top_menu li a:hover,
  .wed_top_menu li.current a {
    color: var(--gold-primary) !important;
  }

  .wed_top_menu li:before,
  .wed_top_menu li.current:before,
  .wed_first_step .wed_top_menu li.current:before,
  .wed_second_step .wed_top_menu li.current:before {
    position: absolute !important;
    left: 50% !important;
    bottom: 8px !important;
    top: auto !important;
    transform: translateX(-50%) !important;
    margin-top: 0 !important;
    width: 45px !important;
    height: 8px !important;
    background-image: url(../images/arrow_wht.png) !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    filter: brightness(1.2) sepia(1) hue-rotate(5deg) saturate(3) !important;
  }

  .wed_top_menu li:not(.current):before {
    display: none !important;
  }
}

/* Music Toggle Floating Action Button */
.wed_music_content {
  left: 20px !important;
  bottom: 20px !important;
  width: 54px !important;
  height: 54px !important;
  transform: none !important;
  z-index: 9999 !important;
  position: fixed !important;
}

.wed_music_container {
  width: 54px !important;
  height: 54px !important;
  border-radius: 50% !important;
  background: var(--gold-gradient) !important;
  background-image: none !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 4px 18px rgba(223, 177, 91, 0.65), 0 2px 8px rgba(0, 0, 0, 0.4) !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  animation: pulse2 3s infinite both !important;
}

.wed_music_container:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 6px 24px rgba(223, 177, 91, 0.9) !important;
}

.wed_music_container .music-toggle {
  color: var(--navy-darkest) !important;
  font-size: 26px !important;
  line-height: 1 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Hero Section */
.wed_slider {
  background-color: var(--navy-darkest) !important;
  min-height: 100vh !important;
  height: 100vh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  overflow: hidden !important;
}

.wed_slider .wed_over {
  background-color: var(--navy-deep) !important;
  opacity: 0.82 !important;
}

.hero-slider-container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  z-index: 10 !important;
  height: 100% !important;
  width: 100% !important;
  padding: 20px !important;
  margin: 0 auto !important;
}

.wed_slide_txt.wed_hero_content,
.wed_slide_txt {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  width: 100% !important;
  max-width: 680px !important;
  margin: 0 auto !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

.hero-couple-names,
.wed_slide_txt img {
  max-height: 44vh !important;
  max-width: 88vw !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  margin: 0 auto 10px auto !important;
  filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.7));
}

.wed_slide_txt h4 {
  color: var(--gold-primary) !important;
  letter-spacing: 4px;
  font-weight: 600;
  font-size: clamp(16px, 2.2vw, 24px) !important;
  margin: 6px 0 !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}

.wed_slide_txt h3 {
  color: #ffffff !important;
  font-size: clamp(20px, 3.2vw, 36px) !important;
  letter-spacing: 3px;
  margin: 4px 0 0 0 !important;
  text-shadow: 0 2px 10px rgba(0,0,0,0.95);
}

.wed_scroll_down {
  color: var(--gold-primary) !important;
  z-index: 20 !important;
}

.wed_scroll_down b {
  border-color: var(--gold-primary) !important;
}

/* Save the Date / Main Ceremony Section */
#save {
  background: var(--navy-deep) !important;
  color: #ffffff !important;
  border-top: 1px solid var(--gold-primary);
  border-bottom: 1px solid var(--gold-primary);
  padding: 40px 15px 80px 15px !important;
}

#save .container {
  padding-left: 20px !important;
  padding-right: 20px !important;
  padding-bottom: 50px !important;
  max-width: 1100px !important;
}

.wed_topstory_titile h2,
.wed_great_titles h2 {
  color: var(--gold-primary) !important;
  text-shadow: 0 2px 5px rgba(0,0,0,0.6);
}

.married_txt {
  background: rgba(12, 30, 54, 0.95) !important;
  border: 1px solid var(--gold-primary) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(223, 177, 91, 0.08) !important;
  padding: 35px 22px !important;
  border-radius: 14px;
  margin: 20px auto 40px auto !important;
  max-width: 580px;
  width: 92% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.wed_img_1,
.wed_img_2 {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7), 0 0 20px rgba(223, 177, 91, 0.35) !important;
  border: 3px solid var(--gold-primary) !important;
}

.wed_img_1:before,
.wed_img_2:before {
  display: none !important;
}

.married_txt p {
  color: #f1f5f9 !important;
}

.married_txt h3 {
  color: var(--gold-primary) !important;
}

.married_txt b {
  color: var(--gold-light) !important;
}

.married_txt a {
  color: var(--gold-primary) !important;
  text-decoration: underline;
}

/* Luxury Buttons - Fully Responsive on Mobile & Desktop */
.btn.btn_new,
input[type="submit"].btn_new,
.married_txt .btn_new {
  background: var(--gold-gradient) !important;
  color: var(--navy-darkest) !important;
  font-weight: 700 !important;
  border: none !important;
  letter-spacing: 1px !important;
  box-shadow: 0 4px 15px rgba(223, 177, 91, 0.4) !important;
  transition: all 0.3s ease !important;
  border-radius: 30px !important;
  padding: 12px 20px !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  white-space: normal !important;
  line-height: 1.35 !important;
  font-size: clamp(12px, 3.6vw, 16px) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  word-break: break-word !important;
}

.btn.btn_new:hover,
input[type="submit"].btn_new:hover,
.married_txt .btn_new:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(223, 177, 91, 0.6) !important;
  color: #000000 !important;
}

/* Padres Section */
#padres {
  background-color: var(--navy-darkest) !important;
}

#padres .wed_over {
  background-color: var(--navy-deep) !important;
  opacity: 0.9 !important;
}

#padres h2 {
  color: #ffdf79 !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95), 0 0 15px rgba(223, 177, 91, 0.4);
}

#padres h3 {
  color: #ffffff !important;
  font-weight: 700 !important;
  letter-spacing: 1px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95);
}

#padres h4 {
  color: #ffdf79 !important;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 800 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
}

/* Padrinos & Cortejo (Grid 2 - 2 - 1) */
.godparent-groups {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 22px !important;
  max-width: 860px !important;
  margin: 30px auto 0 auto !important;
  width: 100% !important;
}

@media (max-width: 650px) {
  .godparent-groups {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

.godparent-group {
  background: linear-gradient(145deg, #0e2440, #081729) !important;
  border: 1px solid var(--navy-card-border) !important;
  border-radius: 12px !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6), inset 0 0 10px rgba(223, 177, 91, 0.05) !important;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
  padding: 24px 18px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

.godparent-group:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8), 0 0 15px rgba(223, 177, 91, 0.3) !important;
}

.godparent-group h3 {
  color: #ffdf79 !important;
  font-size: 1.1em !important;
  letter-spacing: 0.5px;
  font-weight: 700 !important;
  margin-top: 10px !important;
  margin-bottom: 8px !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.godparent-group p {
  color: #ffffff !important;
  font-size: 0.98em !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  margin: 0 !important;
}

.godparent-group img {
  filter: brightness(0) saturate(100%) invert(80%) sepia(35%) saturate(750%) hue-rotate(2deg) brightness(98%) contrast(88%) !important;
  margin-bottom: 8px;
}

.honor-court-card {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 28px 24px !important;
}

.honor-court-names {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 10px 18px !important;
  margin-top: 15px !important;
}

.honor-court-names p {
  margin: 0 !important;
  font-size: 1.02em !important;
  color: #ffffff !important;
  background: rgba(223, 177, 91, 0.08);
  border: 1px solid rgba(223, 177, 91, 0.35);
  padding: 7px 18px !important;
  border-radius: 20px !important;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.godparent-group p {
  color: #ffffff !important;
  font-size: 0.95em !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.godparent-group img {
  filter: brightness(0) saturate(100%) invert(80%) sepia(35%) saturate(750%) hue-rotate(2deg) brightness(98%) contrast(88%) !important;
  margin-bottom: 8px;
}

#leafContainer > div > img {
  filter: sepia(100%) saturate(350%) brightness(125%) hue-rotate(10deg) !important;
}


/* Contador Centrado y Responsive */
#contador .wed_over {
  background-color: var(--navy-deep) !important;
  opacity: 0.92 !important;
}

#contador h2 {
  color: var(--gold-primary) !important;
  margin-bottom: 25px !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

.countdown-wrapper {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 25px auto 10px auto !important;
  padding: 0 !important;
  text-align: center !important;
}

.wed_countdown_container {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 20px !important;
  width: 100% !important;
  max-width: 800px !important;
  margin: 0 auto !important;
}

.countdown-box {
  flex: 1 1 140px !important;
  max-width: 165px !important;
  min-width: 100px !important;
  background: linear-gradient(145deg, #0e2440, #081729) !important;
  border: 1px solid var(--gold-primary) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), inset 0 0 10px rgba(223, 177, 91, 0.1) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 22px 10px !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.countdown-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8), 0 0 18px rgba(223, 177, 91, 0.3) !important;
}

.countdown-num {
  color: var(--gold-primary) !important;
  font-size: 48px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  margin-bottom: 8px !important;
  font-family: var(--font-serif), serif !important;
  text-shadow: 0 0 12px rgba(223, 177, 91, 0.4) !important;
}

.countdown-label {
  color: #f1f5f9 !important;
  font-size: 14px !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  font-weight: 500 !important;
}

/* Compatibilidad con jQuery Countdown anterior */
.wed_countdown {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin: 0 auto !important;
}

.countdown-row {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 15px !important;
  width: 100% !important;
  max-width: 800px !important;
  margin: 0 auto !important;
}

.countdown-section {
  float: none !important;
  flex: 1 1 140px !important;
  max-width: 165px !important;
  min-width: 100px !important;
  background: linear-gradient(145deg, #0e2440, #081729) !important;
  border: 1px solid var(--gold-primary) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6) !important;
  padding: 20px 10px !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

.countdown-section:before {
  display: none !important;
}

.wed_countdown .countdown-amount {
  color: var(--gold-primary) !important;
  font-size: 46px !important;
  font-weight: 700 !important;
  display: block !important;
  line-height: 1.1 !important;
  margin-bottom: 6px !important;
}

.wed_countdown .countdown-period {
  color: #ffffff !important;
  font-size: 13px !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  display: block !important;
  margin-top: 0 !important;
}

@media (max-width: 768px) {
  .countdown-wrapper {
    margin: 15px auto !important;
    padding: 0 5px !important;
  }
  .wed_countdown_container,
  .countdown-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .countdown-box,
  .countdown-section {
    flex: 1 1 0 !important;
    min-width: 65px !important;
    max-width: 82px !important;
    padding: 12px 2px !important;
  }
  .countdown-num,
  .wed_countdown .countdown-amount {
    font-size: 24px !important;
    margin-bottom: 4px !important;
  }
  .countdown-label,
  .wed_countdown .countdown-period {
    font-size: 9px !important;
    letter-spacing: 1px !important;
  }
}


/* Galeria */
#galeria {
  background-color: var(--navy-deep) !important;
}

#galeria h2 {
  color: var(--gold-primary) !important;
}

.wed_port_titles {
  background-color: rgba(8, 22, 40, 0.88) !important;
}

.wed_port_title {
  color: var(--gold-primary) !important;
  font-weight: 700;
  letter-spacing: 2px;
}

.wed_port_icons span {
  color: var(--gold-primary) !important;
}

/* Recepcion */
#recepcion {
  background-color: var(--navy-darkest) !important;
  padding-top: 60px !important;
  padding-bottom: 70px !important;
  position: relative !important;
  clear: both !important;
}

#recepcion .wed_over {
  display: none !important;
}

.wed_map_txt,
.wed_map_txt .wed_icon_box_content {
  text-align: center !important;
  width: 100% !important;
}

.wed_map_txt .wed_icon_box_content {
  padding: 0 !important;
  margin: 0 !important;
}

.wed_map_txt {
  position: relative !important;
  top: auto !important;
  transform: none !important;
  -webkit-transform: none !important;
  background: rgba(10, 24, 43, 0.95) !important;
  border: 2px solid var(--gold-primary) !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7) !important;
  padding: 35px 20px !important;
  max-width: 680px !important;
  width: 92% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  margin: 0 auto 30px auto !important;
  text-align: center !important;
}

.wed_map_txt h2,
.wed_map_txt h3,
.wed_map_txt h4,
.wed_map_txt p {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.wed_map_txt h2 {
  color: var(--gold-primary) !important;
}

.wed_map_txt h3 {
  color: #ffffff !important;
  font-family: var(--font-serif) !important;
  font-size: clamp(20px, 4.8vw, 32px) !important;
  line-height: 1.35 !important;
  margin: 12px auto 10px auto !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  text-transform: uppercase !important;
  white-space: normal !important;
  letter-spacing: 0.5px !important;
  text-align: center !important;
  display: block !important;
  width: 100% !important;
}

.wed_map_txt h4 b {
  color: #ffffff !important;
}

.wed_map_txt .mdi-dance-ballroom {
  color: var(--gold-primary) !important;
  display: inline-block !important;
  margin: 0 auto !important;
}

.btn-reception-maps {
  color: var(--navy-darkest) !important;
  background: var(--gold-gradient) !important;
  font-weight: 700 !important;
  font-size: clamp(12px, 3.4vw, 15px) !important;
  padding: 12px 18px !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  white-space: normal !important;
  line-height: 1.35 !important;
  word-break: break-word !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  border-radius: 30px !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(223, 177, 91, 0.45) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease !important;
  text-decoration: none !important;
}

.btn-reception-maps:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 22px rgba(223, 177, 91, 0.75) !important;
  color: #000000 !important;
}

/* Mesa de Regalos / Sugerencia de Regalo Monetario */
#regalos {
  background-color: var(--navy-deep) !important;
  padding: 60px 15px !important;
  border-top: 1px solid rgba(223, 177, 91, 0.3);
  border-bottom: 1px solid rgba(223, 177, 91, 0.3);
}

.gift-monetary-box {
  background: linear-gradient(145deg, #0e2440, #081729) !important;
  border: 1px solid var(--gold-primary) !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), inset 0 0 20px rgba(223, 177, 91, 0.08) !important;
  padding: 35px 25px !important;
  max-width: 680px;
  margin: 0 auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gift-monetary-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.85), 0 0 20px rgba(223, 177, 91, 0.3) !important;
}

.gift-envelope-icon {
  width: 65px !important;
  height: auto !important;
  margin: 0 auto 15px auto !important;
  display: block;
  filter: brightness(0) saturate(100%) invert(80%) sepia(35%) saturate(750%) hue-rotate(2deg) brightness(98%) contrast(88%) !important;
}

.gift-monetary-box h3 {
  color: var(--gold-primary) !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  margin: 0 0 14px 0 !important;
  letter-spacing: 1px;
}

.gift-main-text {
  font-size: 1.15em !important;
  color: #f1f5f9 !important;
  line-height: 1.6 !important;
  margin: 0 auto !important;
}

/* Codigo de Vestimenta */
.wed_section_inner .wed_over {
  background-color: var(--navy-deep) !important;
  opacity: 0.92 !important;
}

/* Hospedaje */
section:has(.wed_team_slider) {
  background-color: var(--navy-darkest) !important;
  padding: 50px 0 !important;
}

.wed_testimonials {
  background: var(--navy-card) !important;
  border: 1px solid var(--gold-primary) !important;
  color: #ffffff !important;
}

.wed_testimonials h4 b {
  color: var(--gold-primary) !important;
}

.wed_testimonials p {
  color: #cbd5e1 !important;
}

.wed_testimonials .mdi-map-marker-circle {
  color: var(--gold-primary) !important;
}

.wed_test_name b {
  color: var(--gold-primary) !important;
}

.wed_icon_box.wed_test_cont p {
  color: #cbd5e1 !important;
}

.wed_icon_box_photo_testimonials img {
  border: 2px solid var(--gold-primary) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.owl-theme .owl-controls .owl-page span {
  background: var(--gold-primary) !important;
}

/* Confirmar Asistencia */
#confirmar {
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-darkest) 100%) !important;
  padding: 60px 0 !important;
  border-top: 1px solid var(--gold-primary);
}

#confirmar h2.wed_form_txt {
  color: var(--gold-primary) !important;
}

#confirmar p.wed_form_txt {
  color: #f1f5f9 !important;
}

.form_color {
  border-color: var(--gold-primary) !important;
}

.wed_form input[type="text"],
.wed_form input[type="tel"],
.wed_form textarea {
  background-color: #0b1c30 !important;
  color: #ffffff !important;
  border: 1px solid var(--gold-primary) !important;
  border-radius: 6px;
}

.wed_form input[type="text"]::placeholder,
.wed_form textarea::placeholder {
  color: #94a3b8 !important;
}

.wed_form input[type="text"]:focus,
.wed_form textarea:focus {
  border-color: var(--gold-light) !important;
  box-shadow: 0 0 10px rgba(223, 177, 91, 0.5) !important;
  outline: none;
}

/* Footer */
footer,
section.wed_section_inner.container {
  background-color: var(--navy-darkest) !important;
}

footer h5,
.wed_section_inner h5 {
  color: var(--gold-primary) !important;
}

.social-media a span {
  color: var(--gold-primary) !important;
  transition: transform 0.2s ease;
}

.social-media a span:hover {
  transform: scale(1.15);
}

.wed_top span {
  color: var(--gold-primary) !important;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
  .envelope-wrapper {
    max-width: 320px;
    border-width: 1px !important;
  }
  .envelope-wrapper .envelope {
    border-bottom-color: #0b1a2e !important;
    border-right-color: #0e233d !important;
    border-left-color: #0e233d !important;
  }
  .envelope-wrapper .opened-envelope {
    border-top-color: #112845 !important;
  }
  .wed_slide_txt img {
    height: 320px !important;
    max-width: 90vw !important;
  }
}

/* Enable Fireflies and Falling Leaves on Mobile & Desktop */
.mobile .jqueryFireFly,
.mobile .wed_firefly,
.wed_firefly,
#leafContainer {
  display: block !important;
}

.wed_firefly,
.wed_firefly *,
.jqueryFireFly,
.jqueryFireFly * {
  pointer-events: none !important;
}

.wed_firefly {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  pointer-events: none !important;
  z-index: 999 !important;
  overflow: hidden !important;
}

#leafContainer,
#leafContainer *,
#leafContainer > div,
#leafContainer > div > img {
  pointer-events: none !important;
}

#leafContainer {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  pointer-events: none !important;
  z-index: 998 !important;
  overflow: hidden !important;
}

/* Gallery Uniform Aspect Ratio */
.wed_portfolio_item img {
  width: 100% !important;
  aspect-ratio: 3 / 2 !important;
  object-fit: cover !important;
  border-radius: 8px !important;
}

/* Reception Section & Map */
#recepcion {
  background: var(--navy-darkest) !important;
}

#recepcion .wed_over {
  display: none !important;
}

.wed_map_wrapper {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(223, 177, 91, 0.2);
}

.wed_map_wrapper iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: none;
}

/* Header & Mobile Logo / Icon */
.wed_couple_header.wed_white_couple {
  display: block !important;
  opacity: 1 !important;
  position: absolute !important;
  top: 14px !important;
  left: 15px !important;
  height: 34px !important;
  width: auto !important;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6)) brightness(1.2) sepia(1) hue-rotate(5deg) saturate(3) !important;
  z-index: 10 !important;
}

.wed_couple_header.wed_kissing_couple {
  display: none !important;
}

.wed_first_step .wed_couple_header.wed_white_couple,
.wed_second_step .wed_couple_header.wed_white_couple {
  display: block !important;
  opacity: 1 !important;
  z-index: 10 !important;
}

.wed_logo {
  color: var(--gold-primary) !important;
  left: 58px !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8) !important;
}

/* Mobile Menu Adjustments */
@media (max-width: 1000px) {
  header,
  header nav.wed_light_nav,
  header nav,
  header .container {
    height: 56px !important;
  }

  .wed_couple_header,
  .wed_couple_header.wed_white_couple {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    left: 12px !important;
    height: 30px !important;
    display: block !important;
    opacity: 1 !important;
    z-index: 100002 !important;
  }

  .wed_logo {
    position: absolute !important;
    left: 48px !important;
    top: 9px !important;
    transform: none !important;
    font-size: 18px !important;
    line-height: 22px !important;
    max-width: calc(100% - 110px) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    z-index: 100002 !important;
  }

  .wed_logo_und {
    position: absolute !important;
    left: 50px !important;
    top: 31px !important;
    font-size: 9px !important;
    letter-spacing: 2px !important;
    line-height: 1 !important;
    z-index: 100002 !important;
  }

  .wed_top_menu_mobile_link {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    right: 12px !important;
    left: auto !important;
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: var(--gold-primary) !important;
    z-index: 100003 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .wed_top_menu_mobile_link span {
    font-size: 30px !important;
    line-height: 1 !important;
    color: var(--gold-primary) !important;
    display: block !important;
  }

  .wed_top_menu_cont {
    background: rgba(7, 21, 38, 0.96) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
  }

  .wed_top_menu_cont:after {
    background: var(--navy-darkest) !important;
    border-bottom: 1px solid var(--gold-primary) !important;
  }

  .wed_top_menu {
    padding-top: 70px !important;
  }

  .wed_top_menu li {
    position: relative !important;
    text-align: center !important;
    margin: 6px 0 !important;
  }

  .wed_top_menu li a {
    display: inline-block !important;
    font-size: 16px !important;
    letter-spacing: 1px !important;
    padding: 12px 24px !important;
    color: #ffffff !important;
  }

  .wed_top_menu li a:hover,
  .wed_top_menu li.current a {
    color: var(--gold-primary) !important;
  }

  /* Centered indicator arrow under active link */
  .wed_top_menu li:before,
  .wed_top_menu li.current:before,
  .wed_second_step .wed_top_menu li.current:before,
  .wed_first_step .wed_top_menu li.current:before {
    left: 50% !important;
    top: auto !important;
    bottom: 2px !important;
    margin-top: 0 !important;
    transform: translateX(-50%) !important;
    background-image: url(../images/arrow_wht.png) !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    width: 60px !important;
    height: 8px !important;
    filter: brightness(1.2) sepia(1) hue-rotate(5deg) saturate(3) !important;
  }

  .wed_top_menu li:not(.current):before {
    display: none !important;
  }
}

/* ========================================================
   SECCIÓN GALERÍA INTERACTIVA DE INVITADOS
   ======================================================== */
#galeria {
  background-color: var(--navy-darkest) !important;
  padding: 60px 0 80px 0 !important;
  position: relative !important;
}

.gallery-header-badge {
  display: inline-block;
  background: rgba(223, 177, 91, 0.12);
  border: 1px solid rgba(223, 177, 91, 0.4);
  color: var(--gold-light);
  padding: 5px 18px;
  border-radius: 20px;
  font-size: 0.9em;
  margin-top: 10px;
  letter-spacing: 0.5px;
}

/* Upload Container */
.gallery-upload-card {
  background: rgba(14, 36, 64, 0.9) !important;
  border: 2px dashed var(--gold-primary) !important;
  border-radius: 16px !important;
  padding: 30px 24px !important;
  max-width: 780px !important;
  margin: 30px auto 45px auto !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), inset 0 0 15px rgba(223, 177, 91, 0.05) !important;
  transition: border-color 0.3s ease, background-color 0.3s ease !important;
}

.gallery-upload-card.dragover {
  background: rgba(18, 48, 86, 0.98) !important;
  border-color: #ffe685 !important;
  box-shadow: 0 0 25px rgba(223, 177, 91, 0.4) !important;
}

.gallery-dropzone-inner {
  cursor: pointer;
  text-align: center;
}

.gallery-dropzone-inner .upload-icon {
  font-size: 3.5em;
  color: var(--gold-primary);
  margin-bottom: 8px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.gallery-upload-card:hover .gallery-dropzone-inner .upload-icon {
  transform: scale(1.1);
}

.gallery-dropzone-inner h3 {
  color: #ffffff;
  font-size: 1.3em;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.gallery-dropzone-inner p {
  color: #cbd5e1;
  font-size: 0.95em;
  margin: 0 auto 16px auto;
  max-width: 520px;
  line-height: 1.5;
  text-wrap: balance;
}

.btn-select-photos {
  background: rgba(223, 177, 91, 0.15);
  border: 1px solid var(--gold-primary);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95em;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 25px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.2;
  vertical-align: middle;
  user-select: none;
  transition: all 0.25s ease;
}

.btn-select-photos .mdi {
  font-size: 1.3em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

.btn-select-photos:hover {
  background: var(--gold-gradient);
  color: #000000;
  box-shadow: 0 4px 15px rgba(223, 177, 91, 0.4);
}

/* Upload Inputs Form */
.gallery-upload-form {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(223, 177, 91, 0.25);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

@media (max-width: 600px) {
  .gallery-upload-form {
    grid-template-columns: 1fr;
  }
}

.gallery-upload-form input,
.gallery-upload-form textarea {
  background: rgba(6, 17, 31, 0.8) !important;
  border: 1px solid rgba(223, 177, 91, 0.35) !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  font-size: 0.95em !important;
  width: 100% !important;
  box-sizing: border-box !important;
  outline: none !important;
}

.gallery-upload-form input:focus,
.gallery-upload-form textarea:focus {
  border-color: var(--gold-primary) !important;
  box-shadow: 0 0 8px rgba(223, 177, 91, 0.4) !important;
}

/* Upload Preview Thumbs */
.gallery-upload-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  justify-content: center;
}

.upload-preview-thumb {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--gold-primary);
}

.upload-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-preview-thumb .btn-remove-thumb {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(220, 38, 38, 0.85);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 14px;
  line-height: 18px;
  cursor: pointer;
  padding: 0;
  text-align: center;
}

.gallery-submit-wrapper {
  margin-top: 20px;
  text-align: center;
}

.btn-upload-submit {
  background: var(--gold-gradient) !important;
  color: #081729 !important;
  font-family: inherit !important;
  font-weight: 700 !important;
  font-size: 1.05em !important;
  padding: 12px 35px !important;
  border: none !important;
  border-radius: 30px !important;
  cursor: pointer !important;
  box-shadow: 0 4px 15px rgba(223, 177, 91, 0.4) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  line-height: 1.2 !important;
  vertical-align: middle !important;
  user-select: none !important;
}

.btn-upload-submit .mdi {
  font-size: 1.25em !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  vertical-align: middle !important;
}

.btn-upload-submit:hover:not(:disabled) {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(223, 177, 91, 0.65) !important;
}

.btn-upload-submit:disabled {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
}

/* Gallery Grid */
.guest-gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  gap: 22px !important;
  max-width: 1100px !important;
  margin: 0 auto !important;
}

.gallery-card {
  background: rgba(14, 36, 64, 0.95) !important;
  border: 1px solid var(--navy-card-border) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6) !important;
  cursor: pointer !important;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
  display: flex !important;
  flex-direction: column !important;
}

.gallery-card:hover {
  transform: translateY(-5px) !important;
  border-color: var(--gold-primary) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.8), 0 0 15px rgba(223, 177, 91, 0.25) !important;
}

.gallery-card-media {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 4 / 3 !important;
  overflow: hidden !important;
  background: #000000 !important;
}

.gallery-card-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.4s ease !important;
}

.gallery-card:hover .gallery-card-media img {
  transform: scale(1.06) !important;
}

.gallery-card-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(7, 21, 38, 0.5) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
}

.gallery-card:hover .gallery-card-overlay {
  opacity: 1 !important;
}

.gallery-card-overlay .zoom-icon {
  font-size: 2.2em !important;
  color: var(--gold-primary) !important;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.8)) !important;
}

.gallery-card-meta {
  padding: 14px 16px !important;
  text-align: left !important;
  flex-grow: 1 !important;
  display: flex !important;
  flex-direction: column !important;
}

.gallery-card-author {
  font-weight: 700 !important;
  color: #ffdf79 !important;
  font-size: 0.98em !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-bottom: 4px !important;
}

.gallery-card-caption {
  font-style: italic !important;
  color: #ffffff !important;
  font-size: 0.9em !important;
  line-height: 1.35 !important;
  margin-bottom: 6px !important;
}

.gallery-card-date {
  font-size: 0.78em !important;
  color: #94a3b8 !important;
  margin-top: auto !important;
}

/* Empty State */
.gallery-empty-state {
  grid-column: 1 / -1 !important;
  text-align: center !important;
  background: rgba(14, 36, 64, 0.6) !important;
  border: 1px solid rgba(223, 177, 91, 0.3) !important;
  border-radius: 14px !important;
  padding: 45px 25px !important;
  max-width: 600px !important;
  margin: 10px auto !important;
}

.gallery-empty-state h3 {
  color: #ffffff !important;
  font-size: 1.25em !important;
  margin: 12px 0 6px 0 !important;
}

.gallery-empty-state p {
  color: #cbd5e1 !important;
  font-size: 0.95em !important;
  margin-bottom: 20px !important;
}

.btn-gallery-trigger {
  background: var(--gold-gradient) !important;
  color: #081729 !important;
  font-weight: 700 !important;
  padding: 10px 24px !important;
  border: none !important;
  border-radius: 25px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  box-shadow: 0 4px 15px rgba(223, 177, 91, 0.35) !important;
}

/* Lightbox Modal */
.gallery-lightbox-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
}

.gallery-lightbox-modal.active {
  display: flex !important;
}

.lightbox-backdrop {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(3, 10, 20, 0.94) !important;
  backdrop-filter: blur(8px) !important;
}

.lightbox-content {
  position: relative !important;
  z-index: 2 !important;
  max-width: 90vw !important;
  max-height: 92vh !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  background: rgba(14, 36, 64, 0.95) !important;
  border: 1px solid var(--gold-primary) !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9) !important;
}

.lightbox-media-container {
  max-width: 100% !important;
  max-height: 70vh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #000000 !important;
}

.lightbox-img {
  max-width: 100% !important;
  max-height: 70vh !important;
  object-fit: contain !important;
}

.lightbox-meta-bar {
  width: 100% !important;
  padding: 16px 20px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  box-sizing: border-box !important;
  gap: 15px !important;
  background: #081729 !important;
}

.lightbox-info {
  text-align: left !important;
}

.lightbox-author {
  font-weight: 700 !important;
  color: #ffdf79 !important;
  font-size: 1.05em !important;
}

.lightbox-caption {
  font-style: italic !important;
  color: #ffffff !important;
  font-size: 0.95em !important;
  margin: 2px 0 !important;
}

.lightbox-date {
  font-size: 0.8em !important;
  color: #94a3b8 !important;
}

.lightbox-actions {
  display: flex !important;
  gap: 10px !important;
}

.lightbox-btn {
  background: rgba(223, 177, 91, 0.15) !important;
  border: 1px solid rgba(223, 177, 91, 0.4) !important;
  color: #ffffff !important;
  padding: 8px 14px !important;
  border-radius: 20px !important;
  cursor: pointer !important;
  font-size: 0.88em !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  transition: all 0.2s ease !important;
}

.lightbox-btn:hover {
  background: var(--gold-gradient) !important;
  color: #000000 !important;
}

.lightbox-delete-btn {
  border-color: rgba(239, 68, 68, 0.4) !important;
}

.lightbox-delete-btn:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
}

.lightbox-close-btn {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  z-index: 3 !important;
  background: rgba(0, 0, 0, 0.6) !important;
  border: 1px solid rgba(223, 177, 91, 0.5) !important;
  color: #ffffff !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  font-size: 20px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
}

.lightbox-close-btn:hover {
  background: var(--gold-primary) !important;
  color: #000000 !important;
}

.lightbox-nav-btn {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 3 !important;
  background: rgba(8, 23, 41, 0.75) !important;
  border: 1px solid rgba(223, 177, 91, 0.4) !important;
  color: var(--gold-primary) !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  font-size: 24px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
}

.lightbox-nav-btn:hover {
  background: var(--gold-primary) !important;
  color: #000000 !important;
}

.lightbox-prev-btn {
  left: 15px !important;
}

.lightbox-next-btn {
  right: 15px !important;
}

/* PIN Confirmation Modal for Photos */
.gallery-pin-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 100005 !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  padding: 15px !important;
  box-sizing: border-box !important;
}

.gallery-pin-modal.active {
  display: flex !important;
}

.gallery-pin-backdrop {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(3, 10, 20, 0.88) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

.gallery-pin-box {
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
  max-width: 440px !important;
  background: linear-gradient(145deg, #0d223c, #061323) !important;
  border: 1.5px solid var(--gold-primary) !important;
  border-radius: 18px !important;
  padding: 30px 24px !important;
  text-align: center !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(223, 177, 91, 0.25) !important;
  animation: modalScaleUp 0.25s ease-out both !important;
  box-sizing: border-box !important;
}

@keyframes modalScaleUp {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.gallery-pin-close {
  position: absolute !important;
  top: 12px !important;
  right: 14px !important;
  background: transparent !important;
  border: none !important;
  color: #94a3b8 !important;
  font-size: 26px !important;
  cursor: pointer !important;
  line-height: 1 !important;
  padding: 0 !important;
  transition: color 0.2s ease !important;
}

.gallery-pin-close:hover {
  color: #ffffff !important;
}

.gallery-pin-icon {
  width: 58px !important;
  height: 58px !important;
  margin: 0 auto 16px auto !important;
  border-radius: 50% !important;
  background: rgba(223, 177, 91, 0.15) !important;
  border: 1.5px solid var(--gold-primary) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 28px !important;
  color: var(--gold-primary) !important;
  box-shadow: 0 0 20px rgba(223, 177, 91, 0.3) !important;
}

.gallery-pin-box h3 {
  font-family: var(--font-serif) !important;
  color: #ffdf79 !important;
  font-size: 24px !important;
  margin: 0 0 10px 0 !important;
  letter-spacing: 0.5px !important;
}

.gallery-pin-box p {
  color: #cbd5e1 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  margin: 0 0 20px 0 !important;
}

.gallery-pin-input-wrap {
  margin-bottom: 14px !important;
}

.gallery-pin-input-wrap input {
  width: 100% !important;
  background: rgba(5, 13, 24, 0.85) !important;
  border: 1.5px solid rgba(223, 177, 91, 0.5) !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  color: #ffffff !important;
  font-size: 16px !important;
  text-align: center !important;
  letter-spacing: 2px !important;
  outline: none !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}

.gallery-pin-input-wrap input:focus {
  border-color: var(--gold-primary) !important;
  box-shadow: 0 0 15px rgba(223, 177, 91, 0.4) !important;
}

.gallery-pin-error {
  background: rgba(239, 68, 68, 0.15) !important;
  border: 1px solid #ef4444 !important;
  color: #fca5a5 !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  font-size: 13px !important;
  margin-bottom: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}

.gallery-pin-actions {
  display: flex !important;
  gap: 12px !important;
  justify-content: center !important;
}

.btn-pin-confirm {
  flex: 1 !important;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  border: 1px solid #ef4444 !important;
  color: #ffffff !important;
  padding: 11px 18px !important;
  border-radius: 25px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4) !important;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s !important;
}

.btn-pin-confirm:hover {
  filter: brightness(1.1) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.6) !important;
}

.btn-pin-cancel {
  background: transparent !important;
  border: 1px solid rgba(223, 177, 91, 0.4) !important;
  color: #cbd5e1 !important;
  padding: 11px 18px !important;
  border-radius: 25px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.btn-pin-cancel:hover {
  border-color: var(--gold-primary) !important;
  color: #ffffff !important;
  background: rgba(223, 177, 91, 0.1) !important;
}

/* Toast Notification */
.gallery-toast {
  position: fixed !important;
  bottom: 30px !important;
  left: 50% !important;
  transform: translateX(-50%) translateY(20px) !important;
  background: rgba(8, 23, 41, 0.96) !important;
  border: 1.5px solid var(--gold-primary) !important;
  color: #ffffff !important;
  padding: 12px 24px !important;
  border-radius: 30px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(223, 177, 91, 0.3) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  z-index: 100010 !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.gallery-toast.show {
  opacity: 1 !important;
  transform: translateX(-50%) translateY(0) !important;
  pointer-events: auto !important;
}

