:root {
    --sidebar-width: 250px;
    --bg-color: #ffffff;
    --text-color: #333333;
    --sidebar-bg: #ffffff;
    --gap: 20px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.layout {
    display: flex;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    width: 100%;
}

/* Sidebar */
.sidebar {
    background-color: var(--sidebar-bg);
    padding: 2rem;
    min-height: 100vh;
    width: var(--sidebar-width);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.nav-list {
    list-style: none;
}

.nav-link {
    display: block;
    padding: 10px 0;
    text-decoration: none;
    color: #999;
    font-weight: 500;
}

.nav-link:hover, .nav-link.active {
    color: #000;
    font-weight: bold;
}

.content h2 {
    text-align: center;
    margin-bottom: 2rem;
}

/* Album Header Container */
.album-header {
    text-align: center;
    margin-bottom: 3rem;
}

.album-header h2 {
    margin-bottom: 0.5rem;
}

/* Album Subtitle - centered, muted, italic */
.album-subtitle {
    font-size: 1.1rem;
    color: #666;
    font-style: italic;
    margin: -0.5rem 0 1.5rem 0;
    text-align: center;
}

/* Album Summary - centered block, constrained width */
.album-summary {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin: 0 auto 3rem auto;
    max-width: 700px;
    text-align: left;
}

.social-links {
    margin-top: 2rem;
    display: flex;
    gap: 15px;
    /* padding-top removed as we're using margin-top now */
    justify-content: center;
}

.social-links a {
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}

.social-links a:hover {
    color: #000;
}

/* Mobile Header */
.mobile-header {
    display: none;
    background-color: var(--bg-color);
    padding: 1rem;
    border-bottom: 1px solid #eee;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

#menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    position: absolute;
    right: 1rem;
}

/* Main Content */
.content {
    padding: 2rem;
    flex-grow: 1;
}

/* Album Grid */
.album-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.photo-link {
    display: block;
    width: 100%;
    aspect-ratio: auto;
    overflow: hidden;
    background-color: #eee;
}

.photo-item {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

.photo-link:hover .photo-item {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Home Album Card */
.album-card {
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
}

.album-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: opacity 0.2s, transform 0.2s;
    background-color: #eee;
}

.album-card:hover img {
    opacity: 0.9;
    transform: scale(1.02);
}

.album-card h3 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.75);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    font-size: 2.2rem;
    font-weight: 500;
    margin: 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.album-card:hover h3 {
    opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .layout {
        display: block;
    }

    .mobile-header {
        display: flex;
    }

    .sidebar {
        display: none; /* Hidden by default on mobile */
        position: fixed;
        top: 60px; /* Below header */
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        z-index: 99;
    }

    .sidebar.open {
        display: block;
    }

    .sidebar h1 {
        display: none;
    }
    
    .album-header {
        margin-bottom: 2rem;
    }
    
    .album-subtitle {
        font-size: 1rem;
    }
    
    .album-summary {
        font-size: 0.95rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .album-grid {
        grid-template-columns: 1fr;
    }
}

/* 404 Page */
.content.centered {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
}

.not-found-container {
    max-width: 600px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.content p {
    margin-bottom: 3rem;
}

.not-found-container p {
    margin: 1rem 0;
}

.not-found-image {
    max-width: 100%;
    margin-bottom: 2rem;
    height: auto;
    border-radius: 8px; /* Optional: adds rounded corners */
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 1rem;
    transition: background-color 0.2s;
}

.button:hover {
    background-color: #555;
}

/* Asset Protection Utilities */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: auto; /* Ensure clicks still work for lightbox */
}

/* Prevent selection globally but allow text selection */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Re-enable text selection for specific text containers */
p, h1, h2, h3, h4, h5, h6, a, span, li, button, .button {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
    cursor: default; /* Avoid text cursor on non-text elements */
}

