I've set up a grid of images in columns similar to Pinterest that I would like to filter. The images vary in height but all have the same width.
The issue arises when a taller image is followed by a shorter one, causing the short image to float right underneath the tall one and leaving an unsightly gap.
For instance, if you take a look at "Category 3" on this page: The last image ends up getting stuck below the smallest one, instead of aligning all the way to the left as desired.
I have experimented with using isotope, shuffle.js, mixitup, among others. However, these solutions are designed for grids with varying heights and widths, resulting in unwanted gaps.