/* ========================================================================= \\
    Video Player Modal Styles
\\ ========================================================================= */

/*Super important for the video scrub bar to be accurate when user clicks on it*/
.video-player-modal-container.lg-modal__wrapper {
    width: 100%;
    position: initial;
    margin-bottom: 3em;
    margin-top: 3em;
}
#videoContainer .fa {
    color: #fff;
}
#videoContainer .fa::before {
    text-shadow: 1px 1px 5px rgba(64, 64, 64, 0.4);
}
.lg-modal__container.video-player-container {
    width: 100%;
    max-height: 465px;
}
.vpm-image-poster {
    background-repeat: no-repeat;
    background-size: contain;
    height: 465px;
    background-position: center;
}
figure#videoContainer {
    max-width: 1024px;
    max-width: 64rem;
    width: 100%;
    height: 100%;
    max-height: 460px;
    margin: 0;
    padding: 0;
    background-color: #000;
    line-height: 0;
    overflow: hidden;
}
#videoContainer video {
    width: 100%;
    max-height: 465px;
}

/* controls */
#videoContainer .controls,
#videoContainer .controls > * {
    padding: 0;
    margin: 0;
}
#videoContainer .controls {
    overflow: hidden;
    background: transparent;
    width: 100%;
    height: 8.0971659919028340080971659919028%;
}

#videoContainer #video-controls {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin-top: -65px;
    padding-bottom: 18px;
    width: 100%;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    -webkit-transition: 0.5s all;
    transition: 0.5s all;
    /*background-color: green;
    background: -moz-linear-gradient(top, rgba(255,255,255,0) 0%, rgba(0,0,0,1) 100%);
    background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(255,255,255,0)), color-stop(100%, rgba(0,0,0,1)));
    background: -webkit-linear-gradient(top, rgba(255,255,255,0) 0%, rgba(0,0,0,1) 100%);
    background: -o-linear-gradient(top, rgba(255,255,255,0) 0%, rgba(0,0,0,1) 100%);
    background: -ms-linear-gradient(top, rgba(255,255,255,0) 0%, rgba(0,0,0,1) 100%);
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(0,0,0,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#000000', GradientType=0 );*/
}
#videoContainer .button-controls {
    margin-top: 22px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    width: 100%;
    visibility: visible;
    z-index: 3;
}
#videoContainer .controls .progress {
    /*    cursor: pointer;*/
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    width: 100%;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    height: 5px;
    overflow: visible;
    z-index: 2;
}
#videoContainer .controls button {
    overflow: hidden;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    background: transparent;
    background-size: contain;
    background-repeat: no-repeat;
}
#videoContainer .controls button:hover,
#videoContainer .controls button:focus {
    opacity: 0.8;
    outline: none;
}

#videoContainer .controls progress {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    width: 94%;
    height: 5px;
    border: none;
    overflow: hidden;
    border-radius: 2px;
    color: #47c7fa;
}
#videoContainer .controls progress[data-state="fake"] {
    background: #e6e6e6;
    height: 65%;
}
#videoContainer .controls progress span {
    width: 0%;
    height: 100%;
    display: inline-block;
    background-color: #47c7fa;
}
#videoContainer .controls progress::-moz-progress-bar {
    background-color: #47c7fa;
}
/* Chrome requires its own rule for this, otherwise it ignores it */
#videoContainer .controls progress::-webkit-progress-value {
    background-color: #47c7fa;
}

/* fullscreen */
html:-ms-fullscreen {
    width: 100%;
}
:-webkit-full-screen {
    background-color: transparent;
}
#videoContainer video:-webkit-full-screen + .controls {
    background: #ccc; /* required for Chrome which doesn't heed the transparent value set above */
}
#videoContainer video:-webkit-full-screen + .controls progress {
    margin-top: 0.5rem;
}

.button-controls .video-controls-left,
.button-controls .video-controls-center,
.button-controls .video-controls-right {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    width: 33%;
}
.button-controls .video-controls-left {
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
    padding-left: 2.5%;
}
.button-controls .video-controls-center {
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}
.button-controls .video-controls-right {
    -webkit-box-pack: end;
        -ms-flex-pack: end;
            justify-content: flex-end;
    -webkit-box-align: end;
        -ms-flex-align: end;
            align-items: flex-end;
    padding-right: 2%;
}

.button-controls .video-controls-center #previous {
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    width: 22%;
}
.button-controls .video-controls-center #playpause {
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    width: 20%;
}
.button-controls .video-controls-center #next {
    -webkit-box-pack: end;
        -ms-flex-pack: end;
            justify-content: flex-end;
    -webkit-box-align: end;
        -ms-flex-align: end;
            align-items: flex-end;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    width: 20%;
}
#video-controls .current-video-time {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start;
    width: 100%;
    color: #fff;
    margin: -25px 0 0 3%;
    z-index: 1;
}
#video-controls .duration-video-time {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: end;
        -ms-flex-pack: end;
            justify-content: flex-end;
    width: 100%;
    color: #fff;
    margin: -25px 3% 0 0;
    z-index: 1;
}

.lg-modal--video-player {
    z-index: 1001;
}

.video-player-loader-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    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;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.video-player-loader {
}

/* Media Queries */
@media screen and (max-width: 27em) {
    .button-controls .video-controls-center {
        -webkit-box-pack: justify;
            -ms-flex-pack: justify;
                justify-content: space-between;
    }
    #video-controls .current-video-time {
        font-size: 0.7em;
        margin: -20px 0 0 3%;
    }
    #video-controls .duration-video-time {
        font-size: 0.7em;
        margin: -20px 3% 0 0;
    }
    #videoContainer .fa {
        font-size: 0.7em;
    }
    #videoContainer .controls {
        margin-top: -45px;
        padding-bottom: 0;
        background: none;
    }
    #videoContainer .button-controls {
        margin-top: 11px;
        padding-bottom: 8px;
    }
}
