/* Gala Theme - Deep Blue & Gold */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=Montserrat:wght@300;400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');
/* Adding a script font for signature */

:root {
    --gala-blue: #0b1435;
    --gala-gold: #d4af37;
    --gala-gold-light: #f3e5ab;
    --gala-text: #ffffff;
}

body.gala-page {
    background-color: var(--gala-blue);
    color: var(--gala-text);
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    padding-top: 100px;
    /* Prevent header overlap */
    overflow-x: hidden;
    background-image: radial-gradient(circle at 50% 0%, #162455 0%, #0b1435 70%);
    /* Subtle gradient background */
}

.gala-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

/* Navbar */
/* Navbar - Sticky & Compact */
/* Navbar */
/* Navbar - Sticky & Compact */
.gala-navbar {
    display: grid;
    /* Use Grid for perfect centering */
    grid-template-columns: 1fr auto 1fr;
    /* 3 columns: Left space, Center auto, Right space */
    align-items: center;
    padding: 0.5rem 2rem;
    width: 100%;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(11, 20, 53, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, background 0.3s ease, padding 0.3s ease;
}

.gala-navbar.hidden {
    transform: translateY(-100%);
}

.nav-logo {
    justify-self: start;
    /* Align to left */
}

.nav-qrcode {
    justify-self: end;
    /* Align to right */
    display: flex;
    flex-direction: column;
    /* Keep internal column layout */
    align-items: center;
}

.nav-waze {
    justify-self: center;
    /* Center perfectly */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    padding: 0;
    transition: transform 0.3s ease;
    background: transparent;
}

.waze-icon-img {
    height: 45px;
    /* Nice readable size */
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.nav-waze:hover {
    background: transparent;
    transform: scale(1.1);
    /* Simple zoom effect */
    box-shadow: none;
}

.nav-logo img {
    height: 60px;
    /* Slightly smaller logo initially */
    width: auto;
    transition: transform 0.3s ease;
}

.nav-qrcode {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--gala-gold);
}

.nav-qrcode img {
    height: 60px;
    /* Match logo size */
    width: auto;
    border: 2px solid var(--gala-gold);
    padding: 2px;
    background: white;
    /* Ensure QR is readable */
    transition: transform 0.3s ease;
}

.qr-caption {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.nav-qrcode:hover img,
.nav-logo:hover img {
    transform: scale(1.05);
}

.gala-header {
    padding: 1rem 0 3rem;
    margin-bottom: 2rem;
    position: relative;
}

.gala-header::after {
    content: '';
    display: block;
    width: 100px;
    height: 2px;
    background: var(--gala-gold);
    margin: 2rem auto 0;
}

.gala-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 6vw, 5rem);
    color: var(--gala-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    line-height: 1.1;
}

.gala-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: var(--gala-gold-light);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-top: 1rem;
}

/* Message Section */
.gala-message {
    max-width: 800px;
    margin: 4rem auto 6rem;
    /* More space around */
    padding: 3rem;
    /* Space for the frame */
    position: relative;
    background: rgba(11, 20, 53, 0.8);
    /* Slightly clearer background */
    border: 3px double var(--gala-gold);
    /* Main double border */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Inner decorative line for the frame effect */
.gala-message::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid var(--gala-gold);
    pointer-events: none;
}

/* Corner decorations (optional, simple CSS only) */
.gala-message::after {
    content: '♦';
    /* Decorative symbol at top center */
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gala-blue);
    padding: 0 10px;
    color: var(--gala-gold);
    font-size: 1.5rem;
}

.message-content {
    font-size: 1.15rem;
    /* Slightly larger for readability */
    line-height: 1.9;
    color: var(--gala-gold-light);
    /* Lighter gold for text inside frame */
    text-align: center;
    /* Center everything inside the frame for formal look */
}

.message-content p {
    margin-bottom: 1.5rem;
}

.greeting {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--gala-gold);
    text-align: center;
    margin-bottom: 2rem !important;
    font-style: italic;
}

.highlight-text {
    font-size: 1.3rem;
    color: var(--gala-gold-light);
    font-weight: 500;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 1.5rem 0;
    margin: 2rem 0 !important;
}

.closing {
    font-size: 1.2rem;
    margin-top: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gala-gold);
}

.signature {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: var(--gala-gold);
    margin-top: 1rem !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}


/* Image Grid */
.gala-images {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 6rem;
}

.gala-image-wrapper {
    width: 100%;
    max-width: 900px;
    border: 1px solid var(--gala-gold);
    padding: 15px;
    background: rgba(11, 20, 53, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.gala-image-wrapper:hover {
    transform: translateY(-5px);
}

.gala-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0.95) contrast(1.05);
    /* Slight enhancement */
}

/* Info Section */
.gala-info {
    margin: 4rem auto;
    padding: 4rem 2rem;
    border-top: 1px solid var(--gala-gold);
    border-bottom: 1px solid var(--gala-gold);
    background: linear-gradient(to right, rgba(11, 20, 53, 0), rgba(212, 175, 55, 0.1), rgba(11, 20, 53, 0));
}

.gala-date {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    color: var(--gala-gold);
    margin-bottom: 1rem;
    font-weight: 600;
}

.gala-location {
    font-size: 1.3rem;
    color: var(--gala-text);
    letter-spacing: 0.05em;
}

/* RSVP Section */
.gala-rsvp {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(11, 20, 53, 0.6);
    border: 1px solid var(--gala-gold);
    padding: 5px;
    /* Inner border effect */
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.1);
}

.gala-rsvp iframe {
    width: 100%;
    height: 700px;
    border: none;
    overflow: hidden;
    background: transparent;
}

.gala-footer {
    text-align: center;
    padding: 3rem 1rem;
    margin-top: 6rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.footer-credit {
    display: inline-block;
    margin-top: 1rem;
    color: var(--gala-gold);
    /* Gold color */
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.7;
    transition: all 0.3s ease;
    border-bottom: 1px dotted transparent;
}

.footer-credit:hover {
    opacity: 1;
    border-bottom-color: var(--gala-gold);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .gala-navbar {
        /* Grid layout is inherited, just adjust padding/gap */
        padding: 0.5rem 10px;
        gap: 5px;
    }

    /* Remove old flexbox ordering hacks since we use grid */
    .nav-waze,
    .nav-logo,
    .nav-qrcode {
        order: unset;
        flex: unset;
        width: auto;
    }

    .nav-logo img {
        height: 45px;
    }

    .waze-icon-img {
        height: 40px;
    }

    .nav-qrcode img {
        height: 45px;
    }

    .qr-caption {
        font-size: 0.55rem;
        margin-top: 2px;
        white-space: nowrap;
    }

    .gala-title {
        font-size: 2.8rem;
    }

    .gala-container {
        padding: 1rem;
    }

    .gala-image-wrapper {
        padding: 8px;
    }

    .gala-rsvp {
        padding: 0;
        border: none;
        background: transparent;
        box-shadow: none;
    }
}

/* Lightbox Modal Styles */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    /* Above header */
    padding-top: 50px;

    /* Lightbox Modal Styles */
    .lightbox-modal {
        display: none;
        position: fixed;
        z-index: 2000;
        /* Above header */
        padding-top: 0;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
        background-color: rgba(0, 0, 0, 0.95);
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    .lightbox-content {
        margin: auto;
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 100vh;
        object-fit: contain;
        border: none;
        box-shadow: none;
        animation: zoomIn 0.3s ease;
    }

    @keyframes zoomIn {
        from {
            transform: scale(0)
        }

        to {
            transform: scale(1)
        }
    }

    .close-modal {
        position: absolute;
        top: 20px;
        right: 35px;
        color: #f1f1f1;
        font-size: 40px;
        font-weight: bold;
        transition: 0.3s;
        cursor: pointer;
    }

    .close-modal:hover,
    .close-modal:focus {
        color: var(--gala-gold);
        text-decoration: none;
        cursor: pointer;
    }

    /* Caption if needed later */
    #caption {
        margin: auto;
        display: block;
        width: 80%;
        max-width: 700px;
        text-align: center;
        color: #ccc;
        padding: 10px 0;
        height: 150px;
    }

    /* Lightbox Modal Styles */
    .lightbox-modal {
        display: none;
        position: fixed;
        z-index: 2000;
        /* Above header */
        padding-top: 50px;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0, 0, 0, 0.9);
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    .lightbox-content {
        margin: auto;
        display: block;
        width: 90%;
        max-width: 1000px;
        max-height: 85vh;
        object-fit: contain;
        border: 2px solid var(--gala-gold);
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
        animation: zoomIn 0.3s ease;
    }

    @keyframes zoomIn {
        from {
            transform: scale(0)
        }

        to {
            transform: scale(1)
        }
    }

    .close-modal {
        position: absolute;
        top: 20px;
        right: 35px;
        color: #f1f1f1;
        font-size: 40px;
        font-weight: bold;
        transition: 0.3s;
        cursor: pointer;
    }

    .close-modal:hover,
    .close-modal:focus {
        color: var(--gala-gold);
        text-decoration: none;
        cursor: pointer;
    }