How to make an asymmetric gallery?

how can i make the same asymmetric gallery as in the view below, with all 4 images of different sizes in each header in a different place, while it is only in two columns, regardless of the size of the monitor?

1

I didn’t even find an example of this anywhere.