.sts-video {
  overflow: hidden;
  border-radius: 8px;
  position: relative;
}
.sts-video--landscape {
  aspect-ratio: 1.7777777778;
  min-width: 320px;
}
@media (min-width: 1024px) {
  .sts-video--landscape {
    min-width: 480px;
  }
}
.sts-video--portrait {
  aspect-ratio: 0.5625;
  min-width: 156px;
  max-width: 450px;
}
@media (min-width: 1024px) {
  .sts-video--portrait {
    min-width: 280px;
  }
}
.sts-video video,
.sts-video iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.sts-video__media, .sts-video__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.sts-video__overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  pointer-events: none;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.sts-video__handler {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  border-radius: 1.25rem;
  overflow: hidden;
  position: absolute;
  left: 0.5em;
  bottom: 0.5em;
  z-index: 7;
  background-color: var(--wp--preset--color--base-10);
}
@media (min-width: 1024px) {
  .sts-video__handler {
    height: 3rem;
    bottom: 1rem;
    left: 1rem;
    border-radius: 1.5rem;
  }
}
.sts-video .site-header__brand {
  position: absolute;
  top: 0.5em;
  left: 0.5em;
  z-index: 7;
}
@media (min-width: 1024px) {
  .sts-video .site-header__brand {
    top: 1em;
    left: 1em;
    height: 3rem;
    width: 3rem;
  }
}
.sts-video__play-button {
  background-color: var(--wp--preset--color--accent-10);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  transform: 0.2s ease;
}
.sts-video__play-button .pause-icon {
  display: none;
}
.sts-video__play-button[data-playing=true] .play-icon {
  display: none;
}
.sts-video__play-button[data-playing=true] .pause-icon {
  display: block;
}
.sts-video__play-button img {
  height: 1.5rem;
  width: 1.5rem;
  transform: 0.2s ease;
}
@media (min-width: 1024px) {
  .sts-video__play-button img {
    height: 2rem;
    width: 2rem;
  }
}
.sts-video__play-button:hover {
  background-color: var(--wp--preset--color--accent-20);
}
.sts-video__play-button:hover img {
  transform: scale(1.1);
}
@media (min-width: 1024px) {
  .sts-video__play-button {
    width: 3rem;
    height: 3rem;
  }
}
.sts-video__play-button[data-playing=true] {
  background-color: var(--wp--preset--color--base-20);
}
.sts-video__external-shell {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: var(--wp--preset--color--base-50);
}
.sts-video__skeleton {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}
.sts-video__skeleton::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--sts-skeleton-base, #e5e9f0) 0%, var(--sts-skeleton-highlight, #f5f7fa) 50%, var(--sts-skeleton-base, #e5e9f0) 100%);
  background-size: 200% 100%;
  background-position: -50% 0;
  animation: sts-video-skeleton-shimmer 1.4s ease-in-out infinite;
}
.sts-video__skeleton--hidden {
  opacity: 0;
  visibility: hidden;
}
.sts-video__duration {
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.5;
  display: inline-block;
  margin: 0 1rem;
}
@media (min-width: 1024px) {
  .sts-video__duration {
    font-size: 1rem;
  }
}
.sts-video h2 {
  white-space: break-spaces;
  text-align: center;
  line-height: 1.5;
}
.sts-video__loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.35);
  z-index: 6;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.sts-video__loading.is-visible {
  opacity: 1;
  visibility: visible;
}
.sts-video__spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--wp--preset--color--accent-10);
  animation: sts-video-spinner-pulse 1.5s ease-in-out infinite;
  width: 2.5rem;
  height: 2.5rem;
}
@media (min-width: 1024px) {
  .sts-video__spinner {
    width: 3rem;
    height: 3rem;
  }
}
.sts-video__spinner img {
  height: 80%;
  width: 80%;
}
@media (min-width: 1024px) {
  .sts-video {
    border-radius: 16px;
  }
}

.sts-block-video.is-playing .sts-video__overlay,
.sts-video.is-playing .sts-video__overlay {
  opacity: 0;
  visibility: hidden;
}

@keyframes sts-video-spinner-pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.6;
  }
}
@keyframes sts-video-skeleton-shimmer {
  0% {
    background-position: -50% 0;
  }
  100% {
    background-position: 150% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sts-video__skeleton::before {
    animation: none;
    background: var(--sts-skeleton-base, #e5e9f0);
  }
}
