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

body {
    background-color: #ffffff;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

header {
    text-align: left;
    margin-bottom: 20px;
}

header h1 {
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.tabs {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
}

.tabs a {
    text-decoration: none;
    color: #999;
    font-size: 16px;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.tabs a:hover {
    color: #666;
}

/* Show all tab content */
.tab-content {
    display: block;
}

.series {
    margin-bottom: 20px;
}

.thumbnails {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 15px;
}

.thumbnails a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    color: #666;
}

/* Every picture shares one height so rows line up; width follows the frame */
.thumbnails a img {
    height: 260px;
    width: auto;
    display: block;
}

.thumbnails a span {
    display: block;
    text-align: left;
    margin-top: 2px;
    font-size: 13px;
}

.thumbnails a:hover img {
    opacity: 0.8;
}

footer {
    margin-top: 25px;
    text-align: left;
    font-size: 14px;
}

footer a {
    color: #333;
    text-decoration: none;
}

footer a:hover {
    color: #666;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox:target {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
}

.lightbox p {
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.lightbox .close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: #333;
    text-decoration: none;
    line-height: 1;
    font-weight: 300;
}

.lightbox .close:hover {
    color: #666;
}

.lightbox .prev,
.lightbox .next {
    position: absolute;
    top: 50%;
    width: 60px;
    height: 80px;
    margin-top: -40px;
    opacity: 0.3;
}

.lightbox .prev { left: 16px; }
.lightbox .next { right: 16px; }

/* Thin chevron drawn from two borders of a rotated square */
.lightbox .prev::before,
.lightbox .next::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    border-left: 2px solid #000;
    border-bottom: 2px solid #000;
    transform: translate(-50%, -50%) rotate(45deg);
}

.lightbox .next::before {
    transform: translate(-50%, -50%) rotate(-135deg);
}

.lightbox .prev:hover,
.lightbox .next:hover {
    opacity: 0.6;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    header h1 {
        font-size: 20px;
    }

    .tabs {
        gap: 20px;
        font-size: 15px;
    }

    .thumbnails {
        gap: 8px;
    }

    /* Two landscape frames fit side by side on a 375px-wide phone */
    .thumbnails a img {
        height: 112px;
    }

    .lightbox .close {
        top: 20px;
        right: 20px;
        font-size: 30px;
    }

    .lightbox .prev,
    .lightbox .next {
        width: 44px;
    }

    .lightbox .prev { left: 0; }
    .lightbox .next { right: 0; }

    .lightbox .prev::before,
    .lightbox .next::before {
        width: 16px;
        height: 16px;
    }
}
