Done. You can test here: http://allwelcares.com/dop-test/. ( click on first & second image when lightbox is opened ).
All you have to do now is to go in wp-admin-> Gallery – > Manage Galleries -> Select Gallery -> add link for each image in Link field.
Attention ! Not update our template because you will loose changes.