﻿
/* Component */
.video-card-container {
    margin: 0;
}
.video-card-container * {
    box-sizing: border-box;
}

/* Component Heading */
.v-summary-text {
    margin-bottom: 25px;
}

/* Cards Layout */
.vcards {
    display: flex;
    flex-direction: row;
    gap: 30px;
    width: 100%;
    flex-wrap: wrap;
}
.v-card {
    padding-inline: 0;
}

/* Card */
.vcards article {
    box-shadow: 0 0 2px 0 rgba(0,0,0,.5);
    background: #fff;
}

/* Card Video */
.vcards .video {
    height: fit-content;
    width: 100%;
    position: relative;
}
.vcards .video iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
}
.vcards .no-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    padding-left: 40px;
    padding-right: 40px;
    align-items: center;
}
.vcards .no-video h3 {
    color: #5a5a5a;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0;
}

/* Card Content */
.vcards .content {
    padding-left: 40px;
    padding-right: 40px;
    display: flex;
    flex-direction: column;
}

/* Card Content: Title */
.vcards .content h2 {
    margin-top: 15px;
    margin-bottom: 15px;
    font-size: 20px;
    color: #000;
    font-weight: 600;
    line-height: 1.5;
}

/* Card Content: Summary */
.vcards .content p {
    flex-grow: 1;
}

/* Card Content: Read More */
.vcards .content a {
    width: fit-content;
}

/* Modal: Background Overlay */
.v-overlay {
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0);
    z-index: 2;
    cursor: pointer;
}

/* Modal: Popup */
.v-modal {
    display: none;
    flex-direction: column;
    position: fixed;
    z-index: 1;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: black;
    z-index: 100;
}
.v-modal .modal-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    width: fit-content;
    max-width: 90%;
}
.v-modal .v-video {
    background-color: black;
}

/* Modal Close Button */
.v-modal .close {
    color: white;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
}
.v-modal .close:hover,
.v-modal .close:focus {
    color: #999;
    text-decoration: none;
    cursor: pointer;
}

@media screen and (min-width: 1024px) {
    .vcards article {
        max-width: 370px;
        width: calc(50% - 15px);
        display: flex;
        flex-direction: column;
        gap: 0;
        position: relative;
    }
    .vcards .content {
        height: 100%;
    }
    .modal-content {
        margin: auto;
        padding: 0;
        width: fit-content;
        max-width: 90%;
    }
    iframe.v-player {
        width: 50vw;
        height: calc(0.56*50vw);
    }
}

@media screen and (max-width: 1024px) {
    .vcards {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .modal-content {
        margin: auto;
        padding: 0;
        width: 100%;
    }
    iframe.v-player {
        width: 100%; 
        height: 50vh;
    }
}

@media screen and (max-width: 1024px) and (orientation: landscape) {
    .modal-content {
        height:90%;
    }
    iframe.v-player {
        height: 100%;
    }
    .v-video{
        height:100%;
    }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
    .vcards article {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: row;
    }
    .vcards article .video {
        width: 370px;
        min-width: 370px;
        height: 100%;
    }
    .vcards .video .decoration {
        bottom: 0px;
    }
}
