Template:Gallery/styles.css

/* FIXME: the media query is only necessary due to the fact that Module:Gallery uses inline styles. Module:Gallery should be updated to not use style attributes and exclusively use this. Various other templates use Module:Gallery, so out of fear of breaking them I've done this (mixed with importants) which make me very sad. @media all and ( max-width: 720px ) { .mw-module-gallery { /* Override inline styles in Module:Gallery. !important can be removed when Module:Gallery no longer has them*/ display: block !important; float: none !important; }	.mw-module-gallery div { display: inherit !important; float: none !important; width: auto !important; } }