/* Loaded only when a rental detail page has related article cards. */
#article_container.has-echoschall-links {
    height: auto !important;
}

#article_container .echoschall-article-content {
    display: flow-root;
    position: relative;
    min-height: 560px;
    width: 100%;
}

#article_container .echoschall-article-content-library {
    min-height: 500px;
}

#article_container .echoschall-article-content-sale {
    min-height: 1200px;
}

#article_container.echoschall-article-wide {
    border: 0;
    margin-bottom: 50px;
}

#article_container.echoschall-article-wide #article_quer {
    display: flow-root;
    margin-bottom: 0;
}

#echoschall_links {
    clear: both;
    order: 100;
    flex: 0 0 100%;
    box-sizing: border-box;
    width: 100%;
    padding: 30px 0 0;
}

#echoschall_links .echoschall-links-heading {
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 30px;
    padding: 2px 5px;
    border: 1px solid #dd951b;
    background: #000;
    color: #dd951b;
    font-family: grad, Georgia, "Times New Roman", Times, serif;
    font-size: 1.2em;
    font-weight: normal;
    line-height: 1.2;
    text-align: left;
}

#echoschall_links .echoschall-links-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, 175px);
    gap: 30px 20px;
    justify-content: start;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

#echoschall_links .echoschall-links-list > li {
    margin: 0;
    padding: 0;
    list-style: none;
    min-width: 0;
}

#echoschall_links .echoschall-links-card {
    display: block;
    color: #000;
    text-decoration: none;
}

#echoschall_links .echoschall-links-card:focus-visible {
    outline: 3px solid #dd951b;
    outline-offset: 5px;
    border-radius: 4px;
}

#echoschall_links .echoschall-links-cover {
    box-sizing: border-box;
    display: block;
    height: 234px;
    overflow: hidden;
    border: 2px solid #dd951b;
    margin-bottom: 15px;
    background: #fff;
}

#echoschall_links .echoschall-links-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#echoschall_links .echoschall-links-placeholder {
    display: grid;
    place-items: center;
    height: 100%;
    color: #706b68;
    background: #eeebd8;
    font-size: 2em;
}

#echoschall_links .echoschall-links-title {
    box-sizing: border-box;
    display: block;
    min-height: 44px;
    padding: 4px 8px;
    text-align: center;
    background: #eeebd8;
    font-size: .9em;
    border-radius: 4px;
    overflow-wrap: anywhere;
}

/* Match the existing mobile layout's device-width breakpoint. */
@media only screen and (max-device-width: 1025px) {
    main #article_container .echoschall-article-content {
        display: flex;
        flex-flow: row wrap;
        justify-content: center;
        align-items: center;
        min-height: 0;
    }

    main #article_container.echoschall-article-wide #article_quer {
        display: flex;
    }

    #echoschall_links {
        padding: 30px 16px 0;
    }

    #echoschall_links .echoschall-links-list {
        justify-content: center;
        grid-template-columns: repeat(auto-fit, minmax(140px, 175px));
        gap: 24px 16px;
    }
}
