button.ced-hero__video-toggle {
position: absolute;
z-index: 1;
bottom: 0.375rem;
inset-inline-end: var(--wp--style--root--padding-right, 1rem);
display: flex;
align-items: center;
justify-content: center;
width: 2rem;
height: 2rem;
margin: 0 !important; padding: 0;
border: 0;
border-radius: 0;
background-color: rgb(6 27 127 / 80%); color: #fff;
cursor: pointer;
transition: background-color 0.2s;
}
button.ced-hero__video-toggle[hidden] {
display: none;
}
button.ced-hero__video-toggle:hover {
background-color: var(--wp--preset--color--primary, #061b7f);
}
button.ced-hero__video-toggle:focus-visible {
outline: 2px solid #fff;
outline-offset: 2px;
}
.ced-hero__video-toggle svg {
width: 1rem;
height: 1rem;
fill: currentColor;
}
.ced-hero__video-toggle .ced-hero__video-icon-play,
.ced-hero__video-toggle.is-paused .ced-hero__video-icon-pause {
display: none;
}
.ced-hero__video-toggle.is-paused .ced-hero__video-icon-play {
display: block;
}
@media (min-width: 768px) {
button.ced-hero__video-toggle {
bottom: 1.5rem;
inset-inline-end: max(
var(--wp--style--root--padding-right, 1rem),
calc((100% - var(--wp--style--global--wide-size, 101.25rem)) / 2)
);
width: 2.5rem;
height: 2.5rem;
}
.ced-hero__video-toggle svg {
width: 1.25rem;
height: 1.25rem;
}
}
@media (prefers-reduced-motion: reduce) {
button.ced-hero__video-toggle {
transition: none;
}
}