body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: #fafafa;
    color: #111;
}

.container {
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 0;
}

.sidebar {
    width: 300px;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    background: transparent;
}

.title a {
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    color: #111;
    letter-spacing: -0.5px;
}

.menu {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu a {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    padding: 6px 0;
    transition: color 0.2s;
    border-bottom: 1px solid transparent;
}

.menu a:hover,
.menu a.active {
    color: #111;
    border-bottom-color: #111;
}

.main-content {
    padding: 0 40px;
    max-width: 1400px;
    width: 100%;
}

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

.album-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #eee;
    transition: border-color 0.2s ease;
}

.album-card:hover {
    border-color: #ccc;
}

.album-cover {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-bottom: 1px solid #eee;
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-info {
    padding: 16px;
}

.album-info h3 {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.album-meta {
    color: #888;
    font-size: 12px;
    margin: 0 0 8px 0;
}

.album-desc {
    font-size: 13px;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

/* Masonry Gallery Layout */
.gallery-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.gallery-header h2 {
    margin: 0 0 6px 0;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.gallery-meta {
    color: #888;
    font-size: 13px;
}

.gallery-note {
    color: #888;
    font-size: 13px;
    padding: 12px 16px;
    margin-top: 8px;
}

.masonry-gallery {
    columns: 4;
    column-gap: 16px;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 16px;
    position: relative;
    background: #f0f0f0;
    cursor: pointer;
    overflow: hidden;
}

.masonry-item img {
    width: 100%;
    display: block;
    opacity: 0;
    transition: opacity 0.4s ease, filter 0.3s ease;
}

.masonry-item img.loaded {
    opacity: 1;
}

.masonry-item:hover img.loaded {
    filter: brightness(0.95);
}

.photo-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 40px 12px 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.masonry-item:hover .photo-info {
    opacity: 1;
}

.photo-caption {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.photo-desc {
    font-size: 12px;
    opacity: 0.9;
    line-height: 1.4;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.96);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 30px;
    font-size: 32px;
    color: white;
    cursor: pointer;
    transition: opacity 0.2s;
}

.lightbox-close:hover {
    opacity: 0.6;
}

#lightbox-img {
    max-width: 92%;
    max-height: 82vh;
    object-fit: contain;
}

#lightbox-caption {
    color: white;
    margin-top: 20px;
    text-align: center;
    max-width: 70%;
}

#lightbox-caption .caption-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 6px;
}

#lightbox-caption .caption-desc {
    font-size: 14px;
    opacity: 0.75;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 1200px) {
    .masonry-gallery {
        columns: 3;
    }
}

@media (max-width: 900px) {
    .masonry-gallery {
        columns: 2;
    }
}

@media (max-width: 600px) {
    .container {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    .sidebar {
        width: 100%;
        flex-direction: row;
        align-items: center;
        padding: 0 0 20px 0;
        margin-bottom: 20px;
        border-bottom: 1px solid #eee;
    }

    .title {
        margin-right: 30px;
    }

    .menu {
        margin-top: 0;
        flex-direction: row;
        gap: 20px;
    }

    .main-content {
        padding: 0;
    }

    .masonry-gallery {
        columns: 1;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.4s ease;
}
