
/* WooCommerce product gallery — flexslider thumbnail fix
   Canvas blocks WC stylesheets, so the thumbnail strip has no sizing CSS */

/* Thumbnail strip */
.flex-control-thumbs {
    overflow: hidden;
    zoom: 1;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}
.flex-control-thumbs li {
    float: left;
    width: calc(100% / 6);
    margin: 0;
    padding: 2px;
    box-sizing: border-box;
}
.flex-control-thumbs img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.6;
    cursor: pointer;
    border: 2px solid transparent;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}
.flex-control-thumbs img:hover {
    opacity: 1;
}
.flex-control-thumbs .flex-active {
    opacity: 1;
    border-color: #a8a09a;
}

/* Main gallery wrapper */
.woocommerce-product-gallery {
    position: relative;
}
.woocommerce-product-gallery .flex-viewport {
    overflow: hidden;
}
.woocommerce-product-gallery__wrapper {
    margin: 0;
    padding: 0;
    list-style: none;
}
.woocommerce-product-gallery__image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Zoom icon */
.woocommerce-product-gallery__trigger {
    position: absolute;
    top: 0.5em;
    right: 0.5em;
    z-index: 99;
    display: block;
    font-size: 2em;
    line-height: 1;
}

/* Photoswipe reset */
.pswp { z-index: 99999; }
