/* === Video Popup Trigger === */
.custom-video-popup-trigger {
  cursor: pointer;
  display: flex;
  width: 100%;
  border-radius: var(--radius-m);
}

/* Inline video trigger */
.custom-video-popup-inline-video {
  position: relative;
  width: 100%;
  border-radius: inherit;
  overflow: hidden;
  background: #000;
}

.custom-video-popup-preview-video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.custom-video-popup-overlay {
  position: absolute;
  inset: 0;
  background-color: transparent;
  transition: background-color 0.3s ease;
  z-index: 1;
}

/* === Lightbox === */
.custom-video-popup-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-video-popup-lightbox.is-active {
  opacity: 1;
  visibility: visible;
}

.custom-video-popup-lightbox-inner {
  position: relative;
  width: 100%;
  max-width: 1400px;
}

.custom-video-popup-lightbox-media {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
}

.custom-video-popup-lightbox-media iframe,
.custom-video-popup-lightbox-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Close button */
.custom-video-popup-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  z-index: 1;
}

.custom-video-popup-close:hover {
  opacity: 1;
}

.custom-video-popup-close svg {
  width: 40px;
  height: 40px;
}
