@import url("https://fonts.googleapis.com/css?family=Poppins&display=swap");
@import url("https://fonts.googleapis.com/css?family=Didact+Gothic");
@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@300&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Langar&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Ruluko&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat&family=Noto+Sans+TC:wght@300&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Tangerine&display=swap");
.content {
  position: relative;
  overflow: hidden;
}

.box-work {
  margin: 10px auto 0;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
  height: calc(100vh - 80px);
}

.work {
  position: relative;
  width: 90%;
  margin: auto;
  height: calc(100vh - 80px);
}
.work img {
  margin: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: 100%;
  max-height: 100%;
  transform: translate(-50%, -50%);
}

.top {
  margin-bottom: 30px;
  overflow: hidden;
  max-width: 900px;
}

.controlBar {
  position: absolute;
  width: 100%;
  height: 50px;
  bottom: 0px;
  border-top: 1px solid #ccc;
  z-index: 20;
}

.bnPrev, .bnNext {
  position: absolute;
  width: 57px;
  height: 50px;
  bottom: 5px;
  cursor: pointer;
  z-index: 30;
}
.bnPrev img, .bnNext img {
  width: 100%;
}
.bnPrev:before, .bnNext:before {
  position: absolute;
  margin: 15px 0;
  padding: 3px 10px;
  font-size: 12px;
  border: solid 1px #aaa;
  color: #aaa;
}
.bnPrev:hover:before, .bnNext:hover:before {
  border: solid 1px #ddd;
  color: #ddd;
}

.bnPrev {
  left: 32%;
  opacity: 1;
  -moz-transition: opacity 0.2s cubic-bezier(0.25, 0.25, 0.75, 0.75);
  -o-transition: opacity 0.2s cubic-bezier(0.25, 0.25, 0.75, 0.75);
  -webkit-transition: opacity 0.2s cubic-bezier(0.25, 0.25, 0.75, 0.75);
  transition: opacity 0.2s cubic-bezier(0.25, 0.25, 0.75, 0.75);
}
.bnPrev:before {
  content: "Prev";
}

.bnNext {
  right: 32%;
  opacity: 1;
  -moz-transition: opacity 0.2s cubic-bezier(0.25, 0.25, 0.75, 0.75);
  -o-transition: opacity 0.2s cubic-bezier(0.25, 0.25, 0.75, 0.75);
  -webkit-transition: opacity 0.2s cubic-bezier(0.25, 0.25, 0.75, 0.75);
  transition: opacity 0.2s cubic-bezier(0.25, 0.25, 0.75, 0.75);
}
.bnNext:before {
  content: "Next";
}

.bn {
  position: fixed;
  bottom: 20px;
  right: 0;
  color: #aaa;
  opacity: 0.6;
  -moz-transition: opacity 0.2s cubic-bezier(0.25, 0.25, 0.75, 0.75);
  -o-transition: opacity 0.2s cubic-bezier(0.25, 0.25, 0.75, 0.75);
  -webkit-transition: opacity 0.2s cubic-bezier(0.25, 0.25, 0.75, 0.75);
  transition: opacity 0.2s cubic-bezier(0.25, 0.25, 0.75, 0.75);
}
.bn a {
  display: flex;
  align-items: center;
  justify-content: center;
}
.bn span {
  position: relative;
  display: inline-block;
}
.bn span:first-child {
  padding: 1px 5px 5px 5px;
}
.bn span:last-child {
  width: 100px;
  height: 1px;
  background-color: #aaa;
}
.bn:hover {
  opacity: 1;
}

.icon {
  position: absolute;
  bottom: -45px;
  padding: 5px;
}
.icon img {
  width: 100%;
}

.name {
  position: absolute;
  height: 50px;
  bottom: 5px;
  left: 50%;
  display: flex;
  align-items: center;
  -moz-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
}
.name span {
  display: inline-block;
}

.detail {
  cursor: pointer;
  position: relative;
  margin-left: 10px;
  margin-top: 3px;
  padding: 3px 6px 0px 8px;
  font-size: 12px;
  font-family: "Langar", cursive;
  color: #fff;
  border: 1px solid #191919;
  border-radius: 50%;
  background-color: #444;
  box-shadow: 1px 1px 3px -2px inset;
}
.detail:hover {
  color: #000;
  background-color: #ddd;
}

.more {
  position: fixed;
  display: flex;
  height: 100%;
  top: 0;
  z-index: -1;
  opacity: 0;
  background-color: rgba(0, 0, 0, 0.8);
  -moz-transition: opacity 0.6s;
  -o-transition: opacity 0.6s;
  -webkit-transition: opacity 0.6s;
  transition: opacity 0.6s;
}
.more.show {
  opacity: 1;
  z-index: 50;
  -moz-transition: opacity 0.6s;
  -o-transition: opacity 0.6s;
  -webkit-transition: opacity 0.6s;
  transition: opacity 0.6s;
}
.more-info {
  position: relative;
  width: 50%;
  height: 60%;
  margin: auto;
  padding: 5%;
  background-color: #000;
  border: solid 1px #666;
}
.more-title {
  font-size: 16px;
  margin-bottom: 30px;
  font-weight: bold;
}
.more-content {
  font-size: 12px;
  color: #ccc;
  margin-bottom: 30px;
}
.more-in p {
  color: #888;
  font-size: 12px;
  margin-bottom: 20px;
}
.more-in p:last-child {
  margin-bottom: unset;
}
.more-in .en {
  letter-spacing: 1.5px;
}
.more-close {
  position: absolute;
  top: calc(20% - 42px);
  right: calc(25% - 42px);
  display: flex;
  cursor: pointer;
  opacity: 0.6;
}
.more-close i {
  margin: auto;
  color: #ccc;
  border: 1px solid transparent;
  padding: 8px 6.5px 7px 9.5px;
  background-color: #333;
  border-radius: 5px;
}
.more-close:hover {
  opacity: 1;
}

.mCS-dark .mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
  background-color: #999;
}

.mCS-dark .mCSB_scrollTools .mCSB_draggerRail {
  background-color: #333;
}

.mCS-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar {
  background-color: #999;
}

.mCS-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCS-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar {
  background-color: #666;
}

.mCSB_inside > .mCSB_container {
  margin-right: 40px;
}

@media screen and (min-width: 1201px) {
  footer {
    display: none;
  }
}
@media screen and (max-width: 1200px) {
  .scrolltop:after {
    top: unset;
  }

  .footer-info {
    width: 90%;
  }

  .box-work {
    margin: 100px auto 0px;
    height: unset;
    overflow: unset;
    padding-bottom: 30px;
  }

  .bn {
    position: fixed;
    bottom: unset;
    top: 0;
    right: 0;
    z-index: 20;
  }
  .bn a {
    width: 57px;
    flex-flow: column-reverse;
  }
  .bn span:last-child {
    top: 0;
    margin: 16px 0;
  }

  .work {
    position: relative;
    height: unset;
    right: 0;
    margin: auto;
  }
  .work li {
    position: relative;
    margin-bottom: 30px;
    opacity: 0;
    -moz-transform: translateY(20px);
    -ms-transform: translateY(20px);
    -webkit-transform: translateY(20px);
    transform: translateY(20px);
    -moz-transition: -moz-transform 0.6s, opacity 0.6s;
    -o-transition: -o-transform 0.6s, opacity 0.6s;
    -webkit-transition: -webkit-transform 0.6s, opacity 0.6s;
    transition: transform 0.6s, opacity 0.6s;
  }
  .work li:last-child {
    margin-bottom: unset;
  }
  .work li.show {
    opacity: 1 !important;
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  .work img {
    position: relative;
    width: 100%;
    top: unset;
    left: unset;
    -moz-transform: unset;
    -ms-transform: unset;
    -webkit-transform: unset;
    transform: unset;
  }

  .name {
    text-align: center;
    top: -80px;
  }

  .detail {
    pointer-events: none;
    position: absolute;
    opacity: 0;
  }

  .more {
    position: relative;
    background-color: unset;
  }
  .more.show {
    z-index: 0;
  }
  .more-info {
    width: 80%;
    border: unset;
    border-radius: 0;
    box-shadow: unset;
  }
  .more-content {
    color: unset;
  }
  .more-title {
    color: unset;
  }
  .more-in p {
    color: unset;
  }
  .more-close {
    display: none;
  }
}
@media screen and (max-width: 900px) {
  .work img {
    max-width: 100%;
  }
}
@media screen and (max-width: 640px) {
  .controlBar {
    border-top: 1px solid #ccc;
  }

  .bnPrev:before, .bnNext:before {
    border: solid 1px #d2cdc7;
    color: unset;
  }
  .bnPrev:hover:before, .bnNext:hover:before {
    background-color: #948b81;
    border: solid 1px #f0ebe5;
    color: #ddd;
  }

  .bn {
    color: #aaa;
  }
  .bn span:last-child {
    background-color: #aaa;
  }

  .detail {
    color: #fff;
    border: 1px solid #f0ebe5;
    background-color: #a59b90;
  }
  .detail:hover {
    color: #756c64;
    background-color: #d6d1cc;
  }

  .more-info {
    background-color: #ded8d1;
    border: solid 1px #f0ebe5;
  }
  .more-close i {
    color: #ccc;
    border: 1px solid transparent;
    background-color: #67615c;
  }
  .more-content {
    color: unset;
  }
  .more-title {
    color: unset;
  }
  .more-in p {
    color: unset;
  }
}
@media screen and (max-width: 460px) {
  .more-info {
    width: 100%;
    padding: 30px 20px;
  }

  .footer-info {
    width: 100% !important;
  }

  .work {
    width: 100%;
  }
}
