/* ==========================================================
   KUNST-GALERIE MIT FILTER + ISOTOPE
========================================================== */

.kunst-gallery-wrapper {
    margin-top: 30px;
}

/* Filter-Reiter */

.kunst-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.kunst-filter-btn {
    border: 1px solid #D32F2F;
    background: #fff;
    color: #D32F2F;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background .2s ease, color .2s ease;
}

.kunst-filter-btn:hover,
.kunst-filter-btn.active {
    background: #D32F2F;
    color: #fff;
}

/* Isotope Grid */

.kunst-gallery {
    position: relative;
    margin-left: -8px;
    margin-right: -8px;
}

.kunst-item {
    width: 20%;
    padding: 8px;
    box-sizing: border-box;
}

.kunst-feature {
    width: 40%;
}

.kunst-item-inner {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: transparent;
}

/* Bild */

.kunst-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2;
    cursor: pointer;
    transition: filter .25s ease;
}

.kunst-item-inner:hover .kunst-img {
    border-color: #D32F2F;
    filter: brightness(.72);
}

/* Hover-Bildunterschrift */

.kunst-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 26px 16px 14px 16px;
    background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,0));
    color: #fff;
    font-size: .95rem;
    font-weight: 600;
    opacity: 0;
    line-height: 1.1;
    text-align: center;
    transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
}

.kunst-item-inner:hover .kunst-caption {
    opacity: 1;
    transform: translateY(0);
}

/* Caption in der Lightbox */

.school-gallery-caption {
    color: rgba(255,255,255,.85);
    text-align: center;
    margin-top: 14px;
    font-size: .95rem;
    line-height: 1.4;
}

/* Jahr-Hover */



.kunst-year {
    position: absolute;
    top: 10px;
    right: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0,0,0,.65);
    color: #fff;

    font-size: .78rem;
    font-weight: 600;
    line-height: 1;

    padding: 7px 8px 5px;
    border-radius: 2px;

    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .25s ease, transform .25s ease;

    pointer-events: none;
}

.kunst-item-inner:hover .kunst-year {
    opacity: 1;
    transform: translateY(0);
}

/* Jahr-großes Bild*/


/* Schuljahr-Badge in der Lightbox */

.school-gallery-modal .modal-content {
    position: relative;
}

.school-gallery-year {
    color: rgba(255,255,255,255);
    text-align: center;

    margin-top: 0px;
    margin-bottom: 6px;

    font-size: 1.0rem;
    font-weight: 500;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.school-gallery-year:empty {
    display: none;
}



/* Responsive */


@media (max-width: 1200px) {

    .kunst-item {
        width: 25%;
    }

    .kunst-feature {
        width: 50%;
    }
}

@media (max-width: 992px) {

    .kunst-item {
        width: 33.333%;
    }

    .kunst-feature {
        width: 66.666%;
    }
}

@media (max-width: 768px) {

    .kunst-item {
        width: 50%;
    }

    .kunst-feature {
        width: 100%;
    }
}

@media (max-width: 576px) {

    .kunst-item,
    .kunst-feature {
        width: 100%;
    }

    .kunst-filter-btn {
        flex: 1 1 auto;
    }
}