/**
 * YouTube video lightbox (Figma 270:3426).
 *
 * @package Atsko
 */

.atsko-video-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 2rem;
  border: 0;
  background: transparent;
  box-sizing: border-box;
}

.atsko-video-modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.atsko-video-modal[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.atsko-video-modal__panel {
  position: relative;
  width: min(100%, 64rem);
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.atsko-video-modal__close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.atsko-video-modal__close:hover,
.atsko-video-modal__close:focus-visible {
  color: var(--atsko-link-light, #89ccff);
}

.atsko-video-modal__frame,
.atsko-video-modal__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

html.atsko-video-open,
html.atsko-video-open body {
  overflow: hidden;
}

@media (max-width: 700px) {
  .atsko-video-modal {
    padding: 3.5rem 0.75rem 0.75rem;
  }

  .atsko-video-modal__close {
    top: -2.75rem;
    right: 0.25rem;
  }
}
