.ckeditor-html5-video {
    position: relative;
    display: inline-block;
    width: 100%;
}

.ckeditor-html5-video video {
    display: block;
    width: 100%;
    height: auto;
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 153px;
    height: 153px;

    border: none;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.26);
    color: #000;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    z-index: 2;

    opacity: 0;
    visibility: hidden;

    transition: opacity 0.2s ease, background 0.2s ease;
}

@media (min-width: 768px) {
    .ckeditor-html5-video:hover .video-play-button,
    .ckeditor-html5-video:hover .video-sound-button {
        opacity: 1;
        visibility: visible;
    }
}

.video-play-button:hover {
    background: rgba(255, 255, 255, 0.35);
}

.video-play-icon {
    width: 69px;
    height: 78px;
    margin-left: 10px;

    background: url('../img/video-play.svg') center / contain no-repeat;

    font-size: 0;
    line-height: 0;
}

.video-pause-icon {
    display: none;
    position: relative;
    width: 69px;
    height: 78px;
}

.video-pause-icon::before,
.video-pause-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 10px;
    height: 54px;
    background: #000;
    border-radius: 5px;
    transform: translateY(-50%);
}

.video-pause-icon::before {
    left: 18px;
}

.video-pause-icon::after {
    right: 18px;
}

.ckeditor-html5-video.is-playing .video-play-icon {
    display: none;
}

.ckeditor-html5-video.is-playing .video-pause-icon {
    display: block;
}

.video-play-button:focus,
.video-play-button:active,
.video-sound-button:focus,
.video-sound-button:active {
    outline: none;
    box-shadow: none;
}

.video-sound-button {
    position: absolute;

    top: calc(50% - 150px);
    left: 50%;
    transform: translateX(-50%);

    width: 50px;
    height: 50px;

    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.26);

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    z-index: 3;

    opacity: 0;
    visibility: hidden;

    transition: opacity 0.2s ease, background 0.2s ease;
}

.video-sound-button:hover {
    background: rgba(255, 255, 255, 0.35);
}

.video-sound-icon {
    display: block;
    width: 24px;
    height: 24px;
    background: url('../img/video-muted.svg') center / contain no-repeat;
}

.video-sound-button.is-unmuted .video-sound-icon {
    background-image: url('../img/video-unmuted.svg');
}

@media (max-width: 767px) {
    .video-play-button {
        width: 70px;
        height: 70px;
    }

    .video-play-icon {
        width: 32px;
        height: 36px;
        margin-left: 5px;
    }

    .video-pause-icon {
        width: 32px;
        height: 36px;
    }

    .video-pause-icon::before,
    .video-pause-icon::after {
        width: 6px;
        height: 26px;
    }

    .video-pause-icon::before {
        left: 8px;
    }

    .video-pause-icon::after {
        right: 8px;
    }

    .video-sound-button {
        top: calc(50% - 75px);
        width: 32px;
        height: 32px;
    }

    .video-sound-icon {
        width: 16px;
        height: 16px;
    }

    .video-play-button,
    .video-sound-button {
        opacity: 0;
        visibility: hidden;
    }

    .ckeditor-html5-video.show-controls .video-play-button,
    .ckeditor-html5-video.show-controls .video-sound-button {
        opacity: 1;
        visibility: visible;
    }
}

video::-webkit-media-controls {
    display: none !important;
}