.single-product .woocommerce-product-gallery{
  opacity:1!important;
  visibility:visible!important;
  touch-action:pan-y pinch-zoom;
}

.single-product .woocommerce-product-gallery.flexslider .flex-viewport{
  overflow:hidden!important;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs{
  display:flex!important;
  flex-flow:row nowrap!important;
  align-items:stretch;
  gap:10px;
  width:100%;
  max-width:100%;
  margin:12px 0 0!important;
  padding:0 0 8px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  overscroll-behavior-x:contain;
  scroll-behavior:smooth;
  scroll-snap-type:x proximity;
  touch-action:pan-x pinch-zoom;
  scrollbar-width:thin;
  scrollbar-color:rgba(231,208,161,.72) rgba(120,120,120,.16);
  cursor:grab;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs.is-dragging{
  cursor:grabbing;
  scroll-behavior:auto;
  user-select:none;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar{height:4px}
.single-product .woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar-track{background:rgba(120,120,120,.16)}
.single-product .woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar-thumb{background:rgba(231,208,161,.72);border-radius:0}

.single-product .woocommerce-product-gallery .flex-control-thumbs li{
  float:none!important;
  flex:0 0 clamp(68px,18%,112px)!important;
  width:auto!important;
  margin:0!important;
  padding:0!important;
  scroll-snap-align:start;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs img{
  display:block;
  width:100%!important;
  height:auto!important;
  aspect-ratio:1/1;
  object-fit:cover;
  cursor:pointer;
}

@media(max-width:767px){
  .single-product .woocommerce-product-gallery .flex-control-thumbs{gap:7px;margin-top:9px!important}
  .single-product .woocommerce-product-gallery .flex-control-thumbs li{flex-basis:74px!important}
}

@media(prefers-reduced-motion:reduce){
  .single-product .woocommerce-product-gallery .flex-control-thumbs{scroll-behavior:auto}
}
