/* =========================
   GALLERY PAGE
========================= */

.gallery-hero {
  padding: 80px 0 70px;
  background: #f8f5f3;
  text-align: center;
}

.gallery-hero__label {
  font-size: 13px;
  letter-spacing: 0.24em;
  color: #a58b72;
  margin-bottom: 14px;
}

.gallery-hero__title {
  font-size: 42px;
  color: #111;
  margin-bottom: 20px;
}

.gallery-hero__lead {
  color: #666;
  line-height: 1.9;
  font-size: 15px;
}

.gallery {
  padding: 80px 0 100px;
  background: #fff;
}

.gallery__tabs {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.gallery__tabs a {
  min-width: 100px;
  padding: 10px 18px;
  border: 1px solid #d8cfc7;
  border-radius: 999px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: #333;
  text-decoration: none;
  transition: 0.3s;
}

.gallery__tabs a:hover {
  background: linear-gradient(
    180deg,
    rgba(169, 129, 90, 0.96),
    rgba(169, 129, 90, 0.72)
  );
  color: #ffffff;
}

.btn:hover {
  background: linear-gradient(
    180deg,
    rgba(169, 129, 90, 0.96),
    rgba(169, 129, 90, 0.72)
  );
  color: #ffffff;
}

.gallery__section {
  margin-bottom: 80px;
}

.gallery__heading {
  font-size: 22px;
  letter-spacing: 0.18em;
  color: #111;
  margin-bottom: 28px;
  border-bottom: 1px solid #e5ded8;
  padding-bottom: 10px;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.gallery__item {
  margin: 0;
  background: #fff;
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  border-radius: 14px;
}

.gallery__item figcaption {
  padding: 14px 4px 0;
}

.gallery__item figcaption span {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #111;
  margin-bottom: 4px;
}

.gallery__item figcaption small {
  color: #666;
  font-size: 13px;
  line-height: 1.6;
}

.gallery__cta {
  margin-top: 40px;
  padding: 48px 24px;
  text-align: center;
  background: #f8f5f3;
  border-radius: 16px;
}

.gallery__cta p {
  margin-bottom: 24px;
  color: #555;
  line-height: 1.8;
}

/* SP */
@media (max-width: 768px) {
  .gallery-hero {
    padding: 90px 0 50px;
  }

  .gallery-hero__title {
    font-size: 30px;
  }

  .gallery {
    padding: 56px 0 70px;
  }

  .gallery__tabs {
    justify-content: flex-start;
    margin-bottom: 48px;
  }

  .gallery__tabs a {
    min-width: auto;
    font-size: 12px;
    padding: 9px 14px;
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .gallery__section {
    margin-bottom: 60px;
  }
}

@media (max-width: 480px) {
  .gallery__grid {
    grid-template-columns: 1fr;
  }
}

.swiper {
  overflow: visible;
}

.swiper-slide {
  height: auto;
}

.handSwiper {
  overflow: hidden;
}

.handSwiper .swiper-slide {
  width: 100%;
}

.handSwiper .gallery__item {
  margin: 0;
}
.handSwiper .gallery__item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
}
.itemSwiper {
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
}

.itemSwiper img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}
.gallery-swiper-wrap {
  position: relative;
  margin-top: 40px;
}

.hand-prev,
.hand-next {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  color: #111;
  z-index: 20;

  display: flex;
  align-items: center;
  justify-content: center;
}

.hand-prev::after,
.hand-next::after {
  font-size: 16px;
  font-weight: bold;
}

.hand-prev {
  left: -20px;
}

.hand-next {
  right: -20px;
}
.hand-prev,
.hand-next {
  opacity: 1;
  transition: 0.3s;
}

.gallery-swiper-wrap:hover .hand-prev,
.gallery-swiper-wrap:hover .hand-next {
  opacity: 1;
}
.itemSwiper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
}

.itemSwiper .swiper-button-prev,
.itemSwiper .swiper-button-next {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
  color: #111;
  z-index: 50;
  pointer-events: auto;
}

.itemSwiper .swiper-button-prev::after,
.itemSwiper .swiper-button-next::after {
  font-size: 12px;
  font-weight: bold;
}

.itemSwiper .swiper-button-prev {
  left: 10px;
}

.itemSwiper .swiper-button-next {
  right: 10px;
}
.itemSwiper .item-prev,
.itemSwiper .item-next {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
  color: #111;
  z-index: 100;
  pointer-events: auto;
  cursor: pointer;
}

.itemSwiper .item-prev::after,
.itemSwiper .item-next::after {
  font-size: 12px;
  font-weight: bold;
}

.itemSwiper .item-prev {
  left: 10px;
}

.itemSwiper .item-next {
  right: 10px;
}
/* .itemSwiper .swiper-button-disabled,
.itemSwiper .swiper-button-lock {
  opacity: 1 !important;
  display: flex !important;
  visibility: visible !important;
  pointer-events: auto !important;
} */
.itemSwiper.is-single .item-prev,
.itemSwiper.is-single .item-next {
  display: none !important;
}
.footer {
  margin-top: 0px;
}

/*modal*/
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 56px 20px;
  background: rgba(20, 16, 13, 0.84);
}

.gallery-lightbox.is-active {
  display: flex;
}

.gallery-lightbox__content {
  max-width: min(92vw, 760px);
  max-height: 82vh;
  overflow-y: auto;
  border-radius: 18px;
}

.gallery-lightbox__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  background: #fff;
}

.gallery-lightbox__close,
.gallery-lightbox__prev,
.gallery-lightbox__next {
  position: absolute;
  border: none;
  background: rgba(255, 255, 255, 0.94);
  color: #3a3029;
  cursor: pointer;
  transition: 0.3s;
}

.gallery-lightbox__close {
  top: 20px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 28px;
}

.gallery-lightbox__prev,
.gallery-lightbox__next {
  top: 50%;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 36px;
  transform: translateY(-50%);
}

.gallery-lightbox__prev {
  left: 24px;
}

.gallery-lightbox__next {
  right: 24px;
}

.gallery-lightbox__close:hover,
.gallery-lightbox__prev:hover,
.gallery-lightbox__next:hover {
  background: #b89472;
  color: #fff;
}

.gallery-lightbox-image {
  cursor: zoom-in;
}

@media (max-width: 600px) {
  .gallery-lightbox {
    padding: 64px 14px;
  }

  .gallery-lightbox__content {
    max-width: 100%;
    max-height: 78vh;
  }

  .gallery-lightbox__prev,
  .gallery-lightbox__next {
    width: 40px;
    height: 40px;
    font-size: 30px;
  }

  .gallery-lightbox__prev {
    left: 10px;
  }

  .gallery-lightbox__next {
    right: 10px;
  }
}

@media (max-width: 767px) {
  .handSwiper > .swiper-wrapper {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 12px;
    transform: none !important;
  }

  .handSwiper > .swiper-wrapper > .swiper-slide {
    width: 100% !important;
    margin-right: 0 !important;
    transform: none !important;
  }

  .itemSwiper > .swiper-wrapper {
    display: flex !important;
  }

  .itemSwiper > .swiper-wrapper > .swiper-slide {
    width: 100% !important;
  }
}
