/* ============================================================
   GALLERY PAGE — The Glide Inn
   ============================================================ */

.gallery-filter {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 2rem; justify-content: center;
}
.gallery-filter__btn {
  padding: 0.45rem 1.1rem;
  border: 1.5px solid rgba(0,0,0,0.12); border-radius: 999px;
  background: #fff; color: var(--text-main);
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition-fast);
}
.gallery-filter__btn:hover,
.gallery-filter__btn.active { background: var(--midnight); color: #fff; border-color: var(--midnight); }

/* Responsive photo grid — mobile-first */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
}
@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.4rem; }
}

.gallery-item {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: rgba(0,0,0,0.05);
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.45s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

.gallery-item__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7,21,12,0.7) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s ease;
  display: flex; align-items: flex-end; padding: 1rem;
}
.gallery-item:hover .gallery-item__overlay { opacity: 1; }

.gallery-item__label {
  color: #fff; font-size: 0.85rem; font-weight: 600;
  font-family: var(--font-body);
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  display: none; align-items: center; justify-content: center;
  padding: 1rem;
}
.lightbox.open { display: flex; }
.lightbox__img {
  max-width: 90vw; max-height: 90vh;
  border-radius: var(--radius-md);
  object-fit: contain;
}
.lightbox__close {
  position: absolute; top: 1.25rem; right: 1.5rem;
  width: 40px; height: 40px; border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%; background: rgba(0,0,0,0.5);
  color: #fff; font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.lightbox__close:hover { background: rgba(255,255,255,0.15); border-color: #fff; }
.lightbox__caption {
  position: absolute; bottom: 1.5rem; left: 50%;
  transform: translateX(-50%);
  color: #fff; font-size: 0.875rem; text-align: center;
  background: rgba(0,0,0,0.5); padding: 0.4rem 1rem;
  border-radius: 999px;
}

/* Instagram CTA */
.insta-cta {
  margin-top: 3rem; text-align: center;
  padding: 2.5rem; background: var(--forest-bg, #F2F7F2);
  border-radius: var(--radius-lg, 16px);
}
.insta-cta h3 {
  font-family: var(--font-heading); font-size: 1.4rem;
  color: var(--text-heading); margin: 0 0 0.5rem;
}
.insta-cta p { color: var(--muted); margin: 0 0 1.5rem; }
