/*!
 * Styling for the native YouTube video modal (assets/js/youtube-modal.js).
 * Plain overlay, not <dialog> — see the JS file for why.
 */
.yt-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.yt-modal-overlay.is-open {
  display: flex;
}

.yt-modal {
  position: relative;
  width: 100%;
  max-width: 960px;
  background: #000;
}

.yt-modal-aspect {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
}

.yt-modal-aspect iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.yt-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.yt-modal-close:hover,
.yt-modal-close:focus {
  color: #e3051b;
}
