/* === GALLERY SECTION === */
.gallery-section {
  padding: clamp(80px, 12vw, 140px) clamp(20px, 5vw, 80px);
  background: var(--bg-secondary);
}

.gallery-handle {
  font-size: 14px;
  color: var(--terracotta);
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* --- Category Tabs --- */
.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.gallery-tab {
  padding: 8px 20px;
  border: 1.5px solid var(--border-color);
  border-radius: 100px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.gallery-tab:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
}

.gallery-tab.active {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #fff;
}

/* --- Gallery Grid --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 6px;
}

.gallery-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 1/1;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-img:nth-child(1),
.gallery-img:nth-child(7) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.4s;
}

.gallery-img:hover::after {
  background: rgba(0, 0, 0, 0.2);
}

.gallery-img:hover {
  transform: scale(1.01);
}

.gallery-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-img:hover img {
  transform: scale(1.08);
}

/* --- Tablet --- */
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-img:nth-child(1),
  .gallery-img:nth-child(7) {
    grid-column: span 2;
    grid-row: span 2;
  }
}

/* --- Mobile --- */
@media (max-width: 640px) {
  .gallery-tabs {
    gap: 6px;
    margin-bottom: 24px;
  }

  .gallery-tab {
    padding: 6px 14px;
    font-size: 13px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }

  .gallery-img:nth-child(1),
  .gallery-img:nth-child(7) {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* ── Gallery social buttons ────────────────────────────────── */

/* Outer row — centres both pills side by side */
.gallery-social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 48px;
}

/* Filled Instagram CTA pill */
.gallery-ig-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--brown);
  color: var(--cream);
  text-decoration: none;
  border-radius: 100px;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.gallery-ig-pill:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.26);
}

.gallery-fb-pill:hover {
  background: #1877F2;
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(24, 119, 242, 0.35);
}

.gallery-goog-pill:hover {
  background: #EA4335;
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(234, 67, 53, 0.35);
}

