@charset "UTF-8";

/* ============================
   TOMOWL - GALLERY ページ
   ============================ */

/* ---------- Gallery Section ---------- */
.gallery-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px 0;
  background-color: #f5f3ee;
}

/* ---------- Main Image ---------- */
.gallery-hero-image {
  width: 100%;
  overflow: hidden;
}

.gallery-hero-image img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
}

/* ---------- Gallery Slider ---------- */
.gallery-slider {
  width: 100%;
  display: grid;
  grid-template-columns: 24px 1fr 24px;
  align-items: center;
  column-gap: 18px;
  padding-top: 24px;
}

.gallery-slider__image {
  width: 100%;
  overflow: hidden;
}

.gallery-slider__image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Gallery Arrow ---------- */
.gallery-arrow {
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.gallery-arrow img {
  width: 24px;
  height: 24px;
  display: block;
}

/* ---------- Gallery Dots ---------- */
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 16px;
}

.gallery-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #d9d9d9;
}

.gallery-dot.is-active {
  background-color: #ca9c00;
}

.gallery-slider__image img {
  width: 100%;
  display: block;
  opacity: 1;
  transition: opacity 0.35s ease-in-out;
}

.gallery-slider__image img.is-fading {
  opacity: 0;
}
.gallery-slider__image img {
  width: 100%;
  display: block;
  opacity: 1;
  transition: opacity 0.35s ease-in-out;
}

.gallery-slider__image img.is-fading {
  opacity: 0;
}

/* =================================
   Lightbox Modal
================================= */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.gallery-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.gallery-lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.gallery-lightbox__content {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(88vw, 720px);
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.gallery-lightbox__image {
  display: block;
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
}

.gallery-lightbox__close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 3rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-slider__image img {
  cursor: pointer;
}