.video-disclaimer--main-wrapper {
  position: relative;
}

/*
 * The video_embed_field responsive formatter positions the iframe absolutely
 * against .video-embed-field-responsive-video. Our injected wrapper becomes the
 * new positioning context, so it must fill that 16:9 box or the iframe collapses
 * to 0 height.
 */
.video-embed-field-responsive-video .video-disclaimer--main-wrapper {
  position: absolute;
  inset: 0;
}

/*
 * Core Media (Blazy) sizes .media--video via aspect-ratio instead of a
 * padding-bottom box. The injected wrapper must fill it the same way, otherwise
 * the iframe (height:100%) and the .prevent-wrapper overlay collapse to 0
 * height and clicks never reach the disclaimer. Scoped to the two known video
 * fields so other .media--video usages are untouched.
 */
.field--name-field-c-media-item-media .media--video,
.field--name-field-c-image .media--video {
  position: relative;
}

.field--name-field-c-media-item-media .video-disclaimer--main-wrapper,
.field--name-field-c-image .video-disclaimer--main-wrapper {
  position: absolute;
  inset: 0;
}

.video-disclaimer .prevent-wrapper,
.video-disclaimer--main-wrapper .prevent-wrapper {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 10;
  cursor: pointer;
}

.video-disclaimer--modal-wrapper {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%, -50%, 0);
  z-index: 100;
  width: 500px;
  max-width: 90%;
  box-sizing: border-box;
  background: white;
  border: 1px solid black;
  border-radius: 5px;
  padding: 30px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-disclaimer--modal-wrapper.active {
  opacity: 1;
}
