.wrap {
  margin: 0 auto;
  max-width: 1000px;
  width: 100%;
}

.gallery-wrap,
#gallery {
  overflow: hidden;
}

#filters {
  margin: 1%;
  padding: 0;
  list-style: none;
  overflow: hidden;
  width: fit-content;
  margin: 2rem auto 1rem;
}
.filter-divider {
    display: block;
    width: 100%;
    height: 1px;
    background-color: var(--grey);
    margin-bottom: 2rem;
}

#filters li {
  float: left;
}

#filters li span {
  display: block;
  padding: 5px 20px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  transition: all ease-in-out 0.25s;
}

#filters li:hover span {
  color: var(--primary);
}

#filters li span.active {
  background: var(--primary);
  color: #fff;
  border-radius: 4px;
}

.gallery-item {
  float: left;
  width: 33.333%;
  padding: 10px;
  position: relative;
  z-index: 0;
  display: none;
}

.inside {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  border: 1px solid #e4e2ec;
  border-radius: 8px;
}

.details,
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  opacity: 0;
}

.details {
  display: flex;
 /* align-items: center;*/
 top: 80%;
  justify-content: center;
  z-index: 2;
  transition: all 0.3s ease-in-out;
}
.details h2 {
    color: #fff;
    font-size: 1.2em;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
    margin: 0;
}
.details p {
    color: #fff;
    font-size: 1em;
    letter-spacing: 2px;
    text-align: center;
    margin: 0;
    text-transform: uppercase;
}

.inside img {
  float: left;
  width: 100%;
}

.overlay {
  background: rgba(110,85,250, 0.7);
  z-index: 1;
  transition: all 0.7s ease-in-out;
}

.gallery-item:hover .details,
.gallery-item:hover .overlay {
  opacity: 1;
}

@media (max-width: 30em) {
  .wrap {
    padding-left: 1em;
    padding-right: 1em;
  }

  .gallery-item {
    float: none;
    width: 100%;
  }
}