/**
 * Overlay de marca d'água em vídeos (folha PNG = mesmo algoritmo do burn-in das fotos).
 */
.bc-media-watermark-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  overflow: hidden;
}

.bc-gallery-scroll-media-frame {
  position: relative;
  display: inline-block;
  max-width: 100%;
  max-height: 75vh;
  line-height: 0;
  vertical-align: middle;
}

.bc-gallery-scroll-media-frame .bc-gallery-scroll-img,
.bc-gallery-scroll-media-frame .bc-gallery-scroll-video,
.bc-gallery-scroll-media-frame .bc-media-player {
  display: block;
  max-width: 100%;
  max-height: 75vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.bc-gallery-scroll-media-frame .bc-media-watermark-overlay {
  border-radius: 2px;
}

.bc-media-watermark-overlay__tiles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% 100%;
  /* background-image definido inline ou via JS */
}

.bc-gallery-scroll-media-frame .bc-media-watermark-overlay,
.bc-gallery-thumb-btn .bc-media-watermark-overlay,
.bc-media-player .bc-media-watermark-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Dentro do player: marca d'água sobre o vídeo, atrás dos controles */
.bc-media-player .bc-media-watermark-overlay {
  z-index: 1;
}

.bc-media-watermark-overlay__badge {
  position: absolute;
  right: max(8px, calc(var(--bc-wm-badge-size, 12px) * 0.6));
  bottom: max(8px, calc(var(--bc-wm-badge-size, 12px) * 0.6));
  z-index: 2;
  max-width: calc(100% - 16px);
  padding: var(--bc-wm-badge-pad, 0.7em);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.92);
  font-family: "DejaVu Sans", "Liberation Sans", Arial, sans-serif;
  font-size: var(--bc-wm-badge-size, 12px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bc-gallery-scroll-media .bc-media-watermark-overlay__badge {
  bottom: 8px;
  right: 8px;
}

.bc-gallery-thumb-btn .bc-media-watermark-overlay__badge {
  display: none;
}
