/* ===========================
           YourCallMemo - Cardflip Template CSS
        =========================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Sage green palette */
    --sage: #7a9e8e;
    --sage-light: #a8c5b8;
    --sage-dark: #4e7a6a;
    --sage-deep: #3a6356;
    /* Cream / champagne */
    --cream: #faf9f5;
    --cream-dark: #f0ece2;
    --champagne: #e8dcc8;
    --champagne-mid: #d4c4a8;
    /* Text */
    --text-dark: #2e4a42;
    --text-mid: #4e7a6a;
    --text-soft: #6a8f82;
    /* Card */
    --card-bg: #fdfcf9;
    --shadow: rgba(78, 122, 106, 0.14);
    --radius-card: 16px;
    /* Aliases for minimal template changes */
    --gold: var(--sage);
    --gold-light: var(--sage-light);
    --gold-dark: var(--sage-dark);
    --brown: var(--text-dark);
    --brown-light: var(--text-mid);
}

html,
body {
    min-height: 100vh;
    font-family: 'Lato', sans-serif;
    background: #dde8e3;
    overflow-x: hidden;
}

/* ===========================
           ANIMATED BACKGROUND
        =========================== */
.ycm-page-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image: url('images/YourCallMemo-template-cardflip-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@keyframes bgPulse {
    0% {
        opacity: 0.6;
        transform: scale(1);
    }

    100% {
        opacity: 1;
        transform: scale(1.04);
    }
}

/* ===========================
           MAIN LAYOUT WRAPPER
        =========================== */
.ycm-main-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 16px 60px;
    overflow: hidden;
}

/* ===========================
           LANDING STAGE (Cover)
        =========================== */
#landing-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    max-height: calc(100vh - 80px);
    justify-content: center;
    animation: fadeInUp 1s ease both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Teaser text above the card */
.ycm-teaser-label {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--sage-dark);
    font-size: 0.98rem;
    opacity: 0.9;
}

/* ===========================
           FLIP CARD COVER
        =========================== */
.ycm-flip-card-scene {
    perspective: 1400px;
    width: min(580px, 92vw);
}

.ycm-flip-card {
    position: relative;
    width: 100%;
    /* Closed: portrait envelope ratio ~3:2 landscape card */
    height: clamp(320px, 45vw, 380px);
    transform-style: preserve-3d;
    transition: transform 1.1s cubic-bezier(0.77, 0, 0.175, 1);
    cursor: pointer;
}

.ycm-flip-card.is-flipped {
    transform: rotateY(180deg);
}

.ycm-flip-card-face {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-card);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* ---- FRONT FACE (envelope / cover) ---- */
.ycm-flip-front {
    background:
        radial-gradient(ellipse at 30% 20%, rgba(122, 158, 142, 0.55) 0%, transparent 55%),
        radial-gradient(ellipse at 70% 75%, rgba(90, 130, 115, 0.40) 0%, transparent 55%),
        linear-gradient(155deg, #c8ddd6 0%, #deeae5 40%, #edf4f0 70%, #d4e4dc 100%);
    border: 1px solid rgba(122, 158, 142, 0.35);
    box-shadow:
        0 20px 60px rgba(78, 122, 106, 0.25),
        0 0 0 1px rgba(168, 197, 184, 0.3) inset,
        0 2px 0 rgba(122, 158, 142, 0.5) inset;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Envelope triangle flap — sage toned */
.ycm-flip-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom right, rgba(100, 140, 125, 0.35) 50%, transparent 50%),
        linear-gradient(to bottom left, rgba(100, 140, 125, 0.35) 50%, transparent 50%);
    background-size: 50% 100%;
    background-repeat: no-repeat;
    background-position: left, right;
    border-radius: var(--radius-card) var(--radius-card) 0 0;
}

/* Envelope seal line */
.ycm-flip-front::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(122, 158, 142, 0.6), transparent);
}

/* Photo circle on front */
.ycm-cover-photo-circle {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -25%);
    width: 33.33%;
    aspect-ratio: 1;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #c8d8d2 0%, #9ab8ae 100%);
    box-shadow: 0 6px 20px rgba(78, 122, 106, 0.3), 0 0 0 4px rgba(122, 158, 142, 0.18);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.ycm-cover-photo-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.ycm-cover-photo-circle svg {
    width: 65%;
    height: 65%;
    opacity: 0.55;
}

/* Front face content */
.ycm-front-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding-top: 60px;
    position: relative;
    z-index: 1;
}

.ycm-front-title {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(2rem, 5vw, 2.8rem);
    color: var(--text-dark);
    text-shadow: 0 1px 6px rgba(255, 255, 255, 0.6);
    line-height: 1.1;
}

.ycm-front-subtitle {
    font-family: 'Georgia', serif;
    font-size: clamp(0.55rem, 1.5vw, 0.85rem);
    font-weight: 700;;
    letter-spacing: 4px;
    color: var(--sage-dark);
    text-transform: uppercase;
}

/* Sage decorative divider */
.ycm-gold-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
}

.ycm-gold-divider span {
    height: 1px;
    width: 50px;
    background: linear-gradient(to right, transparent, var(--sage));
}

.ycm-gold-divider span:last-child {
    background: linear-gradient(to left, transparent, var(--sage));
}

.ycm-gold-divider i {
    color: var(--sage-dark);
    font-size: 0.7rem;
    font-style: normal;
}

/* ---- BACK FACE (blank / inner card reveal) ---- */
.ycm-flip-back {
    background: var(--card-bg);
    transform: rotateY(180deg);
    border-radius: var(--radius-card);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(78, 122, 106, 0.2);
    overflow: hidden;
}

.ycm-flip-back-content {
    text-align: center;
    padding: 20px;
}

.ycm-flip-back-content p {
    font-family: 'Cormorant Garamond', serif;
    color: var(--text-mid);
    font-size: 1rem;
    font-style: italic;
}

/* ===========================
           FLIP BUTTON (Circle)
        =========================== */
.ycm-flip-btn-wrapper {
    display: flex;
    justify-content: center;
    margin-top: -6px;
}

.ycm-flip-btn-wrapper-inner {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.ycm-flip-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2.5px solid var(--sage);
    background: rgba(122, 158, 142, 0.15);
    backdrop-filter: blur(8px);
    color: var(--sage-dark);
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(122, 158, 142, 0.25);
}

.ycm-flip-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: conic-gradient(var(--sage) 0%, transparent 60%, var(--sage-light) 100%);
    animation: rotateBorder 3s linear infinite;
    opacity: 0.55;
    z-index: -1;
}

@keyframes rotateBorder {
    to {
        transform: rotate(360deg);
    }
}

.ycm-flip-btn:hover {
    background: rgba(122, 158, 142, 0.28);
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(122, 158, 142, 0.4);
}

.ycm-flip-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.5s ease;
}

.ycm-flip-btn.is-flipped svg {
    transform: rotate(180deg);
}

.ycm-flip-btn span {
    font-size: 0.6rem;
}

/* ===========================
           INVITATION PANEL (Full Card)
        =========================== */
#invitation-panel {
    display: none;
    width: min(680px, 95vw);
    animation: slideInCard 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    position: relative;
    padding-bottom: 80px;
    /* Make room for the button */
}

#invitation-panel.visible {
    display: block;
    transform: none; /* Prevent stacking context from breaking position:fixed modals */
}

@keyframes slideInCard {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Card shell */
.ycm-invitation-card {
    background: var(--card-bg);
    border-radius: var(--radius-card);
    box-shadow:
        0 30px 80px rgba(78, 122, 106, 0.22),
        0 0 0 1px rgba(122, 158, 142, 0.25),
        0 2px 0 rgba(168, 197, 184, 0.5) inset;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 100px);
    height: 900px;
    /* Force it to take space up to max-height */
    position: relative;
}

.ycm-card-scroll-wrapper {
    flex: 1;
    overflow-y: auto;
    scroll-behavior: smooth;
    position: relative;
}

.ycm-card-scroll-wrapper::-webkit-scrollbar {
    width: 6px;
}

.ycm-card-scroll-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.ycm-card-scroll-wrapper::-webkit-scrollbar-thumb {
    background-color: var(--sage);
    border-radius: 3px;
}

/* Card top decorative band */
.ycm-card-band {
    height: 6px;
    background: linear-gradient(to right, var(--sage-deep), var(--sage-light), var(--sage), var(--sage-light), var(--sage-deep));
    flex-shrink: 0;
}

/* ===========================
           NAVBAR
        =========================== */
.ycm-wedding-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0 24px;
    background: linear-gradient(to bottom, #e8f0ec, #f2f7f4);
    border-bottom: 1px solid rgba(122, 158, 142, 0.2);
    position: relative;
    flex-shrink: 0;
}

.ycm-nav-close-btn {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: rgba(78, 122, 106, 0.65);
    cursor: pointer;
    line-height: 1;
    transition: color 0.25s ease;
    padding: 4px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ycm-nav-close-btn:hover {
    color: var(--sage-dark);
}

.ycm-nav-item {
    position: relative;
    padding: 14px 20px;
    font-family: 'Georgia', serif;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(78, 122, 106, 0.65);
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.25s ease;
    white-space: nowrap;
}

.ycm-nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--sage);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 1px;
}

.ycm-nav-item:hover {
    color: var(--sage-dark);
}

.ycm-nav-item:hover::after {
    transform: scaleX(0.5);
}

.ycm-nav-item.active {
    color: var(--sage-deep);
    font-weight: 600;
}

.ycm-nav-item.active::after {
    transform: scaleX(1);
}

/* ===========================
           SECTION CONTENT
        =========================== */
.ycm-sections-wrapper {
    position: relative;
    min-height: 400px;
}

.ycm-section-pane {
    display: block;
    padding: 40px 36px 48px;
    animation: fadeSection 0.45s ease both;
}

.ycm-section-pane.active {
    display: block;
}

@keyframes fadeSection {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Section headers ---- */
.ycm-section-heading {
    text-align: center;
    margin-bottom: 28px;
}

.ycm-section-eyebrow {
    font-family: 'Lato', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: 6px;
}

.ycm-section-title {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(2.2rem, 5vw, 3rem);
    color: var(--text-dark);
    line-height: 1;
}

.ycm-section-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px auto 0;
    width: fit-content;
}

.ycm-section-divider span {
    height: 1px;
    width: 60px;
    background: linear-gradient(to right, transparent, var(--sage-dark));
}

.ycm-section-divider span:last-child {
    background: linear-gradient(to left, transparent, var(--sage-dark));
}

.ycm-section-divider i {
    font-style: normal;
    color: var(--sage-dark);
    font-size: 1rem;
}

/* ===========================
           EVENT SECTION
        =========================== */
.ycm-couple-names-container {
    margin: 28px 0;
}

.ycm-capsule-container {
    position: relative;
    width: 100px;
    height: 130px;
    margin: 10px auto;
}

.ycm-capsule-frame {
    width: 100%;
    height: 100%;
    border-radius: 60px 60px 50px 50px;
    background: linear-gradient(135deg, #c4d8d0 0%, #9abcb0 100%);
    border: 2.5px solid var(--sage);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 8px 24px var(--shadow);
    position: relative;
    z-index: 2;
}

.ycm-capsule-frame svg {
    opacity: 0.42;
    width: 55px;
}

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

.ycm-couple-names-center {
    text-align: center;
    min-width: 160px;
}

/* Floral Overlays */
.ycm-floral-twig {
    position: absolute;
    width: 65px;
    height: 95px;
    z-index: 3;
    pointer-events: none;
}

.ycm-twig-bottom-left {
    bottom: -15px;
    left: -25px;
    transform: none; /* Bulges left naturally */
}

.ycm-twig-top-right {
    top: -15px;
    right: -25px;
    transform: scale(-1, -1); /* Bulges right, flipped vertical */
}

.ycm-twig-top-left {
    top: -15px;
    left: -25px;
    transform: scaleY(-1); /* Bulges left, flipped vertical */
}

.ycm-twig-bottom-right {
    bottom: -15px;
    right: -25px;
    transform: scaleX(-1); /* Bulges right */
}

@media (max-width: 767.98px) {
    .ycm-floral-twig {
        width: 50px;
        height: 75px;
    }
    
    .ycm-twig-bottom-left {
        bottom: -10px;
        left: -18px;
    }
    
    .ycm-twig-top-right {
        top: -10px;
        right: -18px;
    }

    .ycm-twig-top-left {
        top: -10px;
        left: -18px;
    }

    .ycm-twig-bottom-right {
        bottom: -10px;
        right: -18px;
    }
}

.ycm-label-of {
    font-family: 'Lato', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 4px;
    color: var(--sage);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.ycm-name-groom {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    color: var(--text-dark);
    line-height: 1.1;
}

.ycm-ampersand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--sage-dark);
    line-height: 1;
    margin: 4px 0;
}

.ycm-name-bride {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    color: var(--text-dark);
    line-height: 1.1;
}

/* Wedding date badge */
.ycm-date-badge {
    margin: 0 auto;
    width: 100%;
    max-width: 320px;
    border: 1px solid var(--sage-light);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    background: linear-gradient(to bottom, #ffffff, #f7f9f8);
    box-shadow: 0 8px 24px rgba(78, 122, 106, 0.08);
    position: relative;
}

.ycm-date-badge .ycm-badge-icon {
    font-size: 1.8rem;
    margin-bottom: 12px;
    line-height: 1;
}

.ycm-date-badge .ycm-date-main {
    font-family: 'Georgia', serif;
    font-size: 1.25rem;
    color: var(--sage-deep);
    letter-spacing: 2px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.ycm-date-badge .ycm-date-sub {
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    color: var(--text-mid);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.ycm-date-badge .ycm-highlight-text {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.85rem;
}

/* Floral Ceremony Dress Code */
.ycm-dresscode-box {
    margin: 14px auto 6px auto;
    padding: 10px 12px;
    background: rgba(122, 88, 34, 0.05);
    border: 1px dashed rgba(122, 88, 34, 0.35);
    border-radius: 10px;
    text-align: center;
    width: 100%;
}

.ycm-dresscode-title {
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    color: var(--sage-dark, #4e7a6a);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.ycm-dresscode-title span {
    color: #c9a56a;
    font-size: 0.7rem;
}

.ycm-dresscode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
}

@media (max-width: 420px) {
    .ycm-dresscode-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

.ycm-dresscode-col {
    background: #ffffff;
    border: 1px solid rgba(122, 88, 34, 0.15);
    border-radius: 8px;
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(78, 122, 106, 0.04);
}

.ycm-dresscode-label {
    font-family: 'Lato', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--sage-deep, #2c4a3e);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.ycm-dresscode-val {
    font-family: 'Lato', sans-serif;
    font-size: 0.76rem;
    color: var(--text-dark, #2b2b2b);
    line-height: 1.3;
}

.ycm-btn-map {
    background: transparent;
    border: 1px solid var(--sage);
    border-radius: 30px;
    padding: 8px 20px;
    font-family: 'Lato', sans-serif;
    font-size: 0.7rem;
    color: var(--sage-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Family Info */
.ycm-family-info {
    padding: 0 20px;
}

.ycm-family-parents {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.ycm-parent-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ycm-parent-role {
    font-family: 'Lato', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: var(--sage);
    text-transform: uppercase;
}

.ycm-parent-names {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: var(--text-dark);
    font-weight: 600;
}

.ycm-family-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0;
}

.ycm-family-divider span {
    height: 1px;
    width: 30px;
    background: linear-gradient(to right, transparent, var(--sage-light), transparent);
}

.ycm-family-divider i {
    font-family: 'Great Vibes', cursive;
    color: var(--sage-dark);
    font-size: 1.4rem;
    font-style: normal;
}

/* ===========================
           RSVP SECTION
        =========================== */
.ycm-rsvp-intro {
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-soft);
    margin-bottom: 28px;
}

.ycm-rsvp-form-card {
    background: rgba(122, 158, 142, 0.05);
    border: 1px solid rgba(122, 158, 142, 0.2);
    border-radius: 12px;
    padding: 28px 24px;
}

.ycm-form-field {
    margin-bottom: 18px;
}

.ycm-form-label-custom {
    font-family: 'Georgia', serif;
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: var(--sage-dark);
    text-transform: uppercase;
    display: block;
    margin-bottom: 7px;
}

.ycm-form-input-custom {
    width: 100%;
    padding: 11px 16px;
    border: 1.5px solid rgba(122, 158, 142, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.75);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    color: var(--text-dark);
    transition: border-color 0.25s, box-shadow 0.25s;
    outline: none;
}

.ycm-form-input-custom:focus {
    border-color: var(--sage);
    box-shadow: 0 0 0 3px rgba(122, 158, 142, 0.18);
}

.ycm-radio-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.ycm-radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.ycm-radio-option input[type="radio"] {
    accent-color: var(--sage-dark);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.ycm-radio-option label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: var(--text-dark);
    cursor: pointer;
}

.ycm-btn-gold {
    display: inline-block;
    padding: 13px 40px;
    background: linear-gradient(135deg, var(--sage-deep), var(--sage-dark), var(--sage), var(--sage-dark));
    background-size: 200% auto;
    border: none;
    border-radius: 40px;
    font-family: 'Georgia', serif;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff;
    cursor: pointer;
    transition: background-position 0.4s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 16px rgba(78, 122, 106, 0.35);
    width: 100%;
    margin-top: 6px;
}

.ycm-btn-gold:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(78, 122, 106, 0.45);
}

.ycm-rsvp-success {
    display: none;
    text-align: center;
    padding: 24px;
    color: var(--sage-deep);
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
}

/* ===========================
           GALLERY SECTION
        =========================== */
/* gallery-grid now uses Bootstrap row + col classes for responsive layout */

.ycm-gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, #c8d8d2 0%, #9abcb0 100%);
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1.5px solid rgba(122, 158, 142, 0.25);
}

.ycm-gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 32px rgba(78, 122, 106, 0.25);
}

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

.ycm-gallery-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ycm-gallery-placeholder svg {
    width: 40px;
    height: 40px;
    opacity: 0.35;
}

.ycm-gallery-placeholder span {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 0.9rem;
    color: rgba(46, 74, 66, 0.45);
}

.ycm-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ycm-gallery-item:hover .ycm-gallery-overlay {
    background: rgba(0, 0, 0, 0.25);
}

.ycm-gallery-overlay-icon {
    color: #fff;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.ycm-gallery-item:hover .ycm-gallery-overlay-icon {
    opacity: 1;
}

/* ===========================
           GIFT SECTION
        =========================== */
.ycm-gift-intro {
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-soft);
    margin-bottom: 28px;
    line-height: 1.6;
}

.ycm-gift-qr-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.ycm-gift-qr-image {
    width: 180px;
    height: 180px;
    cursor: pointer;
    border-radius: 12px;
    border: 2px solid rgba(122, 158, 142, 0.3);
    background: #e8f0ec;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ycm-gift-qr-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: rgba(78, 122, 106, 0);
    transition: background 0.3s ease;
}

.ycm-gift-qr-image:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 32px rgba(78, 122, 106, 0.25);
    border-color: var(--sage);
}

.ycm-gift-qr-image:hover::after {
    background: rgba(78, 122, 106, 0.06);
}

.ycm-gift-qr-image svg,
.ycm-gift-qr-image img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}

.ycm-qr-tap-hint {
    font-family: 'Lato', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-soft);
    opacity: 0.7;
    transition: opacity 0.3s;
}

.ycm-gift-qr-image:hover .ycm-qr-tap-hint {
    opacity: 1;
}

.ycm-gift-bank-info {
    text-align: center;
}

.ycm-gift-bank-name {
    font-family: 'Georgia', serif;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--sage-dark);
    margin-bottom: 4px;
    font-weight: 600;
}

.ycm-gift-account-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* QR Modal specific */
.ycm-qr-modal-box {
    text-align: center;
}

.ycm-qr-modal-image {
    width: 240px;
    height: 240px;
    margin: 0 auto 20px;
    padding: 16px;
    background: #e8f0ec;
    border-radius: 12px;
    border: 2px solid rgba(122, 158, 142, 0.3);
}

.ycm-qr-modal-image svg,
.ycm-qr-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ===========================
           WISHES SECTION
        =========================== */
.ycm-wishes-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
    max-height: 340px;
    overflow-y: auto;
    padding-right: 6px;
}

.ycm-wishes-list::-webkit-scrollbar {
    width: 4px;
}

.ycm-wishes-list::-webkit-scrollbar-track {
    background: transparent;
}

.ycm-wishes-list::-webkit-scrollbar-thumb {
    background: var(--sage);
    border-radius: 2px;
}

.ycm-wish-card {
    background: rgba(122, 158, 142, 0.07);
    border: 1px solid rgba(122, 158, 142, 0.2);
    border-radius: 10px;
    padding: 16px 20px;
    border-left: 3px solid var(--sage);
    animation: fadeSection 0.35s ease both;
}

.ycm-wish-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 8px;
}

.ycm-wish-author {
    font-family: 'Georgia', serif;
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--sage-dark);
}

.ycm-wish-btn-row {
    text-align: center;
}

/* Map container */
.ycm-map-container {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(122, 158, 142, 0.3);
}

.ycm-map-container iframe {
    display: block;
    width: 100%;
    height: 300px;
    border: 0;
}

/* Wish Modal */
.ycm-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.ycm-modal-overlay.open {
    display: flex;
}

.ycm-modal-box {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 36px 32px;
    width: min(480px, 92vw);
    position: relative;
    box-shadow: 0 20px 60px rgba(78, 122, 106, 0.25);
    border: 1px solid rgba(122, 158, 142, 0.3);
    animation: slideInCard 0.4s ease both;
}

.ycm-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-mid);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.ycm-modal-close:hover {
    color: var(--text-dark);
}

.ycm-modal-title {
    font-family: 'Great Vibes', cursive;
    font-size: 2.2rem;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 6px;
}

.ycm-modal-subtitle {
    text-align: center;
    font-family: 'Lato', sans-serif;
    font-size: 0.78rem;
    color: var(--text-soft);
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.ycm-modal-success {
    display: none;
    text-align: center;
    color: var(--sage-deep);
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
    padding: 16px 0;
}

/* ===========================
           CARD FOOTER
        =========================== */
.ycm-card-footer-strip {
    background: linear-gradient(to right, #3a6356, #4e7a6a, #3a6356);
    padding: 14px 24px;
    text-align: center;
    flex-shrink: 0;
}

.ycm-card-footer-strip p {
    font-family: 'Lato', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: rgba(232, 244, 240, 0.6);
    text-transform: uppercase;
}

/* ===========================
           CLOSE CARD BUTTON
        =========================== */
.ycm-close-card-row {
    text-align: center;
    font-weight: 700;
    margin-top: 20px;
}

.ycm-close-card-btn {
    background: none;
    border: 1px solid rgba(122, 158, 142, 0.45);
    color: var(--sage-dark);
    border-radius: 30px;
    padding: 8px 28px;
    font-family: 'Georgia', serif;
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
}

.ycm-close-card-btn:hover {
    background: rgba(122, 158, 142, 0.12);
    border-color: var(--sage);
}

/* ===========================
           SCROLL TO TOP BUTTON
        =========================== */
.ycm-scroll-to-top-btn {
    position: absolute;
    bottom: 65px;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--sage);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(78, 122, 106, 0.3);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s, background 0.3s, color 0.3s, box-shadow 0.3s;
}

.ycm-scroll-to-top-btn.visible {
    opacity: 0.85;
    pointer-events: auto;
    transform: translateY(0);
}

.ycm-scroll-to-top-btn:hover {
    background: var(--sage-dark);
    opacity: 1;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(78, 122, 106, 0.4);
}

.ycm-scroll-to-top-btn svg {
    width: 24px;
    height: 24px;
}

/* ===========================
           RESPONSIVE
        =========================== */
@media (max-width: 500px) {
    .ycm-main-wrapper {
        padding: 20px 12px 50px;
    }

    #landing-stage {
        gap: 20px;
        max-height: calc(100vh - 60px);
    }

    .ycm-section-pane {
        padding: 28px 20px 36px;
    }

    .ycm-gift-qr-image {
        width: 150px;
        height: 150px;
    }

    .ycm-qr-modal-image {
        width: 200px;
        height: 200px;
    }

    .ycm-nav-item {
        padding: 12px 12px;
        font-size: 0.6rem;
        letter-spacing: 1px;
    }

    .ycm-nav-close-btn {
        right: 8px;
        font-size: 1.5rem;
        padding: 4px 8px;
    }

    .ycm-scroll-to-top-btn {
        bottom: 20px;
        width: 40px;
        height: 40px;
    }

    .ycm-scroll-to-top-btn svg {
        width: 20px;
        height: 20px;
    }

    .ycm-couple-photo {
        width: 80px;
        height: 110px;
    }

    .ycm-couple-photo svg {
        width: 44px;
    }
}

/* ==========================================================================
   Copyright Footer (Low Opacity White Section)
   ========================================================================== */
.ycm-site-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.15);
    /* White section with low opacity */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    text-align: center;
    z-index: 90;
    box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.15);
}

.ycm-site-footer p {
    margin: 0;
    color: rgba(78, 122, 106, 0.65);
    font-family: 'Georgia', serif;
    font-size: 0.85rem;
    letter-spacing: 2px;
    font-weight: 700;
}

.ycm-site-footer .ycm-footer-divider {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--gold);
    border-radius: 50%;
    margin: 0 12px;
    vertical-align: middle;
    box-shadow: 0 0 4px var(--gold);
}

.ycm-site-footer a {
    color: inherit;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.ycm-site-footer a:hover {
    opacity: 0.8;
}

/* Mobile adjustments for the copyright footer */
@media (max-width: 480px) {
    .ycm-site-footer {
        padding: 8px 10px;
    }

    .ycm-site-footer p {
        font-size: 0.72rem;
        letter-spacing: 1px;
        line-height: 1.4;
    }

    .ycm-site-footer .ycm-footer-divider {
        width: 4px;
        height: 4px;
        margin: 0 8px;
    }

    .ycm-site-footer a {
        color: inherit;
        text-decoration: underline;
        transition: opacity 0.3s ease;
    }

    .ycm-site-footer a:hover {
        opacity: 0.8;
    }
}

/* ===========================
   MUSIC TOGGLE BUTTON
=========================== */
.ycm-music-btn {
    position: fixed;
    bottom: 28px;
    left: 28px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sage-dark), var(--sage-deep));
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    cursor: pointer;
    z-index: 1050;
    box-shadow:
        0 4px 20px rgba(78, 122, 106, 0.55),
        0 0 0 0 rgba(78, 122, 106, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    padding: 0;
}

.ycm-music-btn:hover {
    transform: scale(1.12);
    box-shadow:
        0 6px 28px rgba(78, 122, 106, 0.75),
        0 0 0 6px rgba(78, 122, 106, 0.15);
}

/* Pulsing ring when playing */
.ycm-music-btn.playing {
    animation: musicPulse 2.5s ease-in-out infinite;
}

@keyframes musicPulse {
    0%, 100% {
        box-shadow:
            0 4px 20px rgba(78, 122, 106, 0.55),
            0 0 0 0 rgba(78, 122, 106, 0.4);
    }
    50% {
        box-shadow:
            0 4px 20px rgba(78, 122, 106, 0.55),
            0 0 0 10px rgba(78, 122, 106, 0);
    }
}

/* Music note icon */
.ycm-music-icon-note {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.ycm-music-icon-note svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}

/* Vinyl ring — spins when playing */
.ycm-music-vinyl {
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.35);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ycm-music-btn.playing .ycm-music-vinyl {
    opacity: 1;
    animation: vinylSpin 3s linear infinite;
}

@keyframes vinylSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Sound-wave bars (shown when playing, hidden when paused) */
.ycm-music-waves {
    position: absolute;
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ycm-music-btn.playing .ycm-music-icon-note {
    opacity: 0;
    transform: scale(0.7);
}

.ycm-music-btn.playing .ycm-music-waves {
    opacity: 1;
}

.ycm-music-waves span {
    display: block;
    width: 4px;
    border-radius: 2px;
    background: #fff;
    animation: waveBar 1.2s ease-in-out infinite;
}

.ycm-music-waves span:nth-child(1) { height: 8px;  animation-delay: 0s; }
.ycm-music-waves span:nth-child(2) { height: 16px; animation-delay: 0.2s; }
.ycm-music-waves span:nth-child(3) { height: 12px; animation-delay: 0.4s; }
.ycm-music-waves span:nth-child(4) { height: 18px; animation-delay: 0.1s; }

@keyframes waveBar {
    0%, 100% { transform: scaleY(0.5); opacity: 0.7; }
    50%       { transform: scaleY(1);   opacity: 1; }
}

/* ===========================
   LAYOUT HELPERS (no-op or minimal styling)
   =========================== */

/* Events container — flex column for date badges */
.ycm-events-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* Gallery grid — uses Bootstrap row classes, just a namespace hook */
.ycm-gallery-grid {
    width: 100%;
}

/* Contact people row */
.ycm-contact-people {
    width: 100%;
}

/* Contact person card */
.ycm-person-card {
    background: rgba(122, 158, 142, 0.05);
    border: 1px solid rgba(122, 158, 142, 0.2);
    border-radius: 12px;
    padding: 24px 16px;
    transition: box-shadow 0.3s ease;
}

.ycm-person-card:hover {
    box-shadow: 0 8px 24px rgba(78, 122, 106, 0.12);
}

/* Person avatar emoji/icon */
.ycm-person-avatar {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 12px;
}

/* Person phone link */
.ycm-person-phone {
    margin-top: 10px;
}

.ycm-person-phone a {
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    color: var(--sage-dark);
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.25s ease;
}

.ycm-person-phone a:hover {
    color: var(--sage-deep);
    text-decoration: underline;
}

/* ==========================================================================
   PREMIUM GALLERY LIGHTBOX MODAL
   ========================================================================== */

/* The overlay covers the whole viewport */
#galleryModalcardflip.ycm-modal-overlay {
    background: rgba(15, 23, 20, 0.9); /* Dark sage tint, high opacity for immersive viewing */
    backdrop-filter: blur(8px);
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000; /* Above everything */
    align-items: center;
    justify-content: center;
}

#galleryModalcardflip.ycm-modal-overlay.open {
    display: flex;
}

/* Lightbox Content containing just the image */
.ycm-gallery-lightbox-content {
    position: relative;
    max-width: min(800px, 80vw);
    max-height: 80vh;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: zoomInLightbox 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000; /* black background while loading */
}

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

.ycm-gallery-lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    object-fit: contain;
    transition: opacity 0.2s ease-in-out;
}

/* Floating Navigation Arrow Buttons on left/right edges of screen */
.ycm-gallery-arrow-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.85);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10010;
    padding: 0;
    outline: none;
}

.ycm-gallery-prev {
    left: 40px;
}

.ycm-gallery-next {
    right: 40px;
}

.ycm-gallery-arrow-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.ycm-gallery-arrow-btn svg {
    width: 28px;
    height: 28px;
}

/* Close Button in the top right of overlay */
.ycm-gallery-close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.85);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10020;
    padding: 0;
    line-height: 1;
    outline: none;
}

.ycm-gallery-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.08);
}

@media (max-width: 992px) {
    .ycm-gallery-arrow-btn {
        width: 50px;
        height: 50px;
    }
    .ycm-gallery-arrow-btn svg {
        width: 22px;
        height: 22px;
    }
    .ycm-gallery-prev {
        left: 20px;
    }
    .ycm-gallery-next {
        right: 20px;
    }
    .ycm-gallery-close-btn {
        top: 20px;
        right: 20px;
    }
}

@media (max-width: 576px) {
    /* On mobile, place arrows as semi-transparent overlays inside/on top of the image to save space */
    .ycm-gallery-arrow-btn {
        width: 44px;
        height: 44px;
        background: rgba(0, 0, 0, 0.4);
        border: none;
    }
    .ycm-gallery-arrow-btn svg {
        width: 20px;
        height: 20px;
    }
    .ycm-gallery-prev {
        left: 10px;
    }
    .ycm-gallery-next {
        right: 10px;
    }
    .ycm-gallery-lightbox-content {
        max-width: 95vw;
        border-radius: 12px;
    }
}