/* ========================================= */
/* TRUE YOG - GALLERY PAGE CSS */
/* ========================================= */

/* ========================================= */
/* HERO SECTION */
/* ========================================= */

.gallery-hero{
    position:relative;
    min-height:90vh;
    display:flex;
    align-items:center;
    overflow:hidden;
    color:#fff;
}

/* ========================================= */
/* LIGHTBOX STYLES */
/* ========================================= */

.lightbox{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.85);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:9999;
}

.lightbox.active{
    display:flex;
}

.lightbox-content{
    position:relative;
    max-width:90%;
    max-height:90%;
}

.lightbox img{
    width:100%;
    height:auto;
    border-radius:12px;
    box-shadow:0 20px 60px rgba(0,0,0,.5);
}

.close-btn{
    position:absolute;
    top:-40px;
    right:0;
    font-size:2rem;
    color:#fff;
    cursor:pointer;
}


/* BACKGROUND */

.gallery-hero-bg{
    position:absolute;
    inset:0;
    z-index:1;
}

.gallery-hero-bg img{
    width:100%;
    height:100%;
    object-fit:cover;
}

/* OVERLAY */

.gallery-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(
        120deg,
        rgba(0,0,0,.75),
        rgba(31,122,76,.55),
        rgba(0,0,0,.4)
    );
    z-index:2;
}

/* ========================================= */
/* FLOATING SHAPES */
/* ========================================= */

.gallery-shapes{
    position:absolute;
    inset:0;
    z-index:3;
    pointer-events:none;
}

.gallery-shapes span{
    position:absolute;
    border-radius:50%;
    background:rgba(255,255,255,.08);
    backdrop-filter:blur(12px);
    animation:floatGallery 9s ease-in-out infinite;
}

.gallery-shapes span:nth-child(1){
    width:200px;
    height:200px;
    top:10%;
    left:8%;
}

.gallery-shapes span:nth-child(2){
    width:150px;
    height:150px;
    top:30%;
    right:10%;
    animation-delay:2s;
}

.gallery-shapes span:nth-child(3){
    width:260px;
    height:260px;
    bottom:-80px;
    right:20%;
    animation-delay:4s;
}

@keyframes floatGallery{
    0%{transform:translateY(0);}
    50%{transform:translateY(-20px);}
    100%{transform:translateY(0);}
}

/* ========================================= */
/* HERO CONTENT */
/* ========================================= */

.gallery-hero-content{
    position:relative;
    z-index:5;
    max-width:800px;
}

.gallery-hero-content h1{
    font-family:"Playfair Display",serif;
    font-size:3.5rem;
    line-height:1.2;
    margin:18px 0;
    color:#fff;
}

.gallery-hero-content p{
    font-size:1.05rem;
    line-height:1.9;
    color:rgba(255,255,255,.9);
    margin-top:15px;
}

/* ========================================= */
/* BREADCRUMB */
/* ========================================= */

.breadcrumb{
    display:flex;
    align-items:center;
    gap:10px;
    font-size:.95rem;
    margin-bottom:15px;
}

.breadcrumb a{
    color:#fff;
    text-decoration:none;
    opacity:.9;
}

.breadcrumb a:hover{
    color:#8CE99A;
}

.breadcrumb i{
    font-size:.8rem;
    opacity:.7;
}

.breadcrumb .active{
    color:#8CE99A;
    font-weight:600;
}

/* ========================================= */
/* SECTION TAG */
/* ========================================= */

.section-tag{
    display:inline-block;
    padding:8px 18px;
    border-radius:50px;
    background:rgba(255,255,255,.12);
    backdrop-filter:blur(10px);
    font-size:.85rem;
    letter-spacing:.5px;
}

/* ========================================= */
/* INTRO SECTION */
/* ========================================= */

.gallery-intro{
    background:#fff;
}

.gallery-intro h2{
    font-size:2.5rem;
    margin:15px 0;
    color:#222;
}

.gallery-intro p{
    color:#666;
    line-height:1.9;
}

/* ========================================= */
/* FILTER SECTION */
/* ========================================= */

.gallery-filter{
    background:#F6FCF8;
    padding:30px 0;
}

.filter-wrapper{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:14px;
}

.filter-btn{
    padding:10px 20px;
    border-radius:50px;
    border:1px solid rgba(31,122,76,.2);
    background:#fff;
    cursor:pointer;
    transition:.3s;
    font-size:.95rem;
    box-shadow:0 8px 20px rgba(0,0,0,.05);
}

.filter-btn:hover{
    transform:translateY(-2px);
    border-color:#1F7A4C;
    color:#1F7A4C;
}

.filter-btn.active{
    background:linear-gradient(135deg,#1F7A4C,#2FA66A);
    color:#fff;
    border:none;
}
/* ========================================= */
/* GALLERY GRID SECTION */
/* ========================================= */

.gallery-grid-section{
    background:#fff;
}

.gallery-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
}

/* ========================================= */
/* GALLERY ITEM (CARD) */
/* ========================================= */

.gallery-item{
    position:relative;
    border-radius:18px;
    overflow:hidden;
    cursor:pointer;
    box-shadow:0 20px 50px rgba(0,0,0,.08);
    transition:.4s ease;
}

/* IMAGE */

.gallery-item img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    transition:.5s ease;
}

/* HOVER EFFECT */

.gallery-item:hover img{
    transform:scale(1.08);
}

.gallery-item:hover{
    transform:translateY(-6px);
    box-shadow:0 30px 70px rgba(31,122,76,.18);
}

/* ========================================= */
/* OVERLAY TEXT */
/* ========================================= */

.gallery-overlay-text{
    position:absolute;
    bottom:0;
    left:0;
    right:0;
    padding:18px;
    background:linear-gradient(
        to top,
        rgba(0,0,0,.75),
        transparent
    );
    color:#fff;
    font-size:1rem;
    font-weight:500;
    opacity:0;
    transform:translateY(10px);
    transition:.4s ease;
}

.gallery-item:hover .gallery-overlay-text{
    opacity:1;
    transform:translateY(0);
}

/* ========================================= */
/* MASONRY VARIATIONS (PINTEREST FEEL) */
/* ========================================= */

.gallery-masonry .gallery-item:nth-child(2){
    grid-row:span 2;
}

.gallery-masonry .gallery-item:nth-child(5){
    grid-column:span 2;
}

/* ========================================= */
/* CATEGORY HIDE SUPPORT (FOR JS FILTER) */
/* ========================================= */

.gallery-item.hide{
    opacity:0;
    transform:scale(.8);
    pointer-events:none;
    transition:.3s ease;
}
/* ========================================= */
/* GALLERY FINAL CTA SECTION */
/* ========================================= */

.gallery-cta{
    position:relative;
    padding:120px 0;
    background:linear-gradient(135deg,#1F7A4C,#2FA66A);
    overflow:hidden;
    text-align:center;
    color:#fff;
}

/* FLOATING SHAPES */

.cta-shapes{
    position:absolute;
    inset:0;
    pointer-events:none;
}

.cta-shapes span{
    position:absolute;
    border-radius:50%;
    background:rgba(255,255,255,.08);
    animation:ctaFloat 9s ease-in-out infinite;
}

.cta-shapes span:nth-child(1){
    width:240px;
    height:240px;
    top:-80px;
    left:-60px;
}

.cta-shapes span:nth-child(2){
    width:180px;
    height:180px;
    right:10%;
    top:20%;
    animation-delay:2s;
}

.cta-shapes span:nth-child(3){
    width:320px;
    height:320px;
    right:-120px;
    bottom:-120px;
    animation-delay:4s;
}

@keyframes ctaFloat{
    0%{transform:translateY(0);}
    50%{transform:translateY(-25px);}
    100%{transform:translateY(0);}
}

/* CTA CONTENT */

.cta-content{
    position:relative;
    z-index:2;
    max-width:850px;
    margin:auto;
}

.cta-content h2{
    font-size:3rem;
    margin:15px 0;
    color:#fff;
}

.cta-content p{
    font-size:1.05rem;
    line-height:1.9;
    margin-bottom:35px;
    color:rgba(255,255,255,.92);
}

/* BUTTONS */

.cta-buttons{
    display:flex;
    justify-content:center;
    gap:18px;
    flex-wrap:wrap;
}

.cta-buttons .btn-primary{
    background:#fff;
    color:#1F7A4C;
}

.cta-buttons .btn-primary:hover{
    background:#F6FCF8;
}

.cta-buttons .btn-secondary{
    border:2px solid rgba(255,255,255,.6);
    color:#fff;
}

.cta-buttons .btn-secondary:hover{
    background:#fff;
    color:#1F7A4C;
}

/* ========================================= */
/* RESPONSIVE DESIGN */
/* ========================================= */

/* TABLET */

@media (max-width:991px){

    .gallery-hero-content h1{
        font-size:3rem;
    }

    .gallery-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .cta-content h2{
        font-size:2.4rem;
    }
}

/* MOBILE */

@media (max-width:768px){

    .gallery-hero-content h1{
        font-size:2.3rem;
    }

    .gallery-grid{
        grid-template-columns:1fr;
    }

    .filter-wrapper{
        flex-direction:column;
        align-items:center;
    }

    .filter-btn{
        width:80%;
        text-align:center;
    }

    .cta-content h2{
        font-size:2rem;
    }

    .cta-buttons{
        flex-direction:column;
        align-items:center;
    }

    .cta-buttons a{
        width:100%;
        max-width:320px;
        text-align:center;
    }
}

/* EXTRA POLISH */

.gallery-item img{
    will-change:transform;
}

.gallery-item{
    will-change:transform;
}
