/* ==========================================================================
   YCM Burgundy & Champagne Wedding E-Card Stylesheet — envycm.css
   yourcallmemo ecard system | ycm-env-v1
   ========================================================================== */

:root {
  /* Colors */
  --ycm-burgundy-primary: #741728;
  --ycm-burgundy-dark: #4e0f1a;
  --ycm-burgundy-deep: #350810;
  --ycm-burgundy-light: #942b3e;
  --ycm-burgundy-soft: rgba(116, 23, 40, 0.07);
  --ycm-gold: #c5a059;
  --ycm-gold-light: #e6c888;
  --ycm-gold-dark: #987834;
  --ycm-cream: #fdfbf7;
  --ycm-parchment: #f7f1e5;
  --ycm-parchment-border: rgba(197, 160, 89, 0.38);
  --ycm-text-dark: #2a181b;
  --ycm-text-mid: #553e42;
  --ycm-text-muted: #857074;
  --ycm-white: #ffffff;

  /* Typography */
  --ycm-font-script: 'Pinyon Script', 'Great Vibes', cursive;
  --ycm-font-serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --ycm-font-heading: 'Cinzel', 'Playfair Display', Georgia, serif;
  --ycm-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Elevations & Radii */
  --ycm-shadow-sm: 0 2px 8px rgba(78, 15, 26, 0.08);
  --ycm-shadow-md: 0 8px 24px rgba(78, 15, 26, 0.14);
  --ycm-shadow-lg: 0 16px 40px rgba(53, 8, 16, 0.22);
  --ycm-radius-sm: 8px;
  --ycm-radius-md: 14px;
  --ycm-radius-lg: 22px;
  --ycm-radius-pill: 9999px;

  /* Transitions */
  --ycm-ease: cubic-bezier(0.25, 1, 0.5, 1);
  --ycm-dur-fast: 0.2s;
  --ycm-dur-mid: 0.4s;
  --ycm-dur-slow: 0.8s;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  font-family: var(--ycm-font-sans);
  background-color: #f1ebd9;
  color: var(--ycm-text-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Base Utility Classes */
.ycm-inv-hidden {
  display: none !important;
}

/* Background Canvas (Desktop Center Frame) */
.ycm-viewport-wrapper {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: url('images/ycm-overall-background.png') center center / cover no-repeat fixed;
  overflow-y: auto;
  overflow-x: hidden;
}

/* ==========================================================================
   STAGE 1: LANDING COVER (#ycm-landing-stage)ycm-invitation-background
   ========================================================================== */
#ycm-landing-stage {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 100vh;
  height: 100dvh;
  max-height: 920px;
  /* background-color: #faf5eb; */
  background-color: rgba(255, 255, 255, 0.25);
  background-image: url('images/new-ycm-card-bg.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  box-shadow: 0 10px 40px rgba(78, 15, 26, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px 16px;
  z-index: 10;
  transition: opacity 0.7s ease, transform 0.7s ease;
  overflow: hidden;
}

@media (min-width: 540px) {
  #ycm-landing-stage {
    border-radius: var(--ycm-radius-lg);
    border: 1px solid var(--ycm-parchment-border);
  }
}

/* Top Heading Section */
.ycm-landing-header {
  width: 100%;
  text-align: center;
  margin-top: 28px;
  z-index: 2;
  user-select: none;
}

.ycm-wedding-label {
  font-family: var(--ycm-font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ycm-burgundy-primary);
  margin-bottom: 6px;
  opacity: 0.92;
}

/* Filigree Line Divider */
.ycm-filigree-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 170px;
  margin: 0 auto 12px;
}

.ycm-filigree-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--ycm-gold), transparent);
}

.ycm-filigree-diamond {
  color: var(--ycm-gold);
  font-size: 0.75rem;
  line-height: 1;
}

/* Calligraphy Names */
.ycm-couple-script {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ycm-burgundy-primary);
  text-shadow: 0 1px 2px rgba(116, 23, 40, 0.1);
  line-height: 0.9;
  margin-top: 4px;
}

.ycm-script-name {
  font-family: 'Pinyon Script', 'Great Vibes', cursive;
  font-size: 5.2rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  transform: translateY(0);
}

.ycm-script-amp {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--ycm-burgundy-dark);
  margin: -8px 0 -4px;
  opacity: 0.95;
}

/* Envelope Container */
.ycm-env-wrapper {
  position: relative;
  width: 100%;
  max-width: 295px;
  margin: 4px auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 2;
  transition: transform var(--ycm-dur-mid) var(--ycm-ease);
}

.ycm-env-wrapper:hover {
  transform: scale(1.02);
}

.ycm-env-card-container {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.ycm-env-base-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 28px rgba(78, 15, 26, 0.28));
  user-select: none;
  pointer-events: none;
}

/* Gold Heart Wax Seal */
.ycm-wax-seal {
  position: absolute;
  top: 72%;
  left: 36%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  z-index: 4;
  border-radius: 50%;
  cursor: pointer;
  transition: transform var(--ycm-dur-fast) var(--ycm-ease), filter var(--ycm-dur-fast);
  animation: ycmSealPulse 3.5s infinite ease-in-out;
}

.ycm-wax-seal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(53, 8, 16, 0.4));
}

.ycm-wax-seal:hover {
  transform: translate(-50%, -50%) scale(1.1);
  filter: brightness(1.1);
}

@keyframes ycmSealPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.04);
  }
}

/* Bottom Action Section */
.ycm-landing-footer {
  width: 100%;
  text-align: center;
  z-index: 2;
  margin-bottom: 0;
}

.ycm-bottom-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 160px;
  margin: 16px auto 10px;
}

/* YourCallMemo Branding Footer */
.ycm-brand-footer {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  user-select: none;
}

.ycm-brand-label {
  font-family: var(--ycm-font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ycm-burgundy-primary);
  opacity: 0.55;
}

.ycm-brand-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ycm-burgundy-primary);
  opacity: 0.7;
}

/* "TAP TO OPEN" Vintage Plaque/Cartouche Button */
.ycm-open-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  background: #6e1526;
  color: #faebd7;
  font-family: var(--ycm-font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 12px 34px;
  border-radius: 12px;
  border: 1px solid var(--ycm-gold);
  outline: none;
  cursor: pointer;
  user-select: none;
  transition: all var(--ycm-dur-fast) var(--ycm-ease);
  box-shadow: 0 6px 18px rgba(78, 15, 26, 0.32);
}

/* Inner Gold Border Frame */
.ycm-open-btn::before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(230, 200, 136, 0.65);
  border-radius: 9px;
  pointer-events: none;
  transition: border-color var(--ycm-dur-fast);
}

.ycm-open-btn:hover {
  transform: translateY(-2px);
  background: #7e192c;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(78, 15, 26, 0.42);
}

.ycm-open-btn:hover::before {
  border-color: var(--ycm-gold-light);
}

.ycm-open-btn:active {
  transform: translateY(1px);
}

.ycm-btn-diamond {
  color: var(--ycm-gold-light);
  font-size: 0.68rem;
  line-height: 1;
}

/* Opening Trigger State (Animations) */
#ycm-landing-stage.ycm-stage-opening {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
}

#ycm-landing-stage.ycm-stage-opening .ycm-wax-seal {
  animation: ycmSealBreak 0.7s forwards var(--ycm-ease);
}

#ycm-landing-stage.ycm-stage-opening .ycm-env-wrapper {
  animation: ycmEnvSlide 0.8s forwards var(--ycm-ease);
}

@keyframes ycmSealBreak {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  40% {
    transform: translate(-50%, -50%) scale(1.3) rotate(15deg);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.6) rotate(30deg);
    opacity: 0;
  }
}

@keyframes ycmEnvSlide {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-40px) scale(1.08);
  }
}

/* ==========================================================================
   FALLING PETALS ANIMATION
   ========================================================================== */
.ycm-petal {
  position: fixed;
  top: -40px;
  z-index: 15;
  pointer-events: none;
  user-select: none;
  color: #8c1e30;
  opacity: 0.7;
  font-size: 18px;
  animation: ycmPetalFall linear forwards;
}

@keyframes ycmPetalFall {
  0% {
    transform: translateY(0) rotate(0deg) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(105vh) rotate(360deg) translateX(40px);
    opacity: 0;
  }
}

/* ==========================================================================
   FLOATING AUDIO CONTROLLER (#ycm-music-btn)
   ========================================================================== */
.ycm-music-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #741728 0%, #4e0f1a 100%);
  color: var(--ycm-gold-light);
  border: 1.5px solid var(--ycm-gold);
  box-shadow: 0 4px 16px rgba(78, 15, 26, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: transform var(--ycm-dur-fast) var(--ycm-ease), box-shadow var(--ycm-dur-fast);
}

.ycm-music-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(78, 15, 26, 0.45);
}

.ycm-music-icon {
  font-size: 0.95rem;
}

.ycm-wave-bars {
  display: none;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
  margin-left: 4px;
}

.ycm-wave-bar {
  width: 2.5px;
  background: var(--ycm-gold-light);
  border-radius: 2px;
  height: 4px;
}

.ycm-music-playing .ycm-wave-bars {
  display: flex;
}

.ycm-music-playing .ycm-wave-bar:nth-child(1) { animation: ycmWave 1s infinite ease-in-out 0.1s; }
.ycm-music-playing .ycm-wave-bar:nth-child(2) { animation: ycmWave 1s infinite ease-in-out 0.3s; }
.ycm-music-playing .ycm-wave-bar:nth-child(3) { animation: ycmWave 1s infinite ease-in-out 0.5s; }
.ycm-music-playing .ycm-wave-bar:nth-child(4) { animation: ycmWave 1s infinite ease-in-out 0.2s; }
.ycm-music-playing .ycm-wave-bar:nth-child(5) { animation: ycmWave 1s infinite ease-in-out 0.4s; }

@keyframes ycmWave {
  0%, 100% { height: 4px; }
  50% { height: 14px; }
}

/* ==========================================================================
   STAGE 2: INVITATION PANEL MODAL (#ycm-invitation-panel)
   Clean, structural, elegant layout matching cn2 architecture
   ========================================================================== */
#ycm-invitation-panel {
  position: relative;
  width: 100%;
  max-width: 750px;
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  /* background-color: #fcf8f2; */
  background-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 40px rgba(78, 15, 26, 0.2);
  display: flex;
  flex-direction: column;
  z-index: 20;
  overflow: visible;
  animation: ycmPanelFadeIn 0.6s ease;
}

@media (min-width: 540px) {
  #ycm-invitation-panel {
    border-radius: var(--ycm-radius-lg);
    border: 1px solid var(--ycm-parchment-border);
  }
}

@keyframes ycmPanelFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ycm-panel-card {
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
}

/* Sticky Navbar */
.ycm-navbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(10px);
  padding: 10px 16px;
  border-bottom: 1px solid var(--ycm-border);
}

.ycm-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 12px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.ycm-nav-links::-webkit-scrollbar { display: none; }

.ycm-nav-link {
  font-family: var(--ycm-font-heading);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ycm-text-mid);
  text-decoration: none;
  padding: 4px 6px;
  border-radius: 4px;
  transition: color var(--ycm-dur-fast);
}

.ycm-nav-link:hover, .ycm-nav-link.ycm-nav-active {
  color: var(--ycm-burgundy-primary);
  font-weight: 700;
  border-bottom: 2px solid var(--ycm-burgundy-primary);
}

.ycm-nav-close-btn {
  background: none;
  border: none;
  color: var(--ycm-burgundy-primary);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}

/* Scrollable Content Wrapper */
.ycm-content-wrapper {
  flex: 1;
  overflow-y: auto;
  padding: 24px 20px;
  background: url('images/ycm-invitation-background.png') bottom right / 240px no-repeat, transparent;
}

/* Section Common Structure */
.ycm-section {
  margin-bottom: 32px;
  margin-left: 46px;
  margin-right: 46px;
  /* Offset for sticky navbar so scrollIntoView doesn't hide content behind it */
  scroll-margin-top: 60px;
}

.ycm-section-header {
  text-align: center;
  margin-bottom: 20px;
}

.ycm-section-label {
  font-family: var(--ycm-font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ycm-gold);
  margin-bottom: 4px;
}

.ycm-section-title {
  font-family: var(--ycm-font-serif);
  font-size: 1.6rem;
  color: var(--ycm-burgundy-primary);
  margin: 0 0 6px;
}

.ycm-section-ornament {
  color: var(--ycm-gold);
  font-size: 0.9rem;
}

.ycm-section-divider {
  border: none;
  border-top: 1px dashed var(--ycm-border);
  margin: 32px auto;
  width: 80%;
}

/* Couple Presentation (Event Section) */
.ycm-couple-row {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0px;
  margin-bottom: 24px;
  text-align: center;
  isolation: isolate;
}

.ycm-person-frame {
  width: 110px;
  height: 140px;
  border-radius: 60px 60px 16px 16px;
  border: 2px solid var(--ycm-gold);
  overflow: hidden;
  margin: 0 auto 8px;
  box-shadow: var(--ycm-shadow-md);
}

.ycm-person-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.ycm-person-name {
  font-family: var(--ycm-font-script);
  font-size: 2rem;
  color: var(--ycm-burgundy-primary);
  line-height: 1;
}

.ycm-person-role {
  font-size: 0.75rem;
  color: var(--ycm-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.ycm-couple-center-col {
  font-size: 1.4rem;
  color: var(--ycm-burgundy-primary);
  display: flex;
  align-items: center;
  padding-bottom: 40px;
  animation: ycmHeartPulse 1.4s ease-in-out infinite;
}

@keyframes ycmHeartPulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%       { transform: scale(1.25); opacity: 0.85; }
}

/* Event Schedule Card */
.ycm-event-card {
  background: #ffffff;
  border: 1px solid var(--ycm-border);
  border-radius: var(--ycm-radius-md);
  padding: 20px;
  text-align: center;
  margin-bottom: 16px;
  box-shadow: var(--ycm-shadow-sm);
}

.ycm-event-type-badge {
  font-family: var(--ycm-font-heading);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ycm-burgundy-primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ycm-event-date-big {
  font-family: var(--ycm-font-serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--ycm-burgundy-primary);
  line-height: 1;
  margin: 8px 0 2px;
}

.ycm-event-month-year {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ycm-text-mid);
  margin-bottom: 10px;
}

.ycm-event-info-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--ycm-burgundy-dark);
  margin-bottom: 8px;
}

.ycm-event-venue-name {
  font-family: var(--ycm-font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ycm-text-dark);
  margin-bottom: 4px;
}

.ycm-event-venue-addr {
  font-size: 0.78rem;
  color: var(--ycm-text-muted);
  margin-bottom: 14px;
}

.ycm-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ycm-burgundy-soft);
  color: var(--ycm-burgundy-primary);
  border: 1px solid rgba(116, 23, 40, 0.2);
  padding: 8px 18px;
  border-radius: var(--ycm-radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--ycm-dur-fast);
}

.ycm-map-btn:hover {
  background: var(--ycm-burgundy-primary);
  color: #fff;
}

.ycm-couple-row::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: url('images/ycm-icon-2.png') center / 100% auto no-repeat;
  opacity: 0.15;
  pointer-events: none;
  z-index: -1;
}

/* Family Block */

.ycm-family-block {
  position: relative;
  text-align: center;
  margin-bottom: 24px;
  padding: 14px 14px 14px 70px;
  background: rgba(85, 0, 0, 0.5);
  border-radius: var(--ycm-radius-sm);
}

.ycm-family-icon {
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: auto;
  opacity: 0.9;
  /* border: 1px solid black; */
}

.ycm-family-intro {
  font-family: var(--ycm-font-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: #ffffff;
  margin-bottom: 8px;
}

.ycm-family-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.ycm-family-side {
  flex: 1;
}

.ycm-family-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #f0c060;
}

.ycm-family-parent {
  font-weight: 600;
  font-size: 0.85rem;
  color: #fdf5e8;
}

.ycm-family-divider {
  color: var(--ycm-gold);
  padding: 0 8px;
}

/* RSVP Form */
.ycm-rsvp-intro {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ycm-text-mid);
  margin-bottom: 20px;
}

.ycm-rsvp-deadline {
  font-weight: 700;
  color: var(--ycm-burgundy-primary);
}

.ycm-form-group {
  margin-bottom: 16px;
}

.ycm-form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ycm-text-mid);
  margin-bottom: 6px;
}

.ycm-form-input, .ycm-form-select, .ycm-form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--ycm-border);
  border-radius: var(--ycm-radius-sm);
  background: #ffffff;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--ycm-text-dark);
  outline: none;
  transition: border-color var(--ycm-dur-fast);
}

.ycm-form-input:focus, .ycm-form-select:focus, .ycm-form-textarea:focus {
  border-color: var(--ycm-burgundy-primary);
  box-shadow: 0 0 0 3px var(--ycm-burgundy-soft);
}

.ycm-rsvp-submit-btn, .ycm-wish-submit-btn {
  width: 100%;
  padding: 12px;
  background: var(--ycm-burgundy-primary);
  color: #fff;
  border: none;
  border-radius: var(--ycm-radius-pill);
  font-family: var(--ycm-font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--ycm-dur-fast);
}

.ycm-rsvp-submit-btn:hover, .ycm-wish-submit-btn:hover {
  background: var(--ycm-burgundy-dark);
}

/* Gallery Grid */
.ycm-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.ycm-gallery-item {
  border-radius: var(--ycm-radius-sm);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 1.5px solid var(--ycm-border);
  box-shadow: var(--ycm-shadow-sm);
  cursor: pointer;
  transition: transform var(--ycm-dur-fast);
}

.ycm-gallery-item:hover {
  transform: scale(1.03);
}

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

/* Gift Blessing Card */
.ycm-gift-card {
  background: #ffffff;
  border: 1px solid var(--ycm-border);
  border-radius: var(--ycm-radius-md);
  padding: 24px;
  text-align: center;
  box-shadow: var(--ycm-shadow-sm);
}

.ycm-gift-bank-name {
  font-family: var(--ycm-font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ycm-burgundy-primary);
  margin-bottom: 6px;
}

.ycm-gift-account-num {
  font-family: var(--ycm-font-sans);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ycm-text-dark);
  margin: 6px 0;
}

.ycm-gift-account-name {
  font-size: 0.82rem;
  color: var(--ycm-text-muted);
  margin-bottom: 14px;
}

.ycm-gift-copy-btn {
  background: var(--ycm-burgundy-soft);
  color: var(--ycm-burgundy-primary);
  border: 1px solid rgba(116, 23, 40, 0.25);
  border-radius: var(--ycm-radius-pill);
  padding: 8px 18px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.ycm-gift-qr-thumb {
  width: 140px;
  height: 140px;
  margin: 16px auto 8px;
  border: 1px solid var(--ycm-gold);
  border-radius: var(--ycm-radius-sm);
  overflow: hidden;
  cursor: pointer;
}

.ycm-gift-qr-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Wishes Wall */
.ycm-wish-send-btn {
  display: block;
  width: 100%;
  padding: 12px;
  margin-bottom: 18px;
  background: #ffffff;
  color: var(--ycm-burgundy-primary);
  border: 1.5px solid var(--ycm-burgundy-primary);
  border-radius: var(--ycm-radius-pill);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--ycm-dur-fast);
}

.ycm-wish-send-btn:hover {
  background: var(--ycm-burgundy-primary);
  color: #fff;
}

/* Wish Wall — scrollable container */
.ycm-wish-wall {
  max-height: 380px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  scroll-behavior: smooth;
}

/* Custom scrollbar for wish wall */
.ycm-wish-wall::-webkit-scrollbar {
  width: 5px;
}
.ycm-wish-wall::-webkit-scrollbar-track {
  background: transparent;
}
.ycm-wish-wall::-webkit-scrollbar-thumb {
  background: var(--ycm-parchment-border);
  border-radius: var(--ycm-radius-pill);
}
.ycm-wish-wall::-webkit-scrollbar-thumb:hover {
  background: var(--ycm-gold);
}

.ycm-wish-card {
  background: #ffffff;
  border: 1px solid var(--ycm-border);
  border-radius: var(--ycm-radius-sm);
  padding: 14px;
  margin-bottom: 12px;
}

.ycm-wish-message {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--ycm-text-dark);
  margin: 0 0 6px;
}

.ycm-wish-author {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ycm-gold-dark);
}

.ycm-wish-reply {
  margin-top: 8px;
  padding: 8px 10px;
  background: var(--ycm-parchment);
  border-left: 3px solid var(--ycm-gold);
  border-radius: 4px;
}

.ycm-wish-reply-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ycm-burgundy-primary);
}

.ycm-wish-reply-text {
  font-size: 0.78rem;
  color: var(--ycm-text-mid);
  margin: 2px 0 0;
}

/* Contact Grid */
.ycm-contact-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ycm-contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--ycm-border);
  border-radius: var(--ycm-radius-sm);
  padding: 14px;
}

.ycm-contact-info {
  flex: 1;
}

.ycm-contact-role {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--ycm-text-muted);
}

.ycm-contact-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ycm-burgundy-primary);
}

.ycm-contact-phone {
  font-size: 0.8rem;
  color: var(--ycm-text-mid);
}

.ycm-whatsapp-btn {
  width: 40px;
  height: 40px;
  background: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  text-decoration: none;
  box-shadow: var(--ycm-shadow-sm);
}

/* Footer & Back Button */
.ycm-inv-footer {
  text-align: center;
  padding: 24px 0 16px;
}

.ycm-footer-branding {
  margin-bottom: 12px;
}

.ycm-footer-copyright-text {
  font-size: 0.75rem;
  color: var(--ycm-text-muted);
  margin: 0;
}

.ycm-footer-powered-text {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ycm-gold);
  margin: 2px 0 0;
}

.ycm-inv-close-footer-btn {
  background: none;
  border: 1px solid var(--ycm-border);
  color: var(--ycm-burgundy-primary);
  border-radius: var(--ycm-radius-pill);
  padding: 8px 18px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

/* Scroll Top Button */
.ycm-scroll-top-btn {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ycm-white);
  border: 1px solid var(--ycm-border);
  color: var(--ycm-burgundy-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--ycm-shadow-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ycm-dur-fast);
  z-index: 90;
}

.ycm-scroll-top-btn.ycm-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Modals & Lightbox — shared backdrop */
.ycm-modal, .ycm-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(44, 10, 16, 0.82);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Modal (non-lightbox) specific layout */
.ycm-modal-box {
  background: #ffffff;
  border-radius: var(--ycm-radius-md);
  max-width: 400px;
  width: 100%;
  padding: 24px;
  position: relative;
  box-shadow: var(--ycm-shadow-lg);
}

.ycm-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.ycm-modal-title {
  font-family: var(--ycm-font-serif);
  font-size: 1.2rem;
  color: var(--ycm-burgundy-primary);
  margin: 0;
}

.ycm-modal-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--ycm-text-muted);
  cursor: pointer;
}

/* Lightbox — column layout: [prev | img | next] on top, counter below */
.ycm-lightbox {
  flex-direction: column;
  gap: 12px;
}

/* Inner row: prev button | image | next button */
.ycm-lightbox > img {
  display: none; /* image is placed between nav buttons via JS ordering */
}

#ycm-lightbox {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* Row containing prev, img, next */
.ycm-lightbox-nav.ycm-lightbox-prev,
.ycm-lightbox-nav.ycm-lightbox-next,
#ycm-lightbox-img {
  /* These three sit in a natural DOM order inside the lightbox,
     rendered as a flex row via the wrapper rule below */
}

/* Make the three middle elements (prev btn, img, next btn) display as a row */
#ycm-lightbox {
  flex-direction: column;
}

/* Use a pseudo layout trick: place prev/img/next in a row */
#ycm-lightbox-prev,
#ycm-lightbox-img,
#ycm-lightbox-next {
  order: 0;
}

/* The three nav+image elements act as a row — wrap them with a row flex via CSS grid trick */
#ycm-lightbox > #ycm-lightbox-prev,
#ycm-lightbox > #ycm-lightbox-img,
#ycm-lightbox > #ycm-lightbox-next {
  display: flex;
}

/* Override: lightbox renders as column but middle row is horizontal */
#ycm-lightbox {
  display: grid;
  grid-template-areas:
    "close  close  close"
    "prev   img    next"
    ".      counter .";
  grid-template-columns: 56px 1fr 56px;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  justify-items: center;
  gap: 12px;
  width: 100%;
  max-width: 92vw;
  max-height: 92vh;
}

.ycm-lightbox-close  { grid-area: close; justify-self: end; }
#ycm-lightbox-prev   { grid-area: prev; }
#ycm-lightbox-img    { grid-area: img; }
#ycm-lightbox-next   { grid-area: next; }
#ycm-lightbox-counter{ grid-area: counter; }

.ycm-lightbox-close {
  position: static;
  background: rgba(44,10,16,0.55);
  border: 1.5px solid var(--ycm-gold);
  color: var(--ycm-gold-light);
  font-size: 1.4rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  transition: background var(--ycm-dur-fast);
}
.ycm-lightbox-close:hover {
  background: var(--ycm-burgundy-primary);
}

/* Prev / Next arrow buttons */
.ycm-lightbox-nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(44, 10, 16, 0.55);
  border: 1.5px solid var(--ycm-gold);
  color: var(--ycm-gold-light);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--ycm-dur-fast), transform var(--ycm-dur-fast);
}
.ycm-lightbox-nav:hover {
  background: var(--ycm-burgundy-primary);
  transform: scale(1.08);
}

#ycm-lightbox-img {
  max-width: 100%;
  max-height: 76vh;
  border-radius: var(--ycm-radius-sm);
  box-shadow: var(--ycm-shadow-lg);
  object-fit: contain;
  width: 100%;
}

/* Photo counter: e.g. "2 / 4" */
.ycm-lightbox-counter {
  font-family: var(--ycm-font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--ycm-gold-light);
  text-align: center;
}


/* Toast */
.ycm-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(50px);
  background: #2a181b;
  color: #fff;
  padding: 10px 22px;
  border-radius: var(--ycm-radius-pill);
  font-size: 0.85rem;
  z-index: 300;
  opacity: 0;
  transition: all var(--ycm-dur-fast);
  pointer-events: none;
}

.ycm-toast.ycm-toast-show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.ycm-toast-success {
  background: var(--ycm-burgundy-primary);
}

.ycm-toast-error {
  background: #b3261e;
}
