body {
    background-color: #121212; /* Dark mode to match your home lab vibe */
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica;
    margin: 0;
    padding: 20px;
}

header h1 {
    text-align: center;
    font-weight: 300;
    margin-bottom: 40px;
}

/* The Pinterest Magic */
.masonry-grid {
    column-count: 4; /* 4 columns on desktop */
    column-gap: 15px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 1000px) { .masonry-grid { column-count: 3; } }
@media (max-width: 700px) { .masonry-grid { column-count: 2; } }

.card {
    background: #1e1e1e;
    margin-bottom: 15px;
    break-inside: avoid;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.card:hover {
    transform: scale(1.02);
}

.card img {
    width: 100%;
    display: block;
}

.info {
    padding: 12px;
}

.title {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: #efefef;
}

.sub {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    margin-top: 5px;
    display: block;
}

.image-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.image-wrapper::-webkit-scrollbar {
    display: none;
}

.image-wrapper img {
    flex: 0 0 100%;
    width: 100%;
    object-fit: cover;
    scroll-snap-align: start;
}

.is-gallery {
    cursor: ew-resize;
}

.count-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    pointer-events: none;
}

.card {
    position: relative;
}

a { text-decoration: none; }
