File size: 1,761 Bytes
6e1f067 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
:root {
color-scheme: light dark;
}
* { box-sizing: border-box; }
html, body {
margin: 0; padding: 0;
font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
height: 100%;
}
body {
display: grid;
place-items: center;
background: #0b0b0b;
}
.container {
width: min(900px, 96vw);
margin: 4vh auto;
}
.video-wrap {
position: relative;
width: 100%;
overflow: hidden;
border-radius: 12px;
box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
/* Apply to all videos on the page, including WP blocks */
figure.wp-block-video video, video#mainVideo, video.auto-noui {
display: block;
width: 100%;
height: auto;
background: #000;
object-fit: cover;
pointer-events: none !important;
user-select: none !important;
-webkit-user-select: none !important;
}
/* Smooth rounded edges for videos */
figure.wp-block-video {
border-radius: 16px;
overflow: hidden;
background: #000;
}
figure.wp-block-video .no-ui-video-cover { border-radius: inherit; }
/* Hide any possible native controls completely */
video::-webkit-media-controls { display: none !important; }
video::-webkit-media-controls-enclosure { display: none !important; }
video::-webkit-media-controls-panel { display: none !important; }
video::-webkit-media-controls-overlay-play-button { display: none !important; }
video::-webkit-media-controls-start-playback-button { display: none !important; }
video::-webkit-media-controls-play-button { display: none !important; }
/* Transparent overlay to swallow all user interactions */
/* Overlay for wrappers to swallow interactions */
.video-blocker, figure.wp-block-video .no-ui-video-cover {
position: absolute; inset: 0;
z-index: 5;
pointer-events: auto;
background: transparent;
touch-action: none;
}
|