/* Color Variables for easy maintenance */
:root {
    --bg-color: #121212;
    --container-bg: #1e1e1e;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --accent-color: #bb86fc;
    --border-color: #333;
    --overlay-bg: rgba(0, 0, 0, 0.95);
}

body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
    max-width: 1000px; 
    margin: 0 auto; 
    padding: 20px; 
    background-color: var(--bg-color);
    color: var(--text-primary);
}

nav { 
    margin-bottom: 2rem; 
    border-bottom: 1px solid var(--border-color); 
    padding-bottom: 1rem; 
}

nav a { 
    margin-right: 15px; 
    text-decoration: none; 
    font-weight: bold; 
    color: var(--accent-color);
}

nav a:hover {
    text-decoration: underline;
}

/* Grid System */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Image Gallery Styling */
.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    cursor: zoom-in;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    user-select: none;
    border: 1px solid var(--border-color);
}

.gallery-item img:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* The Lightbox Effect */
.gallery-item img.enlarged {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    height: 90vh;
    object-fit: contain;
    z-index: 1000;
    background: var(--overlay-bg);
    cursor: zoom-out;
    box-shadow: 0 0 100px rgba(0,0,0,0.8);
    padding: 20px;
    border: none;
}

/* Music Styling */
.music-item {
    background: var(--container-bg);
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
}

.music-item h3 { 
    margin-top: 0; 
    font-size: 1rem; 
    color: var(--text-secondary);
}

/* Style the native audio player slightly for dark mode */
audio { 
    width: 100%; 
    filter: invert(100%) hue-rotate(180deg) brightness(1.5); /* Inverts the default grey player to a lighter look */
}

footer {
    margin-top: 4rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-align: center;
}
