/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: monospace;
}

/* Site header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
}

.site-header .home-logo {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.site-header .home-logo:hover {
    opacity: 0.7;
}

.site-header .home-logo img {
    height: 36px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-right .nav-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.3s ease, border-color 0.3s ease;
    padding: 0.3rem 0.6rem;
    border: 1px solid transparent;
}

.header-right .nav-link:hover {
    color: white;
}

.header-right .nav-link.active {
    color: white;
    border-color: white;
}

@media (max-width: 768px) {
    .site-header {
        padding: 1.2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .header-right {
        gap: 0.5rem;
    }

    .header-right .nav-link {
        font-size: 0.75rem;
        padding: 0.25rem 0.4rem;
    }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    flex-direction: column;
}

.lightbox.open {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 2rem;
    cursor: pointer;
    z-index: 2010;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    transition: color 0.2s ease;
}

.lightbox-close:hover {
    color: white;
}

.lightbox-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 0;
}

.lightbox-nav {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 15%;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2005;
    color: rgba(255, 255, 255, 0.4);
    font-size: 2.5rem;
    transition: color 0.2s ease, background 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
}

.lightbox-nav:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.lightbox-prev {
    left: 0;
    border-radius: 0 8px 8px 0;
}

.lightbox-next {
    right: 0;
    border-radius: 8px 0 0 8px;
}

.lightbox-main img {
    max-width: 70vw;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-info {
    padding: 1.5rem 2rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.lightbox-caption {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.lightbox-notes {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    font-style: italic;
}

.lightbox-credit {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.lightbox-credit a {
    color: rgba(212, 160, 23, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.lightbox-credit a:hover {
    color: #d4a017;
}

.lightbox-counter {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    z-index: 2010;
}
