@charset "UTF-8";
/* 
Theme Name:豊中庄内ヴェルデデンタルクリニック
*/
.gallery_outer {
  position: relative;
  background: #efefef;
  background-size: 100% auto;
  margin-bottom: 150px;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  padding: 100px 0;
}
@media screen and (max-width: 1024px) {
  .gallery_outer {
    padding: 50px 0;
  }
}
@media screen and (max-width: 767px) {
  .gallery_outer {
    padding: 10vw 0;
  }
}

#gallery {
  display: flex;
  justify-content: space-between;
  flex-direction: row-reverse;
  flex-wrap: wrap;
  position: relative;
  padding: 0 2rem;
  position: relative;
  max-width: 1200px;
  margin: 0 auto 0 auto !important;
}
#gallery > * {
  z-index: 3;
}
#gallery h2 {
  width: 100%;
}
#gallery .image {
  width: 59.7%;
  position: relative;
}
#gallery .image img {
  vertical-align: top;
}
#gallery .thumbs {
  width: 37.1%;
}
#gallery .thumbs .thumbs_parent {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
#gallery .thumbs .thumbs_parent::after {
  content: "";
  width: 33%;
  height: 0;
}
#gallery .thumbs .thumbs_parent .slide {
  width: 33%;
  height: 33%;
  border: solid 2px #fff;
  margin-bottom: 21px;
  transition: 0.3s;
}
#gallery .thumbs .thumbs_parent .slide img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: 0.3s;
  cursor: pointer;
}
#gallery .thumbs .thumbs_parent .slide img:hover {
  opacity: 0.6;
}
#gallery .thumbs .thumbs_parent .slide.current {
  border-color: #98633E;
}
#gallery .thumbs .thumbs_parent .slick-current .slide {
  border-color: #98633E;
}
#gallery .arrow {
  width: 40px;
  height: 40px;
  padding: 10px;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  transition: 0.3s;
}
#gallery .arrow:hover {
  opacity: 0.7;
}
#gallery .arrow span {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}
#gallery .arrow span::before, #gallery .arrow span::after {
  content: "";
  position: absolute;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}
#gallery .arrow span::before {
  width: 100%;
  height: 3px;
}
#gallery .arrow span::after {
  width: 3px;
  height: 100%;
  right: 0;
}
#gallery .arrow.next {
  right: 20px;
}
#gallery .arrow.next span {
  transform: rotate(45deg);
}
#gallery .arrow.prev {
  left: 20px;
}
#gallery .arrow.prev span {
  transform: rotate(-135deg);
}
@media screen and (max-width: 1024px) {
  #gallery .thumbs .thumbs_parent::after {
    width: calc(37.1vw * 0.304);
  }
  #gallery .thumbs .thumbs_parent .slide {
    width: calc(37.1vw * 0.304);
    height: calc(37.1vw * 0.304);
    margin-bottom: calc(37.1vw * 0.304 * 0.15);
  }
}
@media screen and (max-width: 767px) {
  #gallery {
    display: block;
    margin-bottom: 3rem;
  }
  #gallery .image {
    width: auto;
    margin-bottom: 3vw;
  }
  #gallery .thumbs {
    width: auto;
  }
  #gallery .thumbs .thumbs_parent {
    display: block;
  }
  #gallery .thumbs .thumbs_parent::after {
    display: none;
  }
  #gallery .thumbs .thumbs_parent .slide {
    width: 30vw !important;
    height: 30vw;
    margin: 0 1.5vw;
  }
  #gallery .arrow {
    width: 3rem;
    height: 3rem;
    padding: 0.8rem;
  }
  #gallery .arrow.next {
    right: 0.5rem;
  }
  #gallery .arrow.prev {
    left: 0.5rem;
  }
}
