/* =========================================================
   POP VIDEO LATEST
========================================================= */

.pop_video_latest {
    --pop-video-primary: #ff2b37;
    --pop-video-text: #171617;
    --pop-video-sub: #888;
    --pop-video-bg: #f7f7f7;
    --pop-video-border: #e6e6e6;
    --pop-video-white: #fff;
    --pop-video-radius: 14px;
    --pop-video-transition: .3s ease;

    width: 100%;

    color: var(--pop-video-text);
}


/* =========================================================
   LIST
========================================================= */

.pop_video_list {
    display: grid;

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

    gap: 24px 6px;

    width: 100%;

    margin: 0;
    padding: 0;

    list-style: none;
}


.pop_video_item {
    min-width: 0;

    margin: 0;
    padding: 0;
}


/* =========================================================
   CLICK BUTTON
========================================================= */

.pop_video_link {
    display: block;

    width: 100%;

    margin: 0;
    padding: 0;

    border: 0;
    outline: 0;

    background: none;

    color: inherit;

    text-align: left;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;
}


.pop_video_link:focus-visible {
    outline: 2px solid var(--pop-video-primary);
    outline-offset: 4px;
}


/* =========================================================
   THUMBNAIL
========================================================= */

.pop_video_thumb {
    position: relative;

    display: block;

    width: 100%;
    aspect-ratio: 16 / 9;

    overflow: hidden;

    border-radius: 0;

    background: var(--pop-video-bg);
    border-radius:var(--radius-md);
}


.pop_video_thumb > img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition:
        transform .45s ease;
}


.pop_video_link:hover
.pop_video_thumb > img {
    transform: scale(1.035);
}


/* =========================================================
   SUBJECT
========================================================= */

.pop_video_subject {
    display:block;
    width:100%;
    margin-top: 14px;
    color: var(--pop-video-text);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -.025em;
    white-space :nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}


.pop_video_link:hover
.pop_video_subject {
    color: var(--pop-video-primary);
}



.pop_video_subtitle {
    display:block;
    width:100%;
    padding:6px 0 0;
    white-space :nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    color:#888;
}

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

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

    width: 100%;
    height: 100%;

    background: #f5f5f5;

    color: #aaa;

    font-size: 12px;
    font-weight: 600;

    letter-spacing: .08em;
}


.pop_video_no_image_logo {
    display: block;

    width: auto !important;
    height: auto !important;

    max-width: 24%;
    max-height: 28%;

    object-fit: contain;

    opacity: .72;
}


/* =========================================================
   EMPTY
========================================================= */

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

    min-height: 260px;

    border-top: 1px solid var(--pop-video-border);
    border-bottom: 1px solid var(--pop-video-border);

    color: var(--pop-video-sub);

    font-size: 14px;
    text-align: center;
}


/* =========================================================
   POPUP
========================================================= */

.pop_video_popup {
    position: fixed;
    z-index: 999999;

    top: 0;
    left: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    padding: 50px;

    visibility: hidden;
    opacity: 0;

    pointer-events: none;

    box-sizing: border-box;

    transition:
        opacity .25s ease,
        visibility .25s ease;
}


.pop_video_popup.is_open {
    visibility: visible;
    opacity: 1;

    pointer-events: auto;
}


/* =========================================================
   POPUP DIM
========================================================= */

.pop_video_popup_dim {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

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

    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}


/* =========================================================
   POPUP DIALOG
========================================================= */

.pop_video_popup_dialog {
    position: relative;
    z-index: 2;

    width: min(1100px, 100%);

    margin: auto;
}


/* =========================================================
   POPUP PLAYER
========================================================= */

.pop_video_popup_player {
    position: relative;

    width: 100%;
    aspect-ratio: 16 / 9;

    overflow: hidden;

    border-radius: 18px;

    background: #000;

    box-shadow:
        0 25px 80px
        rgba(0, 0, 0, .38);
}


.pop_video_popup_player iframe,
.pop_video_popup_player video {
    display: block;

    width: 100%;
    height: 100%;

    border: 0;

    object-fit: contain;

    background: #000;
}


/* =========================================================
   POPUP EMPTY
========================================================= */

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

    width: 100%;
    height: 100%;

    color: #aaa;

    font-size: 14px;
    text-align: center;
}


/* =========================================================
   POPUP CLOSE
========================================================= */

.pop_video_popup_close {
    position: absolute;
    z-index: 5;

    top: -48px;
    right: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 50%;

    background:
        rgba(255, 255, 255, .12);

    color: #fff;

    font-family:
        Arial,
        sans-serif;

    font-size: 30px;
    font-weight: 200;
    line-height: 1;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

    transition:
        background .2s ease;
}


.pop_video_popup_close:hover {
    background:
        rgba(255, 255, 255, .25);
}


/* =========================================================
   BODY SCROLL LOCK
========================================================= */

html.pop_video_popup_open,
body.pop_video_popup_open {
    overflow: hidden;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1260px) {

    .pop_video_list {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 40px 18px;
    }


    .pop_video_subject {
        font-size: 15px;
    }


    .pop_video_popup_dialog {
        width: min(960px, 100%);
    }

}


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

@media (max-width: 767px) {

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

        gap: 32px 12px;
    }


    .pop_video_subject {
        margin-top: 11px;

        font-size: 14px;
        line-height: 1.45;
    }


    .pop_video_no_image_logo {
        max-width: 30%;
        max-height: 30%;
    }


    .pop_video_popup {
        padding: 40px 20px;
    }


    .pop_video_popup_dialog {
        width: 100%;
    }


    .pop_video_popup_player {
        border-radius: 12px;
    }


    .pop_video_popup_close {
        top: -43px;

        width: 36px;
        height: 36px;

        font-size: 26px;
    }

}


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

@media (max-width: 539px) {

    .pop_video_list {
        grid-template-columns: 1fr;

        gap: 34px;
    }


    .pop_video_subject {
        margin-top: 12px;

        font-size: 15px;
    }


    .pop_video_thumb {
        border-radius: 0;
    }

}




/* =========================================================
   MORE
========================================================= */

.pop_video_more {
    display: flex;
    justify-content: center;

    width: 100%;

    margin-top: 55px;
}


.pop_video_more_link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 20px;

    min-width: 240px;
    height: 54px;

    padding: 0 26px;

    border: 1px solid #d9d9d9;
    border-radius: 50px;

    background: #fff;

    color: var(--pop-video-text);

    font-size: 14px;
    font-weight: 600;

    letter-spacing: -.02em;

    text-decoration: none;

    box-sizing: border-box;

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


.pop_video_more_arrow {
    display: inline-block;

    font-size: 18px;
    font-weight: 400;

    transition:
        transform .25s ease;
}


.pop_video_more_link:hover {
    border-color: var(--pop-video-primary);

    background:
        var(--pop-video-primary);

    color: #fff;
}


.pop_video_more_link:hover
.pop_video_more_arrow {
    transform: translateX(4px);
}


/* TABLET */
@media (max-width: 1260px) {

    .pop_video_more {
        margin-top: 48px;
    }

}


/* MOBILE */
@media (max-width: 767px) {

    .pop_video_more {
        margin-top: 40px;
    }


    .pop_video_more_link {
        min-width: 220px;
        height: 50px;

        padding: 0 22px;

        font-size: 13px;
    }

}