added fix for captions breaking responsive design

if i used captions for images it broke the repsonive design. this fixed it for me.