/* =========================
   GALLERY PAGE STYLING
   gallery.css
========================= */

/* =========================
   GALLERY INTRO
========================= */

.gallery-intro{
    background-color: #ffffff;
}

/* =========================
   GALLERY GRID SECTION
========================= */

.gallery-grid-section{
    background-color: #f5f7f3;
}

.gallery-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* =========================
   GALLERY CARD
========================= */

.gallery-card{
    overflow: hidden;
    border-radius: 18px;
    position: relative;
    cursor: pointer;
    transition: 0.3s ease;
}

.gallery-card img{
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: 0.4s ease;
}

.gallery-card:hover img{
    transform: scale(1.08);
}

/* =========================
   FEATURED GALLERY
========================= */

.gallery-featured{
    background-color: #ffffff;
}

.featured-gallery-content{
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.featured-gallery-image{
    flex: 1;
}

.featured-gallery-image img{
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 18px;
}

.featured-gallery-text{
    flex: 1;
}

.featured-gallery-text h2{
    font-size: 42px;
    color: #174d2c;
    margin-bottom: 25px;
}

.featured-gallery-text p{
    color: #666;
    line-height: 1.9;
    margin-bottom: 22px;
}

/* =========================
   CTA SECTION
========================= */

.gallery-cta{
    background-color: #174d2c;
    color: white;
    text-align: center;
}

.gallery-cta h2{
    font-size: 42px;
    margin-bottom: 20px;
}

.gallery-cta p{
    max-width: 760px;
    margin: auto;
    line-height: 1.9;
    margin-bottom: 35px;
    color: #f0f0f0;
}

.gallery-cta .btn-primary{
    background-color: white;
    color: #174d2c;
}

.gallery-cta .btn-primary:hover{
    background-color: #f2f2f2;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width: 992px){

    .featured-gallery-content{
        flex-direction: column;
    }

    .featured-gallery-text h2{
        font-size: 36px;
    }

}

@media(max-width: 768px){

    .gallery-grid{
        grid-template-columns: 1fr;
    }

    .gallery-cta h2{
        font-size: 34px;
    }

}

@media(max-width: 480px){

    .gallery-card img{
        height: 240px;
    }

    .featured-gallery-text h2{
        font-size: 30px;
    }

    .gallery-cta h2{
        font-size: 28px;
    }

    /* =========================
   LIGHTBOX
========================= */

.lightbox{
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background-color: rgba(0,0,0,0.9);

    display: none;

    justify-content: center;
    align-items: center;

    z-index: 9999;
}

.lightbox.active{
    display: flex;
}

.lightbox-image{
    max-width: 90%;
    max-height: 85%;
    border-radius: 12px;
}

.close-lightbox{
    position: absolute;
    top: 30px;
    right: 40px;

    font-size: 45px;
    color: white;

    cursor: pointer;
}
}