/* Museum styles are scoped so the token and news catalogues keep their layout. */
.mm-main{width:100%;flex:1;color:#eee;font-family:Bahnschrift,sans-serif}
.mm-page{--mm-gutter:clamp(20px,calc(20px + 100 * ((100vw - 1200px) / 634)),120px);width:100%;max-width:1800px;box-sizing:border-box;margin:0 auto;padding:20px var(--mm-gutter) clamp(40px,6vw,120px);position:relative}
.mm-main>.mm-detail{width:100%;max-width:1400px;margin:0 auto;padding:20px 10px 50px}
.mm-heading{text-align:center;margin:0 auto 36px}
.mm-logo-link{display:inline-block;max-width:100%}.mm-logo{display:block;width:780px;max-width:100%;height:auto;object-fit:contain;margin:auto}.mm-logo[data-logo-pending]{visibility:hidden}
.mm-heading h1{font-family:Furore,sans-serif;font-size:clamp(24px,2.6vw,40px);font-weight:400;margin:24px 0 0;overflow-wrap:anywhere}
.mm-breadcrumbs{font-family:Bahnschrift,sans-serif;font-size:clamp(13px,.9vw,17px);font-weight:400;letter-spacing:.02em;text-transform:uppercase;margin:0 0 50px;display:flex;align-items:center;flex-wrap:wrap;gap:0;color:#a1b7ca}.mm-breadcrumbs .mm-crumb{display:inline-block;white-space:nowrap}.mm-breadcrumbs a{display:inline-block;white-space:nowrap;color:#a1b7ca;text-decoration:none;transition:color .2s ease;margin-right:-2px}.mm-breadcrumbs a:hover{color:#759cb8}.mm-breadcrumbs .separator{cursor:default;pointer-events:none;font-weight:700;color:#bbb496;margin:0 4px;white-space:nowrap;display:inline-block}
.mm-categories{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(6px,1vw,16px);margin-bottom:50px}
.mm-category{aspect-ratio:4/3;display:flex;flex-direction:column;text-decoration:none!important;background:#252829;border:2px solid #3c3c3c;border-radius:14px;color:#f8f5e9!important;min-width:0;overflow:hidden;--mm-category-color:#929292;box-shadow:0 4px 10px #0004}
.mm-category:hover{border-color:#3c3c3c}
.mm-category-art>svg,.mm-category-art>img,.mm-category-name>span{transition:transform .25s ease}.mm-category:hover .mm-category-art>svg,.mm-category:hover .mm-category-art>img,.mm-category:hover .mm-category-name>span,.mm-category:focus-visible .mm-category-art>svg,.mm-category:focus-visible .mm-category-art>img,.mm-category:focus-visible .mm-category-name>span{transform:scale(1.045)}
.mm-category-art{position:relative;display:flex;justify-content:center;align-items:center;flex:1;min-height:0;background:repeating-linear-gradient(0deg,transparent 0,transparent 24px,#ffffff05 24px,#ffffff05 25px)}
.mm-category-art>svg{width:80%;height:100%;fill:var(--mm-category-color)}.mm-category-art>img{width:100%;height:100%;object-fit:contain}
.mm-art-shadow{fill:none;stroke:var(--mm-category-color);stroke-width:2;opacity:.4}.mm-art-sheet{fill:#191b1c;stroke:var(--mm-category-color);stroke-width:2}.mm-art-line{fill:none;stroke:var(--mm-category-color);stroke-width:2}
.mm-category-name{--mm-label-font:clamp(11px,1.05vw,17px);display:flex;flex:0 0 calc(var(--mm-label-font) * 2.4 + 20px);height:calc(var(--mm-label-font) * 2.4 + 20px);justify-content:center;align-items:center;padding:10px 12px;text-align:center;line-height:1.2;font-size:var(--mm-label-font);text-transform:uppercase;background:#0b0d0e;border-top:0}.mm-category-name>span{display:block;max-width:100%}
.mm-category--illustrated{position:relative;background:#171716}
.mm-category--illustrated .mm-category-art{position:absolute;inset:0;width:100%;height:100%;display:block;background:none}
.mm-category--illustrated .mm-category-art>img{display:block;object-fit:cover}
.mm-category--illustrated .mm-category-name{position:absolute;z-index:1;left:0;right:0;bottom:0;height:26%;min-height:0;flex:none;padding:4px 8px;background:rgba(9,11,12,.97)}
.mm-category--text{aspect-ratio:auto;justify-content:center}
.mm-category--text .mm-category-name{width:100%;border-top:0}

.mm-catalog-layout {
    --mm-grid-gap: 4px;
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fill, 256px);
    column-gap: var(--mm-grid-gap);
    justify-content: center;
    max-width: 1560px;
    margin-inline: auto;
}
.mm-catalog-layout > * {
    grid-column: 1 / -1;
    min-width: 0;
}
.mm-button{font:inherit;cursor:pointer;border:1px solid #a8aa9f;color:#f6f3df;background:#343b3b;padding:10px 12px;line-height:1.3}
.mm-button:hover{background:#495452}
.mm-results {
    display: grid;
    grid-template-columns: subgrid;
    align-items: start;
    gap: var(--mm-grid-gap);
}
.mm-geography{grid-column:1/-1;font-weight:400;font-size:20px;color:#d6c99c;margin:0;padding-top:6px}
.mm-card{min-width:0;align-self:start}.mm-card-photo{aspect-ratio:1;position:relative;display:flex;align-items:center;justify-content:center;isolation:isolate;overflow:hidden;background:rgba(0,0,0,.21);border:0;border-radius:15px;text-decoration:none}
.mm-card-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
    transition: opacity .25s, transform .25s;
}
.mm-hover { opacity: 0; }
.mm-has-hover.touch-pressed .mm-hover,
.mm-has-hover .mm-card-photo:focus-visible .mm-hover { opacity: 1; }
.mm-has-hover.touch-pressed .mm-cover,
.mm-has-hover .mm-card-photo:focus-visible .mm-cover { opacity: 0; }
@media (hover: hover) {
    .mm-has-hover:not(.touch-released) .mm-card-photo:hover .mm-hover { opacity: 1; }
    .mm-has-hover:not(.touch-released) .mm-card-photo:hover .mm-cover { opacity: 0; }
}
.mm-card-title{font-size:clamp(13px,1vw,16px);line-height:1.35;font-weight:400;margin:10px 0 0;white-space:normal;overflow-wrap:anywhere;hyphens:auto}.mm-card-title a{color:#f2eee2;text-decoration:none}.mm-card-title a:hover{text-decoration:underline;color:#e0ca8c}
.mm-no-image{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:100px;font-family:Furore,sans-serif;font-size:55px;color:#79827d}
.mm-card[hidden]{display:none!important}
.mm-empty{grid-column:1/-1;text-align:center;padding:55px 25px;background:#181c1dad;border:1px dashed #75776d}.mm-empty>span{font-family:Furore,sans-serif;font-size:70px;color:#8c9387}.mm-empty h3{font-size:23px;font-weight:400;margin:15px 0}.mm-empty p{color:#bfc2bb;line-height:1.5}.mm-empty a{display:inline-block;color:#e0ca8c;margin-top:18px}
.mm-pagination{flex-wrap:wrap}
/* Exhibit pages and their modal use the actual token markup and stylesheet. */
.mm-detail .mm-photo-link{display:block;min-width:0;text-decoration:none;cursor:zoom-in}
.mm-update-badge {
    padding: 0;
    border: 0;
    background: transparent;
}
.mm-update-badge .badge-tooltip { overflow-wrap: anywhere; }
.mm-update-badge:focus-visible .badge-tooltip { opacity: 1; visibility: visible; }
.mm-card:has(> .mm-update-badge) { isolation: isolate; }

.mm-detail-intro:has(> .mm-update-badge) > :is(:nth-child(2), .mm-update-badge) { grid-area: 2 / 1; }
.mm-detail-intro > .mm-update-badge {
    position: relative;
    inset: auto;
    place-self: start end;
    margin: 15px 15px 0 0;
}
.mm-detail-intro > .mm-update-badge .sparkle-icon { width: 32px; height: 32px; }
.mm-detail-intro > .mm-update-badge .badge-tooltip { width: 220px; padding: 6px; font-size: 16px; }

@media (min-width: 769px) {
    .mm-detail-intro:has(> .mm-update-badge) > :is(:nth-child(2), .mm-update-badge) { grid-area: 1 / 2; }
}
@media (max-width: 550px) {
    .mm-detail-intro > .mm-update-badge { margin: 6px 6px 0 0; }
    .mm-detail-intro > .mm-update-badge .sparkle-icon { width: 20px; height: 20px; }
    .mm-detail-intro > .mm-update-badge .badge-tooltip { width: 140px; }
}
.mm-detail .mm-detail-title,
#tokenAjaxModal .mm-detail .mm-detail-title {
    font-size: clamp(30px, 5.4vw, 63px);
    overflow-wrap: anywhere;
}
.mm-detail .token-characteristics{min-width:0}
.mm-main a:focus-visible,.mm-main button:focus-visible,.mm-main input:focus-visible,.mm-main select:focus-visible{outline:2px solid #ebcd83;outline-offset:3px}
@media (max-width: 1300px) {
    .mm-categories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 815px) {
    .mm-catalog-layout { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .mm-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 28px; }
}
@media (max-width: 550px) {
    .mm-catalog-layout {
        --mm-grid-gap: clamp(1px, calc(1px + (4 - 1) * ((100vw - 320px) / (550 - 320))), 4px);
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .mm-card-photo { border-radius: 10px; }
}
@media(prefers-reduced-motion:reduce){.mm-main *,.mm-main *::before,.mm-main *::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
@media(max-width:550px){.mm-page{--mm-gutter:clamp(4px,1.8vw,15px)}.mm-breadcrumbs{margin-bottom:25px}}
@font-face {
    font-family: "Museum Golos Text";
    src: url("fonts/GolosText-Variable.ttf") format("truetype");
    font-weight: 400 900;
    font-display: swap;
}
@font-face {
    font-family: "Museum Bahnschrift";
    src: local("Bahnschrift Light"), url("fonts/bahnschrift.woff2") format("woff2");
    font-weight: 300;
    font-display: swap;
}
@font-face {
    font-family: "Museum Akrobat";
    src: url("fonts/akrobat-regular.ttf") format("truetype");
    font-weight: 400;
    font-display: swap;
}
.mm-heading--section h1,
.mm-heading--subcategory h1 {
    max-width: 100%;
    margin: 0;
    font-size: clamp(32px, 4.65vw, 82px);
    line-height: 1.1;
    text-transform: uppercase;
}
.mm-heading--section h1 {
    color: #fff;
    font-family: "Museum Golos Text", "Golos-Text_DemiBold", sans-serif;
    font-weight: 700;
}
.mm-heading--subcategory h1 {
    color: #b8b4a3;
    font-family: "Museum Bahnschrift", Bahnschrift, sans-serif;
    font-weight: 300;
    font-variation-settings: "wght" 300;
}
.mm-heading--section,
.mm-heading--subcategory {
    margin: 0 0 clamp(28px, 4vw, 54px);
}
.mm-page:has(.mm-heading--section, .mm-heading--subcategory) .mm-breadcrumbs {
    margin-bottom: clamp(22px, 2.7vw, 42px);
}
.mm-categories.mm-categories--subcategories {
    display: block;
    width: min(94%, 1600px);
    margin-inline: auto;
}
.mm-subcategory-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: clamp(8px, 1.1vw, 14px) clamp(12px, 2.5vw, 36px);
    max-width: 100%;
    margin-inline: auto;
}
.mm-subcategory-link {
    display: block;
    max-width: 100%;
    transition: filter .2s ease;
}
.mm-subcategory-link img {
    display: block;
    width: auto;
    height: clamp(26px, 2.95vw, 44px);
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
}
.mm-subcategory-link:hover,
.mm-subcategory-link:focus-visible { filter: brightness(1.17); }

.mm-results-title {
    font-family: Furore, sans-serif;
    font-weight: 400;
    font-size: clamp(19px, 2vw, 28px);
    margin: 0 0 14px;
}
.mm-filter-panel {
    position: relative;
    width: 100%;
    padding: 8px 0;
    margin-bottom: 12px;
    border-block: 1px solid #7a7c7352;
}
#mm-filter-form {
    --mm-tool-gap: clamp(5px, .55vw, 10px);
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "options tools";
    align-items: center;
    column-gap: 12px;
}
.mm-filters-toggle {
    display: none;
    grid-area: toggle;
    justify-self: start;
    align-items: center;
    gap: 6px;
    padding: 2px 6px;
    min-height: 34px;
    border: 0;
    background: transparent;
    color: #dadbd5;
    font: inherit;
    cursor: pointer;
}
.mm-filters-toggle span { transition: transform .24s ease; }
.mm-filters-toggle[aria-expanded="true"] span { transform: rotate(180deg); }
.mm-filter-disclosure { grid-area: options; min-width: 0; }
.mm-filter-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px 12px;
    min-height: 0;
}
.mm-filter-tools {
    grid-area: tools;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--mm-tool-gap);
    min-width: 0;
}
.mm-filter-actions,
.mm-search { display: flex; align-items: center; min-width: 0; }
.mm-filter-actions { gap: var(--mm-tool-gap); }
.mm-filter-tools [hidden] { display: none; }

@media (max-width: 1050px) {
    #mm-filter-form {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas: "toggle tools" "options options";
    }
    .mm-filters-toggle:not([hidden]) { display: inline-flex; }
    #mm-filter-form[data-mm-filter-ready] .mm-filter-disclosure {
        display: grid;
        grid-template-rows: 0fr;
        overflow: clip;
        transition: grid-template-rows .26s ease;
    }
    #mm-filter-form[data-mm-filter-ready] .mm-filter-disclosure.is-open {
        grid-template-rows: 1fr;
        overflow: visible;
        transition: grid-template-rows .26s ease, overflow 0s .26s allow-discrete;
    }
    .mm-filter-controls::before {
        content: "";
        flex-basis: 100%;
        height: 1px;
    }
}
@media (max-width: 450px) {
    #mm-filter-form { grid-template-areas: "tools tools" "toggle toggle" "options options"; }
    .mm-filter-actions { margin-inline-start: auto; }
}
.mm-filter-dropdown {
    position: relative;
    font-size: 14px;
    color: #dadbd5;
}
.mm-filter-dropdown summary {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 2px 6px;
    list-style: none;
    cursor: pointer;
}
.mm-filter-dropdown summary::-webkit-details-marker { display: none; }
.mm-filter-value { color: #a1b7ca; }
.mm-filter-value::after { margin-left: 4px; }
.mm-filter-popover {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 25;
    box-sizing: border-box;
    min-width: 180px;
    max-width: min(290px, 90vw);
    max-height: min(380px, 55vh);
    overflow: auto;
    overscroll-behavior: contain;
    padding: 8px;
    background: #202527;
    border: 1px solid #646762;
    border-radius: 6px;
    box-shadow: 0 7px 18px #0008;
}
.mm-filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 5px;
    min-height: 28px;
}
.mm-filter-option input {
    flex: none;
    margin: 0;
    accent-color: #b8b4a3;
    cursor: pointer;
}
.mm-filter-option a { color: #ededdf; text-decoration: none; }
.mm-filter-option:has(input:not(:checked):not(:indeterminate)) a { color: #a1a39e; }
.mm-filter-option a:hover, .mm-filter-option a:focus-visible { text-decoration: underline; }
.mm-city-group + .mm-city-group,
.mm-year-group + .mm-year-group { border-top: 1px solid #ffffff22; margin-top: 3px; padding-top: 3px; }
.mm-filter-group-title { padding: 5px; color: #a1b7ca; font-size: 12px; text-transform: uppercase; }
.mm-city-empty { margin: 5px; color: #b8b4a3; }
.mm-year-options { padding-left: 20px; }
.mm-decade button {
    background: transparent;
    border: 0;
    color: #dedfd8;
    cursor: pointer;
    font-size: 17px;
    padding: 0 4px;
}
.mm-decade button[aria-expanded="true"] { transform: rotate(180deg); }
.mm-kinds { display: flex; flex-wrap: wrap; gap: 5px; }
.mm-kind { position: relative; cursor: pointer; font-size: 13px; }
.mm-kind input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mm-kind span {
    display: block;
    color: #f0efe5;
    padding: 5px 8px;
    border-radius: 4px;
    background: #4a5352;
}
.mm-kind input:not(:checked) + span { color: #a1a39e; background: #252a2b; }
.mm-kind input:focus-visible + span,
.mm-filter-dropdown summary:focus-visible { outline: 2px solid #ebcd83; outline-offset: 2px; }
.mm-apply.mm-button { padding: 5px 10px; border-radius: 4px; font-size: 13px; }
.mm-reset { color: #bfc4c2; font-size: 13px; }
.mm-filter-tools .mm-results-count { flex: none; font-size: 14px; color: #bbb; white-space: nowrap; }
.mm-filter-sort summary {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 34px;
    height: 34px;
    padding: 0;
}
.mm-filter-tools .mm-filter-popover { left: auto; right: 0; }
.mm-filter-tools summary svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.mm-filter-tools summary:hover { color: #fff; }
.mm-filter-search input {
    width: min(235px, 65vw);
    padding: 7px 8px;
    background: #171b1d;
    border: 1px solid #626768;
    border-radius: 4px;
    color: #eee;
    font: inherit;
}
.mm-filter-sort .mm-filter-popover { width: max-content; }
.mm-filter-sort button {
    display: block;
    width: 100%;
    border: 0;
    padding: 7px 9px;
    background: transparent;
    text-align: left;
    color: #eee;
    font: inherit;
    cursor: pointer;
}
.mm-filter-sort button:hover,
.mm-filter-sort button[aria-pressed="true"] { background: #3c4747; }

.mm-detail {
    --mm-photo-gap: clamp(6px, .65vw, 10px);
    --mm-photo-height: min(58vh, 620px);
    --mm-photo-radius: clamp(8px, 1.2vw, 16px);
}
.mm-detail-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: var(--mm-photo-gap);
    margin-bottom: var(--mm-photo-gap);
}
@media (min-width: 769px) {
    .mm-detail-intro {
        --mm-base-photo-share: .4;
        grid-template-columns: minmax(0, 1fr) minmax(0, calc(var(--mm-lead-share, var(--mm-base-photo-share)) * (100% - var(--mm-photo-gap))));
    }
    .mm-detail-intro:has(> [data-mm-photo-format="portrait"]) { --mm-base-photo-share: calc(1 / 3); }
    .mm-detail-intro:has(> [data-mm-photo-format="wide"]) { --mm-base-photo-share: .5; }
    .mm-detail .mm-detail-intro:has(> .mm-photo-link) > .mm-detail-content {
        contain: size;
        min-height: 0;
        overflow: auto;
        scrollbar-width: none;
    }
    .mm-detail .mm-detail-intro:has(> .mm-photo-link) > .mm-detail-content[data-mm-description-layout] {
        overflow: hidden;
        transition: none;
    }
    .mm-detail .mm-detail-intro > .mm-detail-content[data-mm-description-truncated] {
        padding-bottom: clamp(3px, .35vw, 6px);
    }
    .mm-detail-content[data-mm-description-layout] > .token-characteristics {
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    .mm-detail-content[data-mm-description-layout] .token-characteristics-collapsible {
        position: relative;
        display: block;
        flex: 1;
        min-height: 0;
    }
    .mm-detail-content[data-mm-description-layout] .token-characteristics-collapsible-inner {
        height: 100%;
    }
    .mm-detail-content[data-mm-description-scroll] .token-characteristics-collapsible-inner {
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: #60737d #262a2c;
        overscroll-behavior: contain;
    }
    .mm-detail-content[data-mm-description-truncated] .token-characteristics-collapsible-inner {
        scrollbar-gutter: stable;
    }
    .mm-detail-content[data-mm-description-truncated] .token-characteristics-collapsible::before,
    .mm-detail-content[data-mm-description-truncated] .token-characteristics-collapsible::after {
        content: '';
        position: absolute;
        height: 1.8em;
        pointer-events: none;
        transition: opacity .25s ease;
    }
    .mm-detail-content[data-mm-description-truncated] .token-characteristics-collapsible::before {
        inset: 0 0 auto;
        background: linear-gradient(#111d, transparent);
        opacity: 0;
    }
    .mm-detail-content[data-mm-description-truncated] .token-characteristics-collapsible::after {
        inset: auto 0 0;
        height: var(--mm-description-fade-height, 1.8em);
        background: linear-gradient(transparent, #111d);
        opacity: 1;
    }
    .mm-detail-content[data-mm-description-open] .token-characteristics-collapsible::before { opacity: 1; }
    .mm-detail-content[data-mm-description-open] .token-characteristics-collapsible::after { opacity: 0; }
}
@media (min-width: 769px) and (max-width: 1050px) {
    .mm-detail-content[data-mm-characteristics-scroll] .token-characteristics-collapsible-inner {
        box-sizing: border-box;
        padding-inline-end: 18px;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: none;
        /* Fade the scrollport itself up to its clipping edge. */
        mask-image: linear-gradient(to bottom,
            transparent, #000 var(--mm-scroll-fade-top, 0px),
            #000 calc(100% - var(--mm-scroll-fade-bottom, 0px)), transparent);
    }
    .mm-characteristics-scrollbar {
        position: absolute;
        inset: 0 0 0 auto;
        z-index: 1;
        width: 16px;
        height: 100%;
        margin: 0;
        padding: 0;
        border: 0;
        appearance: none;
        writing-mode: vertical-lr;
        direction: ltr;
        background: transparent;
        cursor: pointer;
        touch-action: none;
    }
    .mm-characteristics-scrollbar::-webkit-slider-runnable-track {
        inline-size: 100%;
        block-size: 4px;
        border-radius: 4px;
        background: #262a2c;
    }
    .mm-characteristics-scrollbar::-webkit-slider-thumb {
        appearance: none;
        inline-size: var(--mm-scroll-thumb-size);
        block-size: 6px;
        margin-block-start: -1px;
        border-radius: 4px;
        background: #60737d;
    }
    .mm-characteristics-scrollbar::-moz-range-track {
        inline-size: 100%;
        block-size: 4px;
        border-radius: 4px;
        background: #262a2c;
    }
    .mm-characteristics-scrollbar::-moz-range-thumb {
        inline-size: var(--mm-scroll-thumb-size);
        block-size: 6px;
        border: 0;
        border-radius: 4px;
        background: #60737d;
    }
}
.mm-detail .mm-detail-content {
    display: block;
    margin: 0;
    padding: clamp(12px, 1.6vw, 22px);
    border-radius: var(--mm-photo-radius);
    transition: padding-block .25s ease;
}
@media (max-width: 768px) {
    .mm-detail .mm-detail-content:has(> .is-characteristics-collapsed) {
        padding-block: clamp(3px, .5vw, 7px);
    }
}
.mm-detail .is-characteristics-collapsed .token-characteristics-heading { margin-bottom: 0; }
.mm-detail .token-characteristics { margin: 0; padding: 0; }
.mm-detail .token-characteristics h2 { margin-top: 0; }
.mm-characteristics-grid {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: calc(2 * var(--characteristics-row-padding)) clamp(10px, 1.3vw, 22px);
    line-height: var(--characteristics-field-line-height);
    margin: 16px 0 0;
}
.mm-characteristics-grid > div {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: subgrid;
    align-items: start;
}
.mm-characteristics-grid dt,
.mm-detail-description h3 {
    color: #a1b7ca;
    font-weight: 600;
    text-transform: uppercase;
    font-size: var(--characteristics-field-size);
    margin: 0;
}
.mm-characteristics-grid dd,
.mm-detail-description {
    color: #b8b4a3;
    margin: 0;
    overflow-wrap: anywhere;
    font-size: var(--characteristics-field-size);
}
.mm-detail-description { margin-top: 18px; }
.mm-detail-description p { margin: 6px 0; }
.mm-detail-description-body { display: flow-root; line-height: 1.35; }
.mm-detail-description-body > :first-child { margin-top: 0; }
.mm-detail-description-body > :last-child { margin-bottom: 0; }
.mm-detail .mm-description-toggle {
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: .3em;
    flex: none;
    margin-top: 6px;
    padding: 0 4px;
    border: 0;
    background: transparent;
    color: #58636d;
    cursor: pointer;
    font: clamp(16px, 1.25vw, 21px) / 1.2 mossansregular, sans-serif;
    text-transform: uppercase;
}
.mm-detail .mm-description-toggle[hidden] { display: none; }
.mm-detail .mm-description-toggle svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .25s ease;
}
.mm-detail .mm-description-toggle[aria-expanded="false"] svg { transform: rotate(180deg); }

.mm-series-link {
    display: inline-block;
    color: #d7dddf;
    padding: 0 9px;
    background: #252b2b;
    vertical-align: top;
    border-radius: 5px;
    text-decoration: none;
}
.mm-series-link span { display: inline-block; transform: translateY(1px); }
.mm-series-link:hover { background: #384444; }
.mm-photo-gallery,
.mm-photo-row {
    display: grid;
    gap: var(--mm-photo-gap);
}
.mm-photo-row {
    grid-template-columns: var(--mm-row-columns, minmax(0, 1fr));
    width: 100%;
    max-width: calc(var(--mm-row-ratio, 1) * var(--mm-photo-height) + var(--mm-row-gaps, 0) * var(--mm-photo-gap));
}
.mm-hidden-access {
    max-width: 400px;
    margin: 80px auto;
    padding: 20px;
    text-align: center;
}
.mm-detail .mm-photo-link img.mm-hidden-stamp {
    width: clamp(90px, 14vw, 310px);
    height: auto;
    border-radius: var(--mm-photo-radius) 0 var(--mm-photo-radius) 0;
    z-index: 2;
    pointer-events: none;
}
@media (max-width: 768px) {
    .mm-detail .mm-photo-link img.mm-hidden-stamp { width: clamp(90px, 40vw, 310px); }
}

.mm-photo-row--single { max-width: 50%; }
.mm-photo-row--single:has(> [data-mm-photo-format="portrait"]) { max-width: 40%; }
.mm-detail .mm-photo-link {
    position: relative;
    width: 100%;
    aspect-ratio: var(--mm-photo-ratio, 1);
    max-height: var(--mm-photo-height);
}
.mm-detail .mm-photo-link img {
    position: absolute;
    inset: 0 auto auto 0;
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    border-radius: var(--mm-photo-radius);
}
@media (min-width: 769px) {
    .lightbox-slide img.mm-lightbox-landscape {
        max-width: 84%;
        max-height: 78vh;
        max-height: 78dvh;
    }
    .mm-photo-row:has(> .mm-photo-link:nth-child(2):last-child) { max-width: none; }
    .mm-detail .mm-photo-row:not(:has(> :nth-child(3))) > .mm-photo-link { max-height: none; }
    .mm-detail .mm-photo-row:not(:has(> :nth-child(3))) img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}
@media (max-width: 768px) {
    .mm-detail { --mm-photo-height: min(78vh, 850px); }
    .mm-photo-row,
    .mm-photo-row--single:has(> [data-mm-photo-format="portrait"]) {
        grid-template-columns: minmax(0, 1fr);
        max-width: none;
    }
}
body:has(.mm-main) #tokenModalPrev,
body:has(.mm-main) #tokenModalNext {
    appearance: none;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}
@media (max-width: 650px) {
    .mm-filter-dropdown:not(.mm-filter-search, .mm-filter-sort) { position: static; }
    .mm-filter-dropdown:not(.mm-filter-search, .mm-filter-sort) .mm-filter-popover {
        width: min(290px, 100%);
        top: calc(100% + 3px);
    }
}

/* The gallery and the exhibit are separate layers. Keep the page locked while either is open. */
body:has(.mm-main):has(#tokenAjaxModal.active) { overflow: hidden !important; }
body:has(.mm-main) #tokenAjaxModal .token-modal-slide { overscroll-behavior: contain; }

.mm-heading--section h1,
.mm-heading--subcategory h1 {
    width: min(94%, 1600px);
    margin-inline: auto;
    font-size: clamp(32px, max(4.4vw, 24px + 2.5vw), 78px);
}

.mm-heading h1.mm-taxonomy-title {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    font-size: clamp(32px, max(4.4vw, min(8px + 7.5vw, (340px + 145vw) / var(--mm-heading-letters))), 78px);
}
.mm-taxonomy-title .mm-heading-word { display: inline-block; white-space: nowrap; }
.mm-subcategory-link img { height: clamp(27px, 2.8vw, 48px); }
.mm-subcategory-link:has(> img) .mm-subcategory-name { display: none; }
.mm-subcategory-link:hover,
.mm-subcategory-link:focus-visible { filter: brightness(1.28); }

@media (width > 1000px) {
    .mm-catalog-layout:has(.mm-categories--subcategories) { container-type: inline-size; }
    .mm-categories.mm-categories--subcategories {
        width: min(94cqi, 1600px);
        margin-inline: 0;
        justify-self: unsafe center;
    }
}
@media (max-width: 1000px) {
    .mm-categories.mm-categories--subcategories {
        width: 100%;
        margin-bottom: clamp(22px, 4vw, 44px);
    }
    .mm-subcategory-links {
        flex-direction: column;
        align-items: flex-start;
        gap: clamp(4px, .8vw, 8px);
        font: 400 var(--mm-subcategory-size, clamp(23px, 15px + 2.8vw, 34px)) / 1.16 "Museum Akrobat", sans-serif;
    }
    .mm-subcategory-links .mm-subcategory-link {
        display: inline-flex;
        align-items: center;
        justify-content: flex-start;
        gap: .42em;
        max-width: none;
        color: #b8b4a3 !important;
        text-decoration: none;
        text-transform: uppercase;
        white-space: nowrap;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        transition: color .2s ease;
    }
    .mm-subcategory-links .mm-subcategory-link::before {
        content: "";
        flex: none;
        width: .24em;
        height: .24em;
        border-radius: 50%;
        background: currentColor;
    }
    .mm-subcategory-links .mm-subcategory-link img { display: none; }
    .mm-subcategory-links .mm-subcategory-link .mm-subcategory-name {
        display: block;
        width: auto;
        height: auto;
        padding: 0;
        font: inherit;
        background: transparent;
    }
    .mm-subcategory-links .mm-subcategory-link:hover,
    .mm-subcategory-links .mm-subcategory-link:focus-visible {
        color: #e1ddcb !important;
        filter: none;
    }
    .mm-subcategory-links .mm-subcategory-link .mm-subcategory-name > span { transform: none; }
}

.mm-filter-panel { font-family: mossansregular, sans-serif; font-size: 18px; line-height: 24px; }
.mm-filter-dropdown,
.mm-filter-tools .mm-results-count,
.mm-kind,
.mm-apply.mm-button,
.mm-reset { font-size: inherit; }
.mm-filter-popover { border: 0; border-radius: 9px; }
.mm-filter-dropdown[data-mm-facet="city"] .mm-filter-popover {
    width: min(360px, 100%);
    max-width: min(360px, 90vw);
    scrollbar-width: thin;
    scrollbar-color: #718682 #202527;
}
@media (min-width: 651px) {
    .mm-filter-dropdown[data-mm-facet="city"] .mm-filter-popover {
        width: min(360px, 90vw);
    }
}
.mm-filter-value::after,
.mm-decade button::before,
.mm-filters-toggle span,
.mm-sort-icon {
    display: inline-block;
    width: .95em;
    height: .95em;
    vertical-align: -.08em;
    background: currentColor;
    mask: url("assets/museum/icons/angle-down-solid-full.svg") center / contain no-repeat;
}
.mm-filter-value::after,
.mm-decade button::before { content: ""; }
.mm-sort-icon {
    width: 19px;
    height: 19px;
    mask-image: url("assets/museum/icons/up-down-solid.svg");
}
.mm-kind span,
.mm-apply.mm-button { border: 0; border-radius: 8px; }
.mm-search-toggle {
    display: grid;
    flex: none;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: none;
    color: #dadbd5;
    cursor: pointer;
}
.mm-search-toggle svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}
.mm-search-toggle:hover { color: #fff; }
.mm-search-field {
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-width .24s ease, opacity .2s ease, margin-inline-end .24s ease;
}
.mm-search-field.is-open {
    max-width: var(--mm-search-width, min(220px, 40vw));
    margin-inline-end: var(--mm-tool-gap);
    opacity: 1;
}
.mm-search-field input {
    display: block;
    width: var(--mm-search-width, min(220px, 40vw));
    box-sizing: border-box;
    padding: 6px 9px;
    background: #171b1d;
    border: 0;
    border-radius: 7px;
    color: #eee;
    font: inherit;
}
.mm-main .mm-search-field input:focus-visible { outline: none; background: #252d30; }

.mm-detail .token-characteristics-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 0;
}
.mm-detail .token-characteristics-toggle {
    display: grid;
    place-items: center;
    position: static;
    transform: none;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    color: #a1b7ca;
    background: transparent;
    border: 0;
    box-shadow: none;
    cursor: pointer;
}
.mm-detail .token-characteristics-toggle svg {
    width: 44px;
    height: 44px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .36s ease;
}
.mm-detail .is-characteristics-collapsed .token-characteristics-toggle svg { transform: rotate(180deg); }
.mm-detail .token-characteristics-collapsible {
    display: grid;
    grid-template-rows: 1fr;
    opacity: 1;
    transition: grid-template-rows .42s ease, opacity .25s ease;
}
.mm-detail .token-characteristics-collapsible-inner { min-height: 0; overflow: hidden; }
.mm-detail .is-characteristics-collapsed .token-characteristics-collapsible { grid-template-rows: 0fr; opacity: 0; }
@media (min-width: 769px) {
    .mm-detail .token-characteristics-toggle { display: none; }
    .mm-detail .is-characteristics-collapsed .token-characteristics-collapsible { grid-template-rows: 1fr; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .mm-search-field,
    .mm-filters-toggle span,
    #mm-filter-form[data-mm-filter-ready] .mm-filter-disclosure,
    #mm-filter-form[data-mm-filter-ready] .mm-filter-disclosure.is-open,
    .mm-detail .mm-detail-content,
    .mm-detail .token-characteristics-collapsible,
    .mm-detail .token-characteristics-toggle svg,
    .mm-detail .mm-description-toggle svg,
    .mm-detail-content[data-mm-description-truncated] .token-characteristics-collapsible::before,
    .mm-detail-content[data-mm-description-truncated] .token-characteristics-collapsible::after { transition: none; }
}

.mm-catalog-layout[data-pjax-autoscroll] { scroll-margin-top: 12px; }
.mm-results { position: relative; }
.mm-card { position: relative; }
.mm-card[data-mm-tone="0"] { --mm-set-color: #385e62; --mm-set-icon: #14292b; }
.mm-card[data-mm-tone="1"] { --mm-set-color: #491d18; --mm-set-icon: #402421; }
.mm-card[data-mm-tone="2"] { --mm-set-color: #79673b; --mm-set-icon: #382e16; }
.mm-card[data-mm-tone="3"] { --mm-set-color: #42533e; --mm-set-icon: #223121; }
.mm-card[data-mm-tone="4"] { --mm-set-color: #574563; --mm-set-icon: #2a2130; }
.mm-card[data-mm-tone="5"] { --mm-set-color: #48576c; --mm-set-icon: #252e3a; }
.mm-card[data-mm-tone="6"] { --mm-set-color: #62465b; --mm-set-icon: #34242e; }
.mm-card[data-mm-tone="7"] { --mm-set-color: #645042; --mm-set-icon: #342a20; }

.mm-card[data-mm-set] { --mm-dot: clamp(13px, 1.3vw, 25px); --mm-dot-inset: clamp(6px, .55vw, 11px); }
.mm-set-marker {
    position: absolute;
    top: var(--mm-dot-inset);
    left: var(--mm-dot-inset);
    z-index: 2;
    width: var(--mm-dot);
    height: var(--mm-dot);
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--mm-set-color);
    cursor: help;
    touch-action: manipulation;
}
.mm-set-marker::after { content: ""; position: absolute; inset: -5px; }
.mm-set-name {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: var(--mm-set-name-width, max-content);
    max-width: var(--mm-set-name-max, 100%);
    box-sizing: border-box;
    padding: var(--mm-dot-inset) calc(var(--mm-dot-inset) + 2px);
    border-radius: 12px;
    background: #262626;
    color: #a1b7ca;
    font: clamp(12px, 1.17vw, 22px) / 1.28 mossansregular, sans-serif;
    text-transform: uppercase;
    overflow-wrap: anywhere;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s;
}
.mm-set-name::before {
    content: "";
    float: left;
    width: calc(var(--mm-dot) + .4em);
    height: var(--mm-dot);
}
.mm-card.mm-set-name-open,
.mm-card:has(.mm-set-marker:focus-visible) { z-index: 4; }
.mm-card.mm-set-name-open .mm-set-name,
.mm-set-marker:focus-visible + .mm-set-name { opacity: 1; visibility: visible; }
@media (hover: hover) {
    .mm-card:has(.mm-set-marker:hover) { z-index: 4; }
    .mm-set-marker:hover + .mm-set-name { opacity: 1; visibility: visible; }
}

.mm-set-toggle {
    display: grid;
    place-items: center;
    flex: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    touch-action: manipulation;
}
.mm-set-toggle span {
    width: 62%;
    height: 62%;
    background: currentColor;
    mask: url("assets/museum/icons/stack.svg") center / contain no-repeat;
}
.mm-set-toggle[aria-expanded="false"] span,
.mm-set-toggle[aria-pressed="true"] span { mask-image: url("assets/museum/icons/expand.svg"); }
.mm-card-set-toggle {
    position: absolute;
    right: clamp(3px, .35vw, 7px);
    bottom: clamp(3px, .35vw, 7px);
    z-index: 2;
    width: clamp(29px, 2.6vw, 48px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: #000;
    color: var(--mm-set-icon);
}
.mm-card-set-toggle:hover span,
.mm-card-set-toggle:focus-visible span { background: var(--mm-set-color); }
.mm-collapse-all {
    width: 34px;
    height: 34px;
    color: #dadbd5;
    background: transparent;
}
.mm-collapse-all:hover { color: #fff; }
.mm-set-notice {
    position: absolute;
    z-index: 20;
    inset: calc(100% + 6px) auto auto 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    text-align: center;
    padding: 7px 10px;
    border-radius: 8px;
    background: #262626;
    color: #a1b7ca;
    font-size: 14px;
    line-height: 1.25;
    pointer-events: none;
}
.mm-set-notice:empty { opacity: 0; }
