body {
  color: #111;
  background: black;
  overflow-x: hidden;
}


@font-face {
  font-family: mid;
  src: url(TerminaTest-Medium.otf);
}

section {
  padding: 10vw;
  height: 100%;
  min-height: 500vh;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: visible;

}

.credit {
  text-align: center;
  z-index: 999;
  font-size: 0.8rem;
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
.credit a {
  color: #fff;
}






.gallery {
  z-index: 1;
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 50%;
  box-sizing: border-box;
  padding: 0rem 1rem;
  transform: translateX(-50%);
  overflow: visible;
}
@media (max-width: 768px) {
  .gallery {
    padding: 0rem 0rem;
  }
  .image {
    height: 33vh !important;

  }


  
}



.col {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  align-self: flex-start;
  justify-self: flex-start;
  gap: 1.6vw;
}

.col:nth-child(2) {
  align-self: flex-end;
  justify-self: flex-end;
}


.image {
  width: 31vw;
  height: 80vh;
  margin-left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  
  display: flex;
  overflow: hidden;
  padding: 0rem;
  justify-content: space-evenly;
  filter:  saturate(0.2)  brightness(0.3);
}



.image:hover {
  z-index: 99999999999 !important;
  animation: light 0.3s forwards;
  
}

.image video {
  transition:  0.3s;
  transform: scale(1.1);

}

.image:hover video {
  transform: scale(1);
}








@keyframes light {
  0% {
    filter:  saturate(0.3)  brightness(0.4);


  }
  100% {
    filter: saturate(1) brightness(0.9);
  }
}

img {
  transition: 0.3s ease-out;
  height: 100%;
}

@keyframes ful { 100% { width: 100vw; height: 100vh;  left: 0; top: 0; } }


.content {
  left: 0;
  position: absolute;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  width: 100%;
  background: linear-gradient(to bottom,rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.919) 100%);
  height: 70vh;
  gap: 1rem;
  justify-content: center;
  opacity: 0;
  transition: 0.5s;
  z-index: 999;
  pointer-events: none;

}

.image:hover .content {
  opacity: 1;
}

.image:hover  .txt{
  opacity: 1;
  transform: translateX(0);
}

.image:hover  .play{
  opacity: 1;
  transform: scale(0.9);
}

.txt {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  color: white;
  justify-content: center;
  margin-bottom: 4rem;
  gap: 0.5rem;
  transition: 0.3s;
  transform: translateX(-2rem);
  opacity: 0;
}

.title {
  font-size: 1.6rem;
  position: relative;

}

.subtitle {
  font-size: 0.9rem;
  position: relative;

}
.play {
  margin-left: 3rem;
  margin-bottom: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: scale(0.7);
  transition: 0.4s;
}
.playimg {
  width: 5rem;
  height: 5rem;
}
.inverted {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  mix-blend-mode: difference;
}
#cursorCircle, #visibleCircle {
  position: absolute;
  width: 100px;
  height: 100px;
  z-index: 3;
  pointer-events: none;
}


