The PB Masonry Gallery is a JavaScript grid layout that allows you to display a collection of images. It works by placing elements in optimal position based on available vertical space, sort of like a mason fitting stones in a wall. You can also click on each image to view each image separately or altogether in a modal carousel.
Masonry Gallery Grid Order
...
Adding a Masonry Gallery
See examples of a Masonry Gallery
...