I am looking for a way to showcase images in a floating style, with the challenge being that there are two different image sizes, one larger than the other with the size equivalent to 4 of the smaller ones combined. Take a look at this visual example:
I attempted to use the Masonry plugin as recommended in a previous Stack Overflow question, but it only partially solved the issue. See for yourself:
Despite this, there are still empty spaces that need to be addressed. I am open to any suggestions or solutions, whether it involves CSS, JS, jQuery, or any other library that can be adapted to jQuery. The main objective is to have no empty spaces and ensure that the layout remains fluid and flexible.
Any help or ideas would be greatly appreciated. Thank you.