.projects-wrap {
  display: -ms-flexbox;
  display: flex;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  -webkit-align-items: flex-end;
  align-items: flex-end;
}
.projects-filter {
  margin-bottom: 60px;
  margin-right: 40px;
  font-size: 0.875rem;
}
.projects-filter a {
  position: relative;
  display: inline-block;
  padding: 0 10px;
  border: rgba(255, 255, 255, 0.2) solid 1px;
  border-radius: 5px;
  text-align: center;
  margin-left: 15px;
}
.projects-filter a .tw {
  position: absolute;
  left: 0;
  width: 100%;
  white-space: nowrap;
  clip-path: polygon(0% -40px, 0% -40px, 0% 100%, 0% 100%);
  opacity: 0;
}
.projects-filter a .en {
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}
.projects-filter a .en, .projects-filter a .tw {
  -moz-transition: clip-path 0.6s, opacity 0.6s;
  -o-transition: clip-path 0.6s, opacity 0.6s;
  -webkit-transition: clip-path 0.6s, opacity 0.6s;
  transition: clip-path 0.6s, opacity 0.6s;
}
.projects-filter a:hover .en {
  opacity: 0;
  clip-path: polygon(100% 0%, 100% 0%, 100% 100%, 100% 100%);
}
.projects-filter a:hover .tw {
  opacity: 1;
  clip-path: polygon(0% -40px, 100% -40px, 100% 100%, 0% 100%);
}
.projects-filter a.active {
  background: rgba(255, 255, 255, 0.1);
  color: #FFF;
}
.projects-list {
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 0 -3%;
}
.projects-item {
  position: relative;
  width: 44%;
  padding-right: 40px;
  line-height: 20px;
  box-sizing: border-box;
  display: block;
}
.projects-item:nth-child(odd) {
  margin: 0 3% 6%;
}
.projects-item:nth-child(even) {
  margin: 6% 3% 0;
}
.projects-item img {
  position: relative;
  width: 100%;
  -webkit-filter: grayscale(1);
  filter: grayscale(1);
  -moz-transition: filter 0.6s, -moz-transform 0.6s;
  -o-transition: filter 0.6s, -o-transform 0.6s;
  -webkit-transition: filter 0.6s, -webkit-transform 0.6s;
  transition: filter 0.6s, transform 0.6s;
}
.projects-item:hover img {
  -webkit-filter: grayscale(0);
  filter: grayscale(0);
  -moz-transform: scale(1.1);
  -ms-transform: scale(1.1);
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}
.projects-img {
  overflow: hidden;
}
.projects-line {
  position: absolute;
  right: 20px;
  bottom: 20px;
  top: 0;
  left: 0;
  border-right: rgba(255, 255, 255, 0.2) solid 1px;
  border-bottom: rgba(255, 255, 255, 0.2) solid 1px;
}
.projects-sort {
  position: absolute;
  top: -10px;
  right: 20px;
  height: 20px;
  background: #222;
  font-size: 0.75rem;
  letter-spacing: 2px;
  padding-right: 15px;
  -moz-transform-origin: left center;
  -ms-transform-origin: left center;
  -webkit-transform-origin: left center;
  transform-origin: left center;
  -moz-transform: translateX(100%) rotate(90deg);
  -ms-transform: translateX(100%) rotate(90deg);
  -webkit-transform: translateX(100%) rotate(90deg);
  transform: translateX(100%) rotate(90deg);
}
.projects-sort:after {
  content: "";
  position: absolute;
  right: 0px;
  top: 7px;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}
.projects-name {
  position: relative;
  line-height: 20px;
  margin: 10px 0;
  padding-right: 10px;
  background: #222;
  border-right: rgba(255, 255, 255, 0.2) solid 1px;
  width: fit-content;
  color: #FFF;
  font-size: 0.875rem;
}
.projects-more {
  margin: 40px auto;
}

@media screen and (max-width: 900px) {
  .projects-wrap {
    display: block;
  }
  .projects-list {
    display: block;
    margin: 0;
  }
  .projects-item {
    width: auto;
  }
  .projects-item:nth-child(even), .projects-item:nth-child(odd) {
    margin: 40px 0 0;
  }
  .projects-line {
    bottom: 10px;
  }
}
@media screen and (max-width: 640px) {
  .projects-filter {
    margin-right: 0;
  }
  .projects-filter-text {
    display: none;
  }
  .projects-filter a {
    margin: 0 10px 0 0;
  }
}
@media screen and (max-width: 500px), screen and (min-width: 901px) and (max-width: 1100px) {
  .projects-item {
    padding-right: 0;
  }
  .projects-line {
    right: 10px;
  }
  .projects-sort {
    display: none;
  }
}
