
.container {
    position: relative;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 90vw;
}

.videocard {
    position: relative;
    display: inline-block;
    width: 450px;
    height: 320px;
    background: #efefef;
    box-shadow: 0 5px 9px rgba(0,0,0,0.3);
    border: 1px solid #cdcdcd;
    margin: 0px 40px 30px 0px;
}


.videocard .videoBox {

    width: 95%;
    height: 95%;
    margin: 6px auto;    
    border: 1px solid black;

}

.videocard .videoBox video {

    width: 100%;
    height: 100%;
    object-fit: cover;
}

.videocard .contentBox {
    position: absolute;
    top: 20px;
    bottom: 20px;
    right: 20px;
    left: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.5s;
    transform-origin: right;
    transform: scale(0);
}

.videocard:hover .contentBox {
    transition: transform 0.5s;
    transform-origin: left;
    transform: scale(1);
}

.videocard .contentBox .content {
    position: relative;
    padding: 20px 20px;
    opacity: 0;
}

.videocard:hover .contentBox .content {
    opacity: 1;
    transition:  0.5s;
    transition-delay: 0.5s;
}

.videocard .contentBox .content h2 {
    color: #fff;
    font-weight: 500;
    margin-bottom: 40px;
}

.videocard .contentBox .content p {
    color: #fff;
}

.videocard .contentBox .content p a {
    text-transform: uppercase;
    background-color: #fff;
    color: #111;
    text-align: center;
    text-decoration: none;
    letter-spacing: 2px;
    display: block;
    padding: 5px 10px;
    margin-top: 40px
    
}

.player {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: rgba(0,0,0,0.95);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
}

.player.active {
    visibility: visible;
    opacity: 1;

}

.player video {
    position: relative;
    max-width: 900px;
    outline: none;
}

.close {
    position: absolute;
    top: 0;
    right: 14px;
    font-size: 36px;
    transform: rotate(45deg);
    cursor: pointer;
    color: #fff;
}

@media (max-width:500px) {

    .videocard {
        width: 350px;
        height: 200px;
    }
    .videocard .contentBox .content {
        font-size: 0.8em;
    }
    .videocard .contentBox .content h2 {
        margin-bottom: 10px;
    }    
    .videocard .contentBox .content p a {
        margin-top: 10px
    }
}

@media (max-width:400px) {

    .videocard {
        width: 300px;
        height: 169px;
    }
    .videocard .contentBox .content {
        font-size: 0.7em;
    }    
}

@media (max-width: 991px) {
    .player video {
        max-width: 90%;
    }

}

