/* ==========================================================================
   Modal de vídeo
   ========================================================================== */

.video-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: var(--gutter);
  overscroll-behavior: contain;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}

.video-modal[hidden] { display: none; }
.video-modal.is-open { opacity: 1; }

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 11, 0.94);
}

.video-modal__dialog {
  position: relative;
  width: min(100%, 75rem);
  display: grid;
  gap: var(--space-md);
}

.video-modal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.video-modal__bar .label { color: var(--text); }

.video-modal__close {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-small);
  font-weight: 500;
  min-height: 2.75rem;
}

.video-modal__x {
  position: relative;
  width: 1rem;
  height: 1rem;
}

.video-modal__x::before,
.video-modal__x::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transform: rotate(45deg);
}

.video-modal__x::after { transform: rotate(-45deg); }

.video-modal__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
