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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: #e9edee;
    color: #000;
    overflow-x: hidden;
    transition: background 0.3s, color 0.3s;
}

header {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    position: fixed;
    backdrop-filter: blur(5px);
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 40px;
    background: #f0f3f49f;
    z-index: 1000;  
    border-bottom: 1px solid #e0e0e0;
}

.logo {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -1px;
    position: absolute;
    left: 40px;
}

nav {
    display: flex;
    gap: 60px;
    align-items: center;
}

nav a {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    text-decoration: none;
    color: #000;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
    position: relative;
    transition: opacity 0.3s, color 0.3s;
}

nav a:hover {
    opacity: 0.6;
}

nav a.active {
    position: relative;
}

nav a.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: #000;
    transform: translateY(-50%);
    transition: background 0.3s;
}

body.dark-mode nav a.active::after {
    background: #fff;
}

.nav-icons {
    display: flex;
    gap: 20px;
    align-items: center;
    position: absolute;
    right: 40px;
}

.nav-icons span {
    width: 20px;
    height: 20px;
    cursor: pointer;
    transition: transform 0.3s, opacity 0.3s;
    position: relative;
}

.nav-icons span:hover {
    transform: scale(1.2);
    opacity: 0.7;
}

#modeToggle {
    font-size: 20px;
    line-height: 1;
    color: #000;
    width: auto;
    height: auto;
    transition: all 0.3s;
}

#modeToggle::before {
    content: '☼';
    -webkit-text-stroke: 1.2px #000;
    transition: all 0.3s;
}

body.dark-mode #modeToggle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid #fff;
    overflow: hidden;
}

body.dark-mode #modeToggle::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: #1a1919;
}

body.dark-mode {
    background: #1a1919;
    color: #fff;
}

body.dark-mode header {
    background: #1a19199a;
    backdrop-filter: blur(5px);
    border-bottom: 1px solid #333;
}

body.dark-mode nav a {
    color: #fff;
}

main {
    margin-top: 100px;
    padding: 0 40px;
}

.archive-header {
    text-align: center;
    margin-bottom: 60px;
}

.archive-title {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: -2px;
    text-transform: uppercase;
    margin-bottom: 40px;
}

.archive-description {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
}

.archive-description em {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-style: italic;
    opacity: 0.8;
}

.gallery-row {
    margin-bottom: 20px;
    width: 100%;
}

.gallery-row-horizontal {
    display: flex;
    gap: 20px;
    width: 100%;
    height: 400px;
}

.gallery-row-vertical {
    display: flex;
    gap: 20px;
    width: 100%;
    height: 500px;
}

.gallery-item-horizontal {
    flex: 1;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-item-horizontal:hover {
    transform: scale(1.02);
}

.gallery-item-horizontal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.gallery-item-vertical {
    flex: 1;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-item-vertical:hover {
    transform: scale(1.02);
}

.gallery-item-vertical img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
}

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

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
    }
    to {
        transform: scale(1);
    }
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    display: block;
    border-radius: 20px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    color: #fff;
    transition: all 0.3s;
    z-index: 2001;
    line-height: 1;
}

.lightbox-close:hover {
    transform: rotate(90deg);
    opacity: 0.7;
}

.lightbox-close::before {
    content: '×';
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer {
    margin-top: 80px;
    margin-left: -40px;
    margin-right: -40px;
    margin-bottom: 0;
    padding: 30px 40px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
    transition: border-color 0.3s;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-content p {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin-bottom: 10px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-content a {
    color: #000;
    text-decoration: underline;
    transition: opacity 0.3s, color 0.3s;
}

.footer-content a:hover {
    opacity: 0.6;
}

body.dark-mode .footer {
    border-top: 1px solid #333;
}

body.dark-mode .footer-content a {
    color: #fff;
}

@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }

    .logo {
        font-size: 24px;
        left: 20px;
    }

    nav {
        gap: 30px;
    }

    nav a {
        font-size: 9px;
    }

    .nav-icons {
        right: 20px;
    }

    main {
        margin-top: 80px;
        padding: 0 20px;
    }

    .archive-title {
        font-size: 2.5rem;
    }

    .archive-description {
        font-size: 1rem;
    }

    .gallery-row-horizontal,
    .gallery-row-vertical {
        flex-direction: column;
        height: auto;
        gap: 20px;
    }

    .gallery-item-horizontal,
    .gallery-item-vertical {
        width: 100%;
        height: 300px;
        flex: none;
    }

    .lightbox-content {
        padding: 100px 20px;
    }

    .footer {
        margin-top: 60px;
        margin-left: -20px;
        margin-right: -20px;
        padding: 30px 20px;
    }

    .footer-content p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    nav a {
        font-size: 9px;
    }

    .footer-content p {
        font-size: 0.8rem;
    }
}