/* Show cursor */
.imgCursor{
  cursor: pointer;
} 
.gallery img{
  -webkit-transition: all 0.8s ease-in-out;
  -moz-transition: all 0.8s ease-in-out;
  -ms-transition: all 0.8s ease-in-out;
  -o-transition: all 0.8s ease-in-out;
      transition: all 0.8s ease-in-out;

  -webkit-filter: grayscale(1);
  filter: grayscale(1);
}
.gallery img:hover{
  -webkit-filter: grayscale(0);
          filter: grayscale(0);
}
/* The Modal (background) */
.modal {
  display: none;
  position: fixed;
  z-index: 4;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;

  background-color: rgba(0, 0, 0, 0.9); /* fallback ie */
  background-color: rgb(0, 0, 0, 0.9);
}
/* the modal overlay animation */
.fadeIn {
  -webkit-animation-name: fadeIn;
          animation-name: fadeIn;
  -webkit-animation-duration: 1s;
          animation-duration: 1s;
  -webkit-animation-fill-mode: both;
          animation-fill-mode: both;
}

  @-webkit-keyframes fadeIn {
    0% {opacity: 0;}
    100% {opacity: 1;}
  }
  @keyframes fadeIn {
    0% {opacity: 0;}
    100% {opacity: 1;}
  } 

/* Modal Content */
.modal-content {
  position: absolute;
  background-color: transparent !important;
  border: 0px solid rgba(0,0,0,.2);
  width: 90%;
  max-width: 850px;

  top: 50%;
  left: 50%;
  bottom: auto;
  -webkit-transform: translate(-50%, -50%); 
  -ms-transform: translate(-50%, -50%); 
  transform: translate(-50%, -50%);
}
/* slide img animation */
.mySlideWrap {
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.8s;
  animation-name: zoom;
  animation-duration: 0.8s;
}
  @keyframes zoom {
    from {
      transform: scale(0)
    }
    to {
      transform: scale(1)
    }
  }

/* The Close Button */
.close {
  color: white;
  position: absolute;
  top: 5px;
  right: 5px;
  width: 50px;
  height: 50px;
  background: #000;
  border-radius: 25px;

  -webkit-transition: all 0.8s ease-in-out;
  -moz-transition: all 0.8s ease-in-out;
  -ms-transition: all 0.8s ease-in-out;
  -o-transition: all 0.8s ease-in-out;
  transition: all 0.8s ease-in-out;
}
.close:after {
  content: '';
  height: 30px;
  border-left: 2px solid #fff;
  position: absolute;
  transform: rotate(45deg);
  left: 25px;
  top: 11px;
}
.close:before {
  content: '';
  height: 30px;
  border-left: 2px solid #fff;
  position: absolute;
  transform: rotate(-45deg);
  left: 25px;
  top: 11px;
}

.close:hover,
.close:focus {
  color: #999;
  text-decoration: none;
  cursor: pointer;
}

/* Caption text */
#caption {
  text-align: center;
  padding: 2px 16px;
  color: white;
}
