/* jsvideogallery front-end CSS */
.jsvg-thumb-video {
  position: relative;
  cursor: pointer;
}
.jsvg-play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.jsvg-play-badge::before {
  content: '';
  display: inline-block;
  margin-left: 3px;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent #fff;
}
.jsvg-slide-video video {
  width: 100%;
  height: auto;
  display: block;
}

/* Overlay for fallback gallery video playback */
#jsvg-video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10500;
  padding: 20px;
  box-sizing: border-box;
}
#jsvg-video-overlay .jsvg-overlay-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
}
#jsvg-video-overlay .jsvg-overlay-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
#jsvg-video-overlay .jsvg-overlay-content video {
  width: 100%;
  height: auto;
  max-height: 100vh;
  background: #000;
}
#jsvg-video-overlay .jsvg-overlay-close {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #fff;
  color: #000;
  border: none;
  font-size: 24px;
  line-height: 24px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Prevent the default expander anchor in Warehouse from intercepting clicks on video slides */
.product-image-large.jsvg-slide-video .expander {
  pointer-events: none;
}