input[type="text"].search-page-searchbar {
    max-width: 100rem !important;
    display: flex;
    justify-self: flex-end;
    min-width: 30rem;
}

.section-search-results .search-results {
    gap: 2rem;
}
.search-by-container{
    padding-inline: var(--mobile-padding);
}

.search-by-container .search-by-wrapper{
    display: flex;
    flex-flow: row wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}
.search-by-container .search-by-wrapper .search-by-label{
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
}
.section-search-results .single-search-result {
    --local-drop-shadow-color: var(--color-gray-light);
    --local-line-height: 1.6;
    filter: drop-shadow(0 0 0.75rem var(--color-gray-light));
    border-radius: 1rem;
    background-color: var(--color-primary-white);
    padding: 2.5rem;
    width: 100%;
}

.section-search-results .single-search-result .featured-result,
.nav-results .featured-result{
    color: var(--color-brand-red);
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    flex-flow: row;
    align-items: center;
    background: none;
}

:is(.nav-results .featured-result, .section-search-results .single-search-result .featured-result)::before {
    content: '';
    display: inline-block;
    width: 1.8rem;
    height: 1.8rem;
    background: url("/wp-content/themes/aana/svgs/star.svg") no-repeat;
    background-size: contain;
    margin-right: 0.5rem;
}

.section-search-results .single-search-result.locked {
    background-color: var(--color-gray-light-web);
    display: grid;
    grid-template-columns: auto 12rem;
    gap: 2rem;
}

.section-search-results .single-search-result.locked .search-result-lock-icon-and-cta{
    display: flex;
    flex-flow: column;
    gap: 1rem;
    justify-content: space-between;
    align-items: flex-end;
}


.section-search-results .single-search-result .search-result-link {
    /* grid-area: link; */
    color: var(--color-brand-navy);
    font-weight: 700;
    font-size: 2.8rem;
    line-height: 1.14;
    margin-bottom: 1rem;
    display: inline-block;
}

.section-search-results .single-search-result a.search-result-link:visited {
    color: var(--color-brand-teal);
}

.section-search-results .single-search-result .search-result-image {
    grid-column: 2;
    justify-self: flex-end;
}

.section-search-results .single-search-result .search-result-image img {
    max-height: 15rem;
    object-fit: contain;
}

.section-search-results .single-search-result .search-result-lock-icon {
    grid-area: lock;
    justify-self: end;
}

.search-results-categories-and-featured {
    margin-top: 2rem;
}

.section-search-results .single-search-result .search-result-lock-icon > svg {
    height: 2rem;
    color: var(--color-brand-navy);
}

.section-search-results .single-search-result .search-result-login {
    grid-area: login-button;
    justify-self: end;
    margin-top: 2rem;
}

.section-search-results .single-search-result .search-results-categories-and-featured {
    display: grid;
    grid-auto-flow: row;
    width: 100%;
}

.section-search-results .single-search-result .search-results-categories-and-featured :is(ul, li) {
    list-style-type: none;
    margin: 0;
    padding: 0;
    text-indent: 0;
}

.section-search-results.region {
    margin-block: 4rem 8rem;
}

.section-search-results.region h2 {
    color: var(--color-gray-dark);
    font-size: 2.4rem;
    font-weight: 800;
}

.section-search-results .search-results-number {
    font-size: 2.1rem;
    color: var(--color-gray-dark);
}

form.search.search-page {
    max-width: var(--content-width-wide-2);
    margin-inline: 8rem;
}

.search-result-date {
    color: var(--color-brand-teal);
    font-weight: 600;
    font-size: 1.4rem;
}

.single-search-result > a.search-result-link {
    font-size: 2.8rem !important;
    color: var(--color-brand-navy);
    font-weight: 600;
}

.search-result-excerpt {
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: calc(2 * var(--local-line-height) * 1em);
}
.single-search-result.locked .search-result-excerpt{
    -webkit-line-clamp: unset;
    max-height: unset;
}
.single-search-result.locked .search-result-excerpt a{
    color: var(--color-brand-navy);
    text-decoration: underline;
}
.section-search-results .search-result-categories{
    display: inline-flex;
    flex-flow: row wrap;
    gap: 1rem;
    max-width: fit-content;
}

.search-result-categories span {
    background: var(--color-gray-light-web);
    padding: 1rem;
    text-transform: capitalize;
    display: inline-block;
}

.search-result-featured {
    color: var(--color-brand-red);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.search-result-featured svg {
    width: 2rem;
    margin-right: 1rem;
}

[data-role="next-result"] {
    display: flex;
    align-items: center;
}

.section-search-results .ckn-info {
    grid-row: -1;
}

.section-search-results .ckn-info > * {
    margin-block: 0.5rem;
}

.section-search-results .ckn-info p.description {
    margin-block: 1rem 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.section-search-results .left-column p {
    margin-bottom: 0;
}

.section-search-results .ckn-info p.format {
    color: var(--color-brand-navy);
}

.section-search-results .ckn-info .credits {
    font-weight: 600;
    color: var(--color-brand-red);
}

.search-results-container {
    display: flex;
    flex-flow: row;
    gap: 4rem;
}

#filter-postType {
    width: 25%;
}

.search-results-container .search-results {
    width: 75%;
    display: flex
;
    flex-flow: column;
    gap: 2rem;
}

.search-results-container .search-results .ais-Hits-list{
    display: flex;
    flex-flow: column;
    gap: 2rem;
}

.section-search-results .single-search-result .left-column {
    display: flex;
    flex-flow: column wrap;
    justify-content: flex-start;
    margin-right: 2rem;
}

.search-by-container :is(button, .button) {
    --local-border-color: var(--color-primary-black);
    /*border: var(--color-primary-black) 0.1rem solid;*/
    /*height: 3rem;*/
}

.search-by-container :is(button, .button).selected {
    --local-color: var(--color-primary-white);
    --local-bg-color: var(--color-brand-navy);
}

.search-by-container .search input:hover {
    color: var(--color-brand-navy);
    background: var(--color-brand-pale-blue);
    border: var(--color-brand-pale-blue) 0.1rem solid;
    transition: all 250ms ease-in-out;
}
.search-by-container h4.help-text{
    margin-inline: auto;
    margin-bottom: 2rem;
}
.search-by-container .search {
    margin-right: 2rem;
}

.search-by-container .search-by-wrapper > * {
    display: inline-block;
}

@media screen and (max-width: 67.5em) {
    .section-search-results.region {
        margin-inline: 0;
        padding-inline: var(--mobile-padding);
    }
}


@media screen and (max-width: 62em) {
    .search-results-container{
        display: block;
    }
    .search-results-container .search-results{
        width: 100%;
    }
    #filter-postType {
        width: 100%;

    }

    #filter-postType .ais-RefinementList-list{
        display: flex;
        flex-flow: row wrap;
        margin-bottom: 4rem;
    }


    .section-search-results .excerpt_part,
    .single-search-result .left-column p {
        font-size: 1.4rem;
    }
    .section-search-results .search-result-categories{
        margin-bottom: 2rem;
    }

    .search-result-excerpt {
        max-height: unset;
    }
    .search-result-categories span{
        font-size: 1.2rem;
        padding: 0.5rem;

    }
    .search-results-categories-and-featured {
        margin-top: 0;
    }


    .section-search-results .single-search-result .search-result-excerpt {
        margin-block: 0 2rem;
    }

    .section-search-results .single-search-result .search-result-link {
        font-size: 2.4rem;
        margin-bottom: 2rem;
    }

    .section-search-results .single-search-result {
        padding: 2rem;
    }
    .section-search-results .single-search-result .search-results-categories-and-featured{
        order: -1;
    }
    .search-result-featured {
        order: -1;
        margin-bottom: 2rem;
    }

    .section-search-results .search-result-image {
        margin-top: 1rem;
    }
}



@media screen and (max-width: 25em) {
    input[type="text"].search-page-searchbar {
        min-width: 22rem;
        width: 100%;
    }
}
