Image in Lightbox thumbnail should fill 100% Div

I would like to make a series of 6 pictures under a text with a Lightbox. The pictures all come from a CMR file. A maximum of 6 items should be displayed.
The Collection List should be a grid.

Until then everything is ok, no problem.

My problem is, the images are different sizes, so the thumbnails are not always the same size.
I want all thumbnails to be the same size and the images to fill them completely.

Many thanks already times.

Translated with

Here is my site Read-Only: LINK
(how to share your site Read-Only link)

Try this (object-fit subject):

1 Like