body {
    background-color: #000;
    color: #fff;
    font-family: system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

#filter-bar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    box-sizing: border-box;
    z-index: 100;
}

.btn {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
}

.btn.active {
    background: #fff;
    color: #000;
}

/* Default Snap Scrolling */
html { scroll-snap-type: y mandatory; }

.gallery-item {
    scroll-snap-align: start;
    height: 100vh; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 50px;
    box-sizing: border-box;
}

/* Free Scroll Override */
html.free-scroll { scroll-snap-type: none; }
html.free-scroll .gallery-item {
    scroll-snap-align: none;
    height: auto;
    padding-top: 80px;
    padding-bottom: 40px;
}

.headline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 10px 20px;
}

h2 { margin: 0; font-size: 1.5rem; font-weight: bold; }
h2 a { color: #fff; text-decoration: none; }
h2 a:hover { text-decoration: underline; }

.gallery-item img {
    width: 100vw;
    max-height: calc(100vh - 120px);
    object-fit: contain;
    display: block;
}

/* Thumbnail Gallery */
#thumbnail-section {
    padding: 60px 20px 20px 20px;
    border-top: 1px solid #333;
    scroll-snap-align: start;
}

.thumb-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.thumb-item {
    width: 150px; height: 150px;
    cursor: pointer;
}

.thumb-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 4px;
    transition: opacity 0.2s;
}

.thumb-item:hover img { opacity: 0.7; }

.hidden { display: none !important; }

/* Share Section */
#share-section {
    padding: 40px 20px 80px 20px;
    background: #111;
    border-top: 1px solid #333;
    scroll-snap-align: start;
}

.share-box {
    width: 100%;
    background: #000;
    color: #fff;
    border: 1px solid #555;
    padding: 12px;
    margin: 10px 0 20px 0;
    font-family: monospace;
    font-size: 14px;
    box-sizing: border-box;
    border-radius: 4px;
}

/* Lightbox */
#lightbox {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
    cursor: pointer;
}

#lightbox img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
}
