@import url("https://fonts.googleapis.com/css?family=Poppins&display=swap");
.main {
  margin-top: 60px;
  min-height: calc(100vh - 217px);
}

.select {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 70px 0;
}
.select li {
  margin: 0 15px;
}
.select li a {
  -moz-transition: color 0.3s;
  -o-transition: color 0.3s;
  -webkit-transition: color 0.3s;
  transition: color 0.3s;
}
.select li a:hover {
  color: #e2a688;
}
.select .open a {
  color: #e2a688;
}

.work {
  padding: 0 0 50px;
}
.work-box {
  display: flex;
  flex-wrap: wrap;
  margin: 0 80px;
}
.work-list {
  width: 25%;
  padding: 10px;
  box-sizing: border-box;
  position: relative;
}
.work-list:nth-child(7n-2) {
  margin-left: 10%;
}
.work-list:nth-child(7n) {
  margin-right: 10%;
}
.work-list:hover {
  z-index: 100;
}
.work-list:hover .work-pic {
  opacity: 1;
  -webkit-filter: none;
  filter: none;
  -moz-transform: scale(1.3);
  -ms-transform: scale(1.3);
  -webkit-transform: scale(1.3);
  transform: scale(1.3);
}
.work-list:hover .work-name:before {
  -moz-transform: scaleY(1);
  -ms-transform: scaleY(1);
  -webkit-transform: scaleY(1);
  transform: scaleY(1);
}
.work-list:hover .work-text {
  opacity: 1;
}
.work-list:hover:after {
  opacity: 0.7;
}
.work-list:after {
  content: "";
  width: 100vw;
  height: calc(100vh - 60px);
  margin-top: 60px;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #000;
  opacity: 0.7;
  pointer-events: none;
  z-index: -1;
  -moz-transition: opacity 0.5s;
  -o-transition: opacity 0.5s;
  -webkit-transition: opacity 0.5s;
  transition: opacity 0.5s;
}
.work-pic {
  width: 100%;
  opacity: 0.8;
  -webkit-filter: saturate(80%);
  filter: saturate(80%);
  -moz-transition: -moz-transform 0.5s, filter 0.5s, opacity 0.3s;
  -o-transition: -o-transform 0.5s, filter 0.5s, opacity 0.3s;
  -webkit-transition: -webkit-transform 0.5s, filter 0.5s, opacity 0.3s;
  transition: transform 0.5s, filter 0.5s, opacity 0.3s;
}
.work-pic img {
  width: 100%;
}
.work-name {
  position: absolute;
  top: 100%;
  left: 0;
  pointer-events: none;
}
.work-name:before {
  content: "";
  height: 50px;
  width: 1px;
  background-color: #fff;
  display: block;
  margin-bottom: 5px;
  -moz-transform: scaleY(0);
  -ms-transform: scaleY(0);
  -webkit-transform: scaleY(0);
  transform: scaleY(0);
  -moz-transition: -moz-transform 0.5s;
  -o-transition: -o-transform 0.5s;
  -webkit-transition: -webkit-transform 0.5s;
  transition: transform 0.5s;
  -moz-transform-origin: top center;
  -ms-transform-origin: top center;
  -webkit-transform-origin: top center;
  transform-origin: top center;
}
.work-name .style {
  color: #999;
  font-size: 12px;
  line-height: 20px;
}
.work-text {
  font-size: 16px;
  text-shadow: 0 0 10px #000;
  opacity: 0;
  -moz-transition: opacity 0.5s;
  -o-transition: opacity 0.5s;
  -webkit-transition: opacity 0.5s;
  transition: opacity 0.5s;
  -moz-transition-delay: 0.3s;
  -o-transition-delay: 0.3s;
  -webkit-transition-delay: 0.3s;
  transition-delay: 0.3s;
}

@media screen and (max-width: 1300px) {
  .work-box {
    margin: 0 50px;
  }
}
@media screen and (max-width: 1100px) {
  .work {
    padding: 0;
  }
  .work-list {
    width: 33.33333%;
  }
  .work-list:nth-child(7n-2) {
    margin-left: 0;
  }
  .work-list:nth-child(7n) {
    margin-right: 0;
  }
  .work-list:nth-child(5n-1) {
    margin-left: 15%;
  }
  .work-list:nth-child(5n) {
    margin-right: 15%;
  }
  .work-list:hover:after {
    opacity: 0.8;
  }
  .work-list:after {
    background-color: #fff;
    opacity: 0.8;
  }
  .work-name:before {
    background-color: #e2a688;
  }
  .work-name .en {
    color: #000;
  }
  .work-name .style {
    color: #666;
  }
  .work-text {
    text-shadow: none;
  }
}
@media screen and (max-width: 860px) {
  .work-list {
    width: 50%;
    padding-bottom: 20px;
  }
  .work-list:nth-child(5n-1) {
    margin-left: 0;
  }
  .work-list:nth-child(5n) {
    margin-right: 0;
  }
  .work-list:hover .work-pic {
    -moz-transform: scale(1.15);
    -ms-transform: scale(1.15);
    -webkit-transform: scale(1.15);
    transform: scale(1.15);
  }
  .work-name {
    top: 0;
    position: relative;
    margin-top: -10px;
    padding-left: 15px;
    box-sizing: border-box;
    pointer-events: auto;
  }
  .work-name:before {
    height: 30px;
    margin-left: 10px;
    -moz-transform: scaleY(1);
    -ms-transform: scaleY(1);
    -webkit-transform: scaleY(1);
    transform: scaleY(1);
  }
  .work-text {
    opacity: 1;
  }
}
@media screen and (max-width: 640px) {
  .select {
    display: block;
    margin: 0 50px;
    padding: 50px 0 30px;
  }
  .select li {
    margin: 0 10px;
    padding: 5px 0;
  }

  .work-list {
    width: 100%;
  }
  .work-list:hover .work-pic {
    -moz-transform: scale(1.1);
    -ms-transform: scale(1.1);
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
  }
}
@media screen and (max-width: 460px) {
  .select {
    margin: 0 20px;
  }

  .work-box {
    margin: 0 20px;
  }
}
