@import url("https://fonts.googleapis.com/css?family=Poppins&display=swap");
.box-work {
  height: calc(100vh - 120px);
  overflow: hidden;
  position: relative;
  margin-top: 50px;
}

.work {
  height: 100%;
  margin: auto;
  position: relative;
  width: 100vw;
}
.work img {
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  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%);
}

.bn-top {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 15px 0;
}
.bn-top .name {
  text-align: center;
  font-size: 16px;
}
.bn-back {
  position: absolute;
  right: 0;
  top: 0;
  padding: 15px 20px;
  font-size: 18px;
  opacity: 1;
  -moz-transition: opacity 0.3s;
  -o-transition: opacity 0.3s;
  -webkit-transition: opacity 0.3s;
  transition: opacity 0.3s;
}
.bn-back:hover {
  opacity: 0.5;
}
.bn-bottom {
  position: fixed;
  bottom: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 50px;
  box-sizing: border-box;
  z-index: 10;
}

.bnprev,
.bnnext {
  cursor: pointer;
  opacity: 1;
  -moz-transition: opacity 0.3s;
  -o-transition: opacity 0.3s;
  -webkit-transition: opacity 0.3s;
  transition: opacity 0.3s;
}
.bnprev i,
.bnnext i {
  padding: 0 5px;
}
.bnprev:hover,
.bnnext:hover {
  opacity: 0.7;
}

.page {
  width: 100px;
  text-align: center;
}

@media screen and (max-width: 1100px) {
  .box-work {
    height: unset;
    overflow: unset;
    margin-bottom: 100px;
    margin-top: 80px;
  }

  .work {
    height: unset;
    width: calc(100% - 100px);
  }
  .work li {
    margin-bottom: 20px;
  }
  .work img {
    max-width: unset;
    max-height: unset;
    margin: auto;
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    -moz-transform: translate(0, 0);
    -ms-transform: translate(0, 0);
    -webkit-transform: translate(0, 0);
    transform: translate(0, 0);
  }

  .bn-bottom {
    display: none;
  }
  .bn-top {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    box-sizing: border-box;
    padding: 0 50px;
    z-index: 5;
  }
  .bn-back {
    top: 10px;
  }
}
@media screen and (max-width: 460px) {
  .work {
    width: 100%;
    margin-top: 10px;
  }
  .work li {
    margin-bottom: 10px;
  }

  .bn-top {
    padding: 0 50px 0 20px;
  }
}
