/*Show big image*/
#galleryContainer{
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
  visibility: hidden;
  opacity: 0;
}
#galleryContainer img{
  border: solid 5px white;
  max-height: 80%;
  width: auto;
}
#galleryContainer.visible {
  opacity: 1;
  visibility: visible;
}


.portofolio{
    padding: 20px 50px;
}
.portofolio h1{
    color: #a5b4fc;
    font-size: 3.5em;
    margin-bottom: 30px;
    font-weight: bold;
}
.realisation{
    background-color: white;
    padding: 150px;
    padding-bottom: 50px;
}
.photo-hover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: black;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
  }
.photos_realisation{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr ;
    gap: 35px;
    margin: auto;
    max-width: 1000px;
    
}
.photos_realisation img{
    width: 100%;
    height: 100%;
}
.photos_realisation img:hover{
  /* Copy code to element you want to animate */
    animation: customAni 2s ease-in-out 0s infinite normal none;
    opacity: 0.8;
}
/* Copy this code after the above code */
@keyframes customAni {
    0% {
      transform: translate(0);
    }
  
    10% {
      transform: translate(-2px, -2px);
    }
  
    20% {
      transform: translate(2px, -2px);
    }
  
    30% {
      transform: translate(-2px, 2px);
    }
  
    40% {
      transform: translate(2px, 2px);
    }
  
    50% {
      transform: translate(-2px, -2px);
    }
  
    60% {
      transform: translate(2px, -2px);
    }
  
    70% {
      transform: translate(-2px, 2px);
    }
  
    80% {
      transform: translate(-2px, -2px);
    }
  
    90% {
      transform: translate(2px, -2px);
    }
  
    100% {
      transform: translate(0);
    }
  }  
@media screen and (max-width:996px) {
        .photos_realisation{
            grid-template-columns: repeat(1, 1fr);
            
        }
        .portofolio h1{
            text-align: center;
        }
        .photos_realisation img{
          width: 100%;
          height: 100%;
          align-items: start;
        }
        #galleryContainer img{
          width: 80%;
        }
}