@media (min-width:1025px) { #captions { font-size:18px; } } @media (max-width:1024px) { #captions { font-size:14px; } } #videocontainer { overflow-x:hidden; overflow-y:hidden; width:100%; margin:0 auto; text-align:center; box-sizing:border-box; } #playercontainer { position: relative; padding-top: 56.25%; box-sizing: border-box; text-align: center; overflow-y: hidden; } .main-player { position:absolute; margin:0 auto; top:0; left:0; width:100%; box-sizing:border-box; }