/* Grandma Evelyn 80th Jubilee Guestbook Styles */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --g-burgundy-dark: #19050d;
    --g-burgundy-card: #2a0b17;
    --g-burgundy-pill: #3a101f;
    --g-gold-primary: #d4af37;
    --g-gold-bright: #fcd34d;
    --g-gold-light: #fef08a;
    --g-gold-gradient: linear-gradient(135deg, #fef08a 0%, #d4af37 50%, #b45309 100%);
    --g-text-cream: #ffffff;
    --g-text-sub: #f3e5ab;
    --g-border-gold: rgba(212, 175, 55, 0.65);
}

html {
    scroll-behavior: smooth;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
}

body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background-color: var(--g-burgundy-dark);
}

/* 100VH Hero Root Container */
.grandma-hero-container {
    width: 100vw !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    overflow: hidden !important;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    color: var(--g-text-cream) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    position: relative !important;
    background-color: var(--g-burgundy-dark) !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    padding: clamp(8px, 1.8vh, 20px) clamp(10px, 2.5vw, 24px) !important;
    text-align: center !important;
}

@media (max-width: 767px) {
    .grandma-hero-container {
        background-image: url('../images/bg-mobile.jpg') !important;
    }
}
@media (min-width: 768px) {
    .grandma-hero-container {
        background-image: url('../images/bg-desktop.jpg') !important;
    }
}

.grandma-hero-container > .e-con-inner,
.grandma-hero-container {
    max-width: 760px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 1. Grandmother 4-Photo Showcase & Badges */
.grandma-portrait-widget-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: clamp(4px, 0.8vh, 10px);
}

/* ==========================================================================
   HERO BANNER 4-PHOTO SHOWCASE (BORDER-ONLY & BIGGER)
   ========================================================================== */
.grandma-banner-photos-container,
.grandma-banner-polaroids-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: clamp(6px, 1.2vh, 16px);
    width: 100%;
}

.grandma-banner-photos-row,
.grandma-banner-polaroids-row {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: clamp(8px, 1.4vh, 14px) 6px clamp(8px, 1.4vh, 14px) 6px;
    gap: clamp(-14px, -1.2vw, -2px);
    width: 100%;
}

.grandma-banner-photo-card,
.banner-polaroid-card {
    position: relative;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    width: clamp(95px, 16vw, 180px);
    height: clamp(125px, 22vh, 230px);
    border-radius: 16px;
    border: 3px solid var(--g-gold-primary);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.65), 0 0 18px rgba(212, 175, 55, 0.45);
    background: #19050d;
    overflow: hidden;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0;
}

.grandma-banner-photo-card img,
.banner-polaroid-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 18% !important;
    display: block !important;
    border-radius: 13px !important;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

/* Subtle Zoom / Expand Badge on Photo Cards */
.photo-card-zoom-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(25, 5, 13, 0.8);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(212, 175, 55, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.7);
    transition: all 0.25s ease;
    pointer-events: none;
    z-index: 5;
}

.grandma-banner-photo-card:hover .photo-card-zoom-badge {
    opacity: 1;
    transform: scale(1);
}

/* --- Tilt Styles (Staggered, Gentle, Straight) --- */
.tilt-mode-staggered .grandma-banner-photo-card.card-tilt-1 {
    transform: rotate(-6deg) translateY(6px);
    z-index: 1;
}

.tilt-mode-staggered .grandma-banner-photo-card.card-tilt-2 {
    transform: rotate(-1.5deg) translateY(-8px);
    z-index: 2;
}

.tilt-mode-staggered .grandma-banner-photo-card.card-tilt-3 {
    transform: rotate(2deg) translateY(-4px);
    z-index: 3;
}

.tilt-mode-staggered .grandma-banner-photo-card.card-tilt-4 {
    transform: rotate(6.5deg) translateY(7px);
    z-index: 1;
}

.tilt-mode-gentle .grandma-banner-photo-card.card-tilt-1 {
    transform: rotate(-2.5deg) translateY(3px);
}
.tilt-mode-gentle .grandma-banner-photo-card.card-tilt-2 {
    transform: rotate(-0.8deg) translateY(-3px);
}
.tilt-mode-gentle .grandma-banner-photo-card.card-tilt-3 {
    transform: rotate(1deg) translateY(-2px);
}
.tilt-mode-gentle .grandma-banner-photo-card.card-tilt-4 {
    transform: rotate(2.8deg) translateY(3px);
}

.tilt-mode-straight .grandma-banner-photo-card {
    transform: rotate(0deg) translateY(0);
}

/* ==========================================================================
   FLEXBOX GRID & COLUMNS RESPONSIVE RULES (2x2 Grid, 4 in Row, 3 in Row)
   ========================================================================== */
/* --- 4 Per Row (1 Single Row - Default Desktop) --- */
.grandma-cols-4 .grandma-banner-photos-row {
    flex-wrap: nowrap !important;
    max-width: 1000px !important;
}

/* --- 2 Per Row (2x2 Grid - 2 Top, 2 Bottom - Total 4 Photos) --- */
.grandma-cols-2 .grandma-banner-photos-row {
    flex-wrap: wrap !important;
    max-width: 440px !important;
    justify-content: center !important;
}

.grandma-cols-2.tilt-mode-staggered .grandma-banner-photo-card.card-tilt-1 {
    transform: rotate(-3.5deg) translateY(0);
}
.grandma-cols-2.tilt-mode-staggered .grandma-banner-photo-card.card-tilt-2 {
    transform: rotate(3.5deg) translateY(0);
}
.grandma-cols-2.tilt-mode-staggered .grandma-banner-photo-card.card-tilt-3 {
    transform: rotate(3deg) translateY(0);
}
.grandma-cols-2.tilt-mode-staggered .grandma-banner-photo-card.card-tilt-4 {
    transform: rotate(-3deg) translateY(0);
}

/* --- 3 Per Row --- */
.grandma-cols-3 .grandma-banner-photos-row {
    flex-wrap: wrap !important;
    max-width: 650px !important;
    justify-content: center !important;
}

/* --- 1 Per Row --- */
.grandma-cols-1 .grandma-banner-photos-row {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
}

/* --- Tablet Breakpoint (<= 1024px) --- */
@media (max-width: 1024px) {
    .grandma-cols-tablet-4 .grandma-banner-photos-row {
        flex-wrap: nowrap !important;
        max-width: 900px !important;
    }
    .grandma-cols-tablet-2 .grandma-banner-photos-row {
        flex-wrap: wrap !important;
        max-width: 380px !important;
    }
    .grandma-cols-tablet-3 .grandma-banner-photos-row {
        flex-wrap: wrap !important;
        max-width: 540px !important;
    }
    .grandma-cols-tablet-1 .grandma-banner-photos-row {
        flex-direction: column !important;
    }
    .grandma-cols-tablet-2.tilt-mode-staggered .grandma-banner-photo-card.card-tilt-1 {
        transform: rotate(-3deg);
    }
    .grandma-cols-tablet-2.tilt-mode-staggered .grandma-banner-photo-card.card-tilt-2 {
        transform: rotate(3deg);
    }
    .grandma-cols-tablet-2.tilt-mode-staggered .grandma-banner-photo-card.card-tilt-3 {
        transform: rotate(3deg);
    }
    .grandma-cols-tablet-2.tilt-mode-staggered .grandma-banner-photo-card.card-tilt-4 {
        transform: rotate(-3deg);
    }
}

/* --- Mobile Breakpoint (<= 767px) --- */
@media (max-width: 767px) {
    .grandma-cols-mobile-4 .grandma-banner-photos-row {
        flex-wrap: nowrap !important;
        max-width: 100% !important;
    }
    .grandma-cols-mobile-2 .grandma-banner-photos-row {
        flex-wrap: wrap !important;
        max-width: 330px !important;
    }
    .grandma-cols-mobile-3 .grandma-banner-photos-row {
        flex-wrap: wrap !important;
        max-width: 100% !important;
    }
    .grandma-cols-mobile-1 .grandma-banner-photos-row {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
    }
    .grandma-cols-mobile-2.tilt-mode-staggered .grandma-banner-photo-card.card-tilt-1 {
        transform: rotate(-3deg);
    }
    .grandma-cols-mobile-2.tilt-mode-staggered .grandma-banner-photo-card.card-tilt-2 {
        transform: rotate(3deg);
    }
    .grandma-cols-mobile-2.tilt-mode-staggered .grandma-banner-photo-card.card-tilt-3 {
        transform: rotate(3deg);
    }
    .grandma-cols-mobile-2.tilt-mode-staggered .grandma-banner-photo-card.card-tilt-4 {
        transform: rotate(-3deg);
    }
}

/* Interactive Hover Effect */
.grandma-banner-photo-card:hover,
.banner-polaroid-card:hover {
    transform: rotate(0deg) translateY(-14px) scale(1.15) !important;
    border-color: #fef08a !important;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.85), 0 0 28px rgba(212, 175, 55, 0.8) !important;
    z-index: 20 !important;
}

.grandma-banner-photo-card:hover img,
.banner-polaroid-card:hover img {
    transform: scale(1.08);
}

/* 80th Jubilee Celebration Ribbon / Pill Badge */
.grandma-jubilee-ribbon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 16px auto;
    padding: 7px 20px;
    background: linear-gradient(180deg, rgba(66, 15, 33, 0.95) 0%, rgba(28, 3, 12, 0.98) 100%);
    border: 1.5px solid #d4af37;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), 0 0 12px rgba(212, 175, 55, 0.35);
    white-space: nowrap;
    z-index: 5;
    box-sizing: border-box;
}

.grandma-jubilee-ribbon span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 2px;
    color: #fcd34d;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
    margin: 0;
    padding: 0;
}



.grandma-portrait-container {
    position: relative;
    margin-bottom: clamp(6px, 1vh, 12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.grandma-portraits-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(6px, 1.4vw, 12px);
    flex-wrap: nowrap;
    position: relative;
    padding: 4px;
}

.grandma-single-portrait-frame {
    width: clamp(80px, 14vh, 120px);
    height: clamp(80px, 14vh, 120px);
    border-radius: 50% !important;
    padding: 3.5px;
    background: linear-gradient(135deg, #fff2a3 0%, #d4af37 40%, #8a640a 100%);
    box-shadow: 0 8px 24px rgba(0,0,0,0.65), 0 0 18px rgba(212, 175, 55, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.grandma-single-portrait-frame:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 12px 30px rgba(0,0,0,0.75), 0 0 24px rgba(212, 175, 55, 0.7);
}

.grandma-single-portrait-frame img,
.grandma-portrait-circle img,
.grandma-portrait-frame img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center 20% !important;
    border: 2px solid #1a040d !important;
    display: block !important;
}

.grandma-portrait-circle,
.grandma-portrait-frame {
    width: clamp(52px, 8.5vh, 88px);
    height: clamp(52px, 8.5vh, 88px);
    border-radius: 50% !important;
    padding: 3px;
    background: linear-gradient(135deg, #fff2a3 0%, #d4af37 40%, #8a640a 100%);
    box-shadow: 0 8px 24px rgba(0,0,0,0.65), 0 0 16px rgba(212, 175, 55, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.grandma-portrait-circle:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 12px 28px rgba(0,0,0,0.75), 0 0 22px rgba(212, 175, 55, 0.75);
    z-index: 10;
}



/* Milestone Badge */
.grandma-milestone-pill {
    display: inline-block;
    background: rgba(45, 12, 24, 0.9);
    border: 1px solid rgba(212, 175, 55, 0.55);
    border-radius: 20px;
    padding: clamp(3px, 0.6vh, 6px) clamp(12px, 2vw, 20px);
    margin-top: clamp(4px, 0.8vh, 8px);
    margin-bottom: clamp(4px, 0.8vh, 8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.grandma-milestone-pill span {
    font-family: 'Cinzel', serif !important;
    font-size: clamp(10px, 1.1vh, 12px) !important;
    font-weight: 700 !important;
    letter-spacing: 2.5px !important;
    color: var(--g-gold-bright) !important;
    text-transform: uppercase !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8) !important;
}

/* 2. Main Title Heading */
.grandma-main-title .elementor-heading-title,
.grandma-main-title {
    font-family: 'Playfair Display', serif !important;
    font-size: clamp(24px, 4.2vh, 40px) !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: clamp(2px, 0.6vh, 6px) !important;
    text-shadow: 0 2px 12px rgba(0,0,0,0.85), 0 0 5px rgba(0,0,0,0.9) !important;
}

.grandma-main-title .gold-accent {
    font-style: italic !important;
    font-weight: 600 !important;
    color: #fbd360 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95), 0 0 20px rgba(212, 175, 55, 0.6) !important;
    display: inline-block !important;
}

/* 3. Subtitle Quote Text Editor */
.grandma-subtitle-quote p,
.grandma-subtitle-quote {
    font-family: 'Playfair Display', serif !important;
    font-style: italic !important;
    font-size: clamp(12px, 1.6vh, 15px) !important;
    line-height: 1.4 !important;
    color: var(--g-text-sub) !important;
    max-width: 520px !important;
    margin: 0 auto clamp(8px, 1.5vh, 16px) auto !important;
    text-shadow: 0 1px 6px rgba(0,0,0,0.9) !important;
}

/* 4. Action Buttons Stack */
.grandma-actions-stack {
    width: 100% !important;
    display: flex !important;
    flex-direction: row;
    justify-content: center !important;
    align-items: center !important;
    gap: clamp(8px, 1.4vh, 16px) !important;
    margin-bottom: clamp(8px, 1.4vh, 14px) !important;
}

@media(max-width: 600px) {
    .grandma-actions-stack {
        flex-direction: column !important;
        gap: 10px !important;
    }
}

.grandma-action-card {
    background: linear-gradient(135deg, rgba(46, 12, 26, 0.95) 0%, rgba(22, 5, 12, 0.97) 100%);
    border: 1.5px solid var(--g-gold-primary);
    border-radius: 16px;
    padding: clamp(10px, 1.5vh, 15px) clamp(14px, 2vw, 20px);
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    text-align: left;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.15), 0 0 10px rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
    flex: 1 1 50%;
    width: 100%;
}

.grandma-action-card:hover {
    transform: translateY(-3px);
    border-color: var(--g-gold-bright);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.35), 0 6px 25px rgba(0,0,0,0.6);
    background: linear-gradient(135deg, rgba(58, 18, 34, 0.98) 0%, rgba(32, 8, 18, 0.98) 100%);
}

.grandma-action-card:active {
    transform: scale(0.98);
}

.card-icon-box {
    width: clamp(42px, 5.5vh, 50px);
    height: clamp(42px, 5.5vh, 50px);
    border-radius: 12px;
    background: rgba(212, 175, 55, 0.18);
    border: 1px solid rgba(212, 175, 55, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.4);
}

.card-text-group {
    display: flex;
    flex-direction: column;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(15px, 2.2vh, 18px);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 2px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.card-subtitle {
    font-size: clamp(11px, 1.4vh, 12px);
    color: var(--g-gold-light);
    font-weight: 500;
    opacity: 0.95;
}

/* 5. Privacy Badge Text Editor */
.grandma-privacy-widget {
    margin-bottom: clamp(6px, 1.2vh, 12px) !important;
}

.grandma-privacy-pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: rgba(25, 6, 15, 0.9) !important;
    border: 1px solid rgba(212, 175, 55, 0.35) !important;
    border-radius: 30px !important;
    padding: clamp(4px, 0.7vh, 7px) clamp(14px, 2vw, 20px) !important;
    backdrop-filter: blur(8px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4) !important;
    font-size: clamp(10.5px, 1.3vh, 12px) !important;
    color: var(--g-text-sub) !important;
    font-weight: 500 !important;
}

/* 6. Live Reception Footer Bar Text Editor */
.grandma-reception-bar {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: rgba(18, 3, 9, 0.88) !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    border-radius: 30px !important;
    padding: clamp(4px, 0.7vh, 7px) clamp(14px, 2vw, 22px) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4) !important;
}

.live-pulse-dot {
    width: 7px;
    height: 7px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: pulse 2s infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.reception-text {
    font-family: 'Playfair Display', serif !important;
    font-style: italic !important;
    font-size: clamp(10.5px, 1.3vh, 12px) !important;
    color: var(--g-text-sub) !important;
    letter-spacing: 0.3px !important;
    margin: 0 !important;
}

/* ==========================================================================
   LIVE CAMERA & VIDEO STUDIO MODAL STYLING
   ========================================================================== */
.grandma-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 2, 6, 0.94);
    backdrop-filter: blur(14px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(8px, 2vh, 18px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.grandma-modal-backdrop.modal-active {
    opacity: 1;
    pointer-events: auto;
}

.grandma-modal-card {
    background: linear-gradient(145deg, #2b0b18 0%, #15030b 100%);
    border: 2px solid var(--g-gold-primary);
    border-radius: 22px;
    width: 100%;
    max-width: 480px;
    max-height: 94vh;
    overflow-y: auto;
    padding: clamp(14px, 2vh, 22px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.85), 0 0 35px rgba(212, 175, 55, 0.35);
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    color: #ffffff;
    text-align: left;
    box-sizing: border-box;
}

.grandma-modal-backdrop.modal-active .grandma-modal-card {
    transform: translateY(0) scale(1);
}

/* Modal Header Bar & Actions */
.camera-top-header-bar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 12px !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25) !important;
    gap: 10px !important;
    position: relative !important;
}

.camera-title-group {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.camera-icon-badge {
    font-size: 20px !important;
    line-height: 1 !important;
    display: inline-block !important;
}

.camera-modal-title-text {
    font-family: 'Playfair Display', serif !important;
    font-size: clamp(15px, 2.2vh, 19px) !important;
    font-weight: 700 !important;
    color: #fcd34d !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 0 12px rgba(212, 175, 55, 0.4) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.camera-actions-group {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
}

.camera-flip-badge-btn {
    background: rgba(212, 175, 55, 0.18) !important;
    border: 1px solid rgba(212, 175, 55, 0.6) !important;
    color: #fef08a !important;
    border-radius: 20px !important;
    padding: 5px 12px !important;
    cursor: pointer !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    white-space: nowrap !important;
}

.camera-flip-badge-btn:hover {
    background: rgba(212, 175, 55, 0.35) !important;
    color: #ffffff !important;
    border-color: #fcd34d !important;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4) !important;
}

.modal-close-circle-btn {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: rgba(46, 12, 26, 0.9) !important;
    border: 1.5px solid var(--g-gold-primary) !important;
    color: var(--g-gold-bright) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    padding: 0 !important;
    outline: none !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    flex-shrink: 0 !important;
}

.modal-close-circle-btn svg {
    display: block !important;
    transition: transform 0.25s ease !important;
}

.modal-close-circle-btn:hover {
    background: linear-gradient(135deg, #420f21 0%, #20040e 100%) !important;
    color: #ffffff !important;
    border-color: #fef08a !important;
    transform: scale(1.1) !important;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.55), 0 4px 12px rgba(0, 0, 0, 0.6) !important;
}

.modal-close-circle-btn:hover svg {
    transform: rotate(90deg) !important;
}

.modal-close-circle-btn:active {
    transform: scale(0.92) !important;
}

/* Live Viewfinder Stream */
.camera-stream-wrapper {
    position: relative !important;
    width: 100% !important;
    height: clamp(230px, 38vh, 320px) !important;
    background: #000000 !important;
    border-radius: 16px !important;
    border: 2px solid rgba(212, 175, 55, 0.45) !important;
    overflow: hidden !important;
    box-shadow: inset 0 0 25px rgba(0,0,0,0.9) !important;
    margin-bottom: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#grandma-camera-stream {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transform: scaleX(-1); /* Mirror front camera for selfie feel */
}

#grandma-camera-stream.camera-back-view {
    transform: scaleX(1) !important;
}

.camera-placeholder-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 3, 9, 0.88);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 5;
    padding: 20px;
    text-align: center;
}

.camera-loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(212, 175, 55, 0.25);
    border-top-color: #fcd34d;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.recording-pill {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0,0,0,0.8);
    border: 1.5px solid #ef4444;
    border-radius: 20px;
    padding: 4px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.7);
    z-index: 10;
}

.rec-red-dot {
    width: 10px;
    height: 10px;
    background-color: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 8px #ef4444;
    animation: pulse-red 1s infinite;
}

.rec-mic-icon {
    font-size: 13px;
}

#video-timer-display {
    font-family: monospace;
    font-size: 13px;
    color: #ffffff;
    font-weight: 700;
}

@keyframes pulse-red {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.25); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.8; }
}

/* Camera Bottom Controls */
.camera-bottom-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}

.camera-bottom-controls.hidden-control,
.camera-bottom-controls[style*="display: none"],
.camera-bottom-controls[style*="display:none"] {
    display: none !important;
}

/* Shutter Gold Button */
.camera-shutter-gold-btn {
    width: 68px !important;
    height: 68px !important;
    border-radius: 50% !important;
    border: 3px solid #fef08a !important;
    background: rgba(212, 175, 55, 0.25) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.6), 0 0 15px rgba(212, 175, 55, 0.45) !important;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    padding: 0 !important;
    outline: none !important;
}

.camera-shutter-gold-btn:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.7) !important;
    border-color: #ffffff !important;
}

.camera-shutter-gold-btn:active {
    transform: scale(0.94) !important;
}

.shutter-inner-gold-circle {
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    background: var(--g-gold-gradient) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4) !important;
}

/* Video Record Red Button */
.video-record-red-btn {
    width: 68px !important;
    height: 68px !important;
    border-radius: 50% !important;
    border: 3px solid #fca5a5 !important;
    background: rgba(220, 38, 38, 0.25) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.6), 0 0 15px rgba(220, 38, 38, 0.5) !important;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    padding: 0 !important;
    outline: none !important;
}

.video-record-red-btn:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.75) !important;
    border-color: #ffffff !important;
}

.video-record-red-btn:active {
    transform: scale(0.94) !important;
}

.record-inner-red-circle {
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    background: #dc2626 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(220, 38, 38, 0.7) !important;
    transition: all 0.25s ease !important;
}

.record-inner-red-square {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    background: #b91c1c !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    box-shadow: 0 0 12px rgba(185, 28, 28, 0.8) !important;
}

.record-instruction {
    font-size: 12px !important;
    color: var(--g-text-sub) !important;
    font-weight: 500 !important;
    text-align: center !important;
}

/* Media Preview inside form view */
.modal-preview-box {
    width: 100% !important;
    height: clamp(190px, 32vh, 260px) !important;
    background: #000000 !important;
    border-radius: 14px !important;
    border: 1.5px solid rgba(212, 175, 55, 0.4) !important;
    overflow: hidden !important;
    margin-bottom: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.modal-preview-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    background: #000000 !important;
}

.modal-preview-video {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    background: #000000 !important;
}

/* Form Inputs inside modal */
.modal-form-group {
    margin-bottom: 12px !important;
}

.modal-form-label {
    display: block !important;
    font-size: 12px !important;
    color: var(--g-gold-light) !important;
    margin-bottom: 5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.4px !important;
}

.modal-form-input, .modal-form-textarea {
    width: 100%;
    background: rgba(15, 2, 8, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 10px;
    padding: 9px 12px;
    color: #ffffff;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease;
}

.modal-form-input:focus, .modal-form-textarea:focus {
    border-color: var(--g-gold-bright);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.35);
}

.modal-form-textarea {
    resize: none;
    height: 55px;
}

/* Action Buttons inside preview */
.modal-preview-action-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.modal-btn-retake {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--g-gold-light);
    border-radius: 12px;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.modal-btn-retake:hover {
    background: rgba(212, 175, 55, 0.25);
    color: #ffffff;
}

.modal-submit-btn {
    flex-grow: 1;
    background: var(--g-gold-gradient);
    border: none;
    border-radius: 12px;
    color: #19050d;
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    font-weight: 700;
    padding: 11px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modal-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.modal-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Progress bar */
.modal-progress-container {
    display: none;
    margin-top: 12px;
}

.progress-track {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: var(--g-gold-gradient);
    border-radius: 10px;
    transition: width 0.2s ease;
}

.progress-text {
    font-size: 11px;
    color: var(--g-gold-light);
    text-align: center;
    margin-top: 5px;
}

/* Success Screen */
.grandma-success-card {
    text-align: center;
    padding: 18px 10px;
}

.success-sparkle {
    font-size: 42px;
    margin-bottom: 10px;
    animation: bounce 1s infinite alternate;
}

@keyframes bounce {
    from { transform: scale(1); }
    to { transform: scale(1.12); }
}

.success-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: var(--g-gold-bright);
    margin-bottom: 8px;
}

.success-desc {
    font-size: 13.5px;
    color: var(--g-text-sub);
    line-height: 1.45;
    margin-bottom: 20px;
}

.success-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.success-btn-secondary {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #ffffff;
    border-radius: 10px;
    padding: 9px;
    cursor: pointer;
    font-size: 13.5px;
    transition: all 0.2s ease;
}

.success-btn-secondary:hover {
    background: rgba(212, 175, 55, 0.2);
}

/* ==========================================================================
   MOMENTS THAT MATTER POLAROID GALLERY SECTION
   ========================================================================== */
.grandma-moments-section {
    background: linear-gradient(180deg, #FAF6EE 0%, #F4ECE0 100%) !important;
    border-radius: 24px;
    padding: clamp(24px, 4.5vh, 48px) clamp(16px, 3.5vw, 44px);
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1.5px solid rgba(212, 175, 55, 0.4);
    margin: 10px auto;
    color: #3A0E1C;
}

.grandma-botanical-leaf {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.grandma-botanical-leaf.leaf-top-left {
    top: 8px;
    left: 8px;
}

.grandma-botanical-leaf.leaf-top-right {
    top: 8px;
    right: 8px;
}

.grandma-moments-header {
    margin-bottom: clamp(16px, 2.8vh, 32px);
    position: relative;
    z-index: 2;
}

.grandma-heart-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.grandma-heart-divider .divider-line {
    width: 50px;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, rgba(90, 24, 41, 0.5), transparent);
}

.grandma-heart-divider .heart-icon {
    font-size: 13px;
    color: #5A1829;
}

.grandma-moments-title {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: clamp(22px, 4vh, 38px) !important;
    font-weight: 700 !important;
    color: #3A0E1C !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.2 !important;
    letter-spacing: 0.2px;
}

.grandma-moments-subtitle {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-style: italic !important;
    font-size: clamp(12px, 1.6vh, 15px) !important;
    color: #634533 !important;
    line-height: 1.55 !important;
    margin: 0 auto !important;
    max-width: 580px !important;
}

.grandma-polaroids-container {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding: 10px 0 20px 0;
}

.grandma-polaroids-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 2.2vw, 26px);
    width: 100%;
    flex-wrap: wrap;
    position: relative;
    z-index: 3;
}

.grandma-polaroid-card {
    position: relative;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    width: clamp(140px, 22vw, 240px);
    flex-shrink: 0;
}

.polaroid-inner-frame {
    background: #FFFFFF;
    padding: clamp(8px, 1.2vw, 12px) clamp(8px, 1.2vw, 12px) clamp(18px, 2.2vw, 26px) clamp(8px, 1.2vw, 12px);
    border-radius: 4px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.15), 0 3px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.35);
    position: relative;
}

.polaroid-gold-underlay {
    position: absolute;
    inset: -4px;
    border: 1px solid rgba(212, 175, 55, 0.55);
    border-radius: 6px;
    pointer-events: none;
    opacity: 0.85;
}

.polaroid-image-box {
    width: 100%;
    height: clamp(140px, 24vh, 220px);
    overflow: hidden;
    border-radius: 2px;
    background: #EFE7DC;
}

.polaroid-image-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.4s ease !important;
}

/* Staggered Tilt Angles matching the mockup */
.grandma-polaroid-card.card-tilt-1 {
    transform: rotate(-3.5deg);
}

.grandma-polaroid-card.card-tilt-2 {
    transform: rotate(0.8deg) translateY(-8px);
    z-index: 4;
}

.grandma-polaroid-card.card-tilt-3 {
    transform: rotate(3.8deg);
}

.grandma-polaroid-card.card-tilt-4 {
    transform: rotate(-1.8deg);
}

.grandma-polaroid-card:hover {
    transform: rotate(0deg) translateY(-12px) scale(1.05);
    z-index: 10;
}

.grandma-polaroid-card:hover .polaroid-inner-frame {
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.22), 0 0 25px rgba(212, 175, 55, 0.45);
    border-color: rgba(212, 175, 55, 0.85);
}

.grandma-polaroid-card:hover .polaroid-image-box img {
    transform: scale(1.06);
}

/* Corner Floral Bouquets */
.grandma-floral-bouquet {
    position: absolute;
    bottom: -6px;
    z-index: 5;
    font-size: clamp(26px, 4.5vw, 42px);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
    pointer-events: none;
}

.grandma-floral-bouquet.bouquet-left {
    left: clamp(4px, 2vw, 24px);
    transform: rotate(-12deg);
}

.grandma-floral-bouquet.bouquet-right {
    right: clamp(4px, 2vw, 24px);
    transform: rotate(12deg);
}

/* Scroll Down Indicator Button */
.grandma-scroll-arrow-badge {
    position: absolute;
    bottom: 4px;
    right: clamp(12px, 3vw, 36px);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(45, 40, 42, 0.68);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    z-index: 6;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.grandma-scroll-arrow-badge:hover {
    background: rgba(58, 14, 28, 0.9);
    transform: translateY(3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* ==========================================================================
   BANNER 4-PHOTO CARDS SHOWCASE & LIGHTBOX
   ========================================================================== */
.grandma-portrait-widget-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    position: relative;
}

.grandma-banner-photos-container {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding-top: 6px;
    padding-bottom: 4px;
}

.grandma-banner-photos-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    column-gap: -10px;
    row-gap: 14px;
    position: relative;
    z-index: 2;
}

/* Photo Cards (Borders Only, No Extra White Margins) */
.grandma-banner-photo-card {
    position: relative;
    width: 175px;
    height: 220px;
    border-radius: 16px;
    border: 3px solid #d4af37;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.65), 0 0 16px rgba(212, 175, 55, 0.35);
    cursor: pointer;
    background: #1a050f;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
}

.grandma-banner-photo-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 20% !important;
    display: block !important;
    border-radius: 13px;
    transition: transform 0.4s ease;
}

.grandma-banner-photo-card:hover {
    transform: translateY(-8px) scale(1.05) !important;
    border-color: #fff2a3 !important;
    box-shadow: 0 18px 40px rgba(0,0,0,0.85), 0 0 26px rgba(212, 175, 55, 0.7) !important;
    z-index: 10;
}

.grandma-banner-photo-card:hover img {
    transform: scale(1.06);
}

/* Card Zoom Badge */
.photo-card-zoom-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    background: rgba(18, 3, 9, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.7);
    transition: all 0.25s ease;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.grandma-banner-photo-card:hover .photo-card-zoom-badge {
    opacity: 1;
    transform: scale(1);
}

/* Tilting Modes */
.tilt-mode-staggered .card-tilt-1 { transform: rotate(-4deg); }
.tilt-mode-staggered .card-tilt-2 { transform: rotate(1deg) translateY(-6px); z-index: 3; }
.tilt-mode-staggered .card-tilt-3 { transform: rotate(4deg); }
.tilt-mode-staggered .card-tilt-4 { transform: rotate(-2deg); }

.tilt-mode-gentle .card-tilt-1 { transform: rotate(-2deg); }
.tilt-mode-gentle .card-tilt-2 { transform: rotate(0.5deg) translateY(-3px); z-index: 3; }
.tilt-mode-gentle .card-tilt-3 { transform: rotate(2deg); }
.tilt-mode-gentle .card-tilt-4 { transform: rotate(-1deg); }

.tilt-mode-straight .grandma-banner-photo-card { transform: none !important; }

/* Responsive Grid Layouts (2x2, 4 in row, etc.) */
.grandma-cols-4 .grandma-banner-photos-row { flex-wrap: nowrap; }
.grandma-cols-2 .grandma-banner-photos-row { flex-wrap: wrap; max-width: 440px; }
.grandma-cols-3 .grandma-banner-photos-row { flex-wrap: wrap; max-width: 600px; }
.grandma-cols-1 .grandma-banner-photos-row { flex-direction: column; }

@media (max-width: 1024px) {
    .grandma-cols-tablet-4 .grandma-banner-photos-row { flex-wrap: nowrap; }
    .grandma-cols-tablet-2 .grandma-banner-photos-row { flex-wrap: wrap; max-width: 360px; }
    .grandma-cols-tablet-3 .grandma-banner-photos-row { flex-wrap: wrap; max-width: 520px; }
    .grandma-cols-tablet-1 .grandma-banner-photos-row { flex-direction: column; }
}

@media (max-width: 767px) {
    .grandma-cols-mobile-4 .grandma-banner-photos-row { flex-wrap: nowrap; }
    .grandma-cols-mobile-2 .grandma-banner-photos-row { flex-wrap: wrap; max-width: 310px; }
    .grandma-cols-mobile-3 .grandma-banner-photos-row { flex-wrap: wrap; max-width: 460px; }
    .grandma-cols-mobile-1 .grandma-banner-photos-row { flex-direction: column; }
}

/* Lightbox Modal Overlay */
.grandma-lightbox-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 2, 7, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 16px;
    box-sizing: border-box;
}

.grandma-lightbox-backdrop.lightbox-active {
    opacity: 1;
    pointer-events: auto;
}

body.grandma-lightbox-open {
    overflow: hidden !important;
}

.grandma-lightbox-dialog {
    position: relative;
    max-width: 92vw;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.grandma-lightbox-image-stage {
    position: relative;
    max-width: 85vw;
    max-height: 76vh;
    border-radius: 18px;
    border: 2px solid var(--g-gold-primary);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.9), 0 0 35px rgba(212, 175, 55, 0.4);
    background: #120309;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grandma-lightbox-image-stage img {
    max-width: 100%;
    max-height: 76vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: opacity 0.15s ease, transform 0.2s ease;
}

.grandma-lightbox-image-stage img.img-switching {
    opacity: 0.2;
    transform: scale(0.97);
}

.grandma-lightbox-close-btn {
    position: absolute;
    top: -46px;
    right: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(45, 11, 24, 0.9);
    border: 1.5px solid var(--g-gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    padding: 0;
}

.grandma-lightbox-close-btn:hover {
    background: #6a1835;
    border-color: #ffffff;
    transform: scale(1.1);
}

.grandma-lightbox-arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(40, 9, 21, 0.88);
    border: 1.5px solid var(--g-gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 4px 16px rgba(0,0,0,0.7);
    padding: 0;
}

.grandma-lightbox-arrow-btn.btn-prev { left: -58px; }
.grandma-lightbox-arrow-btn.btn-next { right: -58px; }

.grandma-lightbox-arrow-btn:hover {
    background: #5c142c;
    border-color: #ffffff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.grandma-lightbox-footer-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin-top: 14px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.lightbox-photo-counter {
    font-family: 'Cinzel', serif !important;
    font-size: 13px !important;
    color: #fcd34d !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    background: rgba(35, 8, 18, 0.92) !important;
    border: 1.5px solid #d4af37 !important;
    border-radius: 30px !important;
    padding: 5px 20px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7), 0 0 10px rgba(212, 175, 55, 0.35) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 1 !important;
}

@media (max-width: 600px) {
    .grandma-lightbox-arrow-btn.btn-prev { left: 6px; }
    .grandma-lightbox-arrow-btn.btn-next { right: 6px; }
    .grandma-lightbox-close-btn { top: -42px; right: 4px; }
    .grandma-lightbox-image-stage { max-width: 94vw; max-height: 68vh; }
    .grandma-lightbox-image-stage img { max-height: 68vh; }
}