Lightbox image size control?

Can the size of lightbox images be controlled? Most of mine fill the whole available height or width regardless of what pixel size I make them. (There are a few exceptions for really small images.)

I was able to control them with pixel size at first (so I thought) but later they went back to filling the entire space again. So all me resizing was for naught.

I get that filling the whole space is preferable in most cases. But on a 27" screen some images can be overly huge.

Most elements in Webflow have styling set in the site CSS, so they work by default across devices. The lightbox is no different. You can inspect the default styles affecting an element by using developer tools in your browser. Since you can add custom CSS to your projects, you could optionally create new rules that take precedence by being more specific and including the changes you want.