/**
 * Project Video
 */

.project-video {
  display: block;
  width: 100%;
  max-width: 341px;
  color: var(--color-neutral--1);
  margin: 1.5rem auto;
  cursor: pointer;
}
.project-video__content {
  padding: 1rem 2rem;
}
.project-video__content h3,
.project-video__content p {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  margin: 0;
}
.project-video__content h3 {
  font-size: 2rem;
  color: var(--color-neutral--1);
}
.project-video__content p {
  color: var(--color-neutral--2);
  font-size: 1rem;
  letter-spacing: 0.18px;
}

.project-video__image {
  position: relative;
}
.project-video__image::before {
  content: "";
  position: absolute;
  display: block;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 174px;
  height: 174px;
  background-position: center;
  background-repeat: no-repeat;
  background-image: url("../../images/play.svg");
  opacity: 0;
  transition: 0.2s;
}
.project-video:hover .project-video__image::before {
  opacity: 1;
}
@media all and (min-width: 768px){
  .project-video {
    max-width: 511px;
    margin: 0 auto;
  }
  .project-video__content {
    padding: 1rem 4rem;
  }
}
@media all and (min-width: 1024px){
  .project-video {
    max-width: 682px;
  }
}


/**
 *
 */


@media all and (min-width: 768px){
  .layout__region:nth-child(2n) .project-video{
    transform: translateY(5rem);
  }
}


/**
 * Modal
 */

.project-video__modal {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: rgba(29, 29, 27, 0.25);
}
.project-video__modal.js-active {
  display: flex;
}
.project-video__modal-content  {
  position: absolute;
  top: 2rem;
  right: 2rem;
  bottom: 2rem;
  left: 2rem;
}
.project-video__modal-content video{
  width: 100% !important;
  height: 100% !important;
  background-color: #000;
}
@media (min-width: 1500px) {
  .project-video__modal-content  {
    top: 10vh;
    right: 10vh;
    bottom: 10vh;
    left: 10vh;
  }
}


/**
 * Button Close
 */

.project-video__close {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 48px;
  height: 48px;
  text-indent: -999px;
  overflow: hidden;
  border: none;
  background-color: var(--color-primary--1);
  border-radius: 100%;
  background-position: center;
  background-size: 16px 16px;
  background-repeat: no-repeat;
  background-image: url("../../images/header/close.svg");
  cursor: pointer;
}
