html {
  scroll-behavior: smooth;
}

.gallery_head {
  width: 100%;
  max-width: 953px;
  margin-top: 30px;
}
@media screen and (min-width: 769px) {
  .gallery_head {
    padding: 0 20px;
    margin: 50px 50px 0 auto;
  }
}
.gallery_li {
  width: calc(50% - 5px);
  max-width: 400px;
  margin-top: 40px;
  display: none;
}
.gallery_ol {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 0 10px;
}
.gallery_btn {
  display: block;
  width: 100%;
}
@media screen and (min-width: 769px) {
  .gallery_ol {
    max-width: 1245px;
    margin: 120px auto 0;
  }
  .gallery_ol::after {
    content: "";
    width: calc(33.333% - 0.6666px);
    height: 0;
    display: block;
  }
  .gallery_li {
    width: calc(33.333% - 6.6666px);
  }
}

.slide {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 100;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 30px 10px;
  transition: 0.5s;
  opacity: 0;
}
.slide.show {
  opacity: 1;
}
.slide_in {
  width: 100%;
  max-width: 1000px;
  height: 100%;
  max-height: 800px;
}
.slide_img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}
.slide_img.show {
  opacity: 1;
}
.slide_img.W {
  width: 100%;
}
.slide_img.L {
  width: 80%;
}
.slide_img .img-L {
  width: 100%;
  height: auto;
  vertical-align: bottom;
}
.slide_img .img-W {
  width: 100%;
  height: auto;
  vertical-align: bottom;
}
.slide_prev {
  display: block;
  width: 20px;
  position: absolute;
  top: calc(50% - 32px);
  left: 0;
}
.slide_next {
  display: block;
  width: 20px;
  position: absolute;
  top: calc(50% - 32px);
  right: 0;
}
.slide_close {
  width: 60px;
  height: 60px;
  position: absolute;
  top: 0;
  right: 0;
}
.slide_close::before {
  content: "";
  width: 100%;
  height: 1px;
  background: #FFF;
  position: absolute;
  top: 50%;
  left: 0;
  transform: rotate(45deg);
}
.slide_close::after {
  content: "";
  width: 100%;
  height: 1px;
  background: #FFF;
  position: absolute;
  top: 50%;
  left: 0;
  transform: rotate(-45deg);
}
@media screen and (min-width: 769px) {
  .slide_img.L {
    width: auto;
    height: 100%;
  }
  .slide_img .img-L {
    height: 100%;
    width: auto;
  }
  .slide_prev {
    width: 40px;
    top: calc(50% - 63px);
  }
  .slide_next {
    width: 40px;
    top: calc(50% - 63px);
  }
}

.pager {
  display: flex;
  justify-content: flex-end;
  max-width: 1245px;
  padding: 0 10px;
  margin: 80px auto 0;
}
.pager_btn {
  display: grid;
  place-items: center;
  background: #505050;
  color: #FFF;
  border: none;
  outline: none;
  padding: 0;
  margin-left: 3px;
  width: 42px;
  height: 42px;
  font-size: 18px;
  cursor: pointer;
}
.pager_btn:hover {
  background: #b89f58;
  color: #000;
}
.pager_btn.active {
  background: #b89f58;
  color: #000;
  pointer-events: none;
}