/* jvb: click-to-play video (markup from ndxzsite/plugin/jvb.clicktoplay.php, behaviour in click-to-play.js).
   The video's still fills the player's box; the player only loads on click, so nothing goes to Vimeo/YouTube
   before. Linked with ?v=… : raise that number in the pages when this file changes. */
.jvb-play {
    position: relative;
    overflow: hidden;
    background: #000;
    cursor: pointer;
}
.jvb-play img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%!important;
    height: 100%!important;
    margin: 0!important;
    object-fit: contain;
}
.jvb-play button {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 72px;
    height: 72px;
    margin: -36px 0 0 -36px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    cursor: pointer;
}
.jvb-play button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -14px 0 0 -8px;
    border-style: solid;
    border-width: 14px 0 14px 24px;
    border-color: transparent transparent transparent #fff;
}
/* "plays via Vimeo": a small label under the button, same dark backing, so both read as one control */
.jvb-play-note {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 44px);
    padding: 2px 8px 3px;
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font: 9px/1.2 'Jost', sans-serif;
    letter-spacing: 0.02em;
    white-space: nowrap;
    pointer-events: none;
}
.jvb-play:hover button,
.jvb-play:hover .jvb-play-note,
.jvb-play button:focus-visible {
    background: rgba(0, 0, 0, 0.7);
}

/* Playing: the player fills the box, and a clear layer over it keeps the player's controls hidden (no hint
   either); the mouse pointer hides after half a second of rest (.jvb-idle, set by click-to-play.js). The next
   click pauses the video and removes the layer; then the player's controls show. */
.jvb-playing {
    cursor: default;
}
.jvb-playing iframe,
.jvb-play-shield {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.jvb-play-shield {
    cursor: default;
}
.jvb-play-shield.jvb-idle {
    cursor: none;
}
