/* Product Video Gallery for OpenCart 3 / Journal 3 - v1.1.0 */
.pv-host { position: relative; }

.pv-stage {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 40;
  display: none;
  background: #000;
}
.pv-stage.pv-on { display: block; }

.pv-media, .pv-media video, .pv-media iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
}
.pv-media video, .pv-media iframe {
  display: block;
  border: 0;
  object-fit: contain;
  background: transparent;
}

.pv-close {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 3;
  width: 36px; height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  font: 400 24px/36px Arial, sans-serif;
  text-align: center;
  cursor: pointer;
  transition: background .2s;
}
.pv-close:hover { background: rgba(0, 0, 0, .85); }

/* "Video" button on the main image */
.pv-badge {
  position: absolute;
  left: 12px; bottom: 12px;
  z-index: 35;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px 7px 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: #111;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .02em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
  cursor: pointer;
}
.pv-badge:hover { background: #fff; }
.pv-badge-icon {
  position: relative;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #111;
}
.pv-badge-icon:after {
  content: "";
  position: absolute;
  left: 8px; top: 6px;
  border-style: solid;
  border-width: 4px 0 4px 6px;
  border-color: transparent transparent transparent #fff;
}
.pv-playing .pv-badge { display: none; }

/* Video thumbnails */
.pv-video-thumb { cursor: pointer; }
.pv-thumb-holder { position: relative; display: block; overflow: hidden; }
.pv-thumb-media { display: block; width: 100%; height: auto; object-fit: cover; }
video.pv-thumb-media { aspect-ratio: 4 / 5; background: #111; }

.pv-play {
  position: absolute;
  left: 50%; top: 50%;
  width: 32px; height: 32px;
  margin: -16px 0 0 -16px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .9);
  pointer-events: none;
  transition: transform .2s, background .2s;
}
.pv-play:after {
  content: "";
  position: absolute;
  left: 12px; top: 9px;
  border-style: solid;
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent #fff;
}
.pv-video-thumb:hover .pv-play { transform: scale(1.1); background: rgba(0, 0, 0, .75); }
.pv-video-thumb.pv-active .pv-thumb-holder { outline: 2px solid currentColor; outline-offset: -2px; }

/* Own strip (used when the theme shows no thumbnails) */
.pv-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pv-thumbs .pv-thumb-item { width: 80px; }
