/*------------------------------------------------------------ 
  Video Section
------------------------------------------------------------*/

.video-section {
  -webkit-transition: visibility 1s cubic-bezier(0.86, 0, 0.07, 1), opacity 1s cubic-bezier(0.86, 0, 0.07, 1),
    -webkit-transform 1s cubic-bezier(0.86, 0, 0.07, 1);
  transition: visibility 1s cubic-bezier(0.86, 0, 0.07, 1), opacity 1s cubic-bezier(0.86, 0, 0.07, 1),
    -webkit-transform 1s cubic-bezier(0.86, 0, 0.07, 1);
  -o-transition: visibility 1s cubic-bezier(0.86, 0, 0.07, 1), opacity 1s cubic-bezier(0.86, 0, 0.07, 1),
    transform 1s cubic-bezier(0.86, 0, 0.07, 1);
  transition: visibility 1s cubic-bezier(0.86, 0, 0.07, 1), opacity 1s cubic-bezier(0.86, 0, 0.07, 1),
    transform 1s cubic-bezier(0.86, 0, 0.07, 1);
  transition: visibility 1s cubic-bezier(0.86, 0, 0.07, 1), opacity 1s cubic-bezier(0.86, 0, 0.07, 1),
    transform 1s cubic-bezier(0.86, 0, 0.07, 1), -webkit-transform 1s cubic-bezier(0.86, 0, 0.07, 1);
  z-index: 9999;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  position: fixed !important;
  /* top: 50%; */
  /* left: 50%; */
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  /* -webkit-transform: translate(-50%, -50%) scale(0.01); */
  /* -ms-transform: translate(-50%, -50%) scale(0.01); */
  /* transform: translate(-50%, -50%) scale(0.01); */
  -webkit-transform: scale(0.01);
  -ms-transform: scale(0.01);
  transform: scale(0.01);
  background: rgba(29, 37, 44, 0.95);
  /* padding: 1.875rem; */
  padding: 40px 20px;
}

.video-section .video {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 100%;
  max-height: 924px;
  margin: auto;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: opacity 0.5s cubic-bezier(0.86, 0, 0.07, 1) 0.5s,
    visibility 0.5s cubic-bezier(0.86, 0, 0.07, 1) 0.5s;
  -o-transition: opacity 0.5s cubic-bezier(0.86, 0, 0.07, 1) 0.5s, visibility 0.5s cubic-bezier(0.86, 0, 0.07, 1) 0.5s;
  -webkit-transition: opacity 0.5s cubic-bezier(0.86, 0, 0.07, 1) 0.5s,
    visibility 0.5s cubic-bezier(0.86, 0, 0.07, 1) 0.5s;
  -webkit-transition: opacity 0.5s cubic-bezier(0.86, 0, 0.07, 1) 0.5s,
    visibility 0.5s cubic-bezier(0.86, 0, 0.07, 1) 0.5s;
  transition: opacity 0.5s cubic-bezier(0.86, 0, 0.07, 1) 0.5s, visibility 0.5s cubic-bezier(0.86, 0, 0.07, 1) 0.5s;
}

.video-section .video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  max-width: 520px;
  height: 100%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

/*------------------------------------------------------------ 
  Video Open
------------------------------------------------------------*/

.video-section.vimeo-video-1.video-open,
.video-section.vimeo-video-2.video-open,
.video-section.vimeo-video-3.video-open,
.video-section.vimeo-video-4.video-open,
.video-section.vimeo-video-5.video-open {
  opacity: 1;
  visibility: visible;
  /* -webkit-transform: translate(-50%, -50%) scale(1); */
  /* -ms-transform: translate(-50%, -50%) scale(1); */
  /* transform: translate(-50%, -50%) scale(1); */
  -webkit-transform: scale(1);
  -ms-transform: scale(1);
  transform: scale(1);
}

.video-section.vimeo-video-1.video-open .video,
.video-section.vimeo-video-2.video-open .video,
.video-section.vimeo-video-3.video-open .video,
.video-section.vimeo-video-4.video-open .video,
.video-section.vimeo-video-5.video-open .video {
  opacity: 1;
  visibility: visible;
}

/*------------------------------------------------------------ 
  Video Close Button
------------------------------------------------------------*/

.video-section .video-close {
  display: none;
  position: absolute;
  /* top: -35px; */
  /* right: 0; */
}

.video-section .video-close::after,
.video-section .video-close::before {
  content: "";
  position: absolute;
  height: 0.25rem;
  width: 1.875rem;
  border-radius: 2px;
  background: #fff;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%) rotate(45deg);
  -ms-transform: translate(-50%, -50%) rotate(45deg);
  transform: translate(-50%, -50%) rotate(45deg);
  -webkit-transition: background 300ms ease;
  -o-transition: background 300ms ease;
  transition: background 300ms ease;
}

.video-section .video-close:hover::after,
.video-section .video-close:hover::before {
  background: #b5ada5;
}

.video-section .video-close::before {
  -webkit-transform: translate(-50%, -50%) rotate(-45deg);
  -ms-transform: translate(-50%, -50%) rotate(-45deg);
  transform: translate(-50%, -50%) rotate(-45deg);
}

.video-section .video-close.close-active {
  width: 30px;
  height: 30px;
  -webkit-transition: opacity 0.3s linear;
  -o-transition: opacity 0.3s linear;
  transition: opacity 0.3s linear;
  display: block;
  /* right: 0.9375rem; */
  /* top: 0.9375rem; */
  right: 20px;
  top: 20px;
  position: absolute;
  text-indent: -9999px;
  cursor: pointer;
  z-index: 12;
}

/*------------------------------------------------------------ 
  Video Section 2
------------------------------------------------------------*/

.video-section-2.about-section {
  padding-top: 0;
}

/*------------------------------------------------------------ 
  min-width: 768px
------------------------------------------------------------*/

@media (min-width: 768px) {
  .video-section {
    padding: 40px;
  }

  .video-section .video-close {
    top: 0.3125rem;
  }

  .video-section .video-close {
    /* top: 0; */
    /* right: -40px; */
  }

  .video-section .video-close::after,
  .video-section .video-close::before {
    width: 2.5rem;
  }
}

/*------------------------------------------------------------ 
  min-width: 992px
------------------------------------------------------------*/

@media (min-width: 992px) {
  .video-section .video-close {
    top: 0.625rem;
  }
}

/*------------------------------------------------------------ 
  min-width: 1200px
------------------------------------------------------------*/

@media (min-width: 1200px) {
  .video-section .video-close {
    top: 1.5625rem;
    right: 3.125rem;
  }
}
