.block-video {
    position: relative;
    max-width: 100%;
}

.block-video video {
    display: block;
    max-width: 100%;
}

.block-video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.block-video.framed video {
    width: 100%;
    height: 100%;
}

.block-video.cover video {
    object-fit: cover;
}

.block-video.background {
    width: 100%;
    min-height: 240px;
    overflow: hidden;
}

.block-video.background video,
.block-video.background iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.block-video-action {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.block-video-play {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 50%;
    left: 50%;
    z-index: 3;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .6);
    color: white;
    cursor: pointer;
}

.block-video-play::before {
    content: '';
    display: block;
    margin-left: 5px;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 20px solid currentColor;
}

.block-video-play[hidden] {
    display: none;
}

.block-video-toggle {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    right: 12px;
    bottom: 12px;
    z-index: 4;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .6);
    color: white;
    cursor: pointer;
}

.block-video-toggle::before,
.block-video-toggle::after {
    content: '';
    display: block;
    width: 4px;
    height: 14px;
    background: currentColor;
}

.block-video-toggle.paused::before {
    width: 0;
    height: 0;
    margin-left: 4px;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 13px solid currentColor;
    background: none;
}

.block-video-toggle.paused::after {
    display: none;
}
