/*==========================================
            RECENT PROJECTS CAI
==========================================*/

.projects {
    background: #f8f9fa;
}

/*==========================================
            PROJECT GRID
==========================================*/

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/*==========================================
            PROJECT CARD
==========================================*/

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    cursor: pointer;
}

/*==========================================
            IMAGE
==========================================*/

.project-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.1);
}

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

.project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, .85),
            rgba(0, 0, 0, .15),
            transparent);
    opacity: 1;
    transition: .4s;
}

/*==========================================
            PROJECT INFO
==========================================*/

.project-info {
    position: absolute;
    left: 5%;
    right:5%;
    bottom: 30px;
    color: var(--light);
    opacity: 1;
    width:90%;
}

.project-info h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.3;
}

.project-info h5 {
    margin-bottom: 5px;
    font-weight: 400;
    font-size: 16px;
}    

.project-info span {
    display: inline-block;
    color: var(--light);
    background: var(--primary);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
}

/*==========================================
            HOVER EFFECT
==========================================*/

.project-card:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, .18);
}

/*==========================================
            RESPONSIVE
==========================================*/

@media(max-width:992px) {

    .projects-grid {
        grid-template-columns: 1fr;
    }

}

@media(max-width:768px) {

    .project-card img {
        height: 280px;
    }

    .project-info {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }

    .project-info h3 {
        font-size: 22px;
    }

    .project-info span {
        font-size: 13px;
        padding: 7px 15px;
    }
}

/*=========================================================
                LIGHTBOX IMAGE / VIDEO
=========================================================*/

.lightbox-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-image,
.lightbox-video {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
    display: block;
}

.lightbox-video {
    background: #000;
}

/* =========================================================
   RESPONSIVE YOUTUBE LIGHTBOX
========================================================= */

.lightbox-youtube {
    display: none;
    width: min(90vw, 1200px);
    aspect-ratio: 16 / 9;
    height: auto;
    max-width: 100%;
    border: 0;
    border-radius: 8px;
    background: #000;
}

/* Tablet */
@media (max-width: 768px) {

    .lightbox-youtube {
        width: 92vw;
        aspect-ratio: 16 / 9;
        height: auto;
    }

}

/* Mobile */
@media (max-width: 480px) {

    .lightbox-youtube {
        width: 94vw;
        aspect-ratio: 16 / 9;
        height: auto;
        border-radius: 4px;
    }

}
