/* Projects Section */
.projects {
    padding-bottom: 150px;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 40px;
}

.project-header .section-title-wrapper {
    margin-bottom: 0;
}

.projects .project-images .gallery {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.projects .project-images .gallery img {
    width: 32%;
    height: 250px;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.2s;
    cursor: pointer;
}

.gallery img:hover {
    transform: scale(1.03);
}

.popup {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    text-align: center;
    justify-content: center;
    align-items: center;
}

.popup img {
    max-width: 80%;
    max-height: 80%;
    margin-top: 5%;
    position: relative;
    /* position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%); */
}

#closePopup {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

.nav-btn {
    position: absolute;
    top: 50%;
    font-size: 34px;
    color: white;
    cursor: pointer;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    height: 40px;
    width: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#prevBtn {
    left: 30px;
}

#nextBtn {
    right: 30px;
}

@media (max-width:768px) {
    .projects .project-images .gallery img {
        width: 48%;
    }

    .popup img {
        /* max-width: 80%;
        max-height: 80%; */
        margin: 0;
        /* margin-top: 5%; */
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
}

@media (max-width:480px) {
    .project-header {
        flex-wrap: wrap;
    }

    .project-header .cta-btn {
        margin-top: 16px;
    }

    .projects .project-images .gallery img {
        width: 100%;
        height: 200px;
    }

    #prevBtn {
        left: 12px;
    }

    #nextBtn {
        right: 12px;
    }
}