.project-head {
    margin-block: 10rem 5rem;
}
.project-index-container {
    order: 100;
    margin-block: 5rem;
}
.gallery,
.project-index-list {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}
.gallery > *,
.project-index-list .project-card {
    width: 100%;
    flex: 1 1 auto;
}
@media screen and (min-width: 768px) {
    .gallery > *,
    .project-index-list .project-card {
        width: calc(100%/2 - 2rem);
    }
}
@media screen and (min-width: 1200px) {
    .gallery > *,
    .project-index-list .project-card {
        width: calc(100%/3 - 2rem);
    }
}
.project-card {
    background: rgba(0, 0, 0, 0.5);
    display: grid;
    grid-template-areas: 'card';
    position: relative;
    text-decoration: none !important;
}
.project-card .media {
    grid-area: card;

    aspect-ratio: 4/3;
    width: 100%;
    height: 100%;
}
.project-card .media iframe,
.project-card .media img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.project-card .media::before {
    content: '';
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    transition: background-color .2s ease-in-out;
}
@media screen and (min-width: 768px) {
    .project-card .media::before {
        background: rgba(0, 0, 0, 0);
    }
}
.project-card:hover .media::before {
    background: rgba(0, 0, 0, 0.5);
}
.project-card:hover .title {
    opacity: 1;
}
.project-card .title {
    padding: 2rem;
    grid-area: card;
    position: relative;
    z-index: 1;
    color: white;
    transition: opacity .2s ease-in-out;

    align-self: flex-end;
}
@media screen and (min-width: 768px) {
    .project-card .title {
        background: rgba(0, 0, 0, 0);
        opacity: 0;
    }
}


/* for nieuws ..*/
.filtered_block_item.active {
    display: inline-flex;
}
.filtered_block_item:not(.active) {
    display: none;
}
