/* Scoped product gallery. Main image always preserves its full shape by default. */
.elementor .e-con.mpp-single-product{display:grid!important;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:start;gap:48px}
.elementor .e-con.mpp-single-product>.e-con{width:100%;min-width:0}
.mpp-gallery{--mpp-gallery-accent:#246ca9;--mpp-gallery-background:#f5f7fa;--mpp-gallery-radius:16px;--mpp-gallery-thumb:76px;--mpp-gallery-ratio:1;display:grid;grid-template-columns:var(--mpp-gallery-thumb) minmax(0,1fr);gap:12px;width:100%;min-width:0;position:relative;align-items:start}
.mpp-gallery *,.mpp-lightbox *{box-sizing:border-box}
.mpp-gallery [hidden],.mpp-lightbox [hidden]{display:none!important}
.mpp-gallery--portrait{--mpp-gallery-ratio:4/5}.mpp-gallery--landscape{--mpp-gallery-ratio:4/3}
.mpp-gallery .mpp-gallery-stage{grid-column:2;grid-row:1;position:relative;min-width:0;aspect-ratio:var(--mpp-gallery-ratio);background:var(--mpp-gallery-background);border:1px solid #e4e9ef;border-radius:var(--mpp-gallery-radius);overflow:hidden;isolation:isolate;touch-action:pan-y pinch-zoom}
.mpp-gallery .mpp-gallery-main{display:block!important;width:100%;height:100%;color:#243a50;text-decoration:none;cursor:zoom-in}
.mpp-gallery .mpp-gallery-image{display:block!important;width:100%!important;height:100%!important;max-width:100%;object-fit:var(--mpp-gallery-fit,contain);border-radius:0!important;box-shadow:none!important;margin:0;transition:opacity .16s ease}
.mpp-gallery.is-loading .mpp-gallery-image{opacity:.5}
.mpp-gallery .mpp-gallery-expand,.mpp-gallery .mpp-gallery-control{position:absolute;z-index:2;display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid #e0e6ed;border-radius:50%;background:rgba(255,255,255,.96);color:#1c334a;box-shadow:0 3px 14px #0d254010;cursor:pointer;line-height:1;min-height:0;min-width:0}
.mpp-gallery .mpp-gallery-expand{inset-inline-end:14px;bottom:14px;pointer-events:none}
.mpp-gallery .mpp-gallery-control{top:50%;transform:translateY(-50%);transition:background .15s,box-shadow .15s}
.mpp-gallery .mpp-gallery-prev{inset-inline-start:12px}.mpp-gallery .mpp-gallery-next{inset-inline-end:12px}
.mpp-gallery[dir=rtl] .mpp-gallery-control svg{transform:rotate(180deg)}
.mpp-gallery .mpp-gallery-control:hover{background:#fff;box-shadow:0 4px 20px #0d254022;color:var(--mpp-gallery-accent)}
.mpp-gallery .mpp-gallery-counter{position:absolute;inset-inline-start:16px;bottom:17px;background:#fff;color:#445468;border:1px solid #e4e9ef;border-radius:20px;padding:5px 11px;font:600 12px/1.5 Arial,sans-serif;pointer-events:none}
.mpp-gallery .mpp-gallery-rail{grid-column:1;grid-row:1;align-self:stretch;min-height:0;position:relative;display:flex;flex-direction:column;gap:7px;overflow:hidden}
.mpp-gallery .mpp-gallery-thumbs{position:absolute;inset:36px 0;display:flex;flex-direction:column;gap:9px;min-height:0;overflow:auto;scrollbar-width:none;overscroll-behavior:contain;scroll-snap-type:y proximity}
.mpp-gallery .mpp-gallery-thumbs::-webkit-scrollbar{display:none}
.mpp-gallery .mpp-gallery-thumb{flex:0 0 auto;display:block;width:100%;aspect-ratio:1;overflow:hidden;border:2px solid #e4e9ef;border-radius:9px;background:#fff;padding:3px;scroll-snap-align:start;transition:border-color .15s,opacity .15s;text-decoration:none}
.mpp-gallery .mpp-gallery-thumb img{display:block!important;width:100%!important;height:100%!important;object-fit:contain;margin:0;border-radius:4px!important;box-shadow:none!important;opacity:.7}
.mpp-gallery .mpp-gallery-thumb.is-active{border-color:var(--mpp-gallery-accent)}
.mpp-gallery .mpp-gallery-thumb.is-active img,.mpp-gallery .mpp-gallery-thumb:hover img{opacity:1}
.mpp-gallery .mpp-gallery-rail-arrow{display:grid;place-items:center;width:100%;height:29px;flex:none;padding:0;background:#f3f6f9;color:#526579;border:1px solid #e4e9ef;border-radius:6px;cursor:pointer;min-height:0;min-width:0;line-height:1}
.mpp-gallery .mpp-gallery-rail-arrow:last-child{margin-top:auto}
.mpp-gallery .mpp-gallery-rail-arrow:hover{background:#e7eef6;color:var(--mpp-gallery-accent)}
.mpp-gallery .mpp-gallery-caption{grid-column:1/-1;margin:0;color:#56687a;font-size:13px;line-height:1.6;text-align:center}
.mpp-gallery a:focus-visible,.mpp-gallery button:focus-visible,.mpp-gallery-stage:focus-visible{outline:3px solid var(--mpp-gallery-accent);outline-offset:-3px}
.mpp-gallery-sr{position:absolute!important;clip:rect(0,0,0,0);clip-path:inset(50%);width:1px;height:1px;margin:-1px;overflow:hidden;white-space:nowrap}
.mpp-gallery--single,.mpp-gallery--bottom{grid-template-columns:minmax(0,1fr)}
.mpp-gallery--single .mpp-gallery-stage,.mpp-gallery--bottom .mpp-gallery-stage{grid-column:1}
.mpp-gallery--bottom .mpp-gallery-rail{grid-row:2;grid-column:1;position:static;display:flex;flex-direction:row;align-items:center;gap:8px}
.mpp-gallery--bottom .mpp-gallery-thumbs{position:static;flex-direction:row;flex:1;gap:9px;scroll-snap-type:x proximity}
.mpp-gallery--bottom .mpp-gallery-thumb{width:var(--mpp-gallery-thumb)}
.mpp-gallery--bottom .mpp-gallery-rail-arrow{height:44px;width:26px;margin:0!important}
.mpp-gallery--bottom .mpp-gallery-rail-arrow svg{transform:rotate(-90deg)}
.mpp-gallery--bottom[dir=rtl] .mpp-gallery-rail-arrow svg{transform:rotate(90deg)}
.mpp-gallery-empty{display:grid;place-items:center;width:100%;aspect-ratio:1;border:1px dashed #c4d1df;border-radius:16px;background:#f5f7fa;color:#526579;padding:32px;text-align:center}
/* Dialog is mounted at body level, outside Elementor transforms and styles. */
dialog.mpp-lightbox{position:fixed;inset:0;width:100vw;max-width:none;height:100vh;height:100dvh;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:#0a1420;color:#fff;z-index:2147483000;overflow:hidden;font-family:Arial,sans-serif}
dialog.mpp-lightbox[open]{display:flex;flex-direction:column}
dialog.mpp-lightbox::backdrop{background:rgba(0,0,0,.85)}
.mpp-lightbox .mpp-lightbox-toolbar{display:flex;align-items:center;gap:8px;flex:none;min-height:70px;padding:12px max(16px,env(safe-area-inset-right)) 12px max(16px,env(safe-area-inset-left));border-bottom:1px solid #ffffff18;background:#101d2c}
.mpp-lightbox .mpp-lightbox-title{font-size:14px;font-weight:600;flex:1;margin:0;line-height:1.4}
.mpp-lightbox button{display:grid;place-items:center;background:#ffffff10;border:1px solid #ffffff24;border-radius:8px;color:#fff;width:44px;height:44px;padding:0;min-width:0;min-height:0;font:400 23px/1 Arial,sans-serif;cursor:pointer}
.mpp-lightbox button:hover{background:#ffffff25;color:#fff}.mpp-lightbox button:disabled{opacity:.3;cursor:default}
.mpp-lightbox button:focus-visible{outline:2px solid #a3d4ff;outline-offset:2px}
.mpp-lightbox .mpp-lightbox-zoom-level{font-size:12px;width:54px;direction:ltr}
.mpp-lightbox .mpp-lightbox-viewport{position:relative;flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;touch-action:pan-x pan-y pinch-zoom}
.mpp-lightbox .mpp-lightbox-canvas{display:grid;place-items:center;min-width:100%;min-height:100%;width:max-content;padding:24px}
.mpp-lightbox .mpp-lightbox-photo{display:block;max-width:none!important;max-height:none!important;margin:0;border:0;border-radius:0;box-shadow:none;object-fit:contain}
.mpp-lightbox .mpp-lightbox-footer{display:flex;align-items:center;gap:20px;justify-content:center;flex:none;padding:12px 16px max(16px,env(safe-area-inset-bottom));background:#101d2c;border-top:1px solid #ffffff18}
.mpp-lightbox .mpp-lightbox-description{text-align:center;min-width:90px;max-width:70%;font-size:13px;line-height:1.6;margin:0}
.mpp-lightbox .mpp-lightbox-count{display:block;font-size:12px;color:#a7bace;direction:ltr}
.mpp-lightbox[dir=rtl] [data-mpp-lightbox-step]{transform:rotate(180deg)}
.mpp-lightbox.is-loading .mpp-lightbox-photo{opacity:.35}
@media(max-width:767px){
 .elementor .e-con.mpp-single-product{grid-template-columns:minmax(0,1fr);gap:32px}
 .mpp-gallery{--mpp-gallery-thumb:64px;--mpp-gallery-radius:12px;grid-template-columns:minmax(0,1fr);gap:10px}
 .mpp-gallery .mpp-gallery-stage{grid-column:1}
 .mpp-gallery .mpp-gallery-rail{grid-row:2;grid-column:1;position:static;flex-direction:row;align-items:center;gap:6px}
 .mpp-gallery .mpp-gallery-thumbs{position:static;flex:1;flex-direction:row;scroll-snap-type:x proximity}
 .mpp-gallery .mpp-gallery-thumb{width:var(--mpp-gallery-thumb)}
 .mpp-gallery .mpp-gallery-rail-arrow{width:24px;height:44px;margin:0!important}
 .mpp-gallery .mpp-gallery-rail-arrow svg{transform:rotate(-90deg)}
 .mpp-gallery[dir=rtl] .mpp-gallery-rail-arrow svg{transform:rotate(90deg)}
 .mpp-gallery .mpp-gallery-prev{inset-inline-start:8px}.mpp-gallery .mpp-gallery-next{inset-inline-end:8px}
 .mpp-lightbox .mpp-lightbox-toolbar{gap:6px;flex-wrap:wrap;padding-top:max(12px,env(safe-area-inset-top))}
 .mpp-lightbox .mpp-lightbox-title{font-size:12px;min-width:70px}
 .mpp-lightbox .mpp-lightbox-canvas{padding:12px}
}
@media(prefers-reduced-motion:reduce){.mpp-gallery *{transition:none!important;scroll-behavior:auto!important}}
