Noam! This is amazing—thank you for sharing.
My favorite part of this: it allows content to expand the container. All the other tricks I’ve tried either force you to crop content with
overflow: hidden; or abandon the aspect ratio entirely at some breakpoint.
Forked your CodePen to demo: https://codepen.io/tannerhodges/pen/WdWXVd
Thanks again for sharing. 👏👏👏