>>7534931>>7534932jesus
what you want to achieve can't really be done with css alone. you'll need to look at something called masonry and learn how to inject js using something like tampermonkey.
alternatively, you could mimic it as close as possible using either css columns or css grid. there are drawbacks, but. further reading:
https://css-tricks.com/piecing-together-approaches-for-a-css-masonry-layout/https://tobiasahlin.com/blog/masonry-with-css/https://css-tricks.com/snippets/css/complete-guide-grid/