@media (min-width: 521px) {
    .page-projects #content.office-browse .browse-wrap,
    .page-offices #content.office-browse .browse-wrap {
        display: flex !important;
        align-items: flex-start;
        width: 100%;
        max-width: 100%;
    }

    .page-projects #content.office-browse .browse-left,
    .page-offices #content.office-browse .browse-left {
        float: none !important;
        order: 1;
        flex: 0 0 300px !important;
        width: 300px !important;
        max-width: 300px !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
        box-sizing: border-box;
    }

    .page-projects #content.office-browse .browse-right,
    .page-offices #content.office-browse .browse-right {
        order: 2;
        flex: 0 0 calc(100% - 300px) !important;
        min-width: 0;
        width: auto !important;
        max-width: calc(100% - 300px);
        padding: 10px 0 10px 10px !important;
        margin: 0 !important;
        box-sizing: border-box;
    }

    .page-projects #content.office-browse .project-category-sidebar-wrap,
    .page-offices #content.office-browse .project-category-sidebar-wrap,
    .page-projects #content.office-browse .browse-left #tools,
    .page-offices #content.office-browse .browse-left #tools {
        float: none !important;
        width: 300px !important;
        max-width: 100%;
        padding: 0 !important;
        overflow: visible !important;
        box-sizing: border-box;
    }
}

#content.office-browse #tools .project-facet {
    display: flex !important;
    flex-direction: column !important;
    max-height: none !important;
    min-height: 0;
    border: 0 !important;
    border-top: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    overflow: visible !important;
    padding: 0 10px 8px 0 !important;
    margin: 0 0 14px !important;
    color: #333 !important;
    font-size: 14px !important;
    box-sizing: border-box;
}

#content.office-browse #tools .project-facet h4 {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex: 0 0 auto;
    gap: 10px;
    padding: 0 0 6px 8px !important;
    margin: 0 !important;
    border: 0 !important;
    color: #333 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

#content.office-browse #tools .project-facet .facet-options {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 220px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 0 0 2px !important;
}

#content.office-browse #tools .project-facet .facets.locations {
    max-height: none !important;
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: inherit !important;
}

#content.office-browse #tools .project-facet .facets.locations > .level-1:not(.term) {
    padding-left: 0 !important;
}

#content.office-browse #tools .project-facet .term {
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    padding: 3px 8px !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    color: #333 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.25 !important;
    margin: 0 !important;
    box-sizing: border-box;
}

#content.office-browse #tools .project-facet .term:hover {
    background: rgba(255, 255, 255, .55) !important;
    color: #333 !important;
    text-decoration: none !important;
}

#content.office-browse #tools .project-facet .term.selected-item {
    border-color: #d4d4d8 !important;
    background: rgba(255, 255, 255, .78) !important;
    color: #333 !important;
    font-weight: 400 !important;
    line-height: 1.25 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04) !important;
}

#content.office-browse #tools .project-facet .term input[type="checkbox"],
#content.office-browse #tools .project-facet .term input.os-facet {
    -webkit-appearance: none;
    appearance: none !important;
    display: inline-grid !important;
    place-content: center !important;
    flex: 0 0 auto !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    border: 1px solid #a1a1aa !important;
    border-radius: 5px !important;
    background: #fff !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05) !important;
    cursor: pointer !important;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
    vertical-align: middle !important;
}

#content.office-browse #tools .project-facet .term input[type="checkbox"]:hover,
#content.office-browse #tools .project-facet .term input.os-facet:hover {
    border-color: #333 !important;
}

#content.office-browse #tools .project-facet .term input[type="checkbox"]:focus-visible,
#content.office-browse #tools .project-facet .term input.os-facet:focus-visible {
    outline: none !important;
    border-color: #333 !important;
    box-shadow: 0 0 0 3px rgba(51, 51, 51, .14) !important;
}

#content.office-browse #tools .project-facet .term input[type="checkbox"]:checked,
#content.office-browse #tools .project-facet .term input.os-facet:checked {
    border-color: #333 !important;
    background-color: #333 !important;
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M3.5 8.25 6.5 11 12.5 5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: 14px 14px !important;
}

#content.office-browse #tools .project-facet .term input[type="checkbox"]::before,
#content.office-browse #tools .project-facet .term input.os-facet::before {
    content: "";
    width: 10px;
    height: 10px;
    background: #fff !important;
    clip-path: polygon(14% 44%, 0 62%, 42% 100%, 100% 18%, 82% 0, 38% 64%);
    transform: scale(0);
    transform-origin: center;
    transition: transform .12s ease;
}

#content.office-browse #tools .project-facet .term input[type="checkbox"]:checked::before,
#content.office-browse #tools .project-facet .term input.os-facet:checked::before {
    transform: scale(1);
}

#content.office-browse #tools .project-facet .term label,
#content.office-browse #tools .project-facet .term a {
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    flex: 1 1 auto !important;
    min-width: 0;
    padding: 0 !important;
    border: 0 !important;
    color: #333 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

#content.office-browse #tools .project-facet .facets.locations > .level-2:not(.term) {
    padding-left: 16px !important;
}

#content.office-browse #tools .project-facet .facets.locations > .level-3:not(.term) {
    padding-left: 32px !important;
}

#content.office-browse #tools .project-facet .facets.locations > .level-2.term {
    padding-left: 24px !important;
}

#content.office-browse #tools .project-facet .facets.locations > .level-3.term {
    padding-left: 40px !important;
}

#content.office-browse #tools .project-facet .term a:hover {
    color: #333 !important;
    text-decoration: none !important;
}

#content.office-browse #tools .project-facet .term a.selected {
    position: static !important;
    font-weight: 600 !important;
}

#content.office-browse #tools .project-facet .term a.selected:after {
    content: none !important;
    display: none !important;
}

#content.office-browse #tools .project-facet .term-name {
    flex: 1 1 auto;
    min-width: 0;
}

#content.office-browse #tools .project-facet .term-count {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    min-width: 36px !important;
    padding: 3px 6px !important;
    border-radius: 999px !important;
    background: #f1f1f1 !important;
    color: #333 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    text-align: center !important;
}

#content.office-browse #tools .project-facet p {
    margin: 3px 0;
    color: #333;
    font-size: 14px;
    line-height: 1.25;
}

#content.office-browse .osep-pager-wrap {
    text-align: center;
    margin-top: 30px;
    clear: both;
}

#content.office-browse .osep-pager {
    display: inline-block;
    background-color: #fff;
    border-radius: 4px;
    border: 1px solid #ccc;
}

#content.office-browse .osep-pager .page-numbers {
    display: inline-block;
    color: #438bca;
    padding: 6px 12px;
    border-right: 1px solid #ccc;
}

#content.office-browse .osep-pager .page-numbers:last-child {
    border-right: none;
}

#content.office-browse .osep-pager .current {
    color: inherit;
    font-weight: bold;
}

.page-projects #main,
.page-offices #main {
    width: 100% !important;
    max-width: 1440px;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}

.page-projects #content.office-browse,
.page-offices #content.office-browse {
    width: 100%;
    max-width: 1440px;
    float: none;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-projects #content.office-browse .browse-heading,
.page-offices #content.office-browse .browse-heading {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

@media (min-width: 521px) {
    .page-projects .filter-trigger,
    .page-offices .filter-trigger {
        display: none !important;
    }
}

.page-projects #content.office-browse #offices.project-grid,
.page-offices #content.office-browse #offices.project-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 24px;
    margin: 0 !important;
    overflow: visible !important;
}

.page-projects #content.office-browse #offices.project-grid.loading,
.page-offices #content.office-browse #offices.project-grid.loading {
    display: block !important;
}

.page-projects #content.office-browse #offices.project-grid .listing,
.page-offices #content.office-browse #offices.project-grid .listing {
    display: block !important;
    float: none !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .08);
}

.page-projects #content.office-browse #offices.project-grid .listing:hover,
.page-offices #content.office-browse #offices.project-grid .listing:hover {
    border: 0 !important;
}

.page-projects #content.office-browse #offices.project-grid .listing-link,
.page-offices #content.office-browse #offices.project-grid .listing-link {
    display: flex !important;
    flex-direction: column;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    color: inherit;
    text-decoration: none;
}

.page-projects #content.office-browse #offices.project-grid .listing-image,
.page-offices #content.office-browse #offices.project-grid .listing-image {
    display: block;
    width: 100% !important;
    height: auto !important;
    max-width: none;
    max-height: none;
    aspect-ratio: 5 / 3;
    object-fit: cover;
    border-radius: 0;
}

.page-projects #content.office-browse #offices.project-grid .listing-title,
.page-offices #content.office-browse #offices.project-grid .listing-title {
    width: 100%;
    min-height: 67px;
    margin: 0 !important;
    padding: 13px 16px 14px;
    color: #444 !important;
    background: transparent;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 20px !important;
    text-align: left;
    text-shadow: none;
    text-decoration: none;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

.page-projects #content.office-browse #offices.project-grid .listing-link:hover .listing-title,
.page-offices #content.office-browse #offices.project-grid .listing-link:hover .listing-title {
    color: #428bca !important;
}

.page-projects #content.office-browse #offices.project-grid .project-jump,
.page-offices #content.office-browse #offices.project-grid .project-jump {
    display: none !important;
}

@media (max-width: 1100px) and (min-width: 521px) {
    .page-projects #content.office-browse #offices.project-grid,
    .page-offices #content.office-browse #offices.project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) and (min-width: 521px) {
    .page-projects #content.office-browse #offices.project-grid,
    .page-offices #content.office-browse #offices.project-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .page-projects #main,
    .page-offices #main {
        padding-left: 12px;
        padding-right: 12px;
    }

    .page-projects .filter-trigger,
    .page-offices .filter-trigger {
        display: block !important;
        border-bottom: 1px solid #ccc;
        text-align: center;
        padding: 5px;
        margin: 5px 0 15px;
        background: #fff;
        font-weight: 600;
    }

    .page-projects #content.office-browse #offices.project-grid,
    .page-offices #content.office-browse #offices.project-grid {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 22px;
        overflow: visible !important;
    }
}
