/* woocommerce single product template */
.woocommerce-product-gallery-video {
    display: block;
    width: 100%;
    height: 0;
    padding: 0 0 100%;
    margin: 0;
    position: relative;
}

/*  when flexslider disabled */
.woocommerce-product-gallery__video {
    width: 25%;
    display: inline-block;
}

.woocommerce-product-gallery-video__player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.woocommerce-product-gallery-video__player > video {
    display: block;
    width: 100%;
    height: 100%;
}

/* style for flexslider */
.flex-control-nav.flex-control-thumbs li:last-child {
    position: relative;
}

/* popup for video */
.mpvw-thumbnail {
    position: relative;
    cursor: pointer;
}

.flex-control-nav.flex-control-thumbs li:last-child:before,
.mpvw-thumbnail:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 1.3rem solid #fff;
    border-top: 1rem solid transparent;
    border-bottom: 1rem solid transparent;
    z-index: 1;
    pointer-events: none;
}

.mpvw-video-container {
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 1);
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.mpvw-video {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
}

.mpvw-video-container button.mpvw-video-container__button {
    background-color: transparent;
    background-position: 0 -2.75rem;
    background-repeat: no-repeat;
    background-size: 16.5rem 5.5rem;
    width: 2.75rem;
    height: 2.75rem;
    position: absolute;
    top: 0.625rem;
    right: 0.625rem;
    border: none;
    cursor: pointer;
    z-index: 10000;
}

.video-js {
    background: transparent;
}

