/* BBOX 5.5.0 MOBILE ISOLATION — migrated from former shared base.css. */
/* product-gallery — base presentation. */
.woocommerce div.product .product-top>.woocommerce-product-gallery {
  float: none;
  width: 100%;
  margin: 0;
  min-width: 0;
  align-self: start;
}

.woocommerce-product-gallery__wrapper {
  margin: 0;
}

.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bbox-space-2);
  margin-top: var(--bbox-space-3);
}

.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs li {
  float: none;
  width: calc(25% - var(--bbox-space-2));
}

.woocommerce-product-gallery img {
  border-radius: var(--bbox-radius-md);
}

/* BBOX 5.1.14 REBUILT V2 - PRODUCT GALLERY MOBILE */

/* product-gallery — mobile presentation. */

/* BBOX 5.2.0 MASTER RECONCILIATION — moved from shared base */
.single-product .bbox-product-gallery-stage{
        position:relative;
        width:100%;
        min-width:0;
        margin:0;
        padding:0;
        isolation:isolate;
    }
    .single-product .bbox-product-gallery-stage > .woocommerce-product-gallery{
        width:100% !important;
        margin:0 !important;
    }
    .single-product .woocommerce-product-gallery .flex-control-thumbs{
        display:flex !important;
        flex-wrap:nowrap !important;
        gap:8px !important;
        overflow-x:auto !important;
        overflow-y:hidden !important;
        margin-top:8px !important;
        padding-bottom:2px !important;
        scrollbar-width:none;
    }
    .single-product .woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar{
        display:none;
    }


/* BBOX 5.3.0 — prevent 781/782 viewport escape. */
.single-product .bbox-product-gallery-stage,
.single-product .bbox-product-gallery-stage > .woocommerce-product-gallery,
.single-product .woocommerce-product-gallery__wrapper,
.single-product .woocommerce-product-gallery__image,
.single-product .woocommerce-product-gallery__image a,
.single-product .woocommerce-product-gallery__image img{
  max-width:100%;
  min-width:0;
}
.single-product .bbox-product-gallery-stage{overflow:hidden;}

/* BBOX 5.5.43 GALLERY RUNTIME AUTHORITY START */
.single-product .woocommerce-product-gallery.bbox-gallery-runtime,
.single-product .woocommerce-product-gallery.bbox-gallery-runtime .flex-viewport,
.single-product .woocommerce-product-gallery.bbox-gallery-runtime .woocommerce-product-gallery__wrapper{
  direction:ltr!important;
}

.single-product .woocommerce-product-gallery.bbox-gallery-runtime .flex-viewport{
  overflow:visible!important;
  height:auto!important;
}

.single-product .woocommerce-product-gallery.bbox-gallery-runtime .woocommerce-product-gallery__wrapper{
  width:100%!important;
  height:auto!important;
  transform:none!important;
  -webkit-transform:none!important;
}

.single-product .woocommerce-product-gallery.bbox-gallery-runtime .woocommerce-product-gallery__image{
  display:none!important;
  float:none!important;
  width:100%!important;
  margin:0!important;
  transform:none!important;
}

.single-product .woocommerce-product-gallery.bbox-gallery-runtime .woocommerce-product-gallery__image.is-bbox-gallery-active{
  display:block!important;
}

.single-product .woocommerce-product-gallery.bbox-gallery-runtime .woocommerce-product-gallery__image > a{
  display:flex!important;
  width:100%!important;
  align-items:center!important;
  justify-content:center!important;
}

.single-product .woocommerce-product-gallery.bbox-gallery-runtime .woocommerce-product-gallery__image img:not(.zoomImg){
  display:block!important;
  max-width:100%!important;
  height:auto!important;
  object-fit:contain!important;
  margin-inline:auto!important;
}
/* BBOX 5.5.43 GALLERY RUNTIME AUTHORITY END */

/* BBOX 5.5.46 MOBILE GALLERY INTERACTION START */
@media (max-width:782px){
  body.single-product .woocommerce-product-gallery .flex-control-thumbs,
  body.single-product .woocommerce-product-gallery .flex-control-thumbs li,
  body.single-product .woocommerce-product-gallery .flex-control-thumbs img{
    pointer-events:auto!important;
  }

  body.single-product .woocommerce-product-gallery .flex-control-thumbs img{
    touch-action:manipulation!important;
    cursor:pointer!important;
    -webkit-user-select:none!important;
    user-select:none!important;
  }
}
/* BBOX 5.5.46 MOBILE GALLERY INTERACTION END */
