/* productsync — product videos (Hummingbird) */

/* Listing: the video covers the image only once it is playing (no black frame while loading). */
.psync-video-box {
  position: relative;
}

.psync-video-box > .psync-video__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.psync-video-box.is-playing > .psync-video__media {
  opacity: 1;
}

/* Product page and zoom modal: full width at the video's own ratio (2:3, like the product photos). */
.psync-video-slide .psync-video__media {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #fff;
}

.product-images-modal .psync-video-slide .psync-video__media {
  max-height: 85vh;
}

/* Video thumbnail: first image with a play mark. */
.psync-video-thumb {
  position: relative;
}

.psync-video-thumb::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  margin: -0.6rem 0 0 -0.4rem;
  border-style: solid;
  border-width: 0.6rem 0 0.6rem 1rem;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.95);
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .psync-video-box > .psync-video__media {
    display: none;
  }
}
