I have an idea!
I have installed one of those social share plugin that let me put a social button where I like simply paste the specific code.
Now …. where do I have to paste that code (es. <social code>) to have it under every thumb in media gallery?? Where is the loop that generates the media gallery?