:root {
    /* Palet Granodiorit Lebak - sama dengan profil */
    --galeri-primary: #6B7280;   /* Granodiorit Grey */
    --galeri-secondary: #3B5E4A; /* Moss Green Geosite */
    --galeri-bg: #F2F4F5;       /* Quartz White */
    --text-dark: #1F2937;     /* Biotite Black */
    --text-muted: #6B7280;    /* Granodiorit Grey */
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    background: var(--galeri-bg);
    color: var(--text-dark);
}

.galeri-nav {
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.95);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    backdrop-filter: blur(6px);
    z-index: 10;
}

.galeri-nav .container {
    max-width: 1200px;
    margin: auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--galeri-primary), var(--galeri-secondary));
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.nav-links {
    display: flex;
    gap: 18px;
    font-weight: 500;
    color: var(--text-muted);
}

/* Hero menggunakan styling dari profil.css */
.hero-galeri {
    /* Background gambar hero dari assets/images */
    background-image: url('../images/gambar-hero.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    height: 300px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-galeri::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Overlay gelap untuk kontras teks - menggunakan Biotite Black */
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.75) 0%, rgba(107, 114, 128, 0.65) 100%);
    z-index: 1;
}

.hero-galeri .container {
    max-width: var(--saphira-content-width, calc(100vw - 400px));
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    position: relative;
    z-index: 2;
}

.section-card {
    background: var(--galeri-bg);
    border-radius: 0;
    padding: 32px;
    border: 1px solid rgba(107, 114, 128, 0.15);
    box-shadow: 0 4px 12px rgba(31, 41, 55, 0.08);
    margin-bottom: 28px;
}

.section-card h2 {
    margin-top: 0;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--galeri-secondary);
}

.section-card h2 i {
    color: var(--galeri-primary);
}

.filter-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 18px 0 0;
}

.filter-chip {
    padding: 10px 18px;
    border-radius: 0;
    border: 1px solid rgba(107, 114, 128, 0.2);
    cursor: pointer;
    font-weight: 600;
    color: var(--text-dark);
    background: #ffffff;
    transition: all 0.3s ease;
}

.filter-chip:hover {
    border-color: var(--galeri-secondary);
    background: var(--galeri-bg);
}

.filter-chip.active {
    background: var(--galeri-secondary);
    color: white;
    border-color: var(--galeri-secondary);
    box-shadow: 0 4px 12px rgba(59, 94, 74, 0.2);
}

.masonry-grid {
    column-count: 3;
    column-gap: 16px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 16px;
    border-radius: 0;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(31, 41, 55, 0.08);
    border: 1px solid rgba(107, 114, 128, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(31, 41, 55, 0.12);
    border-color: var(--galeri-secondary);
}

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

.gallery-caption {
    padding: 20px;
    background: #ffffff;
}

.gallery-caption h3 {
    margin: 0 0 6px;
}

.gallery-caption p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.meta i {
    color: var(--galeri-secondary);
    margin-right: 4px;
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 20px 0;
}

@media (max-width: 1200px) {
    .hero-galeri .container,
    .profil-content {
        max-width: 100%;
        padding: 0 24px;
    }
}

@media (max-width: 992px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    /* Hero layout jadi column di mobile */
    .hero-galeri .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .hero-content {
        width: 100%;
    }
    
    .section-card {
        padding: 24px;
    }
    
    .filter-tags {
        gap: 8px;
    }
    
    .filter-chip {
        padding: 8px 14px;
        font-size: 0.9rem;
    }
}

@media (max-width: 600px) {
    .masonry-grid {
        column-count: 1;
    }
}

