:root {
    --primary: #2c3e50;
    --primary-dark: #1a252f;
    --primary-light: #d6e2ea;
    --primary-pale: #f4f7fa;
    --secondary: #18bc9c;
    --white: #ffffff;
    --text-dark: #1f2d3a;
    --text-muted: #6c7a89;
    --gradient-primary: linear-gradient(135deg, #2c3e50 0%, #243342 50%, #1a252f 100%);
}

/* HERO */
.hero {
    background: var(--gradient-primary);
    padding: 64px 40px 72px;
    text-align: center;
    color: var(--white);
}

.section-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 6px;
}

.galeri-hero-title {
    font-family: "Playfair Display", serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.galeri-hero-sub {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
}

/* GALERI SECTION */
.galeri-section {
    background: var(--primary-pale);
    min-height: 60vh;
}

.galeri-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 52px 40px;
}

/* FILTER */
.galeri-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 9px 22px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--primary-light);
    background: var(--white);
    color: var(--text-muted);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: "Source Sans 3", sans-serif;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* GRID */
.galeri-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.galeri-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    background: var(--primary-light);
}

.galeri-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.galeri-item:hover img {
    transform: scale(1.07);
}

.galeri-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 37, 47, 0.85) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.galeri-item:hover .galeri-overlay {
    opacity: 1;
}

.galeri-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 4px;
}

.galeri-label.prestasi {
    color: #f39c12;
}

.galeri-caption {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
}

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
}

.lightbox-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 85vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}

.lightbox-caption {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    margin-top: 14px;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: var(--white);
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
}

.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: var(--white);
    font-size: 42px;
    padding: 10px 18px;
    cursor: pointer;
    border-radius: 2px;
    transition: background 0.2s;
    line-height: 1;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.28);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .galeri-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .galeri-hero {
        padding: 36px 20px;
    }

    .galeri-inner {
        padding: 36px 20px;
    }
}

@media (max-width: 480px) {
    .galeri-grid {
        grid-template-columns: 1fr;
    }
}