/* Video Opt-in */

.media2click-wrap {
    position: relative;
    background: black;
}

.media2click-wrap iframe {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

.media2click-placeholder {
    position: relative;
}

.media2click-placeholder:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    opacity: 0.45;
}

.media2click-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: none!important;
}


.media2click-placeholder:after {

}


.media2click-placeholder.inactive:after {

}

.media2click-placeholder:hover {
    cursor: pointer;

}

.media2click-placeholder:hover {

}

.media2click-placeholder .play-button-wrapper {
    position: absolute;
    width: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
}

.media2click-placeholder .play-button-wrapper:after {
    content: "";
    display: block;
    padding-bottom: 100%;
}

.media2click-placeholder .play-button {
    position: absolute;
    z-index: 10;
    top: 50%;
    left: 50%;
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    box-sizing: content-box;
    display: block;
    width: 30%;
    height: 30%;
    border-radius: 50%;
}

.media2click-placeholder .play-button:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 50%;
}

.pulse-animation .media2click-placeholder .play-button:before {
    -webkit-animation: pulse-border 1500ms ease-out infinite;
    animation: pulse-border 1500ms ease-out infinite;
}

.media2click-placeholder .play-button:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 50%;
    -webkit-transition: all 200ms;
    transition: all 200ms;
    /*
    background: white url(../Grafiken/play-button.svg) no-repeat;
    background-position: calc(50% + 3px) center;
    background-size: 35% auto;
    */
}

.media2click-placeholder .play-button svg {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    margin-left: 2px;
}

@-webkit-keyframes pulse-border {
    0% {
        -webkit-transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }
    100% {
        -webkit-transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5);
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5);
        opacity: 0;
    }
}

@keyframes pulse-border {
    0% {
        -webkit-transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }
    100% {
        -webkit-transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5);
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5);
        opacity: 0;
    }
}

.video-preview-img {
    position: relative;
}



.media2click-video-preview-img {
    position: relative;
}



.active-preview-img .media2click-video-preview-img {
    display: none;
}

.media2click-placeholder.inactive .play-button {
    display: none;
}

.media2click-placeholder .loading-animation,
.video-lightbox-wrapper .loading-animation{
    display: none;
    top: 50%;
    left: 50%;
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    width: 28%;
    height: 28%;
    position: absolute;
    opacity: 0.85;
    max-width: 100px;
}

.media2click-placeholder.inactive .loading-animation,
.video-lightbox-wrapper .loading-animation {
    display: block;
}

.media2click-placeholder .loading-animation svg,
.video-lightbox-wrapper .loading-animation svg{
    margin: auto;
    width: 100%;
    height: 100%;
    animation: spin 1.5s linear infinite;
    transform-origin: 50% 50%;
    position: absolute;
    top: 0;
    left: 0;

}

.media2click-placeholder .loading-animation svg > circle,
.video-lightbox-wrapper .loading-animation svg > circle {
    animation: dash 1s ease-in-out infinite;
    transform-origin: 50% 50%;
    fill: transparent;
    stroke: #ffffff;
    stroke-width: 3;
    stroke-dasharray: 107;
    stroke-dashoffset: 160;
    stroke-linecap: butt;
}

@keyframes dash {
    0% {
        stroke-dashoffset: 0;
        stroke-dasharray: 1, 214;
    }
    50% {
        stroke-dashoffset: -24;
        stroke-dasharray: 80, 214;
    }
    100% {
        stroke-dashoffset: -107;
        stroke-dasharray: 80, 214;
    }
}
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(180deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.video-opt-in-text {
    width: 100%;
    padding: 0px 10px;
    box-sizing: border-box;
    position: absolute;
    bottom: 10%;
    color: white;
    text-align: center;
    font-size: 12px;
    line-height: 15px;
    text-shadow: 0px 0px 15px black;
}

.media2click-placeholder.inactive .video-opt-in-text {
    display: none;
}


/* Video Lightbox */
.videoLightbox .basicLightbox__placeholder,
.video-fancylightbox-outer-wrapper {
    width: 70%;
    padding: 0;
    overflow: initial;
    background: none!important;
}

.video-lightbox-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
}

.video-lightbox-wrapper iframe  {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.videoLightbox .close,
.fancybox-close-small {
    content: "";
    position: absolute;
    top: -1em!important;
    right: -1rem!important;
    width: 2em;
    height: 2em;
    background: white;
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
    border-radius: 50%;
    padding: 3px!important;
    box-shadow: 0 0 20px 0 rgba(43,41,47,0.05), 0 10px 20px 0 rgba(43,41,47,0.07);
    transition: transform .2s, box-shadow .2s;
}

.videoLightbox .close:hover,
.fancybox-close-small:hover {
    -webkit-transform: translateY(-3px);
    -ms-transform: translateY(-3px);
    -o-transform: translateY(-3px);
    transform: translateY(-3px);
    box-shadow: 0 0 20px 0 rgba(43,41,47,0.15), 0 15px 20px 0 rgba(43,41,47,0.1);
}

@media (max-width: 992px) {

    .video-fancylightbox-outer-wrapper {
        width: 90%;
    }

}



