/* Activo solo en producto */
.iwsgal-product .woocommerce-product-gallery {
  position: relative;
}

/* Desktop: miniaturas a la izquierda */
@media (min-width: 981px) {
  .iwsgal-product .woocommerce-product-gallery {
    display: flex;
    gap: 12px;
    align-items: flex-start;
  }

  /* Columna de miniaturas (Woo/FlexSlider) */
  .iwsgal-product .woocommerce-product-gallery .flex-control-nav.flex-control-thumbs {
    order: 1;
    width: 92px;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    max-height: 520px; /* ajusta si quieres */
    scrollbar-width: thin;
  }

  .iwsgal-product .woocommerce-product-gallery .flex-control-nav.flex-control-thumbs li {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .iwsgal-product .woocommerce-product-gallery .flex-control-nav.flex-control-thumbs img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    opacity: 0.7;
    transition: opacity 160ms ease;
  }

  .iwsgal-product .woocommerce-product-gallery .flex-control-nav.flex-control-thumbs img.flex-active,
  .iwsgal-product .woocommerce-product-gallery .flex-control-nav.flex-control-thumbs img:hover {
    opacity: 1;
  }

  /* Área imagen principal */
  .iwsgal-product .woocommerce-product-gallery .flex-viewport {
    order: 2;
    flex: 1;
    min-width: 0;
  }

  .iwsgal-product .woocommerce-product-gallery__wrapper,
  .iwsgal-product .woocommerce-product-gallery__image {
    width: 100%;
  }

  .iwsgal-product .woocommerce-product-gallery__image img {
    width: 100%;
    height: auto;
    display: block;
  }
}

/* Si tu Divi muestra algún icono/lupa superpuesto, lo ocultamos */
.iwsgal-product .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
  display: none !important;
}
