@charset "UTF-8";
@import url("https://fonts.googleapis.com/css?family=Open+Sans");
@import url("https://fonts.googleapis.com/css?family=Crimson+Text");
@-webkit-keyframes loading {
  0% {
    left: -30px;
  }
  70% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}
@-moz-keyframes loading {
  0% {
    left: -30px;
  }
  70% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}
@-o-keyframes loading {
  0% {
    left: -30px;
  }
  70% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}
@keyframes loading {
  0% {
    left: -30px;
  }
  70% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}
.header-bg {
  display: block;
}

.header-logo-mask, #nav, #menu {
  -moz-transform: translateY(-30px);
  -ms-transform: translateY(-30px);
  -webkit-transform: translateY(-30px);
  transform: translateY(-30px);
}

#main {
  padding-top: 90px;
  min-height: 0;
}

.showbox .content {
  max-width: none;
  padding: 0;
}

.viewport {
  position: relative;
  margin: 0 auto;
  height: calc(100vh - 145px);
  overflow: hidden;
}
.viewport ul {
  position: relative;
  height: 100%;
  margin: auto;
}
.viewport img {
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  max-width: 100%;
  max-height: 100%;
}

.bnPrev, .bnNext {
  position: absolute;
  width: 40px;
  height: 40px;
  top: 50%;
  margin-top: -20px;
  background-image: url("../images/works/arrow.png");
  background-repeat: no-repeat;
  cursor: pointer;
  opacity: 0.3;
}
.bnPrev:hover, .bnNext:hover {
  opacity: 0.6;
}

.bnPrev {
  left: 20px;
  background-position: center 0;
}

.bnNext {
  right: 20px;
  background-position: center -40px;
}

.panel {
  position: relative;
  padding: 20px 40px;
  background: rgba(81, 81, 81, 0.9);
  border-bottom: #444 1px solid;
  box-sizing: border-box;
  z-index: 2;
}
.panel-wrap {
  position: relative;
}

.casename {
  color: #fff;
  text-align: center;
}
.casename .tw {
  font-size: 16px;
}
.casename .location,
.casename .footage {
  display: inline-block;
  margin-left: 20px;
}

.share {
  position: absolute;
  top: 0;
  left: 0;
  text-align: center;
}
.share > * {
  margin: 0 15px;
  color: #fff;
  font-size: 18px;
  opacity: 0.5;
  cursor: pointer;
}
.share > *:first-child {
  margin-left: 0;
}
.share > *:hover {
  opacity: 1;
}

.back {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 15px;
  opacity: 0.6;
}
.back:hover {
  opacity: 1;
}
.back a {
  display: block;
  color: #fff;
  height: 20px;
  line-height: 20px;
}
.back img {
  height: 20px;
  margin-right: 2px;
  vertical-align: middle;
  display: inline-block;
}

.bn-project {
  position: absolute;
  top: 0;
  right: 100px;
  padding-left: 18px;
  height: 20px;
  line-height: 20px;
  color: #fff;
  font-size: 15px;
  opacity: 0.6;
  cursor: pointer;
}
.bn-project:hover {
  opacity: 1;
}
.bn-mask {
  position: absolute;
  top: 4px;
  left: 0;
  width: 13px;
  height: 13px;
  overflow: hidden;
}
.bn-mask img {
  width: 100%;
}
.bn-close {
  position: absolute;
  top: 55px;
  right: 40px;
  opacity: 0.5;
  cursor: pointer;
}
.bn-close:hover {
  opacity: 1;
}

.project {
  position: absolute;
  top: 100vh;
  left: 0;
  width: 100%;
  height: calc(100vh - 90px - 50px);
  background: #fff;
  box-sizing: border-box;
  -moz-transition: top 0.3s;
  -o-transition: top 0.3s;
  -webkit-transition: top 0.3s;
  transition: top 0.3s;
  z-index: 1;
}
.project .content {
  height: 100%;
  padding: 60px 0;
}

.filtr-container {
  margin: 20px;
}

.scroll {
  height: 100%;
}

.mCS-my-theme.mCSB_inside > .mCSB_container {
  margin-right: 16px;
}

.mCS-my-theme.mCSB_scrollTools .mCSB_dragger {
  height: 40px;
}
.mCS-my-theme.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
  width: 5px;
  border-radius: 0;
  background: #000;
}
.mCS-my-theme.mCSB_scrollTools .mCSB_draggerRail {
  width: 1px;
  background-color: rgba(204, 204, 204, 0.3);
}

/*------------------------------------------
 *             tablet 、 Mobile
 *------------------------------------------*/
@media only screen and (max-width: 1100px) {
  #main {
    padding-top: 70px;
  }

  .viewport {
    margin-top: 80px;
    height: auto;
  }
  .viewport img {
    position: static;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    -moz-transform: none;
    -ms-transform: none;
    -webkit-transform: none;
    transform: none;
  }

  .panel {
    position: absolute;
    width: 100%;
    left: 0;
    top: 70px;
    border-top: #333 1px solid;
    border-bottom: none;
  }

  .bn-project {
    display: none;
  }
  .bn-mask img {
    margin-top: -13px;
  }
  .bn-close {
    display: none;
  }

  .bnPrev,
  .bnNext {
    display: none;
  }

  .project {
    position: relative;
    top: 0;
    height: auto;
  }
}
@media only screen and (max-width: 780px) {
  .viewport {
    margin-top: 110px;
  }

  .panel {
    height: 90px;
    padding: 20px 5vw;
  }

  .casename {
    text-align: left;
  }

  .share {
    top: 40px;
  }
  .share > * {
    font-size: 16px;
  }

  .back {
    top: 40px;
  }
}
@media only screen and (max-width: 560px) {
  .viewport {
    margin-top: 130px;
  }

  .panel {
    height: 110px;
  }

  .casename .tw {
    display: block;
    margin-bottom: 10px;
  }
  .casename .location {
    margin-left: 0;
  }

  .share,
  .back {
    top: 55px;
  }
}
