.msgfg-gallery{margin:20px 0;padding:16px;border:1px solid #ddd;border-radius:12px;min-width:0}.msgfg-gallery h2{font-size:20px;margin:0 0 8px}.msgfg-gallery>p{font-size:13px;margin:0 0 12px}.msgfg-grid{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:6px}.msgfg-card{min-width:0;margin:0;padding:0;border:1px solid #52647a;border-radius:5px;overflow:hidden;background:#06162a;color:#fff}.msgfg-open{display:flex!important;align-items:center;justify-content:center;width:100%;height:92px;padding:3px;box-sizing:border-box}.msgfg-card .msgfg-open img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;object-fit:contain!important;object-position:center!important;aspect-ratio:auto!important;margin:0!important;border-radius:0!important}.msgfg-card>small,.msgfg-card>.msgfg-actions{display:none!important}.msgfg-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:10px 0}.msgfg-expiry{flex-basis:100%;font-size:12px}.msgfg-actions a,.msgfg-actions button{display:inline-block;font:inherit;font-size:14px;line-height:1.4;border:1px solid #ccc;background:#f5f5f5;color:#202020;border-radius:6px;padding:9px 12px;text-decoration:none;cursor:pointer}.msgfg-actions button:disabled{opacity:.5}.msgfg-gallery nav{margin-top:10px;display:flex;flex-wrap:wrap;gap:12px}.msgfg-gallery a:focus-visible,.msgfg-gallery button:focus-visible{outline:3px solid #20b7fa;outline-offset:2px}.msgfg-dialog{border:1px solid #52647a;border-radius:10px;padding:12px;max-width:94vw;max-height:94vh;background:#071a30;color:#fff;box-sizing:border-box}.msgfg-dialog::backdrop{background:rgba(0,0,0,.85)}.msgfg-dialog>img{display:block;width:auto!important;height:auto!important;max-width:86vw!important;max-height:65vh!important;object-fit:contain!important;margin:0 auto}.msgfg-dialog>button{display:block;margin:0 0 8px auto;padding:8px 16px;cursor:pointer}.msgfg-dialog-status{font-size:13px}.msgmc-page main>.msgfg-gallery{background:#082343;color:#fff;border:1px solid #04a7e8;border-radius:14px;padding:16px;margin:20px 0}.msgmc-page .msgfg-gallery h2{color:#20b7fa}.msgmc-page .msgfg-status{color:#fff}@media(max-width:700px){.msgfg-grid{gap:3px}.msgfg-open{height:48px;padding:1px}.msgfg-gallery,.msgmc-page main>.msgfg-gallery{padding:10px;margin:14px 0}.msgfg-gallery h2{font-size:17px}.msgfg-gallery>p{font-size:12px;margin-bottom:8px}.msgfg-dialog{padding:10px}}
.msgfg-actions a,.msgfg-actions button{display:inline-flex;align-items:center;justify-content:center;min-width:36px;min-height:36px;box-sizing:border-box}.msgfg-actions svg{display:block;flex-shrink:0;pointer-events:none}
@media(max-width:700px){
.msgfg-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.msgfg-open{height:76px;padding:3px}
.msgfg-card>.msgfg-actions{display:flex!important;justify-content:center;gap:5px;padding:3px 2px 5px;margin:0}
.msgfg-card>.msgfg-actions>.msgfg-expiry{display:none}
.msgfg-card>.msgfg-actions a,.msgfg-card>.msgfg-actions button{width:28px;height:28px;min-width:28px;min-height:28px;padding:4px;border:0;border-radius:5px;background:#123553;color:#fff;margin:0}
.msgfg-card>.msgfg-actions svg{width:16px;height:16px}
}