/* Independent selectors: no FlexSlider controls or theme single-stage nodes. */
body.single-product .woocommerce-product-gallery.sa-mgf-gallery {
  display: block !important;
  position: relative !important;
  opacity: 1 !important;
}
.sa-mgf-gallery .sa-mgf-radio {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
.sa-mgf-gallery .sa-mgf-stage {
  width: 100%;
  height: 548px;
  background: #f4efe8;
}
.sa-mgf-gallery .sa-mgf-frame {
  display: none !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 10px;
  box-sizing: border-box;
}
.sa-mgf-gallery .sa-mgf-frame > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.sa-mgf-gallery .sa-mgf-frame .sa-mgf-image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}
.sa-mgf-gallery .sa-mgf-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.sa-mgf-gallery .sa-mgf-thumbs label {
  display: block;
  min-width: 0;
  padding: 3px;
  border: 2px solid #ddd5c9;
  opacity: .65;
  cursor: pointer;
  touch-action: manipulation;
}
.sa-mgf-gallery .sa-mgf-thumbs img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  pointer-events: none;
}
@media (max-width: 767px) {
  .sa-mgf-gallery .sa-mgf-stage { height: 390px; }
}
