* { padding: 0; margin: 0; border: none; outline: none; } body{ display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 10px; padding: 10px; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } p { font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; font-size: 20px; } video { width: 100%; height: auto; cursor: pointer; background-color: dimgray; } body > div { box-sizing: border-box; overflow: hidden; display: flex; gap: 5px; flex-direction: column; } div button { position: absolute; right: 5px; bottom: 5px; z-index: 1; } .full-screen { position: fixed; z-index: 1; left: 0; top: 0; height: 100%; width: 100%; overflow: auto; } .full-screen video { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; height: 100%; background-color: black; }