You can use Justified Gallery with any lightbox in the way you prefer. In this tutorial you
can see how to use Colorbox and Swipebox, but the same principles can be applied to use any other lightbox.
To use Colorbox you need to create a listener for the jg.complete callback to initialize Colorbox. Note that we are also using the rel = 'gallery2' option, that sets to 'gallery1' the rel attribute for all the links. In this way Colorbox can create a group of images.
To use Swipebox you need to use again a listener for the jg.complete callback.
Look at the following code for a complete example:
Swipebox seems has problems with certain types of jQuery versions. The version 2.x versions seems the only ones that work (here we use v2.1.0).
Multiple gallery with one call
The three galleries are created with a single call to the plugin. Note that, to create the groups, the images have different rel tags.
Note: certain types of lightbox libraries could accept different methods to create those groups.
To set the rel automatically, just call the Justified Gallery inside a foreach.