/* =========================
   GALLERY SECTION
========================= */

.gallery-section {
    width: 100%;
    padding: 70px 0;
    background: #f5f5f5;
}

.gallery-section .container {
    width: 90%;
    max-width: 1300px;
    margin: auto;
}

/* Heading */

.gallery-heading {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-heading h2 {
    font-size: 40px;
    font-weight: 500;
    color: #69A41A;
    margin-bottom: 12px;
}

.gallery-heading p {
    font-size: 15px;
    color: #000033;
    max-width: 750px;
    margin: auto;
    line-height: 1.7;
}

/* Grid */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

/* Card */

.gallery-card {
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 28px;
    cursor: pointer;
    position: relative;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .4s ease;
}

.gallery-card:hover img {
    transform: scale(1.1);
}

/* Hidden Images */

.extra-image {
    display: none;
}

/* Button */

.gallery-btn-wrap {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.gallery-btn {
    padding: 14px 34px;
    border-radius: 50px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: .3s;
}

.gallery-btn:hover {
    background: #69A41A;
    color: #fff;
    border-color: #69A41A;
}

/* RESPONSIVE */

@media (max-width:1200px) {

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width:768px) {

    .gallery-section {
        padding: 50px 0;
    }

    .gallery-heading h2 {
        font-size: 32px;
    }

    .gallery-heading p {
        font-size: 16px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .gallery-card {
        height: 280px;
        border-radius: 22px;
    }
}

@media (max-width:480px) {

    .gallery-heading h2 {
        font-size: 26px;
    }

    .gallery-heading p {
        font-size: 15px;
        line-height: 1.6;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-card {
        height: 320px;
        border-radius: 20px;
    }

    .gallery-btn {
        padding: 12px 28px;
        font-size: 15px;
    }
}



/*=====================================
        GALLERY POPUP
======================================*/

.gallery-popup{

    position:fixed;

    inset:0;

    width:100%;

    height:100%;

    background:rgba(0,0,0,.75);

    backdrop-filter:blur(8px);

    -webkit-backdrop-filter:blur(8px);

    display:flex;

    justify-content:center;

    align-items:center;

    opacity:0;

    visibility:hidden;

    transition:.35s;

    z-index:999999;

    padding:40px;

}

.gallery-popup.active{

    opacity:1;

    visibility:visible;

}

.gallery-popup-img{

    max-width:90%;

    max-height:90vh;

    border-radius:22px;

    object-fit:contain;

    transform:scale(.8);

    transition:.35s;

    box-shadow:0 15px 50px rgba(0,0,0,.4);

}

.gallery-popup.active .gallery-popup-img{

    transform:scale(1);

}

.gallery-popup-close{

    position:absolute;

    top:28px;

    right:35px;

    width:50px;

    height:50px;

    border-radius:50%;

    background:#fff;

    color:#111;

    font-size:35px;

    cursor:pointer;

    display:flex;
    justify-content:center;
    align-items:center;

    transition:.3s;

    user-select:none;

    font-weight:500;

    padding:0;

    line-height:1;
}
.gallery-popup-close:hover{

    background:#69A41A;

    color:#fff;

    transform:rotate(90deg);

}
body.popup-open{

    overflow:hidden;

}


/* Mobile */

@media(max-width:768px){

.gallery-popup{

padding:20px;

}

.gallery-popup-img{

max-width:95%;

max-height:80vh;

border-radius:16px;

}

.gallery-popup-close{

width:50px;

height:50px;

line-height:50px;

font-size:34px;

top:18px;

right:18px;

}

}
