﻿


.video {
    width: 100%;
    margin: 8px auto;
    max-width: 360px;
    position: relative;
    display: block;
    background-color: #000;
    background: no-repeat center center;
    background-size: cover;
    border-radius: 12px;
    box-shadow: rgba(255,0,0,0) 0 0 1px;
    border: 0;
    -webkit-transition: all 0.33s;
    -moz-transition: all 0.33s;
    transition: all 0.33s;
}

    .video:hover {
        box-shadow: rgba(200,0,0,0.66) 0 0 10px;
    }

    .video:after {
        content: "";
        display: block;
        padding-bottom: 66%;
    }

    .video span {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: no-repeat center center;
        background-image: url('/img/video-over.png');
    }



.video-container {
    width: 100vw;
    height: 100vh;
    position:relative;
}

    .video-container iframe {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100vw;
        height: 100vh;
        transform: translate(-50%, -50%);
        pointer-events: none;
    }


.container-video {
    margin-top:70px;
    position: relative;
    display: block;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

    .container-video video {
        object-fit: cover;
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
    }

@media (max-aspect-ratio: 1/1) {
    .container-video {
        height: 75vh;
    }
}

@media (max-aspect-ratio: 3/4) {
    .container-video {
        height: 66vh;
    }
}


@media (max-aspect-ratio: 2/3) {
    .container-video {
        height: 60vh;
    }
}

@media (min-aspect-ratio: 16/9) {
    .video-container iframe {
        height: 56.25vw;
    }
}

@media (max-aspect-ratio: 16/9) {
    .video-container iframe {
        width: 177.78vh;
    }
}



.fullscreen-bg {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    z-index: -100;
}

.fullscreen-bg__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (min-aspect-ratio: 16/9) {
    .fullscreen-bg__video {
        height: 300%;
        top: -100%;
    }
}

@media (max-aspect-ratio: 16/9) {
    .fullscreen-bg__video {
        width: 333%;
        left: -100%;
    }
}

@media (max-width: 767px) {
    .fullscreen-bg {
        background: url('/files/video/video.jpg') center center no-repeat;
        background-size: cover;
    }
}


