/**
 * Autoplaying looped video with a sound-only control.
 * The wrapper is created by video-sound.js; the block markup only carries
 * .video-sound__player on the <video> itself.
 */

.video-sound {
  position: relative;
  display: block;
  line-height: 0;
}

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

.video-sound__toggle {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  line-height: 1;
  cursor: pointer;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.video-sound__toggle:hover,
.video-sound__toggle:focus-visible {
  background: rgba(0, 0, 0, 0.7);
  border-color: #fff;
  transform: scale(1.06);
}

.video-sound__toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 575.98px) {
  .video-sound__toggle {
    right: 12px;
    bottom: 12px;
    width: 40px;
    height: 40px;
  }

  .video-sound__toggle svg {
    width: 18px;
    height: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-sound__toggle {
    transition: none;
  }

  .video-sound__toggle:hover,
  .video-sound__toggle:focus-visible {
    transform: none;
  }
}
