/*
|--------------------------------------------------------------------------
| WRAPPER
|--------------------------------------------------------------------------
*/

.portfolio-video-wrapper {
    width: 100%;
    padding: 40px 0;
}


/*
|--------------------------------------------------------------------------
| FILTER
|--------------------------------------------------------------------------
*/

.portfolio-filter {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 60px;
    background: #2a2a2a;
    width: fit-content;
    border-radius: 12px;
    padding: 8px;
}

.portfolio-filter button {
    border: none;
    background: transparent;
    color: #fff;
    padding: 14px 22px;
    font-size: 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all .3s ease;
}

.portfolio-filter button:hover {
    background: #111;
}

.portfolio-filter button.active {
    background: #111;
    color: #fff;
}


/*
|--------------------------------------------------------------------------
| GRID
|--------------------------------------------------------------------------
*/

.portfolio-video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 50px;
}


/*
|--------------------------------------------------------------------------
| ITEM
|--------------------------------------------------------------------------
*/

.portfolio-item {
    position: relative;
}

.portfolio-item a {
    text-decoration: none;
    color: #fff;
    display: block;
}


/*
|--------------------------------------------------------------------------
| IMAGE
|--------------------------------------------------------------------------
*/

.portfolio-item figure {
    position: relative;
    overflow: hidden;
    margin: 0;
    aspect-ratio: 16/9;
    background: #111;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

    transition:
        transform .6s cubic-bezier(.2, .6, .2, 1),
        opacity .4s ease;
}


/*
|--------------------------------------------------------------------------
| HOVER
|--------------------------------------------------------------------------
*/

.portfolio-item:hover img {
    transform: scale(1.04);
    opacity: .92;
}


/*
|--------------------------------------------------------------------------
| CONTENT
|--------------------------------------------------------------------------
*/

.portfolio-content {
    padding-top: 22px;
}

.portfolio-content h3 {
    margin: 0;
    font-size: 42px;
    line-height: 1;
    font-weight: 500;
    color: #fff;
}

.portfolio-content p,
.portfolio-content .category {
    margin-top: 14px;
    font-size: 15px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #7d7d7d;
}


/*
|--------------------------------------------------------------------------
| MODAL
|--------------------------------------------------------------------------
*/

#portfolio-video-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .92);
    z-index: 999999;

    backdrop-filter: blur(6px);
}

.portfolio-video-modal-inner {
    width: 90%;
    max-width: 1200px;
    position: absolute;
    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);
}

#portfolio-video-frame {
    width: 100%;
    height: 70vh;
    border: none;
    background: #000;
    border-radius: 10px;
}


/*
|--------------------------------------------------------------------------
| CLOSE BUTTON
|--------------------------------------------------------------------------
*/

.close-video-modal {
    position: absolute;
    top: -50px;
    right: 0;

    color: #fff;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;

    transition: opacity .3s ease;
}

.close-video-modal:hover {
    opacity: .7;
}


/*
|--------------------------------------------------------------------------
| TABLET
|--------------------------------------------------------------------------
*/

@media(max-width:1024px) {

    .portfolio-video-grid {
        gap: 35px;
    }

    .portfolio-content h3 {
        font-size: 34px;
    }

}


/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media(max-width:767px) {

    .portfolio-video-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .portfolio-filter {
        width: 100%;
        overflow: auto;
    }

    .portfolio-filter button {
        white-space: nowrap;
        font-size: 14px;
        padding: 12px 18px;
    }

    .portfolio-content h3 {
        font-size: 28px;
    }

    #portfolio-video-frame {
        height: 40vh;
    }

    .close-video-modal {
        top: -40px;
        font-size: 34px;
    }

}

.portfolio-title {
    margin: 0;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    color: #fff !important;
    font-family: 'DB Heavent', sans-serif !important;
    /* font-style: italic; */
}

.portfolio-category {
    margin-top: 8px;
    font-size: 16px;
    font-weight: 400;
    color: #fff;
}