.eevlb-lock {
  overflow: hidden;
}

.eevlb-modal {
  --eevlb-overlay: rgba(0, 0, 0, 0.82);
  --eevlb-border-color: #ffffff;
  --eevlb-border-width: 0px;
  --eevlb-radius: 16px;
  --eevlb-close-color: #ffffff;
  --eevlb-close-size: 36px;
  --eevlb-max-width: 960px;

  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.eevlb-modal.is-open {
  display: flex;
}

.eevlb-overlay {
  position: absolute;
  inset: 0;
  background: var(--eevlb-overlay);
}

.eevlb-dialog {
  position: relative;
  width: min(calc(100vw - 48px), var(--eevlb-max-width));
  max-height: calc(100vh - 48px);
  margin: 0;
  z-index: 2;
}

.eevlb-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border: var(--eevlb-border-width) solid var(--eevlb-border-color);
  border-radius: var(--eevlb-radius);
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
}

.eevlb-video-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.eevlb-close {
  position: absolute;
  border: 0;
  background: transparent;
  color: var(--eevlb-close-color);
  font-size: var(--eevlb-close-size);
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  padding: 0;
  width: 44px;
  height: 44px;
}

.eevlb-close-outside .eevlb-close {
  top: -44px;
  right: -6px;
}

.eevlb-close-inside .eevlb-close {
  top: 8px;
  right: 8px;
}

@media (max-width: 640px) {
  .eevlb-modal {
    padding: 12px;
  }

  .eevlb-dialog {
    width: min(calc(100vw - 24px), var(--eevlb-max-width));
    max-height: calc(100vh - 24px);
  }

  .eevlb-close-outside .eevlb-close {
    top: -40px;
    right: 0;
  }
}
