.wp-block-video.is-style-video-brand::before {
    content: "";
    background-image: url(../icons/logo-icon-white.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 6rem;
    height: 6rem;
    pointer-events: none;
    position: absolute;
    left: -3rem;
    top: -3rem;
    transform: rotate(-15deg);
    z-index: 1;
}

.wp-block-video--toggle {
    position: absolute;
    inset: 0;
    appearance: none;
    background-color: rgba(0,0,0,0.15);
    border: none;
    border-radius: 0.75rem;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.2s ease-out 0.2s;
}

.wp-block-video--toggle-wrapper {
    align-items: center;
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
    height: 100%;
    inset: 0;
    transform: translateY(0);
    transition: transform 0.4s ease-out, height 0.4s ease-out;
    width: 100%;
}

.wp-block-video--toggle-icon {
    display: flex;
    align-items: center;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    color: var(--wp--preset--color--brand);
    background-color: var(--wp--preset--color--base);
    border-radius: 50vw;
    height: 5rem;
    width: 5rem;
    transition: transform 0.3s 0.1s ease-out, background-color 0.2s ease-out, opacity 0.25s ease-out;
    transform: scale(1);
}

.wp-block-video--toggle-icon::before,
.wp-block-video--toggle-icon::after {
    line-height: 1;
    position: absolute;
    transform: scale(1);
    transition: opacity 0.25s ease-out 0.125s, transform 0.3s ease-out;
}

.wp-block-video--toggle-icon::before {
    content: "\00d7";
    opacity: 0;
    font-size: 3rem;
}

.wp-block-video--toggle-icon::after {
    content: "";
    background-color: currentColor;
    mask-image: url(../icons/play.svg);
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    width: 2rem;
    height: 2rem;
}

.wp-block-video--toggle:hover {
    background-color: rgba(0,0,0,0.25);
}

.wp-block-video--toggle:focus,
.wp-block-video.is-style-video-brand:focus-within video {
    outline: none;
}

.wp-block-video--toggle:hover .wp-block-video--toggle-icon,
.wp-block-video--toggle:focus .wp-block-video--toggle-icon {
    transform: scale(1.1);
}

.wp-block-video--toggle:focus .wp-block-video--toggle-icon {
    background-color: var(--wp--preset--color--brand);
    color: var(--wp--preset--color--base);
}

.wp-block-video--custom-controls.playing .wp-block-video--toggle {
    background-color: transparent;
}

.wp-block-video--custom-controls.playing .wp-block-video--toggle-wrapper {
    transform: translateY(calc(-50% + 2.5rem));
    height: 2.5rem;
}

.wp-block-video--custom-controls.playing .wp-block-video--toggle-icon {
    transform: scale(0.5);
    opacity: 0.5;
}

.wp-block-video--custom-controls.playing .wp-block-video--toggle:focus .wp-block-video--toggle-icon {
    opacity: 1;
}

.wp-block-video--custom-controls.playing .wp-block-video--toggle-icon::before {
    opacity: 1;
}

.wp-block-video--custom-controls.playing .wp-block-video--toggle-icon::after {
    opacity: 0;
}

.wp-block-video--custom-controls.playing .wp-block-video--toggle:hover .wp-block-video--toggle-icon {
    opacity: 1;
}

.wp-block-video.is-style-video-brand > video[controls] + .wp-block-video--toggle {
    height: calc(100% - 4rem);
}
