:root {
    --sidebar-width: 250px;
    --dark-color: #333333;
    --light-color: #f8f8f8;
    --text-color: #1a1a1a;
}

/* Fix for consistent layout */
*, *::before, *::after {
    box-sizing: border-box; 
}

/* Reset and Global Styles */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--light-color);
    color: var(--text-color);
    display: flex; /* Key to the layout */
    min-height: 100vh;
}

/* --- Left Sidebar (VSCO-style Navigation) --- */
.sidebar {
    width: var(--sidebar-width);
    background-color: #ffffff;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.05);
    position: fixed; /* Fixed position */
    height: 100%;
    padding: 20px 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.profile-header {
    text-align: center;
    padding: 10px 20px 30px;
}

.profile-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--dark-color); /* Placeholder for your image */
    margin: 0 auto 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image::before {
    content: "PP"; /* Placeholder initials */
    color: white;
    font-size: 1.5em;
    line-height: 1; 
}

.nav-item {
    padding: 15px 25px;
    display: block; /* Fix for clickable area */
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.nav-item:hover {
    background-color: #eeeeee;
}

.nav-item.active {
    background-color: var(--dark-color);
    color: white;
}

/* --- Main Content and Gallery --- */
.main-content {
    margin-left: var(--sidebar-width); /* Push content over */
    flex-grow: 1;
    padding: 40px;
}

.gallery-container {
    /* Implement a Masonry-like grid using CSS columns for simplicity */
    column-count: 3;
    column-gap: 10px;
    margin-top: 20px;
}

.gallery-item {
    margin-bottom: 10px;
    break-inside: avoid-column; /* Crucial for grid */
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: opacity 0.3s;
}

.gallery-item img:hover {
    opacity: 0.8;
}

/* Initial loading message style */
#loading-message {
    text-align: center;
    font-size: 1.2em;
    padding: 50px;
    color: #999;
}