/* ── Individual gallery photo grid ─────────────────────────────────────── */

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

@media (max-width: 720px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.gallery-grid a {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 3px;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.gallery-grid img:hover {
  opacity: 0.82;
}

/* ── Gallery index (list page) ──────────────────────────────────────────── */

.gallery-index {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 720px) {
  .gallery-index {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.gallery-card {
  display: block;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  background: #fff;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  color: inherit;
  text-decoration: none;
}

.gallery-card:hover {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}

.gallery-card-cover {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e8e4dd;
}

.gallery-card-cover--empty {
  background: linear-gradient(135deg, #e8e4dd 0%, #d0cbc2 100%);
}

.gallery-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-card-body {
  padding: 0.75rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.gallery-card-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #00223E;
}

.gallery-card-meta {
  font-size: 0.78rem;
  color: #999;
}

.gallery-card-desc {
  font-size: 0.875rem;
  color: #555;
  margin-top: 0.25rem;
}

/* ── GLightbox mobile overrides ─────────────────────────────────────────── */

@media (max-width: 769px) {
  .ginner-container {
    width: 100vw !important;
    max-width: 100vw !important;
    padding: 0 !important;
  }
  .gslide-image img {
    max-height: 90vh;
    width: 100vw;
    object-fit: contain;
  }
  .gslide-description {
    padding: 0.5rem 1rem;
  }
}
