.mg-card{cursor:zoom-in}.mg-card:focus-visible{outline:3px solid #f5b400;outline-offset:3px}
.mg-lb{position:fixed;inset:0;z-index:2147483000;background:rgba(0,0,0,.82);display:flex;align-items:center;justify-content:center;padding:16px}.mg-lb[hidden]{display:none}
.mg-panel{position:relative;background:#111;color:#eee;border-radius:14px;max-width:min(900px,100%);width:100%;padding:12px;box-shadow:0 10px 40px rgba(0,0,0,.6)}
.mg-stage{position:relative;display:flex;align-items:center;justify-content:center;min-height:200px}.mg-stage img{max-width:100%;max-height:72vh;border-radius:8px;object-fit:contain;touch-action:pan-y;user-select:none}
.mg-prev,.mg-next,.mg-x{position:absolute;border:0;background:rgba(0,0,0,.55);color:#fff;width:44px;height:44px;border-radius:50%;font-size:28px;line-height:44px;cursor:pointer;z-index:2}
.mg-prev{left:6px}.mg-next{right:6px}.mg-x{top:-14px;right:-10px;font-size:20px;background:#f5b400;color:#111}
.mg-foot{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:8px 4px 0;font-size:13px}.mg-cap a{color:#bbb;font-size:11px}
html.mg-open{overflow:hidden}@media(max-width:600px){.mg-lb{padding:8px}.mg-x{top:4px;right:4px}.mg-foot{flex-direction:column;align-items:flex-start}}
.material-card .photo-wrap:not(:has(img)){aspect-ratio:4/3;background:linear-gradient(135deg,#c9ced8,#8f97a6);display:grid;place-items:center}
