@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400&display=swap');

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

html {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    color: #111;
    background: #f5f5f3;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
}

::selection {
    background: #111;
    color: #f5f5f3;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    mix-blend-mode: difference;
}

.name {
    font-size: 13px;
    letter-spacing: 0.3em;
    color: #fff;
    font-weight: 400;
}

.gallery {
    display: flex;
    gap: 8px;
    padding: 80px 8px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gallery img {
    width: 100%;
    display: block;
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, filter 0.4s ease;
    filter: grayscale(100%);
}

.gallery img.visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery img:hover {
    filter: grayscale(0%);
}

.viewer {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.viewer.active {
    display: flex;
}

.viewer img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.viewer.active img {
    opacity: 1;
    transform: scale(1);
}

.viewer-close {
    position: absolute;
    top: 20px;
    right: 28px;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 101;
}

.viewer-close:hover {
    color: #fff;
}

.viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: #666;
    cursor: pointer;
    padding: 20px;
    transition: color 0.2s;
    user-select: none;
    z-index: 101;
}

.viewer-nav:hover {
    color: #fff;
}

.viewer-prev {
    left: 10px;
}

.viewer-next {
    right: 10px;
}

.viewer-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    letter-spacing: 0.2em;
    color: #555;
}

footer {
    padding: 40px 30px 30px;
    text-align: center;
    font-size: 11px;
    letter-spacing: 0.15em;
    color: #999;
}

@media (max-width: 700px) {
    .gallery {
        flex-direction: column;
        padding: 70px 12px 30px;
        gap: 12px;
    }

    .col {
        gap: 12px;
    }

    .gallery img {
        filter: grayscale(0%);
    }

    header {
        padding: 16px 20px;
    }
}
