.qb-video-carousel {
  position: relative;
}

/* Thumbnail / image container */
.qb-video-thumb,
.qb-carousel-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  position: relative; /* ensure overlay positions correctly */
}

/* Overlay play button */
.qb-video-overlay-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  color: #fff;
  opacity: 0.85;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.qb-video-overlay-play:hover {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.qb-video-overlay-pause {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  color: #fff;
  opacity: 0.85;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.qb-video-overlay-pause:hover {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}
/* Overlay caption/icon */
.qb-carousel-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 14px;
  z-index: 1;
}

/* Modal styling */
.qb-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0,0,0,0.8);
}

.qb-modal-content {
  position: relative;
  margin: 5% auto;
  max-width: 800px;
  background: #000;
  padding: 10px;
}

.qb-modal video,
.qb-modal img {
  width: 100%;
  height: auto;
  display: block;
}

.qb-modal-close {
  position: absolute;
  top: 5px; right: 10px;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
}
