/* gallery.css */

.gallery-section { background: var(--dark); }

.gallery-filters {
  display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 40px;
}
.gfilter {
  padding: 9px 22px; border-radius: 50px; border: 1px solid var(--border);
  background: var(--card-bg); color: var(--text-muted);
  font-family: var(--font-main); font-weight: 600; font-size: 0.85rem;
  cursor: pointer; transition: var(--transition);
}
.gfilter:hover { color: #fff; border-color: var(--primary); }
.gfilter.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-card {
  border-radius: var(--radius); overflow: hidden;
  background: var(--card-bg); border: 1px solid var(--border);
  transition: var(--transition); cursor: pointer;
}
.gallery-card:hover { transform: translateY(-4px); border-color: rgba(37,99,235,0.35); box-shadow: 0 16px 40px rgba(0,0,0,0.4); }
.gallery-card.hidden { display: none; }

.gallery-thumb {
  height: 220px; position: relative; overflow: hidden;
  background-size: cover; background-position: center;
}
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,15,30,0.9) 0%, transparent 50%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px 16px; opacity: 0; transition: var(--transition);
}
.gallery-card:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: #fff; font-family: var(--font-main); font-weight: 700; font-size: 1rem; }
.gallery-overlay p { color: var(--text-muted); font-size: 0.8rem; margin: 0; }

.gallery-info { padding: 16px; }
.gallery-info strong { display: block; color: #fff; font-size: 0.92rem; font-weight: 600; margin-bottom: 3px; }
.gallery-info em { color: var(--text-muted); font-size: 0.8rem; font-style: normal; }

/* Placeholder gradient thumbs (replace with real photos) */
.gallery-thumb-1  { background: linear-gradient(135deg, #1e3a5f, #2563eb, #0f2057); }
.gallery-thumb-2  { background: linear-gradient(135deg, #0f2057, #3b82f6, #1e40af); }
.gallery-thumb-3  { background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460); }
.gallery-thumb-4  { background: linear-gradient(135deg, #4a0404, #b91c1c, #f97316); }
.gallery-thumb-5  { background: linear-gradient(135deg, #2d1b69, #7c3aed, #f59e0b); }
.gallery-thumb-6  { background: linear-gradient(135deg, #064e3b, #059669, #34d399); }
.gallery-thumb-7  { background: linear-gradient(135deg, #1c1917, #78716c, #d6d3d1); }
.gallery-thumb-8  { background: linear-gradient(135deg, #1e1b4b, #4338ca, #818cf8); }
.gallery-thumb-9  { background: linear-gradient(135deg, #0c1446, #1d4ed8, #60a5fa); }
.gallery-thumb-10 { background: linear-gradient(135deg, #0f3460, #533483, #e94560); }
.gallery-thumb-11 { background: linear-gradient(135deg, #064e3b, #065f46, #10b981); }
.gallery-thumb-12 { background: linear-gradient(135deg, #7c2d12, #c2410c, #fb923c); }

/* Sign icon overlay for thumbs */
.gallery-thumb::before {
  content: '\f277';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3.5rem;
  color: rgba(255,255,255,0.15);
  pointer-events: none;
}

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