
.image-wrapper {
  display: flex;
  flex-wrap: wrap;
/**  justify-content: center;**/
  width: 100%;
  margin: auto;
  margin-bottom: 50px;
}

.media {
  width: 23%;
  /*height: 18%;*/
  display: flex;
/*  justify-content: center;*/
  align-items: center;
  margin: 1.5% 0 0 1.5%;
  overflow: hidden;
  position: relative;
}

.media:hover {
  cursor: pointer;
}

.overlay {
  background: rgba(0, 0, 0, 0.5);
  position: absolute;
  height: 100%;
  width: 100%;
  z-index: 3;
  opacity: 1;
  transition: all ease-in-out 0.5s;
}

.media:hover .overlay {
  opacity: 0;
}

.image-wrapper img {
  width: 100%;
  z-index: -1;
  margin: auto;
  transform: scale(1);
  transition: all ease-in-out 0.5s;
}

/*.media:hover img {
  transform: scale(1.1);
  filter: blur(2px);
}*/
.image-details {
  text-align: left;
  color: #ffffff94;
  font-weight: 550;
  font-size: 20px;
  z-index: 4;
  position: absolute;
  top: 75%;
  left: 10%;
}
.media:hover .image-details{
  color: #ffffff;
}
/*.image-details {
  text-align: center;
  color: white;
  font-size: 20px;
  z-index: 4;
  position: absolute;
  top: 100%;
  opacity: 0;
  transition: all ease-in-out 0.5s;
}
*/
/*.media:hover .image-details {
  top: 40%;
  opacity: 1;
}
*/
@media only screen and (max-width: 900px) {
  .media {
    width: 100%;
    /*height: 70%;*/
  }
}