/*--------------------------------------------------------------
# Video Player
--------------------------------------------------------------*/

.pxl-video-player1 {
    .localvideo-bg {
        position: relative;
        height: 100vh;
    }

    .localvideo-bg video {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        width: auto;
        height: auto;
        min-width: 100%; 
        min-height: 100%;
        @media (max-width: 1366px) {
           position: absolute;
           top: 50%;
           left: 50%;
           object-fit: cover;
           transform: translate(-50%, -50%);
       }
   }
   .pxl-video--holder {
    + .btn-video-wrap {
        position: absolute;
        z-index: 5;
        &.p-center {
            top: 50%;
            left: 50%;
            @include transform(translate(-50%, -50%));
        }
    }
}
.btn-video-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}
.pxl-video--inner {
    position: relative;
    overflow: hidden;
    .pxl-video--holder {
        @include animation(pxl_scale_in_out 30s linear infinite);
        &:before {
            position: absolute;
            content: '';
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            opacity: 0;
            background: $third_color;
            @include border-radius(inherit);
        }
        .pxl-video--image, img {
            @include border-radius(inherit);
        }
        img {
            object-fit: cover;
        }
    }
}
.pxl-item--title {
    color: $fourth_color;
    margin: 0 15px 37px;
    @extend .pxl-h2-size;
}
.btn-video {
    &.style1, &.style2 {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #FFF;
        z-index: 2;
        @include border-radius(50%);
    }
    &.style1 {
        font-size: 50px;
        width: 156px;
        height: 156px;
        line-height: 156px;
        background: $secondary_color;
        @include border-radius(100%);
        @media #{$max-md} {
            width: 130px;
            height: 130px;
            line-height: 130px;
        }
        @media #{$max-xs} {
            width: 100px;
            height: 100px;
            line-height: 100px;
        }
        .line-video-animation {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: 1px solid rgba($secondary_color_hex, 0.3);
            -webkit-border-radius: 100%;
            -khtml-border-radius: 100%;
            -moz-border-radius: 100%;
            -ms-border-radius: 100%;
            -o-border-radius: 100%;
            border-radius: 100%;
            animation: pxl_squares 3.9s linear 0s infinite;
            -webkit-animation: pxl_squares 3.9s linear 0s infinite;
            -ms-animation: pxl_squares 3.9s linear 0s infinite;
            -o-animation: pxl_squares 3.9s linear 0s infinite;
            -webkit-animation-play-state: running;
            -moz-animation-play-state: running;
            -o-animation-play-state: running;
            animation-play-state: running;
            &.line-video-2 {
                -webkit-animation-delay: 1.3s;
                -moz-animation-delay: 1.3s;
                -o-animation-delay: 1.3s;
                animation-delay: 1.3s;
            }
            &.line-video-2 {
                -webkit-animation-delay: 2.6s;
                -moz-animation-delay: 2.6s;
                -o-animation-delay: 2.6s;
                animation-delay: 2.6s;
            }
        }
        &:hover {
            @include transform(scale(.9,.9));
        }
    }
    &.style2 {
        font-size: 17px;
        width: 65px;
        height: 40px;
        line-height: 40px;
        background-color: rgba(#172322, 0.8);
        @include border-radius(5px);
        &:before {
            content: "";
            position: absolute;
            left: 0;
            top: 0;
            display: block;
            width: 100%;
            height: 100%;
            background-color: rgba(#FFF, 0.63);
            z-index: -2;
            @include border-radius(5px);
            @include animation(pxl_scale1 1500ms ease-out infinite);
        }
        &:hover {
            &:before {
                -webkit-animation-play-state: paused;
                -moz-animation-play-state: paused;
                -o-animation-play-state: paused;
                animation-play-state: paused;
            }
            background-color: $primary_color;
        }
    }
}
}