html.sss-gmc-open,html.sss-gmc-open body{overflow:hidden!important}

/* =========================================================
   SSS GALLERY MASTER CLEAN 1.0.0
   Unica regola autorevole per la galleria Sprint/Promit.
   ========================================================= */

/* Elimina residui visivi di vecchi plugin/lenti senza toccare le varianti. */
body.single-product #sss-sprint-master .sss-zoom-badge,
body.single-product #sss-sprint-master .sss-unified-lens,
body.single-product #sss-sprint-master .sss-bali-zoom-lens,
body.single-product #sss-sprint-master .sss-ada-zoom-trigger,
body.single-product #sss-sprint-master .woocommerce-product-gallery__trigger{
  display:none!important;
}

/* Contenitore base */
body.single-product #sss-sprint-master .sss-sm-slider{
  position:relative!important;
  overflow:hidden!important;
  background:#fff!important;
}

body.single-product #sss-sprint-master .sss-sm-slide{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
  background:#fff!important;
}

body.single-product #sss-sprint-master .sss-sm-slide > img:not(.sss-fc-gallery-logo){
  display:block!important;
  box-sizing:border-box!important;
  object-fit:contain!important;
  object-position:center center!important;
  transition:none!important;
  animation:none!important;
}

/* =========================================================
   UNA SOLA IMMAGINE REALE
   ========================================================= */
body.single-product #sss-sprint-master.sss-gmc-single .sss-sm-prev,
body.single-product #sss-sprint-master.sss-gmc-single .sss-sm-next,
body.single-product #sss-sprint-master.sss-gmc-single .sss-sm-dots,
body.single-product #sss-sprint-master.sss-gmc-single #sss-fc-dots,
body.single-product #sss-sprint-master.sss-gmc-single .sss-sm-thumbs,
body.single-product #sss-sprint-master.sss-gmc-single .sss-sm-thumbnails,
body.single-product #sss-sprint-master.sss-gmc-single .sss-fc-gallery-thumbs,
body.single-product #sss-sprint-master.sss-gmc-single .sss-fc-gallery-thumbnails,
body.single-product #sss-sprint-master.sss-gmc-single .sss-sm-thumbnail-strip,
body.single-product #sss-sprint-master.sss-gmc-single .sss-sm-thumb-list{
  display:none!important;
}

body.single-product #sss-sprint-master.sss-gmc-single .sss-sm-slider-wrap{
  padding-bottom:0!important;
}

body.single-product #sss-sprint-master.sss-gmc-single .sss-sm-slide{
  opacity:1!important;
  visibility:visible!important;
}

body.single-product #sss-sprint-master.sss-gmc-single .sss-sm-slide > img:not(.sss-fc-gallery-logo){
  position:static!important;
  inset:auto!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  margin:0!important;
  transform-origin:0 0!important;
}

/* =========================================================
   PIU' IMMAGINI REALI
   ========================================================= */
body.single-product #sss-sprint-master.sss-gmc-multi .sss-sm-prev,
body.single-product #sss-sprint-master.sss-gmc-multi .sss-sm-next{
  display:flex!important;
}

/* I pallini/miniature previsti da Sprint Master restano disponibili. */

/* =========================================================
   LENTE MASTER
   ========================================================= */
body.single-product #sss-sprint-master .sss-gmc-lens{
  position:absolute!important;
  top:16px!important;
  right:16px!important;
  z-index:200!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:44px!important;
  height:44px!important;
  min-width:44px!important;
  min-height:44px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:50%!important;
  background:#263f97!important;
  color:#fff!important;
  cursor:zoom-in!important;
  box-shadow:0 2px 6px rgba(0,0,0,.14)!important;
  appearance:none!important;
}

body.single-product #sss-sprint-master .sss-gmc-lens svg{
  width:20px!important;
  height:20px!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:2.2!important;
  pointer-events:none!important;
}

/* =========================================================
   LIGHTBOX MASTER
   ========================================================= */
.sss-gmc-modal{
  position:fixed!important;
  inset:0!important;
  z-index:2147483600!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:14px!important;
  background:rgba(8,15,33,.88)!important;
}

.sss-gmc-modal[hidden]{display:none!important}

.sss-gmc-panel{
  width:min(1100px,100%)!important;
  max-height:calc(100dvh - 28px)!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
  border-radius:16px!important;
  background:#fff!important;
  box-shadow:0 20px 70px rgba(0,0,0,.35)!important;
}

.sss-gmc-toolbar{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  padding:10px!important;
  background:#f1f3f8!important;
}

.sss-gmc-title{
  flex:1 1 auto!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-weight:700!important;
  color:#14234c!important;
}

.sss-gmc-control{
  flex:0 0 auto!important;
  width:38px!important;
  height:38px!important;
  border:0!important;
  border-radius:50%!important;
  background:#263f97!important;
  color:#fff!important;
  font-size:22px!important;
  cursor:pointer!important;
}

.sss-gmc-stage{
  position:relative!important;
  display:grid!important;
  place-items:center!important;
  overflow:auto!important;
  height:min(78dvh,820px)!important;
  min-height:220px!important;
  background:#fff!important;
}

.sss-gmc-image{
  display:block!important;
  width:auto!important;
  height:auto!important;
  max-width:92%!important;
  max-height:92%!important;
  object-fit:contain!important;
  object-position:center center!important;
  transform-origin:center center!important;
  transition:transform .1s linear!important;
  user-select:none!important;
  -webkit-user-drag:none!important;
}

.sss-gmc-prev,
.sss-gmc-next{
  position:absolute!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  z-index:3!important;
}
.sss-gmc-prev{left:12px!important}
.sss-gmc-next{right:12px!important}

/* Mobile */
@media(max-width:680px){
  body.single-product #sss-sprint-master .sss-gmc-lens{
    top:12px!important;
    right:12px!important;
    width:40px!important;
    height:40px!important;
    min-width:40px!important;
    min-height:40px!important;
  }

  .sss-gmc-stage{height:min(78dvh,640px)!important}
  .sss-gmc-image{max-width:96%!important;max-height:94%!important}
}


/* 1.0.2 — toolbar lightbox: icone sempre visibili e spaziatura pulita */
.sss-gmc-toolbar{
  justify-content:flex-end!important;
}

.sss-gmc-control{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  line-height:1!important;
  overflow:visible!important;
}

.sss-gmc-icon-btn svg{
  width:20px!important;
  height:20px!important;
  display:block!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:2.4!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
  pointer-events:none!important;
}

.sss-gmc-reset{
  width:58px!important;
  min-width:58px!important;
  border-radius:20px!important;
  font-size:17px!important;
  font-weight:700!important;
}

.sss-gmc-plus{
  font-size:28px!important;
  font-weight:500!important;
}

@media(max-width:600px){
  .sss-gmc-reset{
    width:54px!important;
    min-width:54px!important;
    font-size:16px!important;
  }
}
