Repeater/Database

Hello, I have a question about my site.
I have created a reference site for my client projects and I like it. The problem is that these are now all individual containers. I would like to connect this somehow with a repeater and a database so that when I want to add a new element (i.e. a new customer project) this one it has to be on top and all the others just follow.

But if we use a repeater, I can’t vary the spacing of the elements that are next to each other. Like this:

Is there any way to make my reference page look like it is now, and connect it to a database? And/or is there a way to vary the spacing of a repeater to the margin at the top of each element?

my page: https://fitore3.editorx.io/tkm-fitore-01/home-1-1-1-1

Repeaters are meant to display the items identically throughout the set. You could do something similar by having different repeaters connected to “different datasets (you can have copies of the same dataset)” filtered to display different content .

Unfortunately, I always need the same dataset because otherwise it becomes too complicated and confusing with my elements.

tq for your reply @fitore , could something like a masonry repeater layout fulfill your query?