#lightbox.mx-gallery{position:fixed;inset:0;z-index:10000;background:rgba(8,14,26,.96);display:none;flex-direction:column;align-items:center;justify-content:center;padding:16px;gap:10px;overflow:auto;box-sizing:border-box;color:#fff}
.mx-gallery button{font:inherit;cursor:pointer}
#mx-gallery-close{position:fixed;top:10px;right:14px;width:44px;height:44px;border:0;border-radius:50%;background:#fff;color:#17253c;font-size:30px;z-index:2}
.mx-gallery-main{position:relative;width:min(900px,100%);display:flex;align-items:center;justify-content:center;min-height:0}
#lightbox.mx-gallery #lightbox-img{display:block;max-width:100%;width:auto;max-height:51vh;height:auto;object-fit:contain;margin:0;border-radius:10px}
.mx-gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);width:42px;height:48px;border:1px solid #fff6;background:#12213cdd;color:white;font-size:26px;border-radius:10px}
#mx-gallery-prev{left:0}#mx-gallery-next{right:0}
.mx-gallery-info{text-align:center;width:min(900px,100%)}
#lightbox.mx-gallery #lightbox-caption{width:auto;padding:0;color:#fff;font-size:18px;font-weight:700;max-height:48px;overflow:auto}
#mx-gallery-price{font-weight:700;color:#ffae69;margin:4px 0}
#mx-gallery-contact{display:inline-block;background:#168b47;color:white;text-decoration:none;border-radius:8px;padding:8px 18px}
.mx-gallery-related{width:min(900px,100%)}
.mx-gallery-related h3{font-size:15px;margin:0 0 7px;color:#fff}
#mx-gallery-rail{display:flex;direction:ltr;gap:8px;overflow-x:auto;overscroll-behavior:contain;padding:3px 2px 7px;scrollbar-width:thin}
.mx-gallery-thumb{flex:0 0 106px;border:2px solid transparent;background:#fff;color:#17253c;border-radius:9px;padding:5px;text-align:center}
.mx-gallery-thumb.selected{border-color:#ff8627;background:#fff2e6}
.mx-gallery-thumb img{display:block;width:92px;height:76px;object-fit:contain;margin:auto}
.mx-gallery-thumb span{display:block;font-size:11px;line-height:1.35;height:30px;overflow:hidden;direction:auto;margin-top:4px}
.mx-gallery-thumb small{font-size:12px;font-weight:700;color:#b54b00}
.mx-gallery button:focus-visible,.mx-gallery a:focus-visible{outline:3px solid #ffb578;outline-offset:2px}
@media(max-width:600px){#lightbox.mx-gallery{padding:12px 8px;gap:8px}#lightbox.mx-gallery #lightbox-img{max-height:43vh}.mx-gallery-arrow{width:36px;height:42px}#lightbox.mx-gallery #lightbox-caption{font-size:15px}.mx-gallery-thumb{flex-basis:96px}.mx-gallery-thumb img{width:82px;height:68px}}
/* Similar products displayed as a marketplace grid. */
#lightbox.mx-gallery{justify-content:flex-start;padding-top:54px;padding-bottom:28px}
.mx-gallery-main,.mx-gallery-info,.mx-gallery-related{flex-shrink:0}
#lightbox.mx-gallery #lightbox-caption{height:auto;max-height:none;overflow:visible;margin:0}
.mx-gallery-related{background:#fff;color:#17253c;border-radius:16px;padding:16px;box-sizing:border-box;margin-top:8px}
.mx-gallery-related h3{color:#17253c;font-size:20px;margin-bottom:14px}
#mx-gallery-rail{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));direction:inherit;gap:16px;overflow:visible;padding:0}
.mx-gallery-thumb{width:100%;min-width:0;border:2px solid transparent;background:#fff;padding:6px;text-align:start;border-radius:12px}
.mx-gallery-thumb.selected{border-color:#ff8627;background:#fff7ee}
.mx-gallery-thumb img{width:100%;height:220px;object-fit:contain;background:#f4f5f7;border-radius:9px}
.mx-gallery-thumb span{font-size:14px;height:40px;line-height:1.4;margin:8px 0 4px}
.mx-gallery-thumb small{display:block;font-size:22px;font-weight:800;color:#17253c;min-height:28px}
@media(max-width:600px){.mx-gallery-related{padding:10px;border-radius:12px}.mx-gallery-related h3{font-size:17px}#mx-gallery-rail{gap:6px}.mx-gallery-thumb{padding:2px}.mx-gallery-thumb img{height:120px}.mx-gallery-thumb span{font-size:11px;height:32px;margin-top:5px}.mx-gallery-thumb small{font-size:16px;min-height:22px}}
