Include this script into your page along with the iframe for a responsive media embed
This procedure is tedious, but it requires very little fancy math and it's conceptually beautiful. You ought to be able to look at the finished product and explain ...