/* Opt-in class is applied only to verified Blocksy single-product markup. */
body.single-product .woocommerce-product-gallery.rt-gallery-refresh .flexy-pills ol > li img {
  object-fit: contain !important;
  background: #fff;
}
body.single-product .woocommerce-product-gallery.rt-gallery-refresh .zoomImg { display: none !important; }
body.single-product .woocommerce-product-gallery.rt-gallery-refresh .flexy-view { position: relative; }
body.single-product .woocommerce-product-gallery.rt-gallery-refresh .flexy-arrow-prev,
body.single-product .woocommerce-product-gallery.rt-gallery-refresh .flexy-arrow-next {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  min-width: 44px !important;
  min-height: 44px !important;
  z-index: 12 !important;
  align-items: center;
  justify-content: center;
  border: 1px solid #e3e3e3 !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: #303030;
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
}
body.single-product .woocommerce-product-gallery.rt-gallery-refresh .flexy-arrow-prev:focus-visible,
body.single-product .woocommerce-product-gallery.rt-gallery-refresh .flexy-arrow-next:focus-visible,
body.single-product .woocommerce-product-gallery.rt-gallery-refresh .flexy-pills li:focus-visible {
  outline: 3px solid #ff8a00;
  outline-offset: -3px;
}
body.single-product .woocommerce-product-gallery.rt-gallery-refresh .rt-gallery-counter {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 11;
  padding: 4px 11px;
  border-radius: 20px;
  color: #202227;
  background: rgba(255,255,255,.9);
  font-size: 13px;
  pointer-events: none;
}
@media (min-width:1000px) {
  body.single-product .product-entry-wrapper:has(> .rt-gallery-refresh) { align-items: flex-start !important; }
  body.single-product div.product .product-entry-wrapper > .woocommerce-product-gallery.rt-gallery-refresh.rt-gallery-sized:is(#rt-gallery-overlay, .rt-gallery-refresh) {
    contain: size;
    height: var(--rt-gallery-height) !important;
    min-height: 0 !important;
    align-self: flex-start !important;
  }
  body.single-product div.product .woocommerce-product-gallery.rt-gallery-refresh.rt-gallery-sized:is(#rt-gallery-overlay, .rt-gallery-refresh) .ct-product-gallery-container,
  body.single-product div.product .woocommerce-product-gallery.rt-gallery-refresh.rt-gallery-sized:is(#rt-gallery-overlay, .rt-gallery-refresh) .flexy-container,
  body.single-product div.product .woocommerce-product-gallery.rt-gallery-refresh.rt-gallery-sized:is(#rt-gallery-overlay, .rt-gallery-refresh) .flexy,
  body.single-product div.product .woocommerce-product-gallery.rt-gallery-refresh.rt-gallery-sized:is(#rt-gallery-overlay, .rt-gallery-refresh) .flexy-view,
  body.single-product div.product .woocommerce-product-gallery.rt-gallery-refresh.rt-gallery-sized:is(#rt-gallery-overlay, .rt-gallery-refresh) .flexy-items,
  body.single-product div.product .woocommerce-product-gallery.rt-gallery-refresh.rt-gallery-sized:is(#rt-gallery-overlay, .rt-gallery-refresh) .flexy-item,
  body.single-product div.product .woocommerce-product-gallery.rt-gallery-refresh.rt-gallery-sized .ct-product-gallery-container > .ct-media-container,
  body.single-product div.product .woocommerce-product-gallery.rt-gallery-refresh.rt-gallery-sized:is(#rt-gallery-overlay, .rt-gallery-refresh) .flexy-item .ct-media-container {
    height: 100% !important;
    min-height: 0 !important;
  }
  body.single-product div.product .woocommerce-product-gallery.rt-gallery-refresh.rt-gallery-sized .ct-product-gallery-container > .ct-media-container > img:not(.zoomImg),
  body.single-product div.product .woocommerce-product-gallery.rt-gallery-refresh.rt-gallery-sized:is(#rt-gallery-overlay, .rt-gallery-refresh) .flexy-item .ct-media-container > img:not(.zoomImg) {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center !important;
  }
}
@media (max-width:999px) {
  body.single-product .woocommerce-product-gallery.rt-gallery-refresh .rt-gallery-counter { bottom: -32px; }
  body.single-product .woocommerce-product-gallery.rt-gallery-refresh .redtop-product-gallery-rail { margin-top: 36px; }
  body.single-product div.product .woocommerce-product-gallery.rt-gallery-refresh { contain: none !important; height: auto !important; }
  body.single-product div.product .woocommerce-product-gallery.rt-gallery-refresh .ct-product-gallery-container > .ct-media-container,
  body.single-product div.product .woocommerce-product-gallery.rt-gallery-refresh .flexy-item .ct-media-container {
    aspect-ratio: 3 / 4 !important;
    height: auto !important;
  }
  body.single-product div.product .woocommerce-product-gallery.rt-gallery-refresh .ct-product-gallery-container > .ct-media-container > img:not(.zoomImg),
  body.single-product div.product .woocommerce-product-gallery.rt-gallery-refresh .flexy-item .ct-media-container > img:not(.zoomImg) {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 3 / 4 !important;
    object-fit: contain !important;
    object-position: center !important;
  }
}
