I´ve added the code.
However, 1000px was way too big so I changed it to 800.
The code works perfectly with landscape images, but it compresses portrait photos. Please see the screenshots in the private content.
Which code should I use so that both images types look good in lightbox?
Thanks in advance.
Content is visible for topic creator and support staff only.