* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    color: #2c3e50;
    line-height: 1.6;
}

header {
    background: linear-gradient(135deg, #240000 0%, #360505 100%);
    color: white;
    text-align: center;
    padding: 3rem 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

header h1 {
    margin: 0 0 1.5rem 0;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    background-color: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

main {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

main h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-weight: 700;
}

.albums {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.album {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.album:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.album a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.album-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.album-thumbnail-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #e9ecef 0%, #d4d8dd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-weight: 600;
}

.album > a > *:not(.album-thumbnail):not(.album-thumbnail-placeholder) {
    padding: 2rem 1.5rem;
    display: block;
}

.album h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: #667eea;
    transition: color 0.3s ease;
    padding: 2rem 1.5rem 0 1.5rem;
}

.album:hover h3 {
    color: #764ba2;
}

.album p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    padding: 0 1.5rem 2rem 1.5rem;
}

.photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(max(150px, 100vw/5), 1fr));
    gap: 1.5rem;
}

.photo {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    aspect-ratio: 1;
}

.photo:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    display: block;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .photos {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .photos {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
    }
}