.project-filter {
  text-align: center;
  margin-bottom: 6vw;
}
.project-filter a {
  position: relative;
  font-size: 0.875em;
  display: inline-block;
  margin: 0 2px;
  padding: 10px 40px;
  border: #ccc solid 1px;
  opacity: 0;
  -moz-transform: translateY(40px);
  -ms-transform: translateY(40px);
  -webkit-transform: translateY(40px);
  transform: translateY(40px);
  -moz-transition: opacity 0.6s, -moz-transform 0.6s;
  -o-transition: opacity 0.6s, -o-transform 0.6s;
  -webkit-transition: opacity 0.6s, -webkit-transform 0.6s;
  transition: opacity 0.6s, transform 0.6s;
}
.project-filter a .tw {
  position: absolute;
  left: 0;
  width: 100%;
  white-space: nowrap;
  clip-path: polygon(0% 0%, 0% 100%, 0% 100%, 0% 0%);
}
.project-filter a .en {
  clip-path: polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%);
}
.project-filter a .en, .project-filter a .tw {
  -moz-transition: clip-path 0.6s;
  -o-transition: clip-path 0.6s;
  -webkit-transition: clip-path 0.6s;
  transition: clip-path 0.6s;
}
.project-filter a:hover .tw {
  clip-path: polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%);
}
.project-filter a:hover .en {
  clip-path: polygon(100% 0%, 100% 100%, 100% 100%, 100% 0%);
}
.project-filter a.active {
  color: #000;
  background: #f6f6f6;
}
.project-filter.show a {
  opacity: 1;
  -moz-transform: translateY(0px);
  -ms-transform: translateY(0px);
  -webkit-transform: translateY(0px);
  transform: translateY(0px);
  -moz-transition-delay: 0.2s;
  -o-transition-delay: 0.2s;
  -webkit-transition-delay: 0.2s;
  transition-delay: 0.2s;
}
.project-list {
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 0 -5%;
}
.project-item {
  width: 40%;
  margin: 0 5%;
  opacity: 0;
  -moz-transition: opacity 0.6s;
  -o-transition: opacity 0.6s;
  -webkit-transition: opacity 0.6s;
  transition: opacity 0.6s;
}
.project-item.show {
  opacity: 1;
}
.project-item.hidden {
  display: none;
}
.project-item:nth-child(even) {
  margin-top: 10%;
}
.project-img {
  position: relative;
}
.project-img img {
  width: 100%;
}
.project-img:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: #FFF;
}
.project-item:nth-child(4n+1) .project-img:after {
  top: 0;
  left: 0;
  -moz-transition: width 0.6s;
  -o-transition: width 0.6s;
  -webkit-transition: width 0.6s;
  transition: width 0.6s;
}
.project-item:nth-child(4n+2) .project-img:after {
  top: 0;
  left: 0;
  -moz-transition: height 0.6s;
  -o-transition: height 0.6s;
  -webkit-transition: height 0.6s;
  transition: height 0.6s;
}
.project-item:nth-child(4n+3) .project-img:after {
  top: 0;
  right: 0;
  -moz-transition: width 0.6s;
  -o-transition: width 0.6s;
  -webkit-transition: width 0.6s;
  transition: width 0.6s;
}
.project-item:nth-child(4n) .project-img:after {
  bottom: 0;
  left: 0;
  -moz-transition: height 0.6s;
  -o-transition: height 0.6s;
  -webkit-transition: height 0.6s;
  transition: height 0.6s;
}
.project-item.show:nth-child(2n+1) .project-img:after {
  width: 0;
}
.project-item.show:nth-child(2n) .project-img:after {
  height: 0;
}
.project-info {
  border-bottom: #ccc solid 1px;
  display: -ms-flexbox;
  display: flex;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  -webkit-align-items: center;
  align-items: center;
  padding: 15px 0;
}
.project-name {
  color: #000;
  margin-top: 10px;
}
.project-text {
  font-size: 0.75em;
  color: #999;
}

@media screen and (max-width: 1100px) {
  .project-list {
    margin: 0 -1%;
  }
  .project-item {
    width: 48%;
    margin: 0 1%;
  }
}
@media screen and (max-width: 800px) {
  .project-filter a {
    display: block;
    margin: 2px auto;
  }
  .project-list {
    max-width: 500px;
    margin: auto;
    display: block;
  }
  .project-item {
    width: auto;
    margin: 40px 0 0;
  }
  .project-item:nth-child(even) {
    margin-top: 40px;
  }
  .project-item:first-child {
    margin-top: 0;
  }
  .project-info {
    display: block;
    text-align: center;
    border-bottom: none;
  }
  .project-name {
    margin-top: 0;
  }
}
