/**
 * Event Gallery — Video Lightbox styles
 */

.coem-video-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.coem-video-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  cursor: pointer;
}

.coem-video-modal__content {
  position: relative;
  width: min(960px, 100%);
  max-width: 100%;
}

.coem-video-modal__player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.coem-video-modal__player iframe,
.coem-video-modal__player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.coem-video-modal__close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.coem-video-modal__close:hover {
  opacity: 0.8;
}

@media (max-width: 600px) {
  .coem-video-modal__close {
    top: -38px;
  }
}

body.coem-video-modal-open {
  overflow: hidden;
}
