maybe you should try to add a max-height to the top section and the images of the ccard try to make the position absolute relative to the top container instead of doing it in the body, if needed add a 3rd media querie for tablets.
Great job with the js, i solved it using other methods but i like some of your code. I'll implement myself on my code some of your ideas!
Marked as helpful