/* Video playback modal */
.tgwv-video-modal[hidden] {
  display: none !important;
}

.tgwv-video-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.tgwv-video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.72);
}

.tgwv-video-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  background: #111;
  color: #fff;
  border-radius: 12px;
  padding: 1rem 1rem 1.25rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.tgwv-video-modal__close {
  position: absolute;
  top: 0.35rem;
  right: 0.5rem;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.tgwv-video-modal__title {
  margin: 0 2rem 0.75rem 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.tgwv-video-modal__body {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.tgwv-video-modal__body iframe,
.tgwv-video-modal__body video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.tgwv-video-modal__empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 1rem 1.25rem;
  text-align: center;
  color: #ddd;
  font-size: 0.95rem;
  line-height: 1.5;
}

html.tgwv-video-modal-open {
  overflow: hidden;
}
