pascalhertleif.de/fotos has (inline, template-generated) CSS setting CSS3 flex properties to align photos of different sizes (but with max-width/max-height) without JS.

TODO: Describe this magic here.