.video-container{position:relative;width:100%;max-width:600px;height:400px;background-color:#000;overflow:hidden;margin:auto;display:flex;align-items:center;justify-content:center}.video-container img{width:100%;height:100%;object-fit:cover;display:block}.video-container video{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;display:none}