/* --- RESET & BASE --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #000; /* Hitam pekat Instagram */
    color: white;
    margin: 0;
    padding: 0;
}

/* --- HEADER & NAVIGATION --- */
header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #262626;
    background-color: #000;
    position: sticky;
    top: 0;
    z-index: 100;
}

h1 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Tampilan Statistik (Posts & Views) */
.ig-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-weight: bold;
    font-size: 18px;
}

.stat-label {
    font-size: 13px;
    color: #8e8e8e;
}

/* Menu Kategori */
.category-menu {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.category-menu a {
    color: #8e8e8e;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    padding: 12px 0;
    border-top: 1px solid transparent;
    transition: 0.3s;
}

.category-menu a.active {
    color: #fff;
    border-top: 1px solid #fff; /* Garis aktif di atas ala IG */
}

.category-menu a:hover {
    color: #bbb;
}

/* --- GALLERY GRID --- */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Tetap 3 kolom */
    gap: 3px;
    max-width: 935px;
    margin: 20px auto;
}

.gallery-item {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #1a1a1a;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover img {
    filter: brightness(0.8);
    transform: scale(1.02);
}

/* --- LIGHTBOX (ENLARGE) --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    cursor: zoom-out;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.9);
    animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: 200;
    cursor: pointer;
    line-height: 1;
}

/* --- ANIMASI & RESPONSIVE --- */
@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@media (max-width: 735px) {
    .gallery-container {
        gap: 1px;
    }
    
    .ig-stats {
        gap: 25px;
    }
    
    h1 {
        font-size: 1.2rem;
    }

    .category-menu a {
        font-size: 10px;
    }
}