Why div(s) don't get up in the PopUp?

Actually the question, did this https://codepen.io/Maxim22/pen/aEbxEv

But div(s) with video does not stand in the Popup , and if a little bit to resize the window , they stand as necessary.
What is the reason and how to solve it through CSS
Because the site is loaded the window Chas .load to another page and
just to pull ( change the size to 1 px ) window via js doesn't help.
June 10th 19 at 14:48
1 answer
June 10th 19 at 14:50
Thanks, the script works. But for my needs does not fit, because when you upload this block to another page , though the feature worked but with a window that does not happen.
The solution was found in css
.block {
 max-height: 490px;

Find more questions by tags jQueryCSSHTMLJavaScript