html.glightbox-open, html.fsw-wil-open { overflow: hidden; }
.woocommerce-product-gallery a.fsw-glightbox { cursor: zoom-in; }
.wc-block-components-product-image img { cursor: zoom-in; }

/* Backdrop blanco absoluto */
#fsw-wil-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 2147483646;
  pointer-events: none;
  display: none;
}

/* Forzar que el slide ocupe toda la pantalla */
.glightbox-container .gslide,
.glightbox-container .gslide-media,
.glightbox-container .gslide-image {
  width: 100vw !important;
  height: 100vh !important;
  background: #fff !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Ajuste de imagen según dispositivo */
@media (min-width: 768px) {
  .glightbox-container .gslide-image img {
    max-height: 100vh !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    display: block !important;
    background: #fff !important;
  }
}
@media (max-width: 767px) {
  .glightbox-container .gslide-image img {
    max-width: 100vw !important;
    height: auto !important;
    width: auto !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    display: block !important;
    background: #fff !important;
  }
}

/* Sin sombra en imágenes */
.gslide-image img {
  box-shadow: none !important;
}

/* Controles con sombra */
.glightbox-button,
.glightbox-prev,
.glightbox-next {
  background: rgba(0,0,0,0.5) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4) !important;
  border-radius: 4px;
}
