html, body { margin: 0; padding: 0; height: 100%; overflow: hidden; } body { display: flex; justify-content: center; align-items: center; background-color: #000; } #videoContainer { width: 100vw; /* Full viewport width */ height: 100vh; /* Full viewport height */ } .video-grid { display: grid; gap: 5px; /* Space between videos */ width: 100%; height: 100%; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); grid-auto-rows: 1fr; } .video-grid video { width: 100%; height: 100%; object-fit: cover; /* Maintain video aspect ratio */ background: #000; } .video-wrapper{ position: relative; } .mute-unmute-btn { height: 40px; width: 40px; position: absolute; left: 10px; bottom: 10px; background: rgba(0, 0, 0, 0.5); color: white; border: none; border-radius: 50%; padding: 10px; cursor: pointer; transition: background 0.3s ease; } .mute-unmute-btn-mic { bottom: 60px; } .mute-unmute-btn:hover { background: rgba(0, 0, 0, 0.8); } .volume-control { position: absolute; left: 60px; bottom: 10px; width: 120px !important; height: 10px; cursor: pointer; } .video-wrapper { position: relative; display: inline-block; margin: 10px; border: 2px solid #000; border-radius: 10px; overflow: hidden; background-color: #000; box-shadow: 5px 5px 10px black; } #localVideoContainer{ width: 200px; position: fixed; bottom: 10px; right: 10px; } #localVideoContainer #mic-localVideo{ display: none; } #localVideoContainer:hover{ width: 300px; } #localVideoContainer:hover #mic-localVideo{ display: inline-block; } #localVideoContainer video { width: 100%; height: 100%; object-fit: cover; /* Maintain video aspect ratio */ background: #000; }