.top-img {
  background-position: 50% 10%;
}

.opacity {
  display: none !important;
}

.project-inner {
  padding: 0 50px;
  max-width: 1200px;
  margin: auto;
}
.project-category {
  padding-bottom: 100px;
  display: -ms-flexbox;
  display: flex;
  -webkit-justify-content: center;
  justify-content: center;
}
.project-category a {
  font-family: "Playfair Display";
  font-size: 0.875em;
  width: 88px;
  padding-bottom: 5px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.project-category a:nth-child(2) {
  margin: 0 40px;
}
.project-category a:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  background: #999;
  bottom: 0;
  left: -100%;
  -moz-transform: translateX(0);
  -ms-transform: translateX(0);
  -webkit-transform: translateX(0);
  transform: translateX(0);
  -moz-transition: left 0.4s cubic-bezier(0.104, 0.204, 0.492, 1);
  -o-transition: left 0.4s cubic-bezier(0.104, 0.204, 0.492, 1);
  -webkit-transition: left 0.4s cubic-bezier(0.104, 0.204, 0.492, 1);
  transition: left 0.4s cubic-bezier(0.104, 0.204, 0.492, 1);
}
.project-category a:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  background: #999;
  bottom: 0;
  left: 0;
  -moz-transition: left 0.4s cubic-bezier(0.104, 0.204, 0.492, 1);
  -o-transition: left 0.4s cubic-bezier(0.104, 0.204, 0.492, 1);
  -webkit-transition: left 0.4s cubic-bezier(0.104, 0.204, 0.492, 1);
  transition: left 0.4s cubic-bezier(0.104, 0.204, 0.492, 1);
}
.project-category a:hover:before {
  left: 0;
  -moz-transition-delay: 0.2s;
  -o-transition-delay: 0.2s;
  -webkit-transition-delay: 0.2s;
  transition-delay: 0.2s;
}
.project-category a:hover:after {
  left: 100%;
}
.project-category a.active {
  color: #111;
}
.project-category a.active:before, .project-category a.active:after {
  background: #111;
}
.project-category p {
  font-family: "Playfair Display";
  font-size: 0.875em;
  width: 88px;
  padding-bottom: 5px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.project-category p:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  background: #999;
  bottom: 0;
  left: 0;
  -moz-transition: left 0.4s cubic-bezier(0.104, 0.204, 0.492, 1);
  -o-transition: left 0.4s cubic-bezier(0.104, 0.204, 0.492, 1);
  -webkit-transition: left 0.4s cubic-bezier(0.104, 0.204, 0.492, 1);
  transition: left 0.4s cubic-bezier(0.104, 0.204, 0.492, 1);
}
.project-item {
  width: 45%;
  margin-top: -5%;
}
.project-item:nth-child(1) {
  margin-top: unset;
}
.project-item:nth-child(even) {
  margin-left: auto;
}
.project-item:nth-child(even) .project-img {
  clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
}
.project-item:nth-child(even) .project-img.show {
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}
.project-link {
  position: relative;
}
.project-link:hover .project-img img {
  -webkit-filter: grayscale(0);
  filter: grayscale(0);
}
.project-link:hover .project-view {
  opacity: 1;
  -moz-transition: opacity 0.6s;
  -o-transition: opacity 0.6s;
  -webkit-transition: opacity 0.6s;
  transition: opacity 0.6s;
}
.project-img {
  width: 90%;
  margin: auto;
  position: relative;
  border: 1px solid #ccc;
  padding: 3.5%;
  clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%);
  -moz-transition: clip-path 0.6s;
  -o-transition: clip-path 0.6s;
  -webkit-transition: clip-path 0.6s;
  transition: clip-path 0.6s;
}
.project-img.show {
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}
.project-img:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  top: 0;
  right: 0;
  z-index: 1;
}
.project-img img {
  width: 100%;
  -webkit-filter: grayscale(0.8);
  filter: grayscale(0.8);
  -moz-transition: filter 0.3s;
  -o-transition: filter 0.3s;
  -webkit-transition: filter 0.3s;
  transition: filter 0.3s;
}
.project-name {
  width: fit-content;
  background: #fff;
  position: absolute;
  top: -10px;
  z-index: 2;
  white-space: nowrap;
}
.project-name:after {
  content: "";
  width: 8px;
  height: 8px;
  background: #ccc;
  display: inline-block;
  margin-left: 10px;
  -moz-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}
.project-sort {
  margin-left: auto;
  width: fit-content;
  background: #fff;
  color: #999;
  margin-top: -11px;
  z-index: 2;
}
.project-sort:before {
  content: "";
  width: 8px;
  height: 8px;
  background: #ccc;
  display: inline-block;
  margin-right: 10px;
  -moz-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}
.project-view {
  font-size: 0.75em;
  background: #f6f6f6;
  padding: 15px 7px;
  border-radius: 50%;
  color: #111;
  position: absolute;
  top: 50%;
  left: 50%;
  box-shadow: 2px 2px 10px 3px #444;
  -moz-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  opacity: 0;
}

@media screen and (max-width: 900px) {
  .project-item {
    width: 65%;
    margin-top: 10%;
  }
}
@media screen and (max-width: 640px) {
  .project-category {
    padding-bottom: 80px;
  }
  .project-inner {
    padding: 0 30px;
  }
  .project-item {
    width: 100%;
    margin-top: 15%;
  }
}
@media screen and (max-width: 460px) {
  .project-category {
    -webkit-flex-flow: column;
    flex-flow: column;
    -webkit-align-items: center;
    align-items: center;
  }
  .project-category a {
    width: 100%;
  }
  .project-category a:nth-child(2) {
    margin: 15px 0;
  }
  .project-category p {
    width: 100%;
  }
}
