.main, .section {
  padding-bottom: 0;
}

.project-inner {
  padding: 0 50px;
  max-width: 800px;
  margin: 0 auto;
}
.project-title {
  text-align: center;
}
.project-sort {
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-justify-content: center;
  justify-content: center;
  padding-bottom: 100px;
}
.project-type {
  width: 90px;
  margin: 0 3%;
  padding-bottom: 5px;
  box-sizing: border-box;
  font-size: 0.75rem;
  text-align: center;
  position: relative;
  cursor: pointer;
  -moz-transition: color 0.6s;
  -o-transition: color 0.6s;
  -webkit-transition: color 0.6s;
  transition: color 0.6s;
}
.project-type:hover:after {
  width: 15px;
}
.project-type:hover .en {
  opacity: 0;
}
.project-type:hover .tw {
  opacity: 1;
}
.project-type:before {
  content: "";
  width: 100%;
  height: 1px;
  background: #c9b9a0;
  position: absolute;
  bottom: 0;
  left: 0;
}
.project-type:after {
  content: "";
  width: 0px;
  height: 3px;
  background: #ccc;
  position: absolute;
  bottom: -1px;
  left: 50%;
  -moz-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  -moz-transition: width 0.5s linear;
  -o-transition: width 0.5s linear;
  -webkit-transition: width 0.5s linear;
  transition: width 0.5s linear;
}
.project-type .en {
  opacity: 1;
  -moz-transition: opacity 0.6s;
  -o-transition: opacity 0.6s;
  -webkit-transition: opacity 0.6s;
  transition: opacity 0.6s;
}
.project-type .tw {
  position: absolute;
  top: 0;
  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-type.typeActive {
  color: #ccc;
}
.project-type.typeActive:after {
  width: 15px;
}
.project-container {
  padding: 75px 50px;
  background: #222;
  border-bottom: 1px dotted #444;
  position: relative;
}
.project-container.show:before {
  height: 80px;
}
.project-container:before {
  content: "";
  width: 1px;
  height: 0px;
  background: #e3d8c5;
  position: absolute;
  top: -50px;
  left: 50%;
  -moz-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  -moz-transition: height 0.6s;
  -o-transition: height 0.6s;
  -webkit-transition: height 0.6s;
  transition: height 0.6s;
}
.project-list {
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
}
.project-item {
  box-sizing: border-box;
  position: relative;
  padding-bottom: 40%;
  margin: 0 1%;
}
.project-item:nth-child(10n+1), .project-item:nth-child(10n+7) {
  width: 64.6666%;
}
.project-item:nth-child(10n+2), .project-item:nth-child(10n+3), .project-item:nth-child(10n+4), .project-item:nth-child(10n+5), .project-item:nth-child(10n+6), .project-item:nth-child(10n+8), .project-item:nth-child(10n+9), .project-item:nth-child(10n) {
  width: 31.3333%;
}
.project-item:before {
  content: "";
  width: 0%;
  height: 1px;
  background: #c9b9a0;
  position: absolute;
  top: calc(100% - 63px);
  left: 0;
  -moz-transition: width 0.8s;
  -o-transition: width 0.8s;
  -webkit-transition: width 0.8s;
  transition: width 0.8s;
}
.project-item:after {
  content: "";
  width: 0px;
  height: 1px;
  background: #eee;
  position: absolute;
  top: calc(100% - 63px);
  left: 0;
  -moz-transition: width 0.8s, left 0.8s;
  -o-transition: width 0.8s, left 0.8s;
  -webkit-transition: width 0.8s, left 0.8s;
  transition: width 0.8s, left 0.8s;
}
.project-item:hover:before {
  width: 100%;
}
.project-item:hover:after {
  width: 30px;
  left: calc(100% - 30px);
}
.project-item:hover .project-img {
  -webkit-filter: grayscale(0);
  filter: grayscale(0);
}
.project-image {
  position: absolute;
  top: 0;
  width: 100%;
  height: calc(100% - 120px);
  overflow: hidden;
  clip-path: polygon(0% 0%, 0% 0%, 0% 100%, 0% 100%);
  -moz-transition: clip-path 0.6s;
  -o-transition: clip-path 0.6s;
  -webkit-transition: clip-path 0.6s;
  transition: clip-path 0.6s;
}
.project-image.show {
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}
.project-img {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  -webkit-filter: grayscale(1);
  filter: grayscale(1);
  -moz-transition: filter 0.6s;
  -o-transition: filter 0.6s;
  -webkit-transition: filter 0.6s;
  transition: filter 0.6s;
}
.project-content {
  position: absolute;
  top: calc(100% - 110px);
  left: 0;
}
.project-name {
  font-size: 0.875rem;
  color: #eee;
}
.project-category {
  font-size: 0.75rem;
  font-family: "Italiana", Arial, Helvetica;
  color: #c9b9a0;
}
.project-btn {
  position: absolute;
  top: calc(100% - 90px);
  right: 0;
  font-size: 0.75rem;
  font-family: "Italiana", Arial, Helvetica;
  color: #ccc;
}

@media screen and (max-width: 1100px) {
  .project {
    padding-top: 120px;
  }
  .project-item {
    padding-bottom: 45%;
    margin: 0 1.5%;
  }
  .project-item:nth-child(10n+1), .project-item:nth-child(10n+7) {
    width: 47%;
  }
  .project-item:nth-child(10n+2), .project-item:nth-child(10n+3), .project-item:nth-child(10n+4), .project-item:nth-child(10n+5), .project-item:nth-child(10n+6), .project-item:nth-child(10n+8), .project-item:nth-child(10n+9), .project-item:nth-child(10n) {
    width: 47%;
  }
}
@media screen and (max-width: 800px) {
  .main, .section {
    padding-bottom: 70px;
  }

  .project-container {
    padding: 0 50px;
    background: unset;
    border-bottom: unset;
  }
  .project-container:before {
    display: none;
  }
  .project-sort {
    padding-bottom: 70px;
  }
  .project-list {
    margin: 0 auto -50px;
    width: 80%;
    min-width: 500px;
  }
  .project-item {
    margin: 0;
    padding-bottom: 80%;
  }
  .project-item:before, .project-item:after {
    top: calc(100% - 43px);
  }
  .project-item:nth-child(10n+1), .project-item:nth-child(10n+7) {
    width: 100%;
  }
  .project-item:nth-child(10n+2), .project-item:nth-child(10n+3), .project-item:nth-child(10n+4), .project-item:nth-child(10n+5), .project-item:nth-child(10n+6), .project-item:nth-child(10n+8), .project-item:nth-child(10n+9), .project-item:nth-child(10n) {
    width: 100%;
  }
  .project-image {
    height: calc(100% - 100px);
  }
  .project-content {
    top: calc(100% - 90px);
  }
  .project-btn {
    top: calc(100% - 70px);
  }
}
@media screen and (max-width: 640px) {
  .main, .section {
    padding-bottom: 50px;
  }

  .project-inner {
    padding: 0 30px;
  }
  .project-sort {
    padding-bottom: 50px;
    max-width: 300px;
    margin: 0 auto;
  }
  .project-type {
    margin: 0 6% 20px;
    width: 80px;
  }
  .project-container {
    padding: 0 30px;
  }
  .project-list {
    min-width: unset;
    width: 100%;
    margin: 0 auto -30px;
  }
  .project-item {
    width: 100%;
    padding-bottom: 85%;
    margin: 0;
  }
  .project-item:before {
    width: 100%;
  }
  .project-item:after {
    width: 20px;
  }
  .project-img {
    -webkit-filter: grayscale(0);
    filter: grayscale(0);
  }
}
