[class*='swiper']:focus {
  outline: none;
}

/* Swiperのコンテナ */
.swiper {
  width: 100%;
  height: auto;
  position: relative;
  z-index: 0;
}

.mainimage-inner .swiper {
  overflow: hidden;
  z-index: 0;
}

.main-image-swiper .swiper-slide {
  width: 100%;
}

.main-image-swiper .swiper-slide img {
  display: block;
  width: 100%;
  transition: all 0.3s ease;
  opacity: 0.4;
}

.main-image-swiper .swiper-slide-visible img {
  opacity: 1;
}

.main-image-pagination {
  position: absolute;
  top: auto;
  right: 0;
  bottom: 2rem;
  left: 0;
  margin: 0;
  padding: 0;
  text-align: center;
  z-index: 20;
}

.main-image-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: #fff;
  border-radius: 50%;
  margin: 0 8px !important;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 1;
  box-shadow: 0 0 1.2rem rgba(0, 0, 0, 0.8);
}

.main-image-pagination .swiper-pagination-bullet-active {
  background-color: var(--color-theme);
  transform: scale(1.2);
}

@media only screen and (max-width: 1024px) {
  .main-image-pagination {
    bottom: 1.2rem;
  }
}

@media only screen and (max-width: 599px) {
  .main-image-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    margin: 0 4px;
  }
}

/* 物件画像ギャラリー */
.property-single__gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 2rem;
}

.property-gallery-main {
  position: relative;
}

.property-gallery-main .swiper-slide {
  width: 100%;
  height: auto;
}

.property-gallery-main .swiper-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  max-height: 600px;
}

@media only screen and (max-width: 599px) {
  .property-gallery-main .swiper-slide img {
    max-height: 400px;
  }
}

/* 物件画像ギャラリーのナビゲーションボタン */
.property-gallery-main .swiper-button-next,
.property-gallery-main .swiper-button-prev {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  color: var(--color-theme);
  transition: all 0.3s ease;
}

.property-gallery-main .swiper-button-next:hover,
.property-gallery-main .swiper-button-prev:hover {
  background-color: rgba(255, 255, 255, 1);
}

.property-gallery-main .swiper-button-next:after,
.property-gallery-main .swiper-button-prev:after {
  font-size: 16px;
  font-weight: bold;
}

@media only screen and (max-width: 599px) {
  .property-gallery-main .swiper-button-next,
  .property-gallery-main .swiper-button-prev {
    width: 32px;
    height: 32px;
  }

  .property-gallery-main .swiper-button-next:after,
  .property-gallery-main .swiper-button-prev:after {
    font-size: 12px;
  }
}

/* サムネイル一覧（折り返し表示） */
.property-gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 10px;
}

.property-gallery-thumb-item {
  /* flex: 0 0 calc(25% - 7.5px); */
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  border: 2px solid transparent;
}

.property-gallery-thumb-item:hover {
  opacity: 1;
}

.property-gallery-thumb-item.is-active {
  opacity: 1;
  border-color: var(--color-theme);
}

.property-gallery-thumb-item img {
  /* width: 100%; */
  height: auto;
  display: block;
  object-fit: cover;
}
