/* Gallery Pages */
.main h1 + p.nosort {
    margin-bottom: 64px;
}

.main .hig-content h1.gallery-heading + p {
    font-size: 17px;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -.022em;
    font-family: "SF Pro Text","SF Pro Icons","Helvetica Neue","Helvetica","Arial",sans-serif;
}

@media only screen and (max-width: 735px) {
    .main h1 + p.nosort {
        margin-bottom: 32px;
    }
}

.main h3.category-title {
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: 32px 0px;
}

@media only screen and (max-width: 1332px) {
    .filter-container {
        display: grid;
        grid-template-columns: 3fr 1fr;
        margin-bottom: 0;
    }
}

@media only screen and (max-width: 1068px) {
    .filter-container {
        grid-template-columns: 1fr;
    }
}

.filter-container div:last-of-type {
    margin-left: auto;
}

.filter-input {
    margin-right: 10px;
}

@media only screen and (max-width: 1332px) {
    .filter-input {
        margin-right: 0px;
    }
}

input[type="text"].searchbar {
    color: #000;
    font-size: 14px;
    border-radius: 12px;
    outline: none;
    padding: 1.3em 0em 1.3em 2.5em;
    background-image: url(data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%0A%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20viewBox%3D%220%200%2064%2064%22%20xml%3Aspace%3D%22preserve%22%3E%0A%09%3Cpath%20style%3D%22fill%3A%23939598%3B%22%20d%3D%22M57.8%2C54.2L44.6%2C40.9c2.9-3.7%2C4.9-8.1%2C4.9-13.1c0-12-9.7-21.6-21.6-21.6c-12%2C0-21.6%2C9.7-21.6%2C21.6%20c0%2C12%2C9.7%2C21.6%2C21.6%2C21.6c5%2C0%2C9.5-2%2C13.1-4.9l13.2%2C13.2L57.8%2C54.2z%20M11.3%2C27.8c0-9.1%2C7.4-16.5%2C16.5-16.5s16.5%2C7.4%2C16.5%2C16.5%20s-7.4%2C16.5-16.5%2C16.5S11.3%2C36.9%2C11.3%2C27.8z%22%2F%3E%0A%3C%2Fsvg%3E);
    background-size: auto 55%;
    background-position: 0.8em;
    background-repeat: no-repeat;
    margin-right: 10px;
    width: unset;
    min-width: 250px;
}

@media only screen and (max-width: 1332px) {
    input[type="text"].searchbar {
        min-width: unset;
        width: 100%;
    }
}

@media only screen and (max-width: 1068px) {
    input[type="text"].searchbar {
        font-size: 16px;
    }
}

body[data-color-scheme="dark"] input[type="text"].searchbar {
    border: 1px solid #424245;
}

.filter-buttons {
    margin-right: 10px;
}

@media only screen and (max-width: 1332px) {
    .filter-buttons {
        grid-row: 2;
        grid-column: 1/3;
        margin-right: 0;
        margin-bottom: 32px;
    }
}

.filter-button {
    cursor: pointer;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    background: #e6e5e7;
    color: #000;
    border-radius: 980px;
    font-size: 12px;
    line-height: 1.33337;
    font-weight: 400;
    letter-spacing: -0.01em;
    font-family: "SF Pro Text", "SF Pro Icons", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
    min-width: 23px;
    padding-left: 11px;
    padding-right: 11px;
    padding-top: 4px;
    padding-bottom: 4px;
    margin: 0 2px;
}

@media only screen and (max-width: 1332px) {
    .filter-button {
        font-size: 14px;
        padding-left: 15px;
        padding-right: 15px;
        padding-top: 6px;
        padding-bottom: 6px;
        margin-top: 16px;
    }
}

body[data-color-scheme="dark"] .filter-button {
    background: #1a1a1a;
    color: #fff;
}

.filter-button.active {
    background: #000;
    color: #fff;
}

body[data-color-scheme="dark"] .filter-button.active {
    background: var(--fill-blue);
    color: #fff;
}

.filter-views {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 10px;
    place-items: center;
}

@media only screen and (max-width: 1068px) {
    .filter-views {
        display: none;
    }
}

.filter-view {
    width: 18px;
    height: 18px;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.4;
}

body[data-color-scheme="dark"] .filter-view {
    filter: brightness(0) invert(1);
}

.filter-view-grid {
    background-image: url("/design/human-interface-guidelines/images/icons/grid.svg");
    margin-left: 2px;
    width: 16px;
    width: 16px;
}

.filter-view-list {
    background-image: url("/design/human-interface-guidelines/images/icons/list.svg");
}

.filter-view.active {
    opacity: 1;
}

a.topic {
    color: #000;
    margin-bottom: 32px;
}

/* @media only screen and (max-width: 1068px) {
    a.topic {
        margin-bottom: 16px;
    }
} */

body[data-color-scheme="dark"] a.topic {
    color: #fff;
}

a.topic:hover {
    text-decoration: none;
}

.topic img {
    border-radius: 10px;
}

.topic .topic-text {
    display: flex;
    flex-direction: column;
}

.topic .topic-text > h4 {
    margin-top: 6px;
}

.topic h4 {
    font-size: 17px;
    font-weight: 600;
}

h3 + .category-content {
    margin-top: 24px;
}

.category-content {
    margin-bottom: 64px;
}

@media only screen and (max-width: 1068px) {
    .category-content {
        margin-bottom: 32px;
    }
}

.grid-view .category .category-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-column-gap: 25px;
}

.grid-view .category .category-content.grid-2 {
    grid-template-columns: 1fr 1fr;
}

@media only screen and (max-width: 1068px) {
    .grid-view .category .category-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media only screen and (max-width: 735px) {
    .grid-view .category .category-content {
        grid-template-columns: 1fr;
    }
}

.grid-view a.topic {
    display: flex;
    flex-direction: column;
}

.grid-view .topic p.topic-description {
    display: none;
}

.list-view .category .category-content {
    display: flex;
    flex-direction: column;
}

.list-view a.topic {
    display: flex;
    flex-direction: row;
    margin-bottom: 8px;
}

.list-view .topic .topic-text {
    flex-basis: 75%;
    margin-right: 20px;
}

.list-view .topic .topic-image-container {
    flex-basis: 25%;
    margin-right: 20px;
}

.list-view .topic .topic-text > h4 {
    margin-top: 0px;
    padding-bottom: 0;
}

.list-view .topic .topic-text > p {
    margin-top: 4px;
    margin-bottom: 0px;
    padding-bottom: 0;
}

.list-view .topic p {
    display: block;
}

figure.topic-image {
    background-size: contain;
    background-repeat: no-repeat;
}

.hig-right-nav {
    display: none;
}
