/* =========================================
   GALLERY SECTION
========================================= */

.gallery-section {
    padding: 110px 0;
    background: #F8FAFC;
}

.gallery-section .container {
    position: relative;
}


/* =========================================
   SECTION HEADING
========================================= */

.gallery-section .section-heading {
    margin-bottom: 60px;
}

.gallery-section .section-heading span {
    display: inline-block;

    color: #0F4C81;
    font-size: 14px;
    font-weight: 700;

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

.gallery-section .section-heading h2 {
    font-size: 42px;
    line-height: 1.2;
    font-weight: 800;

    color: #1E293B;

    margin: 15px 0;
}

.gallery-section .section-heading p {
    max-width: 600px;

    margin: 0 auto;

    color: #64748B;

    font-size: 17px;
    line-height: 1.7;
}


/* =========================================
   GALLERY ITEM
========================================= */

.gallery-item {
    position: relative;

    display: block;

    width: 100%;
    height: 280px;

    overflow: hidden;

    border-radius: 20px;

    cursor: zoom-in;

    box-shadow: 0 12px 35px rgba(0, 0, 0, .07);

    background: #EAF4FF;
}

.gallery-item img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .5s ease,
        filter .5s ease;
}


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

.gallery-overlay {
    position: absolute;

    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        rgba(15, 76, 129, .12),
        rgba(15, 76, 129, .78)
    );

    opacity: 0;

    transition: opacity .4s ease;
}


/* =========================================
   OVERLAY ICON
========================================= */

.gallery-overlay i {
    width: 70px;
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #fff;

    font-size: 28px;

    color: #0F4C81;

    transform: scale(.75);

    transition:
        transform .4s ease,
        box-shadow .4s ease;
}

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

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

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);

    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}


/* =========================================
   FANCYBOX
========================================= */

.fancybox__content {
    border-radius: 20px;
    overflow: hidden;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 991px) {

    .gallery-section {
        padding: 80px 0;
    }

    .gallery-section .section-heading {
        margin-bottom: 45px;
    }

    .gallery-section .section-heading h2 {
        font-size: 36px;
    }

    .gallery-section .section-heading p {
        font-size: 16px;
    }

    .gallery-item {
        height: 240px;
        border-radius: 18px;
    }

    .gallery-overlay i {
        width: 62px;
        height: 62px;

        font-size: 25px;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 576px) {

    .gallery-section {
        padding: 60px 0;
    }

    .gallery-section .container {
        padding-left: 16px;
        padding-right: 16px;
    }


    /* Section heading */

    .gallery-section .section-heading {
        margin-bottom: 30px;
    }

    .gallery-section .section-heading span {
        font-size: 12px;
        letter-spacing: 1.5px;
    }

    .gallery-section .section-heading h2 {
        font-size: 30px;
        line-height: 1.2;

        margin: 10px 0;
    }

    .gallery-section .section-heading p {
        font-size: 15px;
        line-height: 1.6;
    }


    /* Grid */

    .gallery-section .row {
        --bs-gutter-x: 0;
        --bs-gutter-y: 15px;
    }

    .gallery-section .col-lg-4,
    .gallery-section .col-md-6 {
        width: 100%;
    }


    /* Gallery */

    .gallery-item {
        height: 220px;

        border-radius: 17px;

        box-shadow: 0 8px 25px rgba(0, 0, 0, .06);
    }


    /* Always make the image slightly zoomable */

    .gallery-item img {
        transition: transform .45s ease;
    }


    /* Mobile touch-friendly overlay */

    .gallery-overlay {
        opacity: 0;

        background: linear-gradient(
            rgba(15, 76, 129, .08),
            rgba(15, 76, 129, .65)
        );
    }

    .gallery-overlay i {
        width: 58px;
        height: 58px;

        font-size: 23px;
    }


    /* On touch devices, show a subtle overlay */

    .gallery-item:active .gallery-overlay {
        opacity: 1;
    }

    .gallery-item:active .gallery-overlay i {
        transform: scale(1);
    }

}


/* =========================================
   VERY SMALL MOBILE
========================================= */

@media (max-width: 380px) {

    .gallery-section {
        padding: 50px 0;
    }

    .gallery-section .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .gallery-section .section-heading h2 {
        font-size: 28px;
    }

    .gallery-section .section-heading p {
        font-size: 14px;
    }

    .gallery-section .row {
        --bs-gutter-y: 12px;
    }

    .gallery-item {
        height: 190px;
        border-radius: 15px;
    }

    .gallery-overlay i {
        width: 52px;
        height: 52px;

        font-size: 21px;
    }

}