#gallery-header {
    background: rgb(230, 230, 230);
    height: 300px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

#gallery-header img {
    position: absolute;
    height: 100%;
    top: 0;
    right: 0;
    z-index: -1;
    width: 35%;
    object-fit: cover;
}

.inner-segment {
    max-width: 1640px;
    width: 100%;
    padding: 20px 20px 20px 65px;
    margin: 0 auto;
}

#gallery-header p {
    margin: 10px 0;
}

#page-body {
    position: relative;
    max-width: 1509px;
    padding: 20px 40px;
    margin: -30px auto 100px;
    border-radius: 4px;
    background-color: #FFF;
    -webkit-box-shadow: 0 12px 11px rgb(0 0 0 / 9%), 0 100px 80px rgb(0 0 0 / 7%);
    box-shadow: 0 12px 11px rgb(0 0 0 / 9%), 0 100px 80px rgb(0 0 0 / 7%);
}

#category-header img {
    width: 100%;
    height: 100%;
    vertical-align: top;
}

.breadcrumb a, .breadcrumb p {
    padding: 5px;
    margin: 0;
    font-family: 'Open Sans';
    font-size: 14px;
    text-decoration: none;
}

.breadcrumb a {
    color: #212121;
}

.breadcrumb p {
    color: #8c8c8c;
}

.breadcrumb p:last-child {
    white-space: nowrap;
    overflow-x: hidden;
    text-overflow: ellipsis;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

#intro {
    height: 90px;
}

#after-intro {
    margin: 40px 0 60px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

#main-gallery {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-gap: 15px;
    width: 100%;
}

#main-gallery a {
    background-color: #ccc;
}



#main-gallery a {
    cursor: pointer;
}

#main-gallery a:hover:after {
    content: "bekijk project foto's";
    font-size: 30px;
    text-align: center;
    align-self: center;
    color: #ffffff;
    position: absolute;
    line-height: 37px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.gallery-item:hover .gallery-image {
    opacity: 0.5;
}

#main-gallery a:hover {
    background-color: #000;
    position: relative;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 173 / 115.33;
}


@media (max-width: 64em) {
    #after-intro {
        margin: 30px 0 30px;
    }

    #intro {
        height: auto;
    }

    .breadcrumb {
        padding: 0 50px;
    }

    #main-gallery {
        display: flex;
        flex-wrap: wrap;
    }


    #main-gallery a {
        width: calc(50% - 8px);
        display: block;
    }

}

@media (max-width: 920px) {
    #gallery-header .header-small {
        font-size: 16px;
    }
}


@media (max-width: 48em) {
    #page-body {
        padding: 20px 10px;
    }
    .inner-segment {
        padding: 0 20px 20px 20px;
    }

}

@media (max-width: 610px) {
    .inner-segment {
        padding: 0 20px 40px 20px;
    }

    #main-gallery a {
        width: 100%;
        display: block;
    }
}

@media (max-width: 550px) {
    .breadcrumb {
        padding: 0 5px;
    }
}
