/* Beeldbank listing */
.beeldbank-listing {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 20px;
    row-gap: 20px;
}
.beeldbank-listing .item {
    position: relative;
    aspect-ratio: 6 / 4;
}
.beeldbank-listing .item .item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    row-gap: 10px;
    box-sizing: border-box;
    background: linear-gradient(180deg,rgba(0,0,0,0) 40%,rgba(0,0,0,.6671043417366946) 100%);
    transition: height 150ms ease-in-out;
}

.beeldbank-listing .item .item-overlay span {
    color: #fff;
    font-weight: bold;
    line-height: 1.4em;
    display: flex;
    column-gap: 10px;
}
.beeldbank-listing .item .item-overlay  span.residence,
.beeldbank-listing .item .item-overlay  span.photographer {
    font-weight: normal;
    font-size: .8em;
}
.beeldbank-listing .item .item-overlay span .item-overlay--icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) saturate(100%) invert(100%) sepia(5%) saturate(0%) hue-rotate(344deg) brightness(104%) contrast(100%);
}

/* Beeldbank search */
.search-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 3rem;
}
.search-container .searchbar-holder {
    max-width: 100%;
    width: 800px;
    height: 60px;
    position: relative;
}
.search-container .searchbar-holder #searchbar {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    border-radius: 25px;
    border: none;
    outline: none;
    border: 2px solid var(--accents);
    color: var(--main);
    padding: 0 25px;
    font-size: 1em;
    font-family: inherit;
}
.search-container .searchbar-holder #searchbar:focus {
    border-color: var(--accents2);
}
#search-dropdown.visible + #searchbar {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
#search-dropdown {
    box-sizing: border-box;
    padding: 10px 25px 25px;
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    height: auto;
    max-height: 500px;
    overflow-y: scroll;
    z-index: 1;
    background-color: var(--background);
    border: 2px solid var(--accents);
    border-top: 0;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
}
#search-dropdown.visible {
    display: block;
}
#search-dropdown .suggestion-zone {
    display: none;
}
#search-dropdown .suggestion-zone.visible {
    display: block;
}
#search-dropdown .suggestion-zone .zone-title {
    font-weight: bold;
}
#search-dropdown .suggestion-zone .suggestions {
    display: flex;
    flex-wrap: wrap;
    row-gap: 1rem;
    column-gap: 1rem;
}
#search-dropdown .suggestion-zone .suggestions .suggestion {
    padding: .3rem 1rem;
    border-radius: .5rem;
    box-sizing: border-box;
    background-color: var(--accents);
    color: var(--main);
    transition: background-color 150ms ease-in-out;
}
#search-dropdown .suggestion-zone .suggestions .suggestion:hover {
    background-color: var(--accents2);
}
#search-dropdown .suggestion-zone .suggestions .suggestion.item {
    display: grid;
    grid-template-columns: 1fr 4fr;
    column-gap: 2rem;
    align-items: center;
    padding: 0;
    overflow: hidden;
    width: 100%;
    padding-right: 2rem;
}

#search-icon {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: absolute;
    right: 13px;
    top: 0;
    height: 100%;
    aspect-ratio: 1 / 1;
}
#search-icon svg {
    fill: var(--primarycta);
}
#search-icon:hover svg {
    fill: var(--secondarycta);
}

/* Result info */
.result-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 1rem;
}
.result-info :nth-child(2) {
    text-align: center;
}
.result-info :nth-child(3) {
    text-align: right;
}
.result-info .current-filter {
    display: flex;
    justify-content: flex-end;
    column-gap: 1em;
}

/* Beeldbank item */
.beeldbank-items-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2em;
}
.beeldbank-items-nav a {
    color: var(--main);
    display: flex;
    align-items: center;
    white-space: nowrap;
    column-gap: 20px;
}
.beeldbank-items-nav a:hover {
    color: var(--primarycta);
}
.beeldbank-items-nav a.disabled {
    opacity: 0.3;
    pointer-events: none;
}
.beeldbank-items-nav a:hover img {
    /*filter: brightness(0) saturate(100%) invert(85%) sepia(56%) saturate(549%) hue-rotate(35deg) brightness(79%) contrast(89%);*/
}
.beeldbank-item {
    display: flex;
    justify-content: space-between;
    background-color: var(--accents);
}
.beeldbank-item .col {
    box-sizing: border-box;
}
.beeldbank-item main.main {
    background-color: #d5d5d5;
    width: 80%;
}
.beeldbank-item main.main figure.beeldbank-image {
    height: 70vh;
    padding: 50px 0;
}
.beeldbank-item main.main figure.beeldbank-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0px 0px 30px #666);
}
.beeldbank-item aside.details {
    padding: 3rem;
    background-color: var(--accents);
    height: fit-content;
    width: 600px;
    box-sizing: border-box;
    font-size: .9em;
}
.beeldbank-item aside.details span.fotonr {
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}
.beeldbank-item aside.details .spec {
    border-top: 1px solid var(--accents2);
    display: flex;
    padding: 10px 0;
}
.beeldbank-item aside.details .spec span:nth-of-type(1) {
    width: 50%;
    opacity: 0.5;
}
.beeldbank-item aside.details .spec span:nth-of-type(2) {
    width: 50%;
}

.beeldbank-item aside.details .spec.description {
    display: block;
}
.beeldbank-item aside.details .tags {

}
.beeldbank-item aside.details .tags .tag {
    padding: 5px 10px;
    border: 1px solid var(--main);
    border-radius: 3px;
    display: inline-block;
    line-height: 1em;
    color: var(--main);
    transition: all 150ms ease-in-out;
    margin: 5px 0;
    font-size: .8em;
}
.beeldbank-item aside.details .tags .tag:hover {
    border-color: var(--primarycta);
    color: var(--primarycta);
}
.beeldbank-item aside.details .btn {
    margin-top: 20px;
}


/* Comment form */
#comment-form .form-row {
    position: relative;
}
#comment-form input[type="text"],
#comment-form input[type="email"],
#comment-form textarea {
    background: var(--white);
    border: 1px solid var(--accents);
}
.row.comments-row {
    display: grid;
    grid-template-columns: 3fr 2fr;
    column-gap: 50px;
    row-gap: 30px;
}
.row.comments-row .thankyou {
    display: none;
}

/* Comments */
.row.comments-row .comments .comments-listing {
    display: flex;
    flex-direction: column;
    row-gap: 30px;
}
.row.comments-row .comments .comments-listing .comment .info {
    display: flex;
    justify-content: space-between;
}
.row.comments-row .comments .comments-listing .comment .info .name {
    font-weight: bold;
}
.row.comments-row .comments .comments-listing .comment .message{
    padding: 15px;
    border: 1px solid var(--accents2);
}

/* Breadcrumbs */
.breadcrumbs {
    font-weight: bold;
    color: var(--secondarycta);
    padding-bottom: 15px;
}


/* Contact form */
.contactModal .inner{
    max-width: 670px!important;
}




@media screen and (max-width: 1100px) {

    /* Beeldbank listing */
    .beeldbank-listing {
        grid-template-columns: repeat(2, 1fr);
    }
    .beeldbank-item {
        flex-direction: column;
    }
    .beeldbank-item .col.main {
        width: 100%;
        max-width: initial;
        margin-right: 0;
    }
    .beeldbank-item main.main figure.beeldbank-image {
        height: auto;
        padding: 0;
    }
    .beeldbank-item main.main figure.beeldbank-image img {
        width: 100%;
        height: auto;
        object-fit: contain;
        filter: none;
    }
    .beeldbank-item aside.details {
        width: 100%;
        box-sizing: border-box;
    }
    .beeldbank-item aside.details .spec {
        flex-direction: column;
    }
    .beeldbank-item aside.details .spec span:nth-of-type(1),
    .beeldbank-item aside.details .spec span:nth-of-type(2) {
        width: 100%;
    }
    .beeldbank-item .buttons {
        margin-bottom: 30px;
        font-size: 14px;
    }
    .beeldbank-items-nav span {
        display: none;
    }
    .result-info {
        font-size: .8em;
    }
    /* Comments */
    .row.comments-row {
        grid-template-columns: 1fr;
    }
}
@media screen and (max-width: 600px) {
    /* Beeldbank listing */
    .beeldbank-listing {
        grid-template-columns: repeat(1, 1fr);
    }
    #search-dropdown .suggestion-zone .suggestions .suggestion.item {
        grid-template-columns: 2fr 3fr;
    }

}
@media screen and (max-width: 400px) {
    #search-dropdown .suggestion-zone .suggestions .suggestion.item {
        grid-template-columns: 1fr;
        width: 100%;
    }
    #search-dropdown .suggestion-zone .suggestions .suggestion.item img {
        object-fit: cover;
    }
    #search-dropdown .suggestion-zone .suggestions .suggestion.item span {
        padding: .5rem 1rem;
    }
    .beeldbank-item aside.details {
        padding: 2rem;
    }
}


