Added a new modal in the JS file. Last image in slideshow would point back to the very first image of the gallery.
//Go back home
$lightbox.find('.lb-backhome').on('click', function(e) {
_this.changeImage(0);
console.log('back home link');
return false;
});
And
if (this.currentImageIndex < this.album.length - 1) {
$lightbox.find('.lb-next').show();
}else{
//Return this click index back to number one image
$lightbox.find('.lb-backhome').show();
}
Just update the entire my revised CSS and JS file and you'll be good to go.
My fiddle here: http://jsfiddle.net/eguky/
Per CC rules
Lightbox v2.51 by Lokesh Dhakar - http://www.lokeshdhakar.com
For more information, visit: http://lokeshdhakar.com/projects/lightbox2/
Licensed under the Creative Commons Attribution 2.5 License - http://creativecommons.org/licenses/by/2.5/ - free for use in both personal and commercial projects - attribution requires leaving author name, author link, and the license info intact