﻿
/*estilos propios para modulo de video.

    root element : section.Publi.video-module 

*/





/*inisde rich text:*/
.rich-text-container > section.Publi.video-module {
    padding-top:100px;
}
.rich-text-container > section.Publi.video-module .play-video-wrapper .row {
    margin: auto;
}

    .rich-text-container > section.Publi.video-module .play-video-wrapper {
        border-radius: unset;
    }

.rich-text-container > section.Publi.video-module .imgRegistro {
    border-radius: unset;
}
/*alone in home :*/
section.Publi.video-module .col-md-9 {
    max-width: 100%;
}

section.Publi.video-module .groupimgRegistro {
    max-width: 75%;
}

section.Publi.video-module .play-video-wrapper {
    z-index: 221;
    /*    height: 100%;
    max-height: 704px;*/
    padding: 0;
    background-color: transparent;
    /*margin: 0 auto;*/
    margin: 26% calc(50% - 50px);
    border-radius: 1.5em;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    max-width:100px;
}

section.Publi.video-module .play-video-container {
    text-align: center;
}
section.Publi.video-module a.video-button {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin: 0 auto 10px;
    color: #ff0000;
    background: #ffffff;
    font-size: 10px;
    font-size: .625rem;
    position: relative;
    width: 65px;
    height: 65px;
}

    section.Publi.video-module a.video-button::after,
    section.Publi.video-module a.video-button::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100%;
        width: 100%;
        background-color: rgba(255,255,255,.4);
        z-index: -1;
        -webkit-animation: playVideoButtonOverlay 3s infinite;
        animation: playVideoButtonOverlay 3s infinite;
    }

section.Publi.video-module .imgRegistro {
    position: relative;
}

section.Publi.video-module a.video-button,
section.Publi.video-module a.video-button::after,
section.Publi.video-module a.video-button::before {
    border-radius: 50%;
    -webkit-transition: all .2s ease-out;
    transition: all .2s ease-out;
}

section.Publi.video-module a.video-button:hover .video-icon-button,
section.Publi.video-module a.video-button:hover .video-icon-play {
    -webkit-transform: scale(.6);
    transform: scale(.6);
    -webkit-transition: all .25s linear;
    transition: all .25s linear
}

section.Publi.video-module a.video-button:hover .video-icon-button {
    -webkit-transform: scale(1.15);
    transform: scale(1.15)
}

section.Publi.video-module a.video-button:hover .video-icon-button::after,
section.Publi.video-module a.video-button:hover .video-icon-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(255,255,255,.4);
    z-index: -1;
    -webkit-animation: playVideoButtonOverlay 3s infinite;
    animation: playVideoButtonOverlay 3s infinite;

}
    section.Publi.video-module a.video-button .video-icon-play {
        width: 30px;
        height: 30px;
        -webkit-transform: scale(.46);
        transform: scale(.46);
        -webkit-transition: all .2s ease-out;
        transition: all .2s ease-out;
    }

section.Publi.video-module a.video-button .video-icon-play::after {
    -webkit-animation-delay: .5s;
    animation-delay: .5s;
}

section.Publi.video-module a.video-button .video-icon-play  .triangle {
    fill: #f00;
}

section.Publi.video-module a.video-button .video-icon-play .path {
    fill: none;
    stroke: #f00;
    stroke-dasharray: 90;
    stroke-dashoffset: 90;
}

section.Publi.video-module a.video-button .video-text-button {
    position: absolute;
    top: 75px;
    font-size: 13px;
    color: #fff;
    text-transform: uppercase;
    text-align: center;
    left:0;
}



/*WYSIWYG*/


.wysiwyg .video-module {

    max-width:100%;
}

    .wysiwyg .video-module .imgRegistro {
        position:relative;
        border-radius:unset;
    }

    .wysiwyg .video-module .play-video-wrapper{ 
        z-index: 221;
        height: auto;
        max-height: 704px;
        padding: 0;
        background-color: transparent;
        margin: 0 auto;
        border-radius: 1.5em;
        display: flex;
        position:absolute;
    }
    .wysiwyg .video-module .play-video-container {
        position: absolute;
        margin: 0 auto;
        width: 740px;
        padding-top: 200px;
    }
    .wysiwyg .video-module div.video-button {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        margin: 0 auto 10px;
        color: #ff0000;
        background: #ffffff;
        font-size: 10px;
        font-size: .625rem;
        position: relative;
        width: 65px;
        height: 65px;
    }

    .wysiwyg .video-module a.video-button::after,
    .wysiwyg .video-module div.video-button::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100%;
        width: 100%;
        background-color: rgba(255,255,255,.4);
        z-index: -1;
        -webkit-animation: playVideoButtonOverlay 3s infinite;
        animation: playVideoButtonOverlay 3s infinite;
    }

    .wysiwyg .video-module div.video-button,
    .wysiwyg .video-module div.video-button::after,
    .wysiwyg .video-module div.video-button::before {
        border-radius: 50%;
        -webkit-transition: all .2s ease-out;
        transition: all .2s ease-out;
    }

        .wysiwyg .video-module div.video-button:hover .video-icon-button,
        .wysiwyg .video-module div.video-button:hover .video-icon-play {
            -webkit-transform: scale(.6);
            transform: scale(.6);
            -webkit-transition: all .25s linear;
            transition: all .25s linear
        }

        .wysiwyg .video-module div.video-button:hover .video-icon-button {
            -webkit-transform: scale(1.15);
            transform: scale(1.15)
        }

            .wysiwyg .video-module div.video-button:hover .video-icon-button::after,
            .wysiwyg .video-module div.video-button:hover .video-icon-button::before {
                content: "";
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                height: 100%;
                width: 100%;
                background-color: rgba(255,255,255,.4);
                z-index: -1;
                -webkit-animation: playVideoButtonOverlay 3s infinite;
                animation: playVideoButtonOverlay 3s infinite;
            }

        .wysiwyg .video-module div.video-button .video-icon-play {
            width: 30px;
            height: 30px;
            -webkit-transform: scale(.46);
            transform: scale(.46);
            -webkit-transition: all .2s ease-out;
            transition: all .2s ease-out;
        }

        .wysiwyg .video-module div.video-button .video-icon-play::after {
            -webkit-animation-delay: .5s;
            animation-delay: .5s;
        }

        .wysiwyg .video-module div.video-button .video-icon-play .triangle {
            fill: #f00;
        }

        .wysiwyg .video-module div.video-button .video-icon-play .path {
            fill: none;
            stroke: #f00;
            stroke-dasharray: 90;
            stroke-dashoffset: 90;
        }

        .wysiwyg .video-module div.video-button .video-text-button {
            position: absolute;
            top: 75px;
            font-size: 13px;
            color: #fff;
            text-transform: uppercase;
            text-align: center;
        }

    /*MEDIA QUERIES */


    @media screen and (max-width: 728px) {
        section .Publi.video-module .play-video-container {
        position: relative;
        bottom: inherit;
        left: inherit;
        right: inherit;
        margin-top: -90px;
        transform: scale(0.75);
    }
    section.Publi.video-module .play-video-wrapper .row {
    margin:auto;
    }
        .wysiwyg .video-module .play-video-wrapper {
            width:100%;
        }
        .wysiwyg .video-module div.video-button {
            margin: 20% 45%;
        }
        .wysiwyg .video-module .play-video-container {
            position: absolute;
            margin: 0 auto;
            padding-top: 0;
            width: 100%;
            height:150px;
        }
}
@media screen and (max-width:480px) {

    .wysiwyg .video-module .play-video-wrapper {
        z-index: 221;
        height: auto;
        max-height: 100%;
        padding: 0;
        background-color: transparent;
        margin: 0 auto;
        border-radius: 1.5em;
        display: block;
        position: absolute;
        left: 0;
        width: 100%;
    }

    .wysiwyg .video-module .play-video-container {
        padding-top: 0;
        width: 100%;
    }

    .wysiwyg .video-module div.video-button {
        margin: 30% 40%;
    }
}
    /*ANIMACIONES : */
@-webkit-keyframes playVideoButtonOverlay {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
        opacity: 1
    }
    to {
        -webkit-transform: scale(1.5);
        transform: scale(1.5);
        opacity: 0
    }
}

@keyframes playVideoButtonOverlay {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
        opacity: 1
    }
    to {
        -webkit-transform: scale(1.5);
        transform: scale(1.5);
        opacity: 0
    }
}


@media screen and (min-width:800px){

    .fancybox-wrap .fancybox-iframe {
        max-height: 786px !important;
        width: 100% !important;
        left: 0;

    }

}

@media screen and (max-width:800px) {

    .fancybox-wrap .fancybox-iframe {
        max-height: 531px !important;
        width: 100% !important;
        left: 0;
        padding-top: 30%;
    }
}
@media screen and (max-width:800px) and (orientation:portrait) {

    .fancybox-wrap {
        width: calc(100% - 50px)!important;
        height: auto;
        position: absolute;
        top: 20px;
        left: 25px;
        opacity: 1;
        overflow: visible;
        right: 25px;
    }

    .fancybox-skin, .fancybox-outer {
        display: block !important;
        height: auto !important;
    }
    .fancybox-inner {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100% !important;
        height: 0 !important;
        padding-bottom: 56.25% !important;
        margin:0 auto;
    }
    /*
    .fancybox-wrap .fancybox-skin,
    .fancybox-wrap .fancybox-outer,
    .fancybox-wrap .fancybox-inner,*/
    .fancybox-wrap .fancybox-iframe {
        
    }
}

@media screen and (max-width:800px) and (orientation:landscape) {

    .fancybox-wrap {
        width: calc(100% - 50px) !important;
        height: auto;
        position: absolute;
        top: 20px;
        left: 25px;
        opacity: 1;
        overflow: visible;
        right: 25px;
    }

    .fancybox-skin, .fancybox-outer {
        display: block !important;
        height: auto !important;
    }

    .fancybox-inner {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
    }

    .fancybox-wrap .fancybox-iframe {
        padding-top:0;
    }
}
.isIE .groupimgRegistro .txtRegistro {
    max-width:75%!important;
}

.isIE .play-video-wrapper {
    display: block !important;
    padding: 25% !important;
}