/* Native WooCommerce gallery: contained photography, real thumbnails and PhotoSwipe. */
.single-product .nt-product-media-column .woocommerce-product-gallery{position:relative;background:#fff;border:1px solid #d9e2ef;border-radius:20px;padding:14px 15px 11px;overflow:hidden}
.single-product .nt-product-media-column .woocommerce-product-gallery .flex-viewport{min-height:430px;border-radius:14px;background:#fff;overflow:hidden!important}
.single-product .nt-product-media-column .woocommerce-product-gallery .woocommerce-product-gallery__image,
.single-product .nt-product-media-column .woocommerce-product-gallery .woocommerce-product-gallery__image--placeholder{height:430px;min-height:430px;background:#fff;position:relative}
.single-product .nt-product-media-column .woocommerce-product-gallery .woocommerce-product-gallery__image>a{display:flex;align-items:center;justify-content:center;width:100%;height:100%;padding:14px 38px;text-decoration:none}
.single-product .nt-product-media-column .woocommerce-product-gallery .woocommerce-product-gallery__image>a>img:not(.zoomImg),
.single-product .nt-product-media-column .woocommerce-product-gallery .woocommerce-product-gallery__image--placeholder>img:not(.zoomImg){display:block;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center;margin:0!important;border-radius:0}
.single-product .nt-product-media-column .woocommerce-product-gallery .woocommerce-product-gallery__image video{width:100%;height:100%;max-height:430px;object-fit:contain;background:#fff}
.single-product .nt-product-media-column .woocommerce-product-gallery .woocommerce-product-gallery__trigger{top:14px!important;right:auto!important;left:14px!important;z-index:8;width:40px!important;height:40px!important;border-radius:12px!important;background:#fffffff5!important;border:1px solid #d1ddeb;box-shadow:0 3px 10px #102b540c;color:var(--blue);font-size:0!important}
.single-product .nt-product-media-column .woocommerce-product-gallery .woocommerce-product-gallery__trigger::before{width:12px;height:12px;border:1.7px solid var(--blue);top:10px;left:10px}
.single-product .nt-product-media-column .woocommerce-product-gallery .woocommerce-product-gallery__trigger::after{background:var(--blue);width:7px;height:1.7px;top:25px;left:23px}
.single-product .nt-product-media-column .woocommerce-product-gallery .nt-gallery-count{position:absolute;top:19px;right:20px;z-index:7;background:#f4f7fc;border:1px solid #e0e7f2;border-radius:9px;color:#5b7390;font-size:11px;line-height:1.8;padding:4px 9px;pointer-events:none}
.nt-gallery-thumbnails{display:flex;align-items:center;gap:8px;margin-top:13px;padding-top:13px;border-top:1px solid #e6ecf5;min-width:0}
.single-product .nt-product-media-column .woocommerce-product-gallery .flex-control-thumbs{display:flex!important;flex-wrap:nowrap;flex:1;gap:9px;min-width:0;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x proximity;scrollbar-width:none;padding:3px 2px!important;margin:0!important;list-style:none;overscroll-behavior-inline:contain;scroll-behavior:smooth}
.single-product .nt-product-media-column .woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar{display:none}
.single-product .nt-product-media-column .woocommerce-product-gallery .flex-control-thumbs>li{float:none!important;flex:0 0 72px!important;width:72px!important;min-width:0;margin:0!important;padding:0!important;scroll-snap-align:start;list-style:none;border-radius:12px}
.single-product .nt-product-media-column .woocommerce-product-gallery .flex-control-thumbs>li img{display:block;width:72px!important;height:72px!important;min-height:0;max-height:72px!important;object-fit:contain!important;object-position:center;padding:7px;margin:0!important;border:1px solid #d4deed;border-radius:12px;background:#fff;opacity:.8;cursor:pointer;transition:border-color .15s,box-shadow .15s,opacity .15s}
.single-product .nt-product-media-column .woocommerce-product-gallery .flex-control-thumbs>li img.flex-active{border-color:var(--blue);box-shadow:inset 0 0 0 1px var(--blue);opacity:1;background:rgba(var(--nt-accent-rgb,27,67,143),.025)}
.single-product .nt-product-media-column .woocommerce-product-gallery .flex-control-thumbs>li img:focus-visible{outline:3px solid var(--blue);outline-offset:-3px;opacity:1}
.nt-gallery-thumb-arrow{display:none;align-items:center;justify-content:center;flex:0 0 34px;width:34px;height:37px;padding:0;border:1px solid #cfdbeb;background:#fff;border-radius:11px;color:var(--blue);font-size:23px;line-height:1;box-shadow:0 2px 5px #102b5405}
.nt-gallery-thumbnails.is-scrollable .nt-gallery-thumb-arrow{display:flex}.nt-gallery-thumb-arrow:disabled{opacity:.3;cursor:default;box-shadow:none}
.pswp{z-index:160000!important}.pswp .pswp__bg{background:#091b34}.pswp .pswp__caption__center{font-family:var(--nt-font,Vazirmatn,Tahoma,sans-serif);font-size:13px;line-height:2;text-align:center}.pswp .pswp__button{border-radius:0;min-height:0;padding:0;font-family:inherit}.pswp .pswp__counter{font-family:var(--nt-font,Vazirmatn,Tahoma,sans-serif);font-size:13px}
@media(max-width:767px){
 .single-product .nt-product-media-column .woocommerce-product-gallery{padding:9px 8px 10px;border-radius:17px}
 .single-product .nt-product-media-column .woocommerce-product-gallery .flex-viewport{min-height:310px;border-radius:12px}
 .single-product .nt-product-media-column .woocommerce-product-gallery .woocommerce-product-gallery__image,
 .single-product .nt-product-media-column .woocommerce-product-gallery .woocommerce-product-gallery__image--placeholder{height:310px;min-height:310px}
 .single-product .nt-product-media-column .woocommerce-product-gallery .woocommerce-product-gallery__image>a{padding:18px 19px 12px}
 .single-product .nt-product-media-column .woocommerce-product-gallery .woocommerce-product-gallery__image video{max-height:310px}
 .single-product .nt-product-media-column .woocommerce-product-gallery .woocommerce-product-gallery__trigger{top:10px!important;left:10px!important;width:36px!important;height:36px!important;border-radius:10px!important}
 .single-product .nt-product-media-column .woocommerce-product-gallery .woocommerce-product-gallery__trigger::before{top:8px;left:8px}.single-product .nt-product-media-column .woocommerce-product-gallery .woocommerce-product-gallery__trigger::after{top:23px;left:21px}
 .single-product .nt-product-media-column .woocommerce-product-gallery .nt-gallery-count{right:13px;top:15px;font-size:10px;padding:3px 7px}
 .nt-gallery-thumbnails{margin-top:9px;padding-top:10px;gap:0}
 .single-product .nt-product-media-column .woocommerce-product-gallery .flex-control-thumbs{gap:8px;padding:3px 1px!important}
 .single-product .nt-product-media-column .woocommerce-product-gallery .flex-control-thumbs>li{flex-basis:60px!important;width:60px!important;border-radius:10px}
 .single-product .nt-product-media-column .woocommerce-product-gallery .flex-control-thumbs>li img{width:60px!important;height:60px!important;max-height:60px!important;border-radius:10px;padding:5px}
 .nt-gallery-thumbnails.is-scrollable .nt-gallery-thumb-arrow,.nt-gallery-thumb-arrow{display:none!important}
}
@media(prefers-reduced-motion:reduce){.single-product .nt-product-media-column .woocommerce-product-gallery .flex-control-thumbs{scroll-behavior:auto}.single-product .nt-product-media-column .woocommerce-product-gallery .flex-control-thumbs>li img{transition:none}}

.single-product .nt-product-media-column .woocommerce-product-gallery img.zoomImg{max-width:none!important;max-height:none!important;object-fit:fill!important;object-position:initial}

/* Keep image controls inside the gallery's layer while the full-screen lightbox stays independent. */
.single-product.woocommerce div.product .nt-product-media-column .woocommerce-product-gallery{isolation:isolate;z-index:0}
.single-product.woocommerce div.product .nt-product-media-column .woocommerce-product-gallery .woocommerce-product-gallery__trigger{z-index:2!important}
