Refactor lightbox gallery into _includes\gallery.html partial

To use it just {% include gallery.html %} after setting the
appropriate gallery variables in the YAML frontmatter.