Adaptive Photo Layout with Flexbox | CSS-Tricks
It amazes me that new techniques with relatively mature features are still cropping up. This is especially true when they're so practical as well.
This approach doesnβt fully respect the aspect ratios of photos (but itβs close) and occasionally leads to some weird results, but I absolutely love the simplicity and flexibility of it all.