.zebra-film__thumb { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; margin: 0; border: 0; cursor: pointer; background: #111; color: #fff; }
.zebra-film__shade { position: absolute; inset: 0; background: rgba(0,0,0,.08); transition: background .25s ease; }
.zebra-film__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(.88); display: grid; place-items: center; width: 68px; height: 68px; border: 1px solid rgba(255,255,255,.8); border-radius: 999px; opacity: 0; visibility: hidden; font-size: 20px; padding-left: 3px; transition: opacity .2s ease, visibility .2s ease, transform .25s ease; }
.zebra-film__thumb:hover .zebra-film__shade, .zebra-film__thumb:focus-visible .zebra-film__shade { background: rgba(0,0,0,.22); }
.zebra-film__thumb:hover .zebra-film__play, .zebra-film__thumb:focus-visible .zebra-film__play { opacity: 1; visibility: visible; transform: translate(-50%,-50%) scale(1); }
/* Show the same control on both pages when there is no hover. */
@media (hover: none) {
  .zebra-film__thumb .zebra-film__play {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
  }
}
.zebra-film__thumb[hidden] { display: none; }

.zebra-film__frame > iframe, .product-video-frame > iframe {
  background: #101010;
  /* Hide the hairline where Vimeo's frame lands on a fractional pixel. */
  clip-path: inset(0 0 0 1px);
}
:is(.zebra-film__frame, .product-video-frame):has(> iframe:focus-visible) {
  outline: 2px solid #f0ece3;
  outline-offset: 4px;
}

/* Site branding on the video frame, clear of its playback controls. */
:is(.zebra-film__frame, .product-video-frame):has(> iframe[src*="player.vimeo.com/video/"])::after,
.product-video-frame.is-playing-local::after {
  content: "";
  position: absolute;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  z-index: 1;
  width: clamp(20px, 2.7vw, 30px);
  aspect-ratio: 1;
  background: center / contain no-repeat url("/wp-content/themes/inspiro-child/assets/zebra-identite/favicon-192.png");
  border-radius: 3px;
  opacity: .88;
  pointer-events: none;
}
