.main {
  position: relative;
  min-height: 100%;
  overflow: hidden;
}

.content {
  display: block;
}

.title {
  padding-top: 30px;
  padding-left: 40px;
  text-align: center;
}
.title .t-tw {
  font-size: 1.4em;
  display: inline-block;
  letter-spacing: 0.2em;
}
.title .t-tw:after {
  content: "";
  padding-top: 11px;
  padding-left: 40px;
  background: #e6e6e6;
  position: relative;
  top: 0px;
  left: -25px;
  z-index: -1;
}

.work {
  position: relative;
  max-width: 80%;
  height: calc(100vh - 100px - 30px);
  margin: 10px auto 0;
  background: #fff;
  z-index: 1;
}
.work ul {
  margin: 0;
  padding: 0;
}
.work li {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
}
.work img {
  position: absolute;
  top: 50%;
  left: 50%;
  -moz-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

.text {
  position: relative;
  top: 18%;
  width: 60%;
  height: 50%;
  margin: auto;
  line-height: 2em;
  opacity: 0;
  background-color: rgba(0, 0, 0, 0.9);
  padding: 50px;
  z-index: 50;
  -moz-transition: all 500ms ease-in-out;
  -o-transition: all 500ms ease-in-out;
  -webkit-transition: all 500ms ease-in-out;
  transition: all 500ms ease-in-out;
}
.text h4 {
  color: #fff;
}

.x {
  position: absolute;
  right: 20px;
  top: 15px;
  width: 10px;
  height: 10px;
  cursor: pointer;
  padding: 2px;
  background-color: rgba(255, 255, 255, 0.5);
  margin-top: 8px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}
.x:hover {
  -moz-transition: all 200ms ease;
  -o-transition: all 200ms ease;
  -webkit-transition: all 200ms ease;
  transition: all 200ms ease;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}
.x img {
  width: 10px;
}

.t-color {
  color: #ccc;
}

.text-inner {
  overflow: hidden;
  position: relative;
  height: 100%;
}

.panel {
  width: 100%;
  margin-top: 20px;
  padding: 15px 0;
  background: rgba(0, 0, 0, 0.8);
  text-align: center;
  z-index: 1;
  -moz-transition: padding 0.3s ease-in;
  -o-transition: padding 0.3s ease-in;
  -webkit-transition: padding 0.3s ease-in;
  transition: padding 0.3s ease-in;
}
.panel > * {
  display: inline-block;
  vertical-align: middle;
  margin: 0 15px;
  cursor: pointer;
}
.panel > *:hover {
  color: #000;
}

.show {
  height: 12px;
}

.prev {
  height: 10px;
}

.next {
  height: 10px;
}

.backbt {
  height: 10px;
}

.play {
  position: absolute;
  margin: 0 17px;
  height: 10px;
  -moz-transition: all 0.3s ease-in;
  -o-transition: all 0.3s ease-in;
  -webkit-transition: all 0.3s ease-in;
  transition: all 0.3s ease-in;
}

.stop {
  position: relative;
  margin: 0 15px;
  height: 10px;
  -moz-transition: all 0.3s ease-in;
  -o-transition: all 0.3s ease-in;
  -webkit-transition: all 0.3s ease-in;
  transition: all 0.3s ease-in;
}
.stop img {
  height: 100%;
  margin: 0 auto;
}

.back2 {
  display: none;
  height: 10px;
}
.back2 img {
  height: 100%;
  margin: 0 auto;
}

.mCS-my-theme.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
  background-color: rgba(255, 255, 255, 0.8);
}

.mCS-my-theme.mCSB_scrollTools .mCSB_draggerRail {
  background-color: rgba(0, 0, 0, 0.2);
}

#loading {
  width: 100%;
  height: calc(100vh);
  position: absolute;
  top: 0;
  background-color: #fff;
  z-index: 40;
}

.loading-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 250px;
  -moz-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}
.loading-logo img {
  width: 100%;
}

@media only screen and (max-width: 1100px) {
  #idPrev, #idNext, #idZoom, #idAuto {
    display: none;
  }

  .x {
    display: none;
  }

  .work {
    width: 90%;
    max-width: 850px;
    height: auto;
    margin: 40px auto 20px;
  }
  .work li {
    position: static;
  }
  .work img {
    position: relative;
    top: 0;
    left: 0;
    margin-bottom: 30px;
    -moz-transform: translate(0, 0);
    -ms-transform: translate(0, 0);
    -webkit-transform: translate(0, 0);
    transform: translate(0, 0);
    -moz-transition: none;
    -o-transition: none;
    -webkit-transition: none;
    transition: none;
  }

  .text {
    position: relative;
    top: 0;
    width: 100%;
    height: 100%;
    margin: auto;
    background-color: rgba(255, 255, 255, 0.8);
    opacity: 1;
    overflow: auto;
    padding: 0 0 50px 0;
    z-index: 50;
  }
  .text h4 {
    color: #000;
  }

  .t-color {
    color: #666;
  }

  .panel {
    display: none;
  }

  .back2 {
    display: block;
    margin: 0 auto 50px;
    width: fit-content;
    padding: 10px 15px;
    background-color: rgba(0, 0, 0, 0.8);
  }
}
@media only screen and (max-width: 860px) {
  .work {
    width: 95%;
  }
  .work img {
    margin-bottom: 20px;
  }
}
@media only screen and (max-width: 640px) {
  .work {
    width: 100%;
  }
  .work img {
    margin-bottom: 10px;
  }

  .text {
    padding: 0 0 30px 0;
    margin: auto;
    max-width: 90%;
  }

  .back2 {
    margin-bottom: 30px;
  }
}
