/* Kaboompics-style gallery — category filters + thin-gutter photo grid */
.kaboom-gallery {
    max-width: 90rem;
    margin: 0 auto;
    padding: 1.25rem 0.75rem 2.5rem;
    background: #fff;
    color: #1a1a1a;
}

.kaboom-gallery-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.1rem 2.5rem;
    max-width: 34rem;
    margin: 0 auto 1.75rem;
    text-align: center;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1.6;
}

.kaboom-gallery-filter-col {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.kaboom-gallery-filters a {
    color: #aaa;
    text-decoration: none;
    padding: 0.15rem 0;
    transition: color 0.15s ease;
}

.kaboom-gallery-filters a:hover,
.kaboom-gallery-filters a.is-active {
    color: #111;
    font-weight: 600;
}

.kaboom-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px;
}

@media (min-width: 640px) {
    .kaboom-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .kaboom-gallery-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.kaboom-gallery-card {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #ececec;
    border: none;
    padding: 0;
    margin: 0;
}

.kaboom-gallery-card img,
.kaboom-gallery-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.kaboom-gallery-card.is-empty {
    background: #e8e8e8;
}

body.kaboom-gallery-page .site-blog-content {
    padding-top: 0;
}

body.kaboom-gallery-page.has-look-art .kaboom-gallery {
    position: relative;
    z-index: 2;
}
