| 1 |
/* ── Background Video ───────────────────────────────────────────────────────── */ |
| 2 |
.bkbv-outer { |
| 3 |
box-sizing: border-box; |
| 4 |
position: relative; |
| 5 |
overflow: hidden; |
| 6 |
} |
| 7 |
|
| 8 |
.bkbv-media { |
| 9 |
position: absolute; |
| 10 |
inset: 0; |
| 11 |
z-index: 0; |
| 12 |
overflow: hidden; |
| 13 |
} |
| 14 |
|
| 15 |
.bkbv-media video, |
| 16 |
.bkbv-media iframe { |
| 17 |
position: absolute; |
| 18 |
inset: 50% auto auto 50%; |
| 19 |
transform: translate(-50%, -50%); |
| 20 |
width: 100%; |
| 21 |
height: 100%; |
| 22 |
border: none; |
| 23 |
pointer-events: none; |
| 24 |
} |
| 25 |
|
| 26 |
/* 16:9 aspect — ensure iframe covers the box */ |
| 27 |
.bkbv-media iframe { |
| 28 |
/* Always at least 100vw wide and 56.25vw tall (16:9) */ |
| 29 |
min-width: 100%; |
| 30 |
min-height: 100%; |
| 31 |
width: 177.78vh; /* 16/9 × 100vh */ |
| 32 |
height: 56.25vw; /* 9/16 × 100vw */ |
| 33 |
} |
| 34 |
|
| 35 |
.bkbv-poster { |
| 36 |
position: absolute; |
| 37 |
inset: 0; |
| 38 |
width: 100%; |
| 39 |
height: 100%; |
| 40 |
object-fit: cover; |
| 41 |
transition: opacity 0.5s ease; |
| 42 |
} |
| 43 |
|
| 44 |
/* hide poster when video is playing */ |
| 45 |
.bkbv-outer.bkbv--playing .bkbv-poster { |
| 46 |
opacity: 0; |
| 47 |
} |
| 48 |
|
| 49 |
.bkbv-overlay { |
| 50 |
position: absolute; |
| 51 |
inset: 0; |
| 52 |
z-index: 1; |
| 53 |
pointer-events: none; |
| 54 |
} |
| 55 |
|
| 56 |
.bkbv-content { |
| 57 |
position: relative; |
| 58 |
z-index: 2; |
| 59 |
display: flex; |
| 60 |
flex-direction: column; |
| 61 |
} |
| 62 |
|
| 63 |
.bkbv-content, |
| 64 |
.bkbv-content p, |
| 65 |
.bkbv-content h1, |
| 66 |
.bkbv-content h2, |
| 67 |
.bkbv-content h3, |
| 68 |
.bkbv-content h4, |
| 69 |
.bkbv-content h5, |
| 70 |
.bkbv-content h6 { |
| 71 |
color: inherit; |
| 72 |
} |
| 73 |
|
| 74 |
@media (prefers-reduced-motion: reduce) { |
| 75 |
.bkbv-media video, |
| 76 |
.bkbv-media iframe { |
| 77 |
display: none !important; |
| 78 |
} |
| 79 |
.bkbv-outer.bkbv--playing .bkbv-poster { |
| 80 |
opacity: 1; |
| 81 |
} |
| 82 |
} |
| 83 |
|