An easy way to integrate either v1 or v2 of lightGallery JavaScript to WordPress. lightGallery is a lightweight, modular, JavaScript library for creating beautiful image & video galleries for the web and the mobile
In Settings > Simple lightGallery you can find several options to control in which parts of your site the lightGallery will be loaded.
Some of lightGallery core features (taken from lightGallery officially site)
[gallery]
shortcode make sure to use it with the option link="file"
.