I'm tired of seeing people use padding-top hacks for aspect ratios anymore. It's so messy and makes the DOM harder to read when you have to wrap everything in a dedicated container just to keep the height from collapsing. Modern browsers handle the aspect-ratio property perfectly fine now, so there's no reason to stick with the old way. Just set it directly on the video or iframe tag.
iframe {width: 100%;aspect-ratio: 16 / 9;}It keeps the layout stable without that
extra wrapper div cluttering up the component. It's much cleaner for anyone trying to maintain the markup later. Just don't forget to set a width or it'll default to the intrinsic size.