Please copy these upstream changes, where appropriate, https://en.wikipedia.org/w/index.php?title=MediaWiki%3AGadget-NewImageThumb.css&diff=1157787566&oldid=1017248689
For more information, see mw:Parsoid/Parser_Unification/Media_structure/FAQ
Thanks