.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  overflow: visible !important;
  height: auto !important;
}

.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image[hidden] {
  display: none !important;
}

.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery__wrapper,
.single-product .elementor-widget-woocommerce-product-images .flex-viewport {
  display: grid !important;
  width: 100% !important;
  order: 1;
  overflow: visible !important;
  height: auto !important;
}

.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery__image,
.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery__image a,
.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery__image img {
  display: block;
  width: 100%;
  height: auto !important;
}

.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.rizeup-custom-gallery .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image {
  grid-area: 1 / 1;
  float: none !important;
  position: static !important;
  width: 100% !important;
  margin: 0 !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  z-index: 1;
}

.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.rizeup-custom-gallery .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image.rizeup-gallery-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery__image a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery__image img {
  object-fit: contain !important;
  object-position: center center !important;
  max-width: 100% !important;
  max-height: none !important;
  transform: none !important;
}

.single-product .elementor-widget-woocommerce-product-images .rizeup-product-gallery-thumbs {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin: 16px 0 0 !important;
  padding: 0 !important;
  width: 100% !important;
  list-style: none !important;
  order: 2;
  flex: 0 0 auto;
}

.single-product .elementor-widget-woocommerce-product-images .rizeup-product-gallery-thumbs button {
  float: none !important;
  clear: none !important;
  width: calc(25% - 9px) !important;
  margin: 0 !important;
  border: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.single-product .elementor-widget-woocommerce-product-images .rizeup-product-gallery-thumbs img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center center !important;
}

.single-product .elementor-widget-woocommerce-product-images .flex-control-thumbs {
  display: none !important;
}

.single-product .elementor-widget-woocommerce-product-images .rizeup-product-gallery-thumbs button.is-active img {
  outline: 2px solid #5687AE;
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .single-product .elementor-widget-woocommerce-product-images .rizeup-product-gallery-thumbs button {
    width: calc(25% - 9px) !important;
  }
}
