.brxe-brt-woo-product-gallery {
  position: relative;
  width: 100%;
}
.brxe-brt-woo-product-gallery .woocommerce-product-gallery {
  width: 100%;
}
/* Prevent the browser's native drag-and-drop from hijacking Splide's pointer drag
   (without this the image/link ghost "sticks" to the cursor and the slider gets stuck
   in a dragging state until the next click). Links (lightbox <a>) are draggable too,
   so disable both images and anchors. */
.brxe-brt-woo-product-gallery img,
.brxe-brt-woo-product-gallery a {
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}
.brxe-brt-woo-product-gallery .brt-woo-product-gallery-slider {
  transition: height 0.1s linear 0s;
}
.brxe-brt-woo-product-gallery .brt-woo-product-gallery-slider .splide__slide > a {
  display: block;
}

/* Lightbox zoom button — anchor must be the positioning context. */
.brxe-brt-woo-product-gallery .splide__slide > a,
.brxe-brt-woo-product-gallery .bricks-layout-item > a {
  position: relative;
  display: block;
}
.brxe-brt-woo-product-gallery .brt-zoom-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: #222;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  transition: background 0.2s, transform 0.2s;
  pointer-events: none; /* clicks pass through to the lightbox anchor */
}
.brxe-brt-woo-product-gallery .splide__slide > a:hover .brt-zoom-button,
.brxe-brt-woo-product-gallery .bricks-layout-item > a:hover .brt-zoom-button {
  background: #fff;
  transform: scale(1.05);
}
.brxe-brt-woo-product-gallery .brt-zoom-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.brxe-brt-woo-product-gallery .brt-woo-product-gallery-slider-thumbs .splide__slide,
.brxe-brt-woo-product-gallery .brt-woo-product-gallery-slider-thumbs .splide__track--nav > .splide__list > .splide__slide.is-active {
  border: 0;
}
.brxe-brt-woo-product-gallery .brt-woo-product-gallery-slider-thumbs .splide__slide {
  opacity: 0.3;
}
.brxe-brt-woo-product-gallery .brt-woo-product-gallery-slider-thumbs .splide__slide.is-active {
  opacity: 1;
}
.brxe-brt-woo-product-gallery[data-pos=top] .woocommerce-product-gallery {
  flex-direction: column-reverse;
}
.brxe-brt-woo-product-gallery[data-pos=left] .woocommerce-product-gallery {
  flex-direction: row-reverse;
}
.brxe-brt-woo-product-gallery[data-pos=right] .woocommerce-product-gallery {
  flex-direction: row;
}
.brxe-brt-woo-product-gallery[data-pos=left] .brt-woo-product-gallery-slider-thumbs,
.brxe-brt-woo-product-gallery[data-pos=right] .brt-woo-product-gallery-slider-thumbs {
  flex-shrink: 0;
  width: 100px;
}
.brxe-brt-woo-product-gallery .splide__arrows:not(.custom) .splide__arrow--prev {
  transform: translateY(-50%) scaleX(-1);
}
.brxe-brt-woo-product-gallery .splide__arrows:not(.custom).splide__arrows--ttb .splide__arrow--prev {
  transform: translateX(-50%) scaleX(-1);
}
.brxe-brt-woo-product-gallery .splide__arrows svg {
  min-height: 0;
  min-width: 0;
}
.brxe-brt-woo-product-gallery .brt-video-player {
  position: relative;
}
.brxe-brt-woo-product-gallery .brt-video-player iframe,
.brxe-brt-woo-product-gallery .brt-video-player video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}
.brxe-brt-woo-product-gallery .brt-video-player > img {
  border: none;
  cursor: pointer;
  display: block;
}
.brxe-brt-woo-product-gallery .brt-video-player iframe {
  height: 100%;
  z-index: 1;
}
.brxe-brt-woo-product-gallery .brt-video-play-icon {
  cursor: pointer;
  font-size: 60px;
  line-height: 60px;
  width: 60px;
  left: 50%;
  top: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  transition: 0.25s all;
}

/* Thumbnail size mode: fixed — uniform W×H boxes, image cropped to fill. */
.brxe-brt-woo-product-gallery[data-thumbs-size="fixed"] .brt-woo-product-gallery-slider-thumbs .splide__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Thumbnail size mode: auto — each thumbnail sized to its image (no stretch). */
.brxe-brt-woo-product-gallery[data-thumbs-size="auto"] .brt-woo-product-gallery-slider-thumbs .splide__slide img {
  display: block;
  width: auto;
  height: auto;
}

.brt-woo-product-gallery-play-icon {
  cursor: pointer;
  font-size: 40px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}
