@charset "utf-8";

.gallery #wrapper {
  overflow: visible;
}

.gallery h1{
  font-family: 'Anton', sans-serif;
  margin-bottom: 17rem;
  font-size: 8rem;
  text-align: center;
  letter-spacing: 3px;
  line-height: 1.4;
}
.gallery h1 span{
  display: block;
  font-size: 2rem;
  font-weight: normal;
}
.gallery .photosWrap{
  width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.gallery .photosWrap:not(:last-of-type){
  margin-bottom: 14rem;
}
.gallery .photosWrap h2{
  font-family: 'Anton', sans-serif;
  font-size: 5rem;
  border-bottom: 1px solid;
  margin-bottom: 5rem;
  position: relative;
  padding-bottom: 1rem;
}
.gallery .photosWrap h2::before,
.gallery .photosWrap h2::after{
  position: absolute;
  display: block;
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color:#111;
  bottom: -7px;
}
.gallery .photosWrap h2::before{
  left: 0;
}
.gallery .photosWrap h2::after{
  right: 0;
}
.gallery .photos{
  display: flex;
  flex-wrap: wrap;
}
.gallery .photos li a{
  display: block;
}
.gallery .photos li{
  width: 175px;
  margin-bottom: 20px;
  margin-right: 30px;
}
.gallery .photos li:nth-of-type(5n){
  margin-right: 0;
}

.gallery ol.page{
  width: 1000px;
  margin: 18rem auto 0;
  display: flex;
  justify-content: space-between;
}
.gallery ol.page li{
  display: block;
 }
.gallery ol.page li a{
  font-size: 2.2rem;
  background-color: #c8c8c8;
  padding: .4rem .8rem;
  font-weight: bold;
  position: relative;
  display: flex;
  align-items: center;
}
.gallery ol.page li.next{
  margin-right: auto;
}
.gallery ol.page li.next a::before{
  display: block;
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 8.7px 5px 0;
  border-color: transparent #000000 transparent transparent;
  margin-right: .5rem;
}
.gallery ol.page li.preview{
  margin-left: auto;
}
.gallery ol.page li.preview a::after{
  display: block;
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8.7px;
  border-color: transparent transparent transparent #000000;
  margin-left: .5rem;
}

/* ---------------------------------------------------------
ONLY SP
----------------------------------------------------------*/
@media screen and (max-width:750px){
  .gallery h1{
    margin-bottom: 8.5rem;
    font-size: 4rem;
    letter-spacing: 3px;
    line-height: 1.4;
  }
  .gallery h1 span{
    font-size: 1.7rem;
  }
  .gallery .photosWrap{
    width: 100%;
  }
  .gallery .photosWrap:not(:last-of-type){
    margin-bottom: 6.5rem;
  }
  .gallery .photosWrap h2{
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: .5rem;
  }
  .gallery .photosWrap h2::before,
  .gallery .photosWrap h2::after{
    width: 7px;
    height: 7px;
    bottom: -3px;
  }
  .gallery .photos{
    justify-content: center;
  }
  .gallery .photos li{
    max-width: 100%;
    width: 47%;
    margin: 0 .5rem 1rem;
  }
  .gallery .photos li:not(:nth-of-type(5)){
    margin-right: 0;
  }

  .gallery ol.page{
    width: 100%;
    margin: 9rem auto 0;
  }
  .gallery ol.page li a{
    font-size: 1.6rem;
    padding: .4rem 1rem;
  }

}
