/* United Exim interactive WooCommerce product gallery */
[data-ue-gallery] .ue-product-main-trigger{
  position:relative;display:block;width:100%;padding:0;margin:0;border:0;
  border-radius:inherit;background:transparent;cursor:zoom-in;text-align:center;
}
[data-ue-gallery] .ue-product-main-trigger img{display:block;width:100%;height:auto;aspect-ratio:1.08;object-fit:contain;}
[data-ue-gallery] .ue-product-main-trigger:focus-visible,
[data-ue-gallery] .ue-product-thumb:focus-visible{outline:3px solid #8b2d47;outline-offset:3px;}
[data-ue-gallery] .ue-product-zoom-hint{
  position:absolute;right:14px;bottom:14px;border-radius:5px;padding:8px 11px;
  background:rgba(15,36,52,.88);color:#fff;font-size:12px;font-weight:600;pointer-events:none;
}
[data-ue-gallery] .bis-product-thumbs{
  display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin-top:12px;
}
[data-ue-gallery] .ue-product-thumb{
  display:block;position:relative;width:100%;padding:3px;border:2px solid #dce1e4;
  border-radius:10px;background:#fff;overflow:hidden;cursor:pointer;transition:border-color .18s,box-shadow .18s;
}
[data-ue-gallery] .ue-product-thumb img{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:contain;}
[data-ue-gallery] .ue-product-thumb:hover{border-color:#53788e;}
[data-ue-gallery] .ue-product-thumb.is-active{border-color:#8b2d47;box-shadow:0 0 0 1px #8b2d47;}
body.ue-gallery-modal-open{overflow:hidden;}
.ue-gallery-dialog{
  position:fixed;inset:0;z-index:999999;display:flex;align-items:center;justify-content:center;
  background:rgba(7,16,26,.94);padding:70px 56px;box-sizing:border-box;touch-action:pan-y;
}
.ue-gallery-dialog-photo{display:block;max-width:100%;max-height:calc(100dvh - 135px);height:auto;width:auto;object-fit:contain;border-radius:5px;}
.ue-gallery-dialog-close,.ue-gallery-dialog-prev,.ue-gallery-dialog-next{
  position:absolute;z-index:1;display:grid;place-items:center;width:44px;height:44px;
  border:1px solid rgba(255,255,255,.35);border-radius:50%;background:rgba(15,36,52,.8);
  color:#fff;cursor:pointer;font-size:28px;line-height:1;
}
.ue-gallery-dialog-close{top:18px;right:20px;}
.ue-gallery-dialog-prev{left:15px;top:50%;transform:translateY(-50%);}
.ue-gallery-dialog-next{right:15px;top:50%;transform:translateY(-50%);}
.ue-gallery-dialog-close:hover,.ue-gallery-dialog-prev:hover,.ue-gallery-dialog-next:hover{background:#8b2d47;}
.ue-gallery-dialog button:focus-visible{outline:3px solid #fff;outline-offset:3px;}
.ue-gallery-dialog-count{position:absolute;bottom:19px;left:50%;transform:translateX(-50%);color:#fff;font:600 13px/1.5 system-ui,sans-serif;}
@media(max-width:600px){
  [data-ue-gallery] .bis-product-thumbs{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;}
  [data-ue-gallery] .ue-product-zoom-hint{right:9px;bottom:9px;font-size:11px;}
  .ue-gallery-dialog{padding:66px 8px 60px;}
  .ue-gallery-dialog-photo{max-height:calc(100dvh - 150px);}
  .ue-gallery-dialog-prev,.ue-gallery-dialog-next{width:36px;height:36px;}
  .ue-gallery-dialog-prev{left:4px;}.ue-gallery-dialog-next{right:4px;}
}
