JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script>
<div class="clickme" id="161171581">
Click me
</div>

<div id="video-popup-container">
  <div id="video-popup-close" class="fade"><i class="fa fa-times"></i></div>
  <div id="video-popup-iframe-container">
    <iframe id="video-popup-iframe" src="" width="100%" height="100%" frameborder="0"></iframe>
  </div>
</div>

CSS

#video-popup-overlay {
  display: none;
  position: fixed;
  z-index: 995;
  top: 0;
  background-color: #000;
  opacity: 0.8;
  width: 100%;
  height: 100%;
}

#video-popup-container {
  display: none;
  position: fixed;
  z-index: 996;
  width: 60%;
  left: 50%;
  margin-left: -30%;
  top: 20%;
  background-color: #fff;
}

#video-popup-close {
  cursor: pointer;
  position: absolute;
  right: -10px;
  top: -10px;
  z-index: 998;
  width: 25px;
  height: 25px;
  border-radius: 25px;
  text-align: center;
  font-size: 12px;
  background-color: #000;
  line-height: 25px;
  color: #fff;
}

#video-popup-close:hover {
  color: #DE0023;
}

#video-popup-iframe-container {
  position: absolute;
  z-index: 997;
  width: 100%;
  padding-bottom: 56.25%;
  border: 2px solid #000;
  border-radius: 2px;
}

#video-popup-iframe {
  z-index: 999;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
}

JavaScript

$(".clickme").on('click', function(e){ 
		e.preventDefault();
		$("#video-popup-iframe").attr('src', "//player.vimeo.com/video/"+$(this).attr('id'));
		$("#video-popup-iframe").on('load', function(){ $("#video-popup-overlay, #video-popup-container").show(); });
	});

$("#video-popup-close, #video-popup-overlay").on('click', function(e){
		$("#video-popup-overlay, #video-popup-iframe-container,#video-popup-close").hide();
    $("#video-popup-iframe").attr('src', '');
	});