.mobile_gallery,
.mobile_gallery_thumbs
{
    display: none;

    @media #{$large-down} {
        display: block;
    }
}

.mobile_gallery
{
    position: relative;
}

.woocommerce-product-gallery
{
    .woocommerce-product-gallery__wrapper
    {
        a.fresco.zoom,
        a:not(.fresco) {
            //pointer-events: none;
            display: block;
        }

        &.mobile-gallery
        {
            a.fresco {
                //pointer-events: none;
                display: block;
            }
        }
    }

    ol.flex-control-thumbs
    {
    	padding: 5px 0 0 0 !important;
	    margin: 0 -5px !important;

        li
        {
            transition: opacity 0.5s ease;
            padding: 5px;

            img
            {
                opacity: 1 !important;
                transition: opacity 0.5s ease;
                -webkit-backface-visibility: hidden;
                transform: translateZ(0) scale(1.0, 1.0);

                &.flex-active
                {
                    opacity: .2 !important;
                }
            }

            &:hover
            {
                img
                {
                    opacity: .2 !important;
                    transition: opacity 0.5s ease;
                }
            }
        }
    }

    .woocommerce-product-gallery__image.youtube
    {
        .fluid-width-video-wrapper
        {
            padding-top: 56.2222%;
            width: 100%;
            position: relative;

            iframe
            {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
            }
        }
    }
}
