template-gallery.php: modal for gallery