Scale videos and images on Imaglr to fit on one screen
Scales down images on Imaglr so that they occupy a maximum of 90% of the height of the screen. This avoids having to scroll to see entire images, especially helpful if you use scaling on higher-DPI displays.
This was entirely written by ChatGPT (after a gorillion attempts and iterations) since I didn't want to spend time figuring out Imaglr's layout (which uses a framework with a kajillion CSS rules). It works for now, but if Imaglr change their site layout, it may bork in the future.