﻿.total {
    font-size: 17px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.5);
    padding: 15px 0;
    margin: 0;
}

.total-accent {
    color: var(--primary);
    font-weight: bold;
    font-size: 25px;
}

.video-item {
    padding: 25px;
}

.video-link {
    position: relative;
    width: 100%;
    height: 210px;
    border-radius:18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .video-link:hover .video-thumb {
        transform: scale(1.1);
    }
    .video-link:hover .video-logo {
        opacity:1;
    }

.video-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    /* 반투명으로 시작했다가 40% 지점에서 완전투명 */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 40%);
    z-index: 1;
}

.video-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: all 0.3s ease-in-out;
}

.video-title {
    position: absolute;
    inset: 0;
    z-index: 1;
    padding: 15px;
    font-size: 17px;
    font-weight: 500;
    font-family: "Noto Sans KR", serif;
    color: #fff;
    height: max-content;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 77px;
    height: 44px;
    border-radius: 50%;
    z-index: 2;
    opacity:0;
}

    .video-logo img {
        width: 100%;
        height: 100%;
    }

.video-date {
    position: absolute;
    left: 0;
    bottom: 10px;
    padding: 15px;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    font-family: "Noto Sans KR", serif;
    color: #808080;
    z-index: 1;
}

/* 영상 클릭 시 화면에 띄울 비디오 창 */

.iframe-wrap {
    /* 처음엔 숨김 */
    display: none;
    flex-direction: column;
    /* 화면의 정중앙에 배치 */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 800px;
    height: 500px;
    /* 다른 요소보다 앞에 배치 */
    z-index: 100;
}


/*  video iframe */

.video-iframe {
    flex: 0 0 90%;
}

.iframe-wrap .video-button {
    flex: 0 0 10%;
    position: relative;
}


.video-button .close-btn {
    position: absolute;
    top: 50%;
    right: 0;
    transform:translateY(-50%);
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
}

.close-btn img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

/* 영상 클릭 시 화면 뒤에 띄울 오버레이 */
.iframe-overlay {
    position: fixed;
    inset: 0;
    z-index: 99;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
}

.total-accent{

}

@media(max-width : 767px) {
    .iframe-wrap {
        width: 600px !important;
        height: 360px !important;
    }
    .container, .container-sm {
        max-width: 700px !important;
    }
}

@media(max-width: 575px){
    .video-title{
        font-size:16px !important;
    }
    
    
}

@media(max-width : 640px) {
    .iframe-wrap {
        width: 400px !important;
        height: 240px !important;
    }

    .video-button .close-btn {
        width: 15px !important;
        height: 15px !important;
    }
}

@media(max-width : 420px) {
    .iframe-wrap {
        width: 300px !important;
        height: 220px !important;
    }

    .video-button .close-btn {
        width: 15px !important;
        height: 15px !important;
    }
}