/* Poster */

.favideo-popup-poster {
    cursor: pointer;
    transition: 0.3s;
}

.favideo-popup-poster:hover {
    opacity: 0.7;
}

/* Modal */

.favideo-popup {
    display: none;
    position: fixed;
    z-index: 9999;
    padding: 0 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.9);
}

.favideo-popup-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    animation-name: zoom;
    animation-duration: 0.3s;
}

/* Animations */

@keyframes zoom {
    from {
        transform: scale(0)
    }
    to {
        transform: scale(1)
    }
}

/* Close popup */

.favideo-popup-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.favideo-popup-close:hover, .favideo-popup-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Special styles for the ME.js */

.mejs-container {
    width: 100% !important;
    height: auto !important;
    padding-top: 57%;
}

.mejs-overlay, .mejs-poster {
    width: 100% !important;
    height: 100% !important;
}

.mejs-mediaelement video {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100% !important;
    height: 100% !important;
}

.no-controls .mejs-controls, .no-overlay-button .mejs-overlay-button {
    display: none;
}

.no-background {
    background: transparent !important;
}