When I have a container with max-width:80vw and max-height:80vh, the image contained within it is not behaving properly in line with object-fit:contain. The image has height:100% and width:100% as well as object-fit:contain but the shortest dimension of the image fills the container with the longer dimension overflowing.
Please have a look at this url:
https://mutatedllama.pythonanywhere.com/share/7h25JNbi
Could somebody help me to understand where I am going wrong?