/* V183: Stable first-frame product image geometry. Load after all older themes. */
.md91-presentation{min-width:0;}
.md91-gallery{--md105-side:clamp(160px,min(560px,calc(100dvh - 245px),calc(100vw - 555px)),560px);min-width:0;max-width:100%;}
.md91-gallery .md91-stage{position:relative;box-sizing:border-box;flex:none;width:var(--md105-side);height:var(--md105-side);min-width:0;min-height:0;aspect-ratio:1/1;overflow:hidden;}
.md91-gallery .md91-stage .md75-main-photo{box-sizing:border-box;width:100%!important;height:100%!important;min-height:0!important;max-height:100%!important;aspect-ratio:1/1!important;padding:0!important;overflow:hidden;}
.md91-gallery .md91-stage .md75-main-photo img{display:block;width:100%!important;height:100%!important;max-width:100%;max-height:100%;object-fit:contain!important;object-position:center;transform:none!important;}
@media(max-width:940px){.md91-gallery{--md105-side:clamp(160px,min(520px,calc(100dvh - 220px),calc(100vw - 150px)),520px)}}
@media(max-width:540px){.md91-gallery{--md105-side:max(160px,min(calc(100vw - 52px),calc(100dvh - 205px)));width:100%;}.md91-gallery .md91-stage{max-width:100%;}}
