*{
    box-sizing: border-box;
}

#header{
    padding: 32px 0 0;
}

.main-header nav.menu ul li a{
    font-size: 20px;
    font-weight: 300;
    line-height: 1.5;
    color: #fff;
}

.main-header nav.menu ul li a:hover{
    color: #B7B7B7;
}

.head-social a{
    margin: 0 0 0 32px;
}

.head-social a svg{
    width: 28px;
    fill: #fff;
}

.head-social a:hover svg{
    fill: #bb3693;
}

.main-home{
    padding: 32px 0;
}

.main-home .heading{
    font-family: "Libre Baskerville", serif;
    font-size: clamp(2.629rem, 2.629rem + ((1vw - 0.2rem) * 4.123), 4rem);
    font-weight: 300;
    line-height: 1.2;
    color: #fff;
    text-align: center;
    margin: 0 0 .3167228541em;
}

.main-home .desc{
    font-size: 1.333em;
    font-weight: 300;
    font-style: italic;
    line-height: 1.2;
    color: #fff;
    text-align: center;
    margin: 0;
}

.main-home .heading-content{
    margin: 0 0 80px;
}

.video-list{
    gap: 32px;
}

.video-list .video-list_card{
    width: calc(33.333% - 21.333px);
    
}   

.video-list .video-list_card a{
    aspect-ratio: 3/4;
}

.video-list .video-list_card .video-info{
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 16px;
    position: relative;
    transition: all 0.5s;
}

.video-list .video-list_card .video-info .video-name{
    font-size: 21.328px;
    font-weight: 300;
    line-height: 1.5;
    margin: 0 0 16px;
    position: relative;
    z-index: 2;
    visibility: hidden;
    opacity: 0;
}

.video-list .video-list_card .video-info .video-category{
    font-size: 16px;
    font-weight: 300;
    line-height: 1.5;
    margin: 0;
    position: relative;
    z-index: 2;
    visibility: hidden;
    opacity: 0;
}

.video-list .video-list_card .video-info::before{
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(2, 2, 2, 0.83);
    visibility: hidden;
    transition: all 0.5s;
    opacity: 0;
    border: 1px solid #fff;
}

.video-list .video-list_card .video-info:hover .video-name,
.video-list .video-list_card .video-info:hover .video-category,
.video-list .video-list_card .video-info:hover::before{
    visibility: visible;
    opacity: 1;
}

/* modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1;
}

.modal .close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 3;
    transition: transform 0.3s ease;
}

.modal .close:hover {
    transform: rotate(90deg);
}

.modal .close::before,
.modal .close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 35px;
    height: 3px;
    background-color: #fff;
    transform: translate(-50%, -50%) rotate(45deg);
}

.modal .close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.modal .show-type {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1400px; 
    padding: 20px;
}

.modal .show-type video,
.modal .show-type iframe {
    width: 100%;
    height: 80vh;
    max-height: 800px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal .show-type img {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal .embed-video,
.modal .upload-device,
.modal .youtube-video {
    width: 100%;
}

body.modal-open {
    overflow: hidden;
}

/*  */
.inner-main{
    padding: 0 0 64px;
}

.inner-footer p{
    font-size: 16px;
    line-height: 1.5;
    font-weight: 300;
    color: #fff;
    margin: 0 0 32px;
}

.inner-footer p a{
    text-decoration: underline;
    color: #fff;
}

.inner-footer p a:hover{
    color: #b7b7b7;
}

@media(max-width: 1024px){
    .video-list .video-list_card{
        width: calc(50% - 16px);
    }
}

@media (max-width: 767px) {
    .container{
        padding: 0 16px;
    }

    .video-list{
        gap: 16px;
    }

    .video-list .video-list_card{
        width: calc(50% - 8px);
    }

    .modal .show-type {
        width: 95%;
        padding: 10px;
    }
    
    .modal .show-type video,
    .modal .show-type iframe {
        height: 60vh;
    }
    
    .modal .close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
}