/* =========================================================
   TFOV FILMS
   Premium Monochrome Video Gallery
   Font: Urbanist
   ========================================================= */

.tfov-films {
    --tfov-white: #f5f5f5;
    --tfov-black: #000000;
    --tfov-grey: rgba(245, 245, 245, 0.55);
    --tfov-border: rgba(245, 245, 245, 0.20);

    width: 100%;
    color: var(--tfov-white);

    font-family: "Urbanist", sans-serif !important;

    box-sizing: border-box;
}

.tfov-films *,
.tfov-films *::before,
.tfov-films *::after {
    box-sizing: border-box;

    font-family: "Urbanist", sans-serif !important;
}


/* =========================================================
   FILTERS
   ========================================================= */

.tfov-films__filters {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    gap: 10px;

    margin: 0 0 45px;
}


/* RESET ELEMENTOR / THEME BUTTON STYLES */

.tfov-films__filter,
.tfov-films__filter:hover,
.tfov-films__filter:focus,
.tfov-films__filter:active {

    appearance: none;
    -webkit-appearance: none;

    background: transparent !important;

    color: #f5f5f5 !important;

    border: 1px solid rgba(245,245,245,.20) !important;

    box-shadow: none !important;

    text-shadow: none !important;

    outline: none !important;

    font-family: "Urbanist", sans-serif !important;

    font-size: 13px;

    font-weight: 500;

    letter-spacing: .2px;

    line-height: 1;

    padding: 12px 21px;

    border-radius: 999px;

    cursor: pointer;

    transition:
        background-color .25s ease,
        color .25s ease,
        border-color .25s ease,
        transform .25s ease;
}


/* NORMAL HOVER */

.tfov-films__filter:hover {

    background: #ffffff !important;

    color: #000000 !important;

    border-color: #ffffff !important;

    transform: translateY(-1px);

}


/* ACTIVE */

.tfov-films__filter.is-active,
.tfov-films__filter.is-active:hover,
.tfov-films__filter.is-active:focus {

    background: #f5f5f5 !important;

    color: #000000 !important;

    border-color: #f5f5f5 !important;

}


/* =========================================================
   VIDEO GRID
   ========================================================= */

.tfov-films__grid {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 34px 26px;
}


.tfov-films[data-columns="1"]
.tfov-films__grid {

    grid-template-columns: 1fr;
}


.tfov-films[data-columns="3"]
.tfov-films__grid {

    grid-template-columns:
        repeat(3, minmax(0, 1fr));
}


/* =========================================================
   VIDEO CARD
   ========================================================= */

.tfov-films__card {

    min-width: 0;

    background: transparent;

}


.tfov-films__card.is-hidden {

    display: none;

}


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

.tfov-films__media {

    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    border-radius: 14px;

    background: #111;

}


.tfov-films__thumbnail {

    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

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

}


.tfov-films__card:hover
.tfov-films__thumbnail {

    transform: scale(1.035);

}


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

.tfov-films__media::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,.42),
            rgba(0,0,0,0) 60%
        );

    pointer-events: none;

}


/* =========================================================
   PLAY BUTTON
   ========================================================= */

.tfov-films__play {

    position: absolute;

    z-index: 5;

    top: 50%;
    left: 50%;

    width: 68px;
    height: 68px;

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

    border:

        1px solid
        rgba(255,255,255,.55) !important;

    border-radius: 50% !important;

    background:

        rgba(0,0,0,.28) !important;

    color: #fff !important;

    box-shadow: none !important;

    text-shadow: none !important;

    cursor: pointer;

    backdrop-filter: blur(8px);

    -webkit-backdrop-filter: blur(8px);

    transition:

        transform .3s ease,
        background-color .3s ease,
        border-color .3s ease;

}


/* IMPORTANT — REMOVE PINK HOVER */

.tfov-films__play:hover,
.tfov-films__play:focus,
.tfov-films__play:active {

    background:

        rgba(255,255,255,.12) !important;

    border-color:

        rgba(255,255,255,.85) !important;

    color: #ffffff !important;

    box-shadow: none !important;

    transform:

        translate(-50%, -50%)
        scale(1.08);

    outline: none !important;

}


.tfov-films__play-icon {

    position: absolute;

    top: 50%;
    left: 50%;

    width: 0;
    height: 0;

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

    border-top:
        11px solid transparent;

    border-bottom:
        11px solid transparent;

    border-left:
        16px solid #ffffff;

}


/* =========================================================
   CONTENT
   ========================================================= */

.tfov-films__content {

    padding:

        17px
        2px
        0;

}


.tfov-films__eyebrow {

    margin-bottom: 7px;

    color: var(--tfov-grey);

    font-family:
        "Urbanist",
        sans-serif !important;

    font-size: 11px;

    font-weight: 500;

    line-height: 1.4;

    letter-spacing: 1.4px;

    text-transform: uppercase;

}


.tfov-films__title {

    margin: 0 !important;

    padding: 0 !important;

    color: #f5f5f5 !important;

    font-family:
        "Urbanist",
        sans-serif !important;

    font-size:
        clamp(18px, 2vw, 23px) !important;

    font-weight: 600 !important;

    line-height: 1.2 !important;

}


/* =========================================================
   LIGHTBOX
   ========================================================= */

.tfov-films__lightbox {

    position: fixed;

    z-index: 999999;

    inset: 0;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 40px;

    background:
        rgba(0,0,0,.94);

}


.tfov-films__lightbox.is-open {

    display: flex;

}


.tfov-films__player {

    position: relative;

    width:
        min(1200px, 94vw);

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #000;

    border-radius: 12px;

}


.tfov-films__player iframe {

    width: 100%;

    height: 100%;

    display: block;

    border: 0;

}


/* CLOSE */

.tfov-films__close {

    position: fixed;

    z-index: 10;

    top: 20px;

    right: 25px;

    width: 46px;

    height: 46px;

    padding: 0 !important;

    border:
        1px solid
        rgba(255,255,255,.35) !important;

    border-radius: 50% !important;

    background:
        rgba(0,0,0,.5) !important;

    color: #ffffff !important;

    font-family:
        "Urbanist",
        sans-serif !important;

    font-size: 28px;

    line-height: 1;

    box-shadow: none !important;

    cursor: pointer;

}


.tfov-films__close:hover,
.tfov-films__close:focus,
.tfov-films__close:active {

    background:
        #ffffff !important;

    color:
        #000000 !important;

    border-color:
        #ffffff !important;

    box-shadow: none !important;

    outline: none !important;

}


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

@media (max-width: 767px) {

    .tfov-films__filters {

        justify-content: flex-start;

        flex-wrap: nowrap;

        overflow-x: auto;

        padding-bottom: 10px;

        margin-bottom: 30px;

        scrollbar-width: none;

    }

    .tfov-films__filters::-webkit-scrollbar {

        display: none;

    }

    .tfov-films__filter {

        flex: 0 0 auto;

        padding:
            10px 17px;

        font-size: 12px;

    }

    .tfov-films__grid,
    .tfov-films[data-columns="2"] .tfov-films__grid,
    .tfov-films[data-columns="3"] .tfov-films__grid {

        grid-template-columns: 1fr;

        gap: 28px;

    }

    .tfov-films__play {

        width: 58px;

        height: 58px;

    }

    .tfov-films__lightbox {

        padding: 15px;

    }

    .tfov-films__player {

        width: 100%;

    }

    .tfov-films__close {

        top: 12px;

        right: 12px;

    }

}