/* VLG Gallery & Lightbox  v1.1.0 */

/* --- Lightbox overlay --- */
#vlg-lb { display:none; position:fixed; inset:0; z-index:999999; background:rgba(0,0,0,.88); align-items:center; justify-content:center; }
#vlg-lb.vlg-lb--open { display:flex; }
#vlg-lb-dialog { position:relative; display:flex; align-items:center; justify-content:center; width:100%; height:100%; max-width:1200px; margin:0 auto; }
#vlg-lb-img { display:block; max-width:calc(100vw - 120px); max-height:calc(100vh - 60px); object-fit:contain; border-radius:4px; box-shadow:0 8px 48px rgba(0,0,0,.6); transition:opacity .18s; }
#vlg-lb-img.vlg-lb--fading { opacity:0; }
#vlg-lb-close { position:fixed; top:16px; right:20px; background:rgba(255,255,255,.15); border:none; color:#fff; font-size:28px; line-height:1; width:44px; height:44px; border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:background .15s; z-index:10; }
#vlg-lb-close:hover { background:rgba(255,255,255,.3); }
.vlg-lb-nav { position:fixed; top:50%; transform:translateY(-50%); background:rgba(255,255,255,.13); border:none; color:#fff; font-size:36px; line-height:1; width:52px; height:72px; border-radius:6px; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:background .15s; z-index:10; user-select:none; }
.vlg-lb-nav:hover { background:rgba(255,255,255,.28); }
.vlg-lb-nav:disabled { opacity:.25; cursor:not-allowed; }
#vlg-lb-prev { left:12px; }
#vlg-lb-next { right:12px; }
@media(max-width:600px){
  #vlg-lb-img { max-width:calc(100vw - 80px); max-height:calc(100vh - 40px); }
  .vlg-lb-nav { width:38px; height:56px; font-size:26px; }
  #vlg-lb-prev { left:4px; } #vlg-lb-next { right:4px; }
  #vlg-lb-close { top:8px; right:8px; width:36px; height:36px; font-size:22px; }
}

/* --- Zoom nupp (WC standardgalerii) --- */
.woocommerce-product-gallery__image { position:relative; }
.woocommerce-product-gallery__image .vlg-zoom-btn { position:absolute; bottom:12px; right:12px; width:38px; height:38px; background:rgba(0,0,0,.45); border:none; border-radius:50%; color:#fff; font-size:18px; cursor:pointer; display:flex; align-items:center; justify-content:center; z-index:5; transition:background .15s; pointer-events:all; }
.woocommerce-product-gallery__image .vlg-zoom-btn:hover { background:rgba(0,0,0,.72); }

/* ==========================================================
   PEIDA "2 / 11" COUNTER KÕIKJALT
   ========================================================== */

/* Teema vlg-at-gallery modali counter */
.vlg-at-gallery-modal__counter,
body .vlg-at-gallery-modal__counter,
body.vlg-theme .vlg-at-gallery-modal__counter {
  display: none !important;
}

/* Teema vlg-at-gallery modali thumbid */
.vlg-at-gallery-modal__thumbs,
body .vlg-at-gallery-modal__thumbs,
body.vlg-theme .vlg-at-gallery-modal__thumbs {
  display: none !important;
}

/* Rohkem ruumi pildile modalis (thumbid peidetud) */
body .vlg-at-gallery-modal__stage,
body.vlg-theme .vlg-at-gallery-modal__stage {
  flex: 1 1 auto !important;
  padding-bottom: 0 !important;
}
body .vlg-at-gallery-modal__img,
body.vlg-theme .vlg-at-gallery-modal__img {
  max-height: calc(100dvh - 80px) !important;
}

/* Kõik muud võimalikud counter klassid (mobiil, VMP moodul jm) */
.vlg-at-gallery-counter,
.vmp-counter,
.vlg-gallery-counter,
.vlg-vmp-counter,
.vmp-slide-counter,
[class*="gallery-counter"],
[class*="gallery__counter"],
[data-vmp-counter] {
  display: none !important;
}

/* WooCommerce flexslider galerii pager/counter */
.woocommerce-product-gallery .flex-control-nav,
.woocommerce-product-gallery .woocommerce-product-gallery__pager {
  display: none !important;
}
