.wrapper{
  margin-top: 2em;
  max-width: 1100px;
}
.wrapper nav{
  display: flex;
  justify-content: center;
  width: 100%;
  margin: auto;
}
.wrapper .items{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.items span{
  margin: 4px;
  padding: 6px 16px;
  font-size: 1em;
  font-weight: 400;
  cursor: pointer;
  color: var(--color);
  border-radius: 50px;
  border: 2px solid var(--color);
  transition: all 0.3s ease;
}
.items span.active,
.items span:hover{
  color: #fff;
  background: var(--color);
}

.gallery{
  margin-top: 2em;
  column-count: 5;
  column-gap: 8px;
}
.gallery .image{
  width: auto;
  padding-bottom: 8px;
}
.gallery .image span{
  width: 100%;
}
.gallery .image img{
  width: 100%;
  vertical-align: middle;
  transition: all 0.3s ease;
}
.gallery .image:hover img{
  animation: anim 0.6s ease;
}
@keyframes anim {
  0%{
    transform: scale(1);
  }
  50%{
    transform: scale(0.95);
  }
  100%{
    transform: scale(1);
  }
}
.gallery .image.hide{
  display: none;
}
.gallery .image.show{
  animation: animate 0.4s ease;
}
@keyframes animate {
  0%{
    transform: scale(0.5);
  }
  100%{
    transform: scale(1);
  }
}


@media (max-width: 1000px) {
  .gallery {
    column-count: 4;
  }
}
@media (max-width: 800px) {
  .gallery {
    column-count: 3;
  }
}
@media (max-width: 700px) {
  .wrapper nav .items{
    max-width: 600px;
  }
  nav .items span{
    padding: 7px 15px;
  }
}
@media (max-width: 600px) {
  .wrapper{
    margin: 30px auto;
  }
  .wrapper nav .items{
    flex-wrap: wrap;
    justify-content: center;
  }
  nav .items span{
    margin: 5px;
  }

}
@media (max-width: 480px) {
  .gallery {
    column-count: 2;
  }
}
