adapt caption shortcode to HTML5 and responsive requirements