/*
 * Video: play button overlay (shared across all display types/layouts)
 *
 * This is intentionally tiny and safe to enqueue globally for displayed galleries.
 */

/* Back-compat: older templates/JS may inject a <span class="ngg-video-play-overlay"> */
.ngg-video-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  z-index: 3;
}

.ngg-video-play-overlay:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-35%, -50%);
  width: 0;
  height: 0;
  border-left: 14px solid rgba(255, 255, 255, 0.95);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

/*
 * Preferred: set data-ngg-video-play-overlay="1" on the clickable container (usually <a>).
 * This avoids the overlay node being removed by layout scripts that rewrite anchor contents.
 */
a[data-ngg-video-play-overlay="1"],
div[data-ngg-video-play-overlay="1"] {
  position: relative;
  display: block;
}

a[data-ngg-video-play-overlay="1"]::before,
div[data-ngg-video-play-overlay="1"]::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  z-index: 50;
}

a[data-ngg-video-play-overlay="1"]::after,
div[data-ngg-video-play-overlay="1"]::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-35%, -50%);
  width: 0;
  height: 0;
  border-left: 14px solid rgba(255, 255, 255, 0.95);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  pointer-events: none;
  z-index: 51;
}

/* Ensure a positioned ancestor for the overlay across common NextGEN layouts */
.ngg-galleryoverview .ngg-gallery-thumbnail a,
.ngg-imagebrowser a,
.ngg-gallery-singlepic-image a,
.ngg-pro-masonry-item > a,
.nextgen_pro_thumbnail_grid .image-wrapper > a,
.nextgen_pro_film .image-wrapper > a,
.nextgen_pro_sidescroll .image-wrapper > a,
.nextgen_pro_blog_gallery .image-wrapper > a,
.tiled-gallery-item a,
.ngg-pro-mosaic-item a,
.galleria-stage .galleria-image,
.galleria-thumbnails .galleria-image {
  position: relative;
  display: block;
}
