How do I make horizontal images double size of vertical images in a Pro Gallery from a CMS collection?

I’m having trouble with
I’d like some assistance to make my horizontal images, from a CMS collection displayed in a Pro Gallery, displayed double the size of the vertical images instead of half the size. Previously I have used a WIX PORTFOLIO and it works lie this automatically. However, I am now truing to accomplish this in a Pro Gallery connected to CMS. I probably need some custom code, but have no coding experience and looking for some guidance.

Working in
Wix Studio Editor

Site link
site is not live yet, still working on it…

What I’m trying to do
making the horizontal images display in my Pro Gallery double the size of the vertical images (as it natively does in WIX PORTFOLIO)

What I’ve tried so far
n/a

Extra context
Screenshots:

The Portfolio app uses the Pro gallery within the widgets, so the settings should be comparable.

I’d recommend taking a look at the settings applied to the Portfolio gallery and try replicating in the Pro Gallery.

thanks, I will have a look and compare the two and see what happens…