.mediabox-wrap {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 99999;
    -webkit-animation-duration: 0.5s;
    animation-duration: 0.5s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation-name: mediabox;
    animation-name: mediabox;
}

@-webkit-keyframes mediabox {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes mediabox {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.mediabox-content {
    max-width: 853px;
    display: block;
    margin: 0 auto;
    height: 100%;
    position: relative;
    outline:none;
}

.mediabox-content iframe {
    max-width: 100% !important;
    width: 100% !important;
    display: block !important;
    height: 480px !important;
    border: none !important;
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto 0;
}

.mediabox-hide {
    -webkit-animation-duration: 0.5s;
    animation-duration: 0.5s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation-name: mediaboxhide;
    animation-name: mediaboxhide;
}

@-webkit-keyframes mediaboxhide {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes mediaboxhide {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.mediabox-close {
    position: absolute;
    top: 50px;
    cursor: pointer;
    bottom: 528px;
    right: -12px;
    margin: auto 0;
    width: 24px;
    height: 24px;
    background: url("../../mondovo-new-homepage/img/close.png") no-repeat;
    background-size: 24px 24px;
    z-index:9999;
}

.mediabox-close:hover {
    opacity: 0.5;
}

@media all and (max-width: 768px) {
    .mediabox-content {
        max-width: 90%;
    }
}

@media all and (max-width: 600px) {
    .mediabox-content iframe {
        height: 320px !important;
    }

    .mediabox-close {
        bottom: 362px;
    }
}

@media all and (max-width: 480px) {
    .mediabox-content iframe {
        height: 220px !important;
    }

    .mediabox-close {
        bottom: 262px;
    }
}