CMS elements with different size

Hi everyone,

I’m meeting an issue with my CMS page design.
In my collection I have several projects with different sizes (mostly 16:9 and 9:16). I created a multi-image field that I linked with my collection and I would like it to adapt to the size of the project.
For now it automatically does it, goes from the 16:9 to 9:16 perfectly but keeps the width of the 16:9 which makes the 9:16 way too large for the page. Is there any ways to create a template for each size within my CMS page ? I was also thinking about a magical option that would adapt automatically to each image :innocent:

Thanks in advance !

Here is my public share link: Webflow - Maud Joëssel

You can use a richtext field to embed custom css or custom js to apply a combo class, or you can use conditional visibility to show different elements. If is just 1 image you have to change, create an option inside the cms to select the aspect ratio and use conditional visibility