| 1 | .clover-video { |
| 2 | width: 100%; |
| 3 | border: 4px solid var(--fg); |
| 4 | display: flex; |
| 5 | flex-direction: column; |
| 6 | } |
| 7 | .clover-video.minimal { |
| 8 | border: none; |
| 9 | } |
| 10 | .clover-video video { |
| 11 | background-color: transparent; |
| 12 | } |
| 13 | .clover-video .stack { |
| 14 | position: relative; |
| 15 | overflow: hidden; |
| 16 | display: flex; |
| 17 | flex-direction: column; |
| 18 | background-color: black; |
| 19 | } |
| 20 | .clover-video video { |
| 21 | width: 100%; |
| 22 | height: 100%; |
| 23 | } |
| 24 | .clover-video h2 { |
| 25 | margin-top: 0; |
| 26 | } |
| 27 | .clover-video .fallback { |
| 28 | background-color: #222b; |
| 29 | color: white; |
| 30 | padding: 2rem; |
| 31 | position: absolute; |
| 32 | left: 0; |
| 33 | top: 0; |
| 34 | width: 100%; |
| 35 | height: 100%; |
| 36 | } |
| 37 | .clover-video video:has(~ .fallback > *) { |
| 38 | filter: blur(20px); |
| 39 | } |
| 40 | .clover-video figcaption { |
| 41 | background-color: var(--fg); |
| 42 | color: var(--bg); |
| 43 | width: 100%; |
| 44 | margin-top: -1px; |
| 45 | padding-bottom: 2px; |
| 46 | } |