Use the blueimp Gallery jQuery plugin for the lightbox functionality.