/*==================================================
                GALLERY PAGE
==================================================*/

:root{

    --primary:#117A43;
    --primary-dark:#0B5A31;
    --secondary:#F4C400;
    --light:#f7f8fa;
    --text:#333;
    --white:#fff;

}

/*==================================================
                HERO
==================================================*/

.gallery-hero{

    position:relative;

    height:55vh;

    min-height:420px;

    background:url("../img/hero4.jpg") center center/cover;

    display:flex;

    justify-content:center;

    align-items:center;

}

.gallery-hero .overlay{

    position:absolute;

    inset:0;

    background:rgba(0,0,0,.55);

}

.gallery-hero .hero-content{

    position:relative;

    z-index:2;

    color:white;

    text-align:center;

    max-width:850px;

}

.gallery-hero span{

    color:#FFD84D;

    letter-spacing:4px;

    font-weight:700;

}

.gallery-hero h1{

    font-size:60px;

    margin:20px 0;

}

.gallery-hero p{

    font-size:20px;

    line-height:1.8;

}

/*==================================================
                FILTERS
==================================================*/

.gallery-filter{

    padding:70px 0 30px;

    background:white;

    text-align:center;

}

.filter-btn{

    padding:14px 28px;

    margin:8px;

    border:none;

    border-radius:40px;

    background:#f2f2f2;

    cursor:pointer;

    font-size:15px;

    font-weight:600;

    transition:.35s;

}

.filter-btn:hover{

    background:var(--primary);

    color:white;

}

.filter-btn.active{

    background:var(--primary);

    color:white;

}

/*==================================================
                GALLERY
==================================================*/

.gallery{

    padding:40px 0 120px;

    background:#fff;

}

.gallery-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:25px;

}	


.gallery-item{

    position:relative;

    overflow:hidden;

    border-radius:18px;

    cursor:pointer;

    box-shadow:0 12px 30px rgba(0,0,0,.12);

}

.gallery-item img{

    width:100%;

    height:300px;

    object-fit:cover;

    display:block;

    transition:.45s;

}

.gallery-item:hover img{

    transform:scale(1.10);

}


.gallery-info{

    position:absolute;

    inset:0;

    background:linear-gradient(

        transparent,

        rgba(0,0,0,.80)

    );

    display:flex;

    flex-direction:column;

    justify-content:flex-end;

    padding:30px;

    color:white;

    opacity:0;

    transition:.35s;

}

.gallery-item:hover .gallery-info{

    opacity:1;

}

.gallery-info h3{

    font-size:24px;

    margin-bottom:10px;

}

.gallery-info p{

    font-size:15px;

}


/*==================================================
                CTA
==================================================*/

.gallery-cta{

    padding:120px 0;

    background:linear-gradient(

    rgba(17,122,67,.90),

    rgba(17,122,67,.90)

    ),

    url("../img/hero3.jpg") center center/cover;

    color:white;

    text-align:center;

}

.gallery-cta h2{

    font-size:52px;

    margin-bottom:25px;

}

.gallery-cta p{

    max-width:700px;

    margin:auto;

    margin-bottom:40px;

    font-size:19px;

    line-height:1.8;

}


/*==================================================
            LIGHTBOX
==================================================*/

.lightbox{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.92);

    display:none;

    justify-content:center;

    align-items:center;

    z-index:9999;

}

.lightbox.active{

    display:flex;

}

.lightbox-img{

    max-width:92%;

    max-height:90%;

    border-radius:12px;

}

.close-lightbox{

    position:absolute;

    top:30px;

    right:40px;

    color:white;

    font-size:45px;

    cursor:pointer;

}


/*==================================================
            RESPONSIVE
==================================================*/

@media(max-width:1200px){

.gallery-grid{

grid-template-columns:repeat(3,1fr);

}

}

@media(max-width:992px){

.gallery-grid{

grid-template-columns:repeat(2,1fr);

}

.gallery-hero h1{

font-size:44px;

}

}

@media(max-width:768px){

.gallery-grid{

grid-template-columns:1fr;

}

.gallery-item img{

height:260px;

}

.gallery-hero{

min-height:350px;

}

.gallery-hero h1{

font-size:34px;

}

.gallery-hero p{

font-size:16px;

}

}
.gallery-item{

    transition:
        opacity .35s ease,
        transform .35s ease;

}

.gallery-item.hidden{

    opacity:0;

    transform:scale(.9);

}


