
body{
  overflow-y: scroll;
  
  
}


//モーダル
.modal{
  //配置、装飾
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%; color: #fff;
  background-color: rgb(0 0 0 / 0.9);
  min-width: 100vw; overflow-y: scroll;
  //動き
  opacity: 1;
  z-index: -1;
  
  
}


.modal-active{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: #fff;
  background-color: rgb(0 0 0 / 0.9);
  min-width: 100vw; overflow-y: scroll;
  opacity: 1;
  z-index:8001;
  display: block;
}


.modal-inner{
  display: flex; align-items: center; min-height: 100%;
}
.close{
  position: absolute; top: 0; right: 0; z-index: 10; padding: 25px 20px 20px; cursor: pointer;
}
.close-bar{
  width: 40px; height: 2px; background: #606060;
 
}


.close-bar:nth-child(1){
  transform: translateY(13px) rotate(-45deg);
}
.close-bar:nth-child(2){
  transform: translateY(-13px) rotate(45deg); margin: 24px 0 0; 
}



//スワイパー
.modal-swiper{
  --swiper-pagination-color: #fff;
  --swiper-pagination-bullet-inactive-color: #fff;
  --swiper-pagination-bullet-size: 10px;
  --swiper-pagination-bullet-horizontal-gap: 6px;
  width: 92%; padding: 50px 0;
}
.modal-slide{
  text-align: center;
}
.modal-nav-next,
.modal-nav-prev{
  position: absolute; z-index: 2; top: 0; bottom: 0; margin: auto; cursor: pointer; outline: none;
  display: flex; align-items: center;
  &::before{
    content: ""; width: 35px; height: 35px; border-style: solid; border-color: #606060;
  }
}
.modal-nav-prev{
  left: 20px;
  &::before{
    border-width: 2px 0 0 2px; transform: rotate(-45deg);
  }
}
.modal-nav-next{
  right: 20px;
  &::before{
    border-width: 2px 2px 0 0; transform: rotate(45deg);
  }
}
.modal-pagination{
  position: fixed; right: 0; bottom: 5vh !important; left: 0; text-align: center; 
}

//画像を並べる（並び方に関係するcssを一部省略）
.wrap{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px 20px;
  padding: 0vh 0;
}

.pg_wapper{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 20px 20px;
  width: 100%;
  margin: 10vh auto 0 auto;
  padding: 0vh 0;
}


.item{
  cursor: pointer;
}
.item-img{
  width: 100%; height: 100%; object-fit: cover;
}

.swiper {
  width: 100%;
  height: 80vh;
}
.swiper-wrapper,
.swiper-slide{
  height: 100% !important;
}

.modal-img{
  height: 100%;
  width: auto;
}

@media (max-width: 767px) {
  .pg_wapper {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px 10px;
  }
  .modal-pagination {
    top:90vh; 
  }
  .swiper {
      width: 90%;
      height: 100%;
  }
  .modal-img {
      height: auto;
      width: 100%;
  }
  .swiper-autoheight .swiper-wrapper {
      align-items: center;
      transition-property: transform, height;
  }
}

.swiper-pagination-bullet {
  background: #d7d7d7;
}
.swiper-pagination-bullet-active {
  background: #fff;
}
