Can this be solved using only CSS?
I have a component that need to adapt its layout depending on the content it receives.
In this example the layout changes depending on the amount of images:
1 image (in blue)
2 images (in yellow)
3 images (in green)
In this example the layout changes depending on the amount of images:
1 image (in blue)
2 images (in yellow)
3 images (in green)

