Makes the native WordPress galleries use a lightbox script called ColorBox to display the fullsize images right there in the page. No modifications required.
You can also make single non- images use the lightbox by giving their links a class of “lightbox”, like so:

developer version : Github