/* ══════════════════════════════════════════
   WEDDING GALLERY - LUXURY STYLES
   ══════════════════════════════════════════ */

:root {
    --gold: #e8be35;
    --dark-green: #0a1f11;
    --dark-green-light: #164022;
}

body.wedding-gallery-page {
    background-color: #f6f9f7;
    font-family: "Inter", "Helvetica", sans-serif;
}

.serif-font {
    font-family: "Playfair Display", "Georgia", serif;
}

.uppercase {
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ═════ HERO SECTION ═════ */
.gallery-hero {
    position: relative;
    height: 40vh;
    min-height: 350px;
    background: url('../img/wedding-glry.jpg') center/cover no-repeat;
    background-color: var(--dark-green);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(10, 31, 17, 0.85));
    z-index: 1;
}

.hero-title-box {
    position: relative;
    z-index: 2;
    color: #fff;
    animation: fadeUp 1s ease forwards;
    transform: translateY(20px);
    opacity: 0;
}

.hero-title-box h1 {
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 10px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    color: #fff;
}

.hero-title-box .subtitle-text {
    font-size: 1.15rem;
    color: var(--gold);
    letter-spacing: 2px;
    font-weight: 400;
}

/* ═════ MASONRY GRID ═════ */
.gallery-section {
    position: relative;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px; /* Tightly packed luxury photography grid */
    margin-top: 20px;
    padding-bottom: 50px;
}

@media (max-width: 991px) {
    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .masonry-grid {
        grid-template-columns: 1fr;
    }
}

.masonry-item {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 2px; /* extremely subtle softening, almost sharp */
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: none; /* remove bulky shadows */
    background: #000;
    border: none;
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateZ(0); 
}

.item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 31, 17, 0.35);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.5s ease;
}

.view-text {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.7);
    padding: 12px 25px;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

/* No jumping or lifting to keep grid static and elegant */

.masonry-item:hover img {
    transform: scale(1.06); /* subtle dramatic zoom */
    opacity: 0.8; /* darkens slightly against the black background */
}

.masonry-item:hover .item-overlay {
    opacity: 1;
}

.masonry-item:hover .view-text {
    transform: translateY(0);
    border-color: var(--gold);
    color: #fff;
    background: rgba(232, 190, 53, 0.2);
    /* golden tint */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}


/* ═════ LIGHTBOX MODAL ═════ */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(8, 22, 12, 0.95);
    /* Deep dark green */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

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

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 40px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 3.5rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    line-height: 1;
}

.close-lightbox:hover {
    color: var(--gold);
    transform: rotate(90deg);
}

.lightbox-content {
    text-align: center;
    max-width: 80%;
    max-height: 90vh;
    animation: zoomIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05); /* very subtle */
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.lightbox-nav:hover {
    background: rgba(232, 190, 53, 0.2); /* golden glow */
    color: var(--gold);
    border-color: var(--gold);
}

.lightbox-nav.prev {
    left: 40px;
}

.lightbox-nav.next {
    right: 40px;
}

.lightbox-content img {
    max-width: 100vw;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    object-fit: contain;
}

#lightbox-caption {
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 15px;
}

/* Animations */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}