/* Video thumbnail (templates/components/video-thumbnail.html.twig).
   Image with a dark overlay and a play icon; opens a video-lightbox. */
.video-thumbnail {
  --video-thumbnail-play-size: 64px;
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: none;
  overflow: hidden;
  cursor: pointer;
}

.video-thumbnail__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay */
.video-thumbnail::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.48);
  transition: background-color 0.2s ease;
}

.video-thumbnail:hover::before,
.video-thumbnail:focus-visible::before {
  background: rgba(0, 0, 0, 0.32);
}

.video-thumbnail:focus-visible {
  outline: 3px solid var(--brand-off-white);
  outline-offset: -3px;
}

.video-thumbnail__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: var(--video-thumbnail-play-size);
  height: var(--video-thumbnail-play-size);
  transform: translate(-50%, -50%);
  background: url("../../images/icons/play.svg") no-repeat center / contain;
}
