.top {
  overflow: hidden;
}
.top-images {
  height: calc(100vh - 275px);
  background-position: center 90%;
}
.top-images:after {
  content: "";
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  background: #000;
  opacity: 0.2;
}
.top-wrap {
  margin-top: calc(100vh - 275px);
  padding-bottom: 75px;
  background: #222;
  height: 200px;
}

.media-sort {
  padding: 0 8%;
  background: #2f2f2f;
  margin: 40px 0;
  line-height: 40px;
  text-align: center;
  opacity: 0;
  -moz-transition: opacity 0.6s;
  -o-transition: opacity 0.6s;
  -webkit-transition: opacity 0.6s;
  transition: opacity 0.6s;
}
.media-sort.show {
  opacity: 1;
}
.media-sort a {
  display: inline-block;
  position: relative;
  font-size: 0.875em;
  margin: 0 10px;
  color: #bbb;
}
.media-sort a .tw {
  position: absolute;
  left: 50%;
  white-space: nowrap;
  -moz-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  opacity: 0;
}
.media-sort a .tw, .media-sort a .en {
  -moz-transition: opacity 0.3s;
  -o-transition: opacity 0.3s;
  -webkit-transition: opacity 0.3s;
  transition: opacity 0.3s;
}
.media-sort a:hover, .media-sort a.active {
  color: #FFF;
}
.media-sort a:hover .tw {
  opacity: 1;
}
.media-sort a:hover .en {
  opacity: 0;
}
.media-content {
  padding: 8% 8%;
}
.media-list {
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: -5%;
}
.media-item {
  width: 40%;
  margin: 2.5% 5%;
}
.media-item:nth-child(odd) {
  margin-top: 10%;
}
.media-img {
  position: relative;
  overflow: hidden;
}
.media-img img {
  width: 100%;
  -moz-transition: -moz-transform 1s;
  -o-transition: -o-transform 1s;
  -webkit-transition: -webkit-transform 1s;
  transition: transform 1s;
}
.media-img:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  -moz-transition: width 0.6s;
  -o-transition: width 0.6s;
  -webkit-transition: width 0.6s;
  transition: width 0.6s;
}
.media-item:hover .media-img:after, .book-item:hover .media-img:after {
  width: 100%;
}
.media-item:hover .media-img img, .book-item:hover .media-img img {
  -moz-transform: scale(1.2);
  -ms-transform: scale(1.2);
  -webkit-transform: scale(1.2);
  transform: scale(1.2);
}
.media-img:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: #222;
  z-index: 5;
  -moz-transition: width 0.6s, height 0.6s;
  -o-transition: width 0.6s, height 0.6s;
  -webkit-transition: width 0.6s, height 0.6s;
  transition: width 0.6s, height 0.6s;
}
.media-item:nth-child(4n+1) .media-img:before, .book-item:nth-child(4n+1) .media-img:before {
  top: 0;
  left: 0;
}
.media-item:nth-child(4n+2) .media-img:before, .book-item:nth-child(4n+2) .media-img:before {
  right: 0;
  top: 0;
}
.media-item:nth-child(4n+3) .media-img:before, .book-item:nth-child(4n+3) .media-img:before {
  left: 0;
  top: 0;
}
.media-item:nth-child(4n) .media-img:before, .book-item:nth-child(4n) .media-img:before {
  left: 0;
  bottom: 0;
}
.show:nth-child(4n+1) .media-img:before, .show:nth-child(4n) .media-img:before {
  height: 0;
}
.show:nth-child(4n+2) .media-img:before, .show:nth-child(4n+3) .media-img:before {
  width: 0;
}
.media-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  margin: -20px 0 0 -20px;
  border: #FFF solid 2px;
  border-radius: 50%;
  z-index: 1;
  opacity: 0;
  -moz-transition: opacity 0.6s;
  -o-transition: opacity 0.6s;
  -webkit-transition: opacity 0.6s;
  transition: opacity 0.6s;
}
.media-item:hover .media-play {
  opacity: 1;
}
.media-play:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -8px 0 0 -8px;
  border-left: 16px solid #FFF;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}
.media-view {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  text-align: center;
  line-height: 36px;
  margin: -20px 0 0 -20px;
  border: #FFF solid 2px;
  border-radius: 50%;
  z-index: 1;
  opacity: 0;
  -moz-transition: opacity 0.6s;
  -o-transition: opacity 0.6s;
  -webkit-transition: opacity 0.6s;
  transition: opacity 0.6s;
}
.book-item:hover .media-view {
  opacity: 1;
}
.media-info {
  opacity: 0;
  -moz-transition: opacity 0.6s;
  -o-transition: opacity 0.6s;
  -webkit-transition: opacity 0.6s;
  transition: opacity 0.6s;
}
.show .media-info {
  opacity: 1;
  -moz-transition-delay: 0.3s;
  -o-transition-delay: 0.3s;
  -webkit-transition-delay: 0.3s;
  transition-delay: 0.3s;
}
.media-infotitle {
  font-size: 0.875em;
  margin: 10px 0;
  color: #FFF;
}
.media-date, .media-source, .media-type {
  color: #999;
  font-size: 0.75em;
}
.media-more {
  position: relative;
  font-size: 0.75em;
  color: #666;
  overflow: hidden;
  margin-top: 20px;
}
.media-more:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: #444;
}
.media-more:after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 0%;
  height: 1px;
  background: #FFF;
  -moz-transition: width 0.6s;
  -o-transition: width 0.6s;
  -webkit-transition: width 0.6s;
  transition: width 0.6s;
}
.media-more span {
  position: relative;
  float: right;
  display: inline-block;
  background: #222;
  padding-left: 10px;
  z-index: 1;
}
.media-item:hover .media-more {
  color: #FFF;
}
.media-item:hover .media-more:after {
  width: 100%;
}

.book-list {
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 0 -2.5%;
}
.book-item {
  width: 20%;
  margin: 2.5%;
}

@media screen and (max-height: 400px) {
  .top-images {
    height: 125px;
  }
  .top-wrap {
    margin-top: 125px;
  }
}
@media screen and (max-width: 1200px) {
  .book-list {
    margin: 0 -1.5%;
  }
  .book-item {
    width: 30.3333%;
    margin: 2.5% 1.5%;
  }
}
@media screen and (max-width: 760px) {
  .media-list {
    margin: -2.5%;
  }
  .media-item {
    margin: 2.5%;
    width: 45%;
  }

  .book-list {
    margin: 0 -2.5%;
  }
  .book-item {
    margin: 2.5%;
    width: 45%;
  }
}
@media screen and (max-width: 640px) {
  .top-images {
    height: calc(100vh - 205px);
  }
  .top-wrap {
    margin-top: calc(100vh - 205px);
    padding-bottom: 55px;
    height: 150px;
  }

  .media-content {
    padding: 40px 20px;
  }
  .media-list {
    margin: 0;
    display: block;
  }
  .media-item {
    width: auto;
    margin: 20px 0 0;
  }
  .media-item:nth-child(odd) {
    margin-top: 20px;
  }

  .book-list {
    margin: 0;
    display: block;
  }
  .book-item {
    width: auto;
    margin: 20px 0 0;
  }
  .book-item .media-img {
    background: #2f2f2f;
    padding: 10px;
    box-sizing: border-box;
  }
  .book-item .media-img img {
    width: 50%;
    margin: auto;
  }
}
