div.gallery {
  border: 1px solid #cccccc00;
}

div.gallery img:hover {
  /* border: 1px solid #777; */
    transform: rotate(2deg);
    cursor: pointer;
}
div.display-image {
  width: 100%;
  height: 100%;
  background-color: rgb(0,0,0,0.7);
  position:fixed;
  z-index: 50;
  display: none;
  justify-content: center;
  align-items: center;
  top:0;
  left:0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

div.display-image.active {
  opacity: 1;
}

div.display-image img {
  height: 90%;
  transform: scale(0);
  transition: transform 0.4s ease;
}

div.display-image.active img {
  transform: scale(1);
}

div.display-image span {
  color:white;
  font-size: 2rem;
  position: absolute;
  top: 2rem;
  right: 8rem;
  cursor: pointer;
}

div.gallery img {
  /* width: 100%;
  height: auto; */
  width: 20rem;
  height:20rem;
  object-fit: cover;
  object-position: 50% 50%;
  transition: 0.5s;
  /* margin: 1rem; */
  border-radius: 20px;
}

div.desc {
  padding: 5px;
  text-align: center;
}

* {
  box-sizing: border-box;
}

.responsive {
  padding: 0 6px 12px 6px;
  float: left;
  width: 24.99999%;
}

@media only screen and (max-width: 700px) {
  .responsive {
    width: 49.99999%;
    margin: 6px 0;
  }
}

@media only screen and (max-width: 500px) {
  .responsive {
    width: 100%;
  }
}

.clearfix:after {
  content: "";
  display: table;
  clear: both;
}
