Isotope gallery from posts with filters

I’m trying to create something like www.tineteijsen.be but then with a filter option.

I’m using the post element with filter and everything works. Only when resizing the browser the grid is acting weird. Am I doing something wrong? https://gerdasmets.be/home/

absolute O_O

you need to learn flex
and breakpoints for responsive
watch some youtube videos please.

use flex and breakpoints properly first and give aspect ratio to images containers will get their heights automatically.