.responsive-iframe-container { position: relative; width: 100%; overflow: hidden; padding-top: 56.2%; /* 16:9 Aspect Ratio (change if needed, e.g., 75% for 4:3) */ } .responsive-iframe-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }