.gallery-page {
  background: #fff;
  color: #333;
}
.container {
  margin: 0 auto;
  padding: 56px 24px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
@media (max-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gallery-item {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: var(--global-shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4/3;
  transition: transform 0.25s ease;
}
.gallery-item:hover img {
  transform: scale(1.03);
}

/* ==== Lightbox ==== */
.glb {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.glb.is-open {
  display: flex;
}
.glb-stage {
  max-width: 95vw;
  max-height: 90vh;
  text-align: center;
}

#glbImg {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 4px;
  box-shadow: var(--global-shadow);
}

.glb-caption {
  color: #fff;
  font-size: 14px;
  margin-top: 8px;
  opacity: 0.9;
}

/* ボタン */
.glb-close,
.glb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.92);
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 22px;
  line-height: 44px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
.glb-close {
  top: 24px;
  right: 24px;
  transform: none;
  font-size: 26px;
}
.glb-prev {
  left: 24px;
}
.glb-next {
  right: 24px;
}
.glb-close:hover,
.glb-nav:hover {
  filter: brightness(0.98);
}

/* 画像の外側クリックで閉じられるように */
.glb {
  padding: 24px;
  box-sizing: border-box;
}
