@import url("https://fonts.googleapis.com/css?family=Roboto");
@import url("https://fonts.googleapis.com/css?family=Source+Serif+Pro");
body {
  background: #bba27b;
}

.box-work {
  height: calc(100vh - 120px);
  overflow: hidden;
  position: relative;
  margin-top: 90px;
}

.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 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 10px 50px;
  box-sizing: border-box;
  background: #523608;
  z-index: 10;
}
.bn-back {
  width: 30px;
  position: absolute;
  right: 20px;
  top: 15px;
}
.bn-back img {
  width: 100%;
  opacity: 0.8;
}
.bn-back:hover img {
  opacity: 1;
}
.bn .more {
  font-size: 20px;
  padding: 10px;
  opacity: 0.8;
  cursor: pointer;
  -moz-transition: all 0.3s;
  -o-transition: all 0.3s;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}
.bn .more img {
  width: 100%;
}
.bn .more:hover {
  opacity: 1;
}

.gallery-in {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-text li {
  padding: 3px 0;
}

.gallery-close {
  cursor: pointer;
  position: absolute;
  bottom: 50px;
}
.gallery-close img {
  margin: auto;
}

.bnprev,
.bnnext {
  cursor: pointer;
  height: 50px;
  width: 50px;
  position: absolute;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #a07e3e;
  border-radius: 50%;
  border: 1px solid #decd9c;
  opacity: 0.8;
  -moz-transition: opacity 0.3s;
  -o-transition: opacity 0.3s;
  -webkit-transition: opacity 0.3s;
  transition: opacity 0.3s;
  z-index: 50;
}
.bnprev:hover,
.bnnext:hover {
  opacity: 1;
}

.bnprev {
  left: 20px;
}

.bnnext {
  right: 20px;
}

.name {
  text-align: center;
  font-size: 16px;
}

.page {
  width: 60px;
  text-align: right;
  position: absolute;
  right: 70px;
}
.page span {
  display: inline-block;
}

@media screen and (min-width: 1100px) {
  .gallery-in {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 500px;
    width: 500px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.6);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    z-index: 50;
    pointer-events: none;
    opacity: 0;
    -moz-transition: all 0.3s;
    -o-transition: all 0.3s;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
  }
  .gallery-in.show {
    pointer-events: auto;
    opacity: 1;
  }

  .gallery-text {
    max-width: 350px;
  }
}
@media screen and (max-width: 1100px) {
  .gallery-in {
    max-width: 90%;
    padding: 80px 0 40px;
    margin: auto;
  }

  .box-work {
    border-bottom: 0px solid;
    height: unset;
    overflow: unset;
    margin-top: 0;
  }

  .work {
    height: unset;
    width: 90%;
  }
  .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);
  }

  .more,
  .bnprev,
  .bnnext,
  .page {
    display: none;
  }

  .bn {
    top: 0;
    bottom: auto;
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .bn-back {
    right: 20px;
    top: 5px;
  }
}
@media screen and (max-width: 640px) {
  .gallery-in {
    display: block;
    padding: 60px 0 20px;
  }
}
@media screen and (max-width: 460px) {
  .work {
    width: 95%;
  }
  .work li {
    margin-bottom: 10px;
  }
}
