Image proportions with lightbox

Hello everyone,
I have a problem with the lightbox image gallery on my site.
I can’t seem to change the aspect ratio as far as I open the images. In fact when I open them I see white borders. How can I change the proportion by setting it 1.1 for both thumbnails and open photos?

Thanks to all

Inoltre, come posso centrare la scritta “apri foto”?