Google Search Results (difficult) layout of Videos section

I am in dire need of help. This videos section of my results page is turning into a train wreck. I had no idea how to get the layout so I used another person’s finished page and tried to use their html and css. I’m further along than I would’ve been, but I need help fixing it. I have no idea what to do.


results page:

the other student page I tried to use:


You didn’t set a width for the element with the videos, that means it will fit the screen. The person you copied from has a wrapper with a set width for the main content. I hope that makes sense to you.

Thanks. I was able to get through this with the help of this flexbox tutorial video. I ended up commenting out all of the borrowed html and css.