.videosPopup {
  position: fixed;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  top: 0;
  left: 0;
  z-index: 9999999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  /* visibility: visible; */
  transition: 0.35s all;
  padding: 0 !important;
}

.active {
  display: flex;
  opacity: 1;
  visibility: visible;
  align-items: center;
  padding: 0 40px;
}

.blur {
  filter: blur(13px);
}

.videosPopup__body {
  width: 100%;
  display: contents;
}
.videosPopup__content {
  margin: auto;
  background: white;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  color: black;
  position: relative;
  transition: 0.35s all;
  transform: scale(0);
  background-color: rgba(0, 0, 0);

  box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.25);
}

.videosPopup__btn {
  position: absolute;
  top: 40px;
  right: 40px;
  color: black;
  cursor: pointer;
  color: white;
  font-size: 45px;

  text-decoration: none;
  border: none;
  outline: inherit;
  background-color: inherit;
}

.videosPopup__btn:hover {
  cursor: pointer;
  color: #fa4515;
  transition: 0.3s ease-in-out;
}

.videosPopup__btn:after {
  display: block;
  content: "";
  border-bottom: solid 5px #fa4515;
  padding-top: 5px;
  transform: scaleX(0);
  transition: transform 200ms ease-in-out;
}
.videosPopup__btn:hover:after {
  transform: scaleX(1);
}
.videosPopup__btn:after {
  transform-origin: 0% 50%;
}

.videosPopup.active .videosPopup__content {
  -webkit-transform: scale(1);
  transform: scale(1);
  -webkit-transition: 0.5s all;
  transition: 0.5s all;
}

.videosPopup__video {
  width: 75%;
  height: 75%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

@media screen and (max-width: 1500px) {
  .videosPopup__video {
    width: 90%;
    height: 60%;
  }
}

@media screen and (max-width: 1170px) {
  .videosPopup__content {
    padding-left: 40px;
    padding-right: 40px;
  }
  .videosPopup__video {
    width: 100%;
    padding-left: 40px;
    padding-right: 40px;
    height: 46%;
  }
  .videosPopup__btn {
    font-size: 35px;
  }
}

@media screen and (max-width: 768px) {
  .videosPopup__video {
    height: 30%;
  }
}

@media screen and (max-width: 500px) {
  .videosPopup__video {
    height: 23%;
  }
  .videosPopup__video {
    padding-left: 0px;
    padding-right: 0px;
  }
  .videosPopup__btn {
    font-size: 30px;
  }
}
