Vertical CMS images turned horizontal


I made a CMS photo gallery and it looks all fine in the editor, but on the live website some vertical images are turned horizontal. Why is that? And how can I prevent this?

Here is my public share link:

(how to access public share link)