/* ============================================================
   Gallery Page — gallery.css
   style.css のモーダル・共通スタイルを継承
============================================================ */

/* ============================================================
   Section
============================================================ */
.gallery-page-sec {
  background-color: var(--color-black);
  padding: 64px 0 80px;
}

.gallery-page-sec__inner {
  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 640px) {
  .gallery-page-sec {
    padding: 80px 0 100px;
  }
}

.gallery-page-desc {
  text-align: center;
  margin-bottom: 24px;
}

/* ============================================================
   Grid
============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-width: var(--content-sm);
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

/* ============================================================
   Item
============================================================ */
.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-item__img {
  transform: scale(1.07);
}

/* ============================================================
   Hover Overlay
============================================================ */
.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(13, 13, 13, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item__overlay {
  opacity: 1;
}
