/*=========================================
        PROJECTS GALLERY SECTION
==========================================*/

.projects-section {
    background: #fff;
    overflow: hidden;
}

.sub-title {
    color: #2E7D32;
    font-weight: 600;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.sub-title::after {
    content: "";
    width: 40px;
    height: 2px;
    background: #2E7D32;
    position: absolute;
    left: 50%;
    bottom: -6px;
    transform: translateX(-50%);
}

.section-title {
    font-size: 56px;
    font-weight: 700;
    color: #111;
    margin-bottom: 15px;
}

.section-title span {
    color: #2E7D32;
}

.projects-section p {
    color: #666;
    font-size: 17px;
    max-width: 650px;
    margin: auto;
    line-height: 1.8;
}

/*=========================================
            GALLERY GRID
==========================================*/

.gallery .col-lg-3,
.gallery .col-lg-6 {
    display: flex;
}

.gallery-item {
    position: relative;
    width: 100%;
    height: 300px !important;
    overflow: hidden;
    cursor: pointer;
    background: #000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
    display: block;
}

/* heights */
.gallery-item {
    height: 260px;
}

.gallery-item.large {
    height: 540px;
}

/* hover image zoom */
.gallery-item:hover img {
    transform: scale(1.08);
}

/*=========================================
            OVERLAY
==========================================*/

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: .4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    width: 72px;
    height: 72px;
    background: #2E7D32;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 18px;
    transform: scale(.7);
    transition: .4s ease;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

.gallery-overlay h5 {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    text-align: center;
}

/*=========================================
                LIGHTBOX
==========================================*/

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: .35s ease;
    padding: 30px;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 72%;
    max-height: 86vh;
    border-radius: 5px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
    animation: zoomIn .35s ease;
}
.lightbox{
    display:none;
}

.lightbox.active{
    display:flex;
}

@keyframes zoomIn {
    from {
        transform: scale(.85);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* close button */
.close-btn {
    position: absolute;
    top: 25px;
    right: 30px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: .3s;
    backdrop-filter: blur(8px);
}

.close-btn:hover {
    background: #fff;
    color: #111;
    transform: rotate(90deg);
}

/* arrows */
.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: .3s;
    backdrop-filter: blur(8px);
}

.prev {
    left: 120px;
}

.next {
    right:130px;
}

.prev:hover,
.next:hover {
    background: #2E7D32;
    transform: translateY(-50%) scale(1.08);
}

/* counter */
.image-count {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, .12);
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    backdrop-filter: blur(8px);
}

/*=========================================
            RESPONSIVE
==========================================*/

@media (max-width:1200px) {

    .section-title {
        font-size: 48px;
    }

}

@media (max-width:992px) {

    .section-title {
        font-size: 42px;
    }

    .gallery-item {
        height: 230px;
    }

    .gallery-item.large {
        height: 470px;
    }

}

@media (max-width:768px) {

    .section-title {
        font-size: 36px;
    }

    .projects-section p {
        font-size: 15px;
    }

    .gallery-item {
        height: 220px;
    }

    .gallery-item.large {
        height: 360px;
    }

    .gallery-overlay i {
        width: 58px;
        height: 58px;
        font-size: 22px;
    }

    .gallery-overlay h5 {
        font-size: 18px;
    }

    .prev,
    .next {
        width: 52px;
        height: 52px;
        font-size: 20px;
    }

}

@media (max-width:576px) {

    .section-title {
        font-size: 30px;
    }

    .gallery-item,
    .gallery-item.large {
        height: 240px;
    }

    .lightbox {
        padding: 15px;
    }

    .lightbox img {
        max-width: 100%;
        max-height: 80vh;
        border-radius: 14px;
    }

    .prev,
    .next {
        width: 46px;
        height: 46px;
        font-size: 18px;
    }

    .prev {
        left: 10px;
    }

    .next {
        right: 10px;
    }

    .close-btn {
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
        font-size: 24px;
    }

    .image-count {
        bottom: 14px;
        font-size: 13px;
        padding: 8px 16px;
    }

}

@media (max-width:375px) {

    .section-title {
        font-size: 26px;
    }

    .gallery-item,
    .gallery-item.large {
        height: 210px;
    }

}

@media (max-width:280px) {

    .section-title {
        font-size: 22px;
    }

    .gallery-item,
    .gallery-item.large {
        height: 170px;
    }

}