Great article, thanks! I will definitely use for other projects but for my current project I'm having the same issue but with a slideshow gallery. I see in the code the aspect ratio is assigned as null. How can I get both portrait and landscape images to appear properly?
URL: https://butterfly-sapphire-tkd2.squarespace.com/
PW: brineintopedro