/* Gallery Page Styles */

/* --- Gallery Header --- */
.gallery-header {
    padding: 120px 0 50px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 40%, #ffffff 80%);
    text-align: center;
}
.gallery-header h1 {
    font-size: 2.5rem; font-weight: 900; color: #0f172a;
    margin-bottom: 0.75rem; letter-spacing: -0.5px;
}
.gallery-header p {
    font-size: 1.1rem; color: #64748b; max-width: 640px; margin: 0 auto; line-height: 1.7;
}

/* --- Filter Tabs --- */
.gallery-filter {
    padding: 1.5rem 0; background: white;
    border-bottom: 1px solid #e2e8f0;
    position: sticky; top: 72px; z-index: 100;
    backdrop-filter: blur(10px); background: rgba(255,255,255,0.95);
}
.filter-tabs {
    display: flex; gap: 0.5rem; overflow-x: auto;
    padding-bottom: 0.25rem; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab {
    padding: 0.5rem 1.25rem; border-radius: 100px;
    font-size: 0.85rem; font-weight: 600; color: #64748b;
    background: #f1f5f9; border: 1px solid transparent;
    cursor: pointer; transition: all 0.2s ease;
    white-space: nowrap; flex-shrink: 0;
}
.filter-tab:hover { color: #0f172a; background: #e2e8f0; }
.filter-tab.active {
    color: white; background: #10b981; border-color: #10b981;
}

/* --- Gallery Grid --- */
.gallery-grid-section { padding: 3rem 0 5rem; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

/* --- Gallery Item --- */
.gallery-item {
    background: white; border: 1px solid #e2e8f0;
    border-radius: 16px; overflow: hidden;
    transition: all 0.3s ease;
}
.gallery-item:hover {
    border-color: #10b981; transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.gallery-item.hidden {
    display: none;
}
.gallery-img-wrap {
    position: relative; aspect-ratio: 1; overflow: hidden;
    background: #f8fafc;
}
.gallery-img-wrap img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease;
}
.gallery-item:hover .gallery-img-wrap img {
    transform: scale(1.05);
}
.gallery-badge {
    position: absolute; top: 0.75rem; left: 0.75rem;
    padding: 0.25rem 0.75rem; border-radius: 100px;
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(15,23,42,0.75); color: white;
    backdrop-filter: blur(4px);
}
.gallery-info { padding: 1.25rem; }
.gallery-info h3 {
    font-size: 0.92rem; font-weight: 700; color: #0f172a;
    margin-bottom: 0.75rem; line-height: 1.4;
}
.gallery-cta {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.85rem; font-weight: 600; color: #25D366;
    transition: gap 0.2s ease;
}
.gallery-cta:hover { gap: 0.6rem; color: #1da851; }
.gallery-cta::after {
    content: '→'; font-size: 1rem;
}

/* --- Nav Active State --- */
.nav-active {
    color: #0f172a !important; background: #f1f5f9 !important;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .gallery-header { padding: 100px 0 40px; }
    .gallery-header h1 { font-size: 1.75rem; }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .gallery-info { padding: 1rem; }
    .gallery-info h3 { font-size: 0.82rem; }
    .filter-tab { font-size: 0.78rem; padding: 0.4rem 1rem; }
}
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .gallery-info { padding: 0.75rem; }
    .gallery-info h3 { font-size: 0.78rem; margin-bottom: 0.5rem; }
}
