/* Native local-image galleries; all motion follows explicit customer input. */
.ml-product-gallery{display:grid;gap:12px;width:100%;min-width:0;margin:0;padding:0}
.ml-product-gallery .ml-product-gallery-main{position:relative;width:100%;height:clamp(260px,35vw,450px);padding:0;margin:0;background:#fff;border:1px solid #e0e8ed;border-radius:4px;overflow:hidden}
.ml-product-gallery .ml-product-gallery-open{display:block;width:100%;height:100%;min-height:0;margin:0;padding:16px;border:0;border-radius:0;background:#fff;color:inherit;cursor:zoom-in;box-shadow:none}
.ml-product-gallery .ml-product-gallery-open:hover,.ml-product-gallery .ml-product-gallery-open:active{background:#fff}
.ml-product-gallery .ml-product-gallery-image{display:block;width:100%;height:100%;max-width:100%;max-height:100%;margin:0;padding:0;object-fit:contain;float:none}
.ml-product-gallery .ml-product-gallery-arrow{position:absolute;top:50%;display:flex;align-items:center;justify-content:center;width:38px;min-width:38px;height:38px;min-height:38px;padding:0;margin:0;border:1px solid #cbd6dd;border-radius:4px;background:#fff;color:#086da5;font:22px/1 Arial,sans-serif;cursor:pointer;transform:translateY(-50%);box-shadow:0 2px 5px #223a4910}
.ml-product-gallery .ml-product-gallery-arrow:hover{border-color:#086da5;background:#edf5fa}
.ml-product-gallery .ml-gallery-prev{left:10px}.ml-product-gallery .ml-gallery-next{right:10px}
.ml-product-gallery .ml-product-gallery-thumbnails{display:flex;gap:9px;width:100%;max-width:100%;min-width:0;margin:0;padding:0 0 5px;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;scrollbar-width:thin}
.ml-product-gallery .ml-product-gallery-thumbnail{display:flex;align-items:center;justify-content:center;flex:0 0 76px;width:76px;height:72px;min-height:72px;margin:0;padding:5px;border:1px solid #ccd8df;border-radius:3px;background:#fff;color:inherit;cursor:pointer;scroll-snap-align:start;box-shadow:none}
.ml-product-gallery .ml-product-gallery-thumbnail:hover{border-color:#086da5;background:#f4f9fc}
.ml-product-gallery .ml-product-gallery-thumbnail[aria-pressed=true]{border:2px solid #086da5;padding:4px;background:#fff}
.ml-product-gallery .ml-product-gallery-thumbnail img{display:block;width:100%;height:100%;min-width:0;max-width:100%;max-height:100%;margin:0;padding:0;object-fit:contain}
.ml-product-gallery .ml-product-gallery-note{margin:0;padding:0;color:#667580;font:13px/1.5 Arial,sans-serif}
.ml-product-gallery button:focus-visible,.ml-product-gallery-dialog button:focus-visible{outline:3px solid #086da5;outline-offset:3px}
.ml-product-gallery-dialog{position:fixed!important;top:50%!important;left:50%!important;right:auto!important;bottom:auto!important;transform:translate(-50%,-50%)!important;width:min(1100px,calc(100vw - 32px));max-width:calc(100vw - 32px);height:min(850px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);margin:0!important;padding:48px 22px 14px;border:0;border-radius:6px;background:#fff;color:#24313a;overflow:hidden;box-sizing:border-box}
.ml-product-gallery-dialog::backdrop{background:#101c29c9}
.ml-product-gallery-dialog .ml-product-gallery-dialog-close{position:absolute;top:10px;right:12px;display:flex;align-items:center;justify-content:center;width:34px;height:34px;min-height:34px;margin:0;padding:0;border:1px solid #d2dce2;border-radius:4px;background:#fff;color:#253d4b;font:26px/1 Arial,sans-serif;cursor:pointer}
.ml-product-gallery-dialog .ml-product-gallery-dialog-stage{display:flex;align-items:center;justify-content:center;width:100%;height:calc(100% - 56px);min-height:0;margin:0;padding:0;touch-action:pan-y}
.ml-product-gallery-dialog .ml-product-gallery-dialog-image{display:block;width:100%;height:100%;max-width:100%;max-height:100%;margin:0;padding:0;object-fit:contain}
.ml-product-gallery-dialog .ml-product-gallery-dialog-controls{display:flex;align-items:center;justify-content:center;gap:20px;height:56px;margin:0;padding:0}
.ml-product-gallery-dialog .ml-product-gallery-dialog-arrow{display:flex;align-items:center;justify-content:center;width:40px;height:38px;min-height:38px;margin:0;padding:0;border:1px solid #cbd6dd;border-radius:4px;background:#fff;color:#086da5;font:23px/1 Arial,sans-serif;cursor:pointer}
.ml-product-gallery-dialog .ml-product-gallery-dialog-arrow[hidden]{display:none}
.ml-product-gallery-dialog .ml-product-gallery-dialog-counter{min-width:58px;color:#394e5c;text-align:center;font:14px/1.5 Arial,sans-serif}
@media(max-width:767px){.ml-product-gallery .ml-product-gallery-main{height:320px}.ml-product-gallery .ml-product-gallery-thumbnail{flex-basis:66px;width:66px;height:64px;min-height:64px}.ml-product-gallery-dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);height:calc(100dvh - 20px);max-height:calc(100dvh - 20px);padding:48px 12px 12px}.ml-product-gallery .ml-product-gallery-arrow{width:34px;min-width:34px;height:34px;min-height:34px}.ml-product-gallery .ml-gallery-prev{left:6px}.ml-product-gallery .ml-gallery-next{right:6px}}
@media(prefers-reduced-motion:reduce){.ml-product-gallery .ml-product-gallery-thumbnails{scroll-behavior:auto}}
