body.single-product .et_pb_wc_images .woo-variation-product-gallery {
  display: none !important;
}

.et_pb_wc_images.e8e8-custom-variation-gallery-mounted .woo-variation-product-gallery {
  display: none !important;
}

.e8e8-variation-gallery {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 20px;
  background: #f5f5f7;
}

.e8e8-variation-gallery__stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  padding-bottom: 74px;
}

.e8e8-variation-gallery--single .e8e8-variation-gallery__stage,
.e8e8-variation-gallery[data-visible-count="1"] .e8e8-variation-gallery__stage {
  grid-template-columns: minmax(0, 1fr);
}

.e8e8-variation-gallery__item {
  display: grid;
  grid-template-rows: minmax(360px, 52vh) auto;
  margin: 0;
  overflow: hidden;
  background: transparent;
}

.e8e8-variation-gallery__image-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  padding: 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
  overflow: hidden;
}

.e8e8-variation-gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 560px;
  mix-blend-mode: multiply;
  object-fit: contain;
  transform: scale(1);
  transition: transform 220ms ease;
}

.e8e8-variation-gallery__image-button:hover img,
.e8e8-variation-gallery__image-button:focus-visible img {
  transform: scale(1.035);
}

.e8e8-variation-gallery__image-button:focus-visible {
  outline: 2px solid var(--e8e8-color-cta, #dd1e01);
  outline-offset: -4px;
}

.e8e8-variation-gallery__zoom-icon {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 2px 4px 12px rgba(0, 0, 0, .08);
  color: #1d1d1f;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.e8e8-variation-gallery__zoom-icon::before,
.e8e8-variation-gallery__zoom-icon::after {
  content: "";
  position: absolute;
  display: block;
}

.e8e8-variation-gallery__zoom-icon::before {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 999px;
  transform: translate(-3px, -3px);
}

.e8e8-variation-gallery__zoom-icon::after {
  width: 10px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(7px, 7px) rotate(45deg);
}

.e8e8-variation-gallery__image-button:hover .e8e8-variation-gallery__zoom-icon,
.e8e8-variation-gallery__image-button:focus-visible .e8e8-variation-gallery__zoom-icon {
  opacity: 1;
  transform: translateY(0);
}

.e8e8-variation-gallery__item figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 38px;
  padding: 8px 12px;
  background: transparent;
  color: var(--e8e8-color-muted);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: uppercase;
}

.e8e8-variation-gallery__controls {
  position: absolute;
  bottom: 24px;
  left: 50%;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0;
  transform: translateX(-50%);
}

.e8e8-variation-gallery__controls[hidden] {
  display: none !important;
}

.e8e8-variation-gallery__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(210, 210, 215, .45);
  color: #6e6e73;
  cursor: pointer;
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1;
  transition: background-color 160ms ease, color 160ms ease, opacity 160ms ease;
}

.e8e8-variation-gallery__button:hover:not(:disabled),
.e8e8-variation-gallery__button:focus-visible:not(:disabled) {
  background: rgba(210, 210, 215, .72);
  color: #1d1d1f;
  outline: none;
}

.e8e8-variation-gallery__button:disabled {
  opacity: 0.42;
  cursor: default;
}

.e8e8-variation-gallery__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 104px;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: rgba(210, 210, 215, .45);
  color: var(--e8e8-color-muted);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.e8e8-variation-gallery__dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #86868b;
}

.e8e8-variation-gallery__dot.is-active {
  background: #1d1d1f;
}

.e8e8-gallery-lightbox-open {
  overflow: hidden;
}

.e8e8-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  grid-template-columns: minmax(48px, 8vw) minmax(0, 1fr) minmax(48px, 8vw);
  align-items: center;
  gap: clamp(.5rem, 2vw, 1.5rem);
  padding: clamp(1rem, 3vw, 2rem);
  background: rgba(245, 245, 247, .92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.e8e8-gallery-lightbox[hidden] {
  display: none !important;
}

.e8e8-gallery-lightbox__figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: center;
  width: 100%;
  height: min(88vh, 980px);
  margin: 0;
  padding: clamp(1rem, 3vw, 2rem);
  border-radius: 24px;
  background: #fff;
  box-shadow: 2px 4px 24px rgba(0, 0, 0, .12);
}

.e8e8-gallery-lightbox__image {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 78vh;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.e8e8-gallery-lightbox__caption {
  padding-top: 1rem;
  color: var(--e8e8-color-muted);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}

.e8e8-gallery-lightbox__close,
.e8e8-gallery-lightbox__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(210, 210, 215, .72);
  color: #1d1d1f;
  cursor: pointer;
  transition: background-color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.e8e8-gallery-lightbox__close:hover,
.e8e8-gallery-lightbox__close:focus-visible,
.e8e8-gallery-lightbox__nav:hover:not(:disabled),
.e8e8-gallery-lightbox__nav:focus-visible:not(:disabled) {
  background: #fff;
  outline: none;
  transform: scale(1.04);
}

.e8e8-gallery-lightbox__close {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  width: 44px;
  height: 44px;
}

.e8e8-gallery-lightbox__close::before,
.e8e8-gallery-lightbox__close::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.e8e8-gallery-lightbox__close::before {
  transform: rotate(45deg);
}

.e8e8-gallery-lightbox__close::after {
  transform: rotate(-45deg);
}

.e8e8-gallery-lightbox__nav {
  width: 52px;
  height: 52px;
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1;
}

.e8e8-gallery-lightbox__nav--prev {
  justify-self: end;
}

.e8e8-gallery-lightbox__nav--next {
  justify-self: start;
}

.e8e8-gallery-lightbox__nav:disabled {
  opacity: 0.28;
  cursor: default;
}

@media (min-width: 768px) {
  body.single-product .et-l--body,
  body.single-product .et-l--body .et_builder_inner_content,
  body.single-product .et-l--body .et_pb_section,
  body.single-product .et-l--body .et_pb_row,
  body.single-product .et-l--body .et_pb_column {
    overflow: visible;
  }
  body.single-product .et_pb_wc_images {
    position: sticky;
    top: 24px;
    z-index: 2;
    align-self: flex-start;
  }
}
@media (max-width: 767px) {
  .e8e8-variation-gallery {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
  }
  .e8e8-variation-gallery__stage {
    display: flex;
    grid-template-columns: none;
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 0 12vw 74px 16px;
    scroll-padding-left: 16px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .e8e8-variation-gallery__stage::-webkit-scrollbar {
    display: none;
  }
  .e8e8-variation-gallery__item {
    flex: 0 0 86vw;
    grid-template-rows: minmax(300px, 58vh) auto;
    border-radius: 20px;
    background: #f7f7f7;
    scroll-snap-align: start;
  }
  .e8e8-variation-gallery[data-image-count="1"] .e8e8-variation-gallery__stage {
    padding-right: 16px;
  }
  .e8e8-variation-gallery[data-image-count="1"] .e8e8-variation-gallery__item {
    flex-basis: calc(100vw - 32px);
  }
  .e8e8-variation-gallery__image-button {
    padding: 12px;
  }
  .e8e8-variation-gallery__zoom-icon {
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    opacity: 1;
    transform: none;
  }
  .e8e8-variation-gallery__controls {
    bottom: 24px;
  }
  .e8e8-variation-gallery__count {
    min-width: 58px;
    gap: 0;
    padding: 0 16px;
  }
  .e8e8-gallery-lightbox {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 0.75rem;
    padding: calc(7rem + env(safe-area-inset-top)) 1rem 1rem;
  }
  .e8e8-gallery-lightbox__figure {
    grid-column: 1 / -1;
    grid-row: 1;
    height: calc(100vh - 12rem - env(safe-area-inset-top));
    min-height: 0;
    padding: 1rem;
    border-radius: 20px;
  }
  .e8e8-gallery-lightbox__image {
    max-height: calc(100vh - 15.5rem - env(safe-area-inset-top));
  }
  .e8e8-gallery-lightbox__close {
    top: calc(5.75rem + env(safe-area-inset-top));
  }
  .e8e8-gallery-lightbox__nav {
    grid-row: 2;
    width: 48px;
    height: 48px;
  }
  .e8e8-gallery-lightbox__nav--prev {
    grid-column: 1;
    justify-self: end;
  }
  .e8e8-gallery-lightbox__nav--next {
    grid-column: 2;
    justify-self: start;
  }
}

/* Full product photography: the image-preview control remains the interaction owner. */
body.rt-focused-product #page-container #et-boc .et-l .e8e8-variation-gallery,
body.rt-focused-product #page-container #et-boc .et-l .e8e8-variation-gallery .e8e8-variation-gallery__stage,
body.rt-focused-product #page-container #et-boc .et-l .e8e8-variation-gallery .e8e8-variation-gallery__item,
.e8e8-variation-gallery,
.e8e8-variation-gallery__stage,
.e8e8-variation-gallery__item,
.e8e8-variation-gallery__image-button,
.e8e8-variation-gallery__image-button img,
.e8e8-gallery-lightbox__figure,
.e8e8-gallery-lightbox__image {
  border-radius: 0 !important;
}
body.rt-focused-product #page-container #et-boc .et-l .e8e8-variation-gallery__image-button,
.e8e8-variation-gallery__image-button {
  background: transparent !important;
  box-shadow: none;
}
body.rt-focused-product #page-container #et-boc .et-l .e8e8-variation-gallery__image-button img,
.e8e8-variation-gallery__image-button img {
  object-fit: contain !important;
  transform: none !important;
}
