/* Bull Video - Front-end carousel video styles */

/* "Below" placement: tile strip rendered after the product image carousel. */
.bm-media-below {
  margin-top: 1rem;
}

.bm-media-below__grid {
  display: grid;
  gap: 0.5rem;
}

.bm-media-below__item .bm-media-wrapper {
  aspect-ratio: 16 / 9;
}


/* Video slide wrapper — matches product image aspect ratio */
.bm-media-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bm-media-wrapper--modal {
  aspect-ratio: 16 / 9;
  max-height: 80vh;
}

/* Poster overlay (YouTube/Vimeo click-to-play) */
.bm-media-poster {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.bm-media-play-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.85;
}

.bm-media-play-btn:hover {
  transform: scale(1.1);
  opacity: 1;
}

.bm-media-play-btn svg {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

/* Embedded iframe (YouTube/Vimeo) */
.bm-media-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* HTML5 video player */
.bm-media-video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

/* Thumbnails */
.bm-media-thumb {
  position: relative;
}

.bm-media-thumb-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.bm-media-thumb-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 20px;
  height: 14px;
  pointer-events: none;
}

.bm-media-thumb-badge svg {
  width: 100%;
  height: 100%;
}

.bm-media-thumb-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
  color: #fff;
  border-radius: 4px;
}
