.project-wrap {
  padding: 0 6vw;
}
.project-sort {
  text-align: center;
  margin-bottom: 10%;
  font-size: 0.875rem;
}
.project-sort a {
  position: relative;
  display: inline-block;
  padding: 10px 40px;
  margin: 0 20px;
  color: #999;
  border-bottom: #eee solid 1px;
}
.project-sort a:before {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 1px;
  width: 0%;
  background: #ccc;
  -moz-transition: width 0.6s;
  -o-transition: width 0.6s;
  -webkit-transition: width 0.6s;
  transition: width 0.6s;
}
.project-sort a:after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 20px;
  height: 3px;
  background: #ddd;
  margin-left: -10px;
}
.project-sort a .tw {
  position: absolute;
  left: 50%;
  white-space: nowrap;
  opacity: 0;
  -moz-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  -moz-transition: opacity 0.6s;
  -o-transition: opacity 0.6s;
  -webkit-transition: opacity 0.6s;
  transition: opacity 0.6s;
}
.project-sort a .en {
  -moz-transition: opacity 0.6s;
  -o-transition: opacity 0.6s;
  -webkit-transition: opacity 0.6s;
  transition: opacity 0.6s;
}
.project-sort a:hover {
  color: #000;
}
.project-sort a:hover .tw {
  opacity: 1;
}
.project-sort a:hover .en {
  opacity: 0;
}
.project-sort a:hover:before {
  width: 100%;
}
.project-sort a:hover:after {
  background: #999;
}
.project-sort a.active {
  color: #000;
}
.project-sort a.active:before {
  width: 100%;
}
.project-sort a.active:after {
  background: #999;
}
.project-list {
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-justify-content: space-between;
  justify-content: space-between;
}
.project-item {
  position: relative;
  display: block;
  width: 45%;
}
.project-item:nth-child(even) {
  margin-top: 10%;
}
.project-img {
  position: relative;
  margin-right: 40px;
  clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%);
  -moz-transition: clip-path 1s;
  -o-transition: clip-path 1s;
  -webkit-transition: clip-path 1s;
  transition: clip-path 1s;
}
.show .project-img {
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}
.project-img img {
  width: 100%;
}
.project-type {
  font-size: 0.75rem;
  color: #999;
  line-height: 30px;
  position: absolute;
  top: 0;
  left: 100%;
  -moz-transform-origin: left bottom;
  -ms-transform-origin: left bottom;
  -webkit-transform-origin: left bottom;
  transform-origin: left bottom;
  -moz-transform: translateX(-45px) translateY(-100%) rotate(90deg);
  -ms-transform: translateX(-45px) translateY(-100%) rotate(90deg);
  -webkit-transform: translateX(-45px) translateY(-100%) rotate(90deg);
  transform: translateX(-45px) translateY(-100%) rotate(90deg);
  white-space: nowrap;
  letter-spacing: 5px;
  opacity: 0;
  -moz-transition: opacity 0.6s;
  -o-transition: opacity 0.6s;
  -webkit-transition: opacity 0.6s;
  transition: opacity 0.6s;
}
.show .project-type {
  opacity: 1;
}
.project-text {
  padding: 15px 0 0;
  opacity: 0;
  -moz-transition: opacity 0.6s;
  -o-transition: opacity 0.6s;
  -webkit-transition: opacity 0.6s;
  transition: opacity 0.6s;
}
.show .project-text {
  opacity: 1;
  -moz-transition-delay: 0.5s;
  -o-transition-delay: 0.5s;
  -webkit-transition-delay: 0.5s;
  transition-delay: 0.5s;
}
.project-info {
  font-size: 0.75em;
  color: #999;
}

@media screen and (max-width: 900px) {
  .project-sort a {
    margin: 0 10px;
  }
  .project-list {
    display: block;
  }
  .project-item {
    width: auto;
    margin-top: 10%;
  }
  .project-item:first-child {
    margin-top: 0;
  }
}
@media screen and (max-width: 640px) {
  .project-sort a {
    padding: 10px;
    margin: 0 5px;
  }
  .project-img {
    margin-right: 30px;
  }
  .project-type {
    -moz-transform: translateX(-30px) translateY(-100%) rotate(90deg) scale(0.8);
    -ms-transform: translateX(-30px) translateY(-100%) rotate(90deg) scale(0.8);
    -webkit-transform: translateX(-30px) translateY(-100%) rotate(90deg) scale(0.8);
    transform: translateX(-30px) translateY(-100%) rotate(90deg) scale(0.8);
  }
}
