@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

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

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --text-primary: #f5f5f5;
    --text-secondary: #a0a0a0;
    --accent: #d4af37;
    --border: #2a2a2a;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

header {
    text-align: center;
    padding: 80px 20px 40px;
    background: linear-gradient(180deg, var(--bg-primary) 0%, transparent 100%);
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--accent);
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 400;
    letter-spacing: 8px;
    text-transform: none;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #f5f5f5 0%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 300;
}

nav {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 30px 20px 50px;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.filter-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 10px 24px;
    cursor: pointer;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 400;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.filter-btn:hover, .filter-btn.active {
    color: var(--bg-primary);
    border-color: var(--accent);
}

.filter-btn:hover::before, .filter-btn.active::before {
    left: 0;
}

.gallery {
    column-count: 4;
    column-gap: 16px;
    padding: 0 60px 60px;
    max-width: 1600px;
    margin: 0 auto;
}

.gallery img {
    width: 100%;
    display: block;
    margin-bottom: 16px;
    cursor: pointer;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.gallery img:hover {
    transform: scale(1.03);
}

.empty-state {
    column-span: all;
    text-align: center;
    padding: 120px 20px;
    color: var(--text-secondary);
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.empty-state code {
    background: var(--bg-secondary);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--accent);
}

.hint {
    margin-top: 30px;
    font-size: 0.85rem;
    line-height: 2;
    color: #666;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.97);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

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

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.lightbox img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 2px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 48px;
    cursor: pointer;
    transition: transform 0.3s;
    z-index: 1001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    transform: rotate(90deg);
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 48px;
    cursor: pointer;
    transition: transform 0.3s;
    z-index: 1001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.nav-btn.prev { left: 40px; }
.nav-btn.next { right: 40px; }

.nav-btn:hover { transform: translateY(-50%) scale(1.2); }

.lightbox-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

footer {
    text-align: center;
    padding: 60px 20px;
    color: #444;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-top: 1px solid var(--border);
    margin-top: 40px;
}

@media (max-width: 1200px) { .gallery { column-count: 3; } }
@media (max-width: 768px) { 
    .gallery { 
        column-count: 2; 
        padding: 0 20px 40px;
    }
    header h1 { font-size: 2.5rem; }
}
@media (max-width: 480px) { 
    .gallery { column-count: 1; max-width: 400px; }
    header h1 { font-size: 2rem; letter-spacing: 4px; }
    nav { gap: 4px; }
    .filter-btn { padding: 8px 16px; font-size: 0.65rem; }
}
