Add HTML5 support and additional styling for galleries.