body {
    margin: 0;
    background: black;
    color: white;
    font-family: sans-serif;
}

.mosaic-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    padding: 10px;
}

.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1 / 1;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.year-separator {
    grid-column: 1 / -1;
    font-size: 1.5em;
    font-weight: bold;
    color: #fff;
    padding: 10px 0;
    background-color: #000;
}

#slider:target ~ .mosaic-gallery {
    display: none;
}

.slider-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#slider:target {
    display: flex;
}

.slider-container {
    position: relative;
    max-width: 90%;
    width: 800px;
}

#slider-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.prev-slide, .next-slide {
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    color: black;
    font-size: 24px;
    text-align: center;
    line-height: 48px;
    cursor: pointer;
    z-index: 10;
    transform: translateY(-50%);
}

.prev-slide { left: 10px; }
.next-slide { right: 10px; }

#thumbnail-strip {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 10px;
    scrollbar-width: none;
}

#thumbnail-strip::-webkit-scrollbar {
    display: none;
}

.thumb {
    width: 50px;
    height: 50px;
    border: 2px solid transparent;
    opacity: 0.5;
}

.thumb.active {
    opacity: 1;
    border-color: white;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
