* {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

.container {
  max-width: 1310px;
  padding: 0 15px;
  margin: 0 auto;
}

.video-block {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: auto;
  margin: 0 auto;
  background-color: #000;
  padding: 12.5px;
  border-radius: 5px;
}

.video-block .video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: none;
}

.video-block .video-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  z-index: 1001;
  display: none;
  max-width: 90%;
  text-align: center;
}

.video-block .video-popup video {
  width: 100%;
  height: auto;
  max-height: 80vh;
}

.video-block .video-popup .close-btn {
  position: absolute;
  z-index: 100000;
  top: -30px;
  right: -30px;
  font-size: 24px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
  transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}

.video-block .video-popup .close-btn:hover {
  -webkit-transform: scale(1.2);
          transform: scale(1.2);
}

.video-block .video-popup .close-btn img {
  width: 24px;
  height: 24px;
}

.video-block .video-thumbnail {
  position: relative;
  cursor: pointer;
}

.video-block .video-thumbnail img {
  max-width: 100%;
  height: auto;
  aspect-ratio: attr(width)/attr(height);
}

.video-block .video-thumbnail .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #ffffff80;
  background-image: url("../../play.png");
  background-size: 50%;
  background-repeat: no-repeat;
  background-position: center;
  overflow: hidden;
  -webkit-transition: background-size 0.35s ease;
  transition: background-size 0.35s ease;
  cursor: pointer;
}

.video-block .video-thumbnail .play-btn:hover {
  background-size: 80%;
}

.video-block .video-thumbnail .play-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  border-radius: 50%;
  -webkit-transition: -webkit-transform 0.5s ease;
  transition: -webkit-transform 0.5s ease;
  transition: transform 0.5s ease;
  transition: transform 0.5s ease, -webkit-transform 0.5s ease;
  -webkit-transform: translate(-50%, -50%) scale(0);
          transform: translate(-50%, -50%) scale(0);
}

.video-block .video-thumbnail .play-btn:hover::before {
  -webkit-transform: translate(-50%, -50%) scale(1);
          transform: translate(-50%, -50%) scale(1);
}

.video-block.show-video .video-overlay {
  display: block;
}

.video-block.show-video .video-popup {
  display: block;
}
