Wide format in gallery?

Is there a way to show the full framed image in the gallery - wide. Here is my issue in this image. See the top and bottom are cut off. I was wondering if “auto” could be an option in the component this would work for both portrait and landscape images. Also .object-fit “contain”.Does this make sense I want the whole of the image to be visible in the gallery view. not cut off. Thanks Ken