.artwork-collection-control {
    --collection-height: 77px;
    --collection-font-size: 27px;
    --collection-chevron-size: 26px;
    display: flex;
    align-items: flex-start;
    gap: 2px;
    width: 415px;
    max-width: 100%;
    margin: 0 auto;
    font-family: 'orator-std', 'Courier New', Courier, monospace;
    font-weight: 400;
    font-style: normal;
    text-align: center;
}

.artwork-collection-select {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    z-index: 50;
}

.artwork-collection-trigger,
.artwork-collection-reference {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: var(--collection-height);
    margin: 0;
    padding: 0 20px;
    background: #b9a18d;
    color: #fff;
    font: inherit;
    font-size: var(--collection-font-size);
    line-height: 1;
    letter-spacing: .02em;
    white-space: nowrap;
}

.artwork-collection-trigger {
    gap: 10px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.artwork-collection-trigger::-webkit-details-marker {
    display: none;
}

.artwork-collection-chevron {
    flex: 0 0 var(--collection-chevron-size);
    width: var(--collection-chevron-size);
    height: var(--collection-chevron-size);
    transition: transform .2s ease;
}

.artwork-collection-select[open] .artwork-collection-chevron {
    transform: rotate(180deg);
}

.artwork-collection-reference {
    position: relative;
    flex: 0 0 105px;
}

.artwork-collection-reference::after {
    content: '';
    position: absolute;
    top: calc(100% + 8px);
    left: 6%;
    right: 6%;
    border-bottom: 1px solid #b9a18d;
}

.artwork-collection-menu {
    display: block;
    box-sizing: border-box;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    width: 100%;
    max-height: min(480px, 65vh);
    overflow-x: hidden;
    overflow-y: auto;
    /* The site header adds mobile margins to every nav element. */
    margin: 0 !important;
    padding: 0 0 12px;
    border: 1px solid burlywood;
    background: #fff;
    text-align: right;
}

.artwork-collection-menu a,
.artwork-collection-menu-heading {
    display: block;
    margin: 0;
    padding: 5px 18px;
    color: #808080 !important;
    font-size: 22px;
    font-weight: lighter;
    line-height: 26px;
    letter-spacing: normal;
    white-space: normal;
}

.artwork-collection-menu-heading {
    padding-top: 8px;
    padding-bottom: 8px;
    border-top: 1px solid #b9a18d;
    color: #b9a18d !important;
    font-size: 22px;
}

.artwork-collection-menu a:first-child {
    padding-top: 14px;
    padding-bottom: 14px;
    color: #b9a18d !important;
    font-size: 22px;
}

.artwork-collection-menu a:hover,
.artwork-collection-menu a:focus-visible {
    text-decoration: underline !important;
    text-underline-offset: 5px;
}

.artwork-collection-trigger:focus-visible {
    outline: 2px solid #b9a18d;
    outline-offset: 3px;
}

@media (max-width: 768px) {
    .artwork-collection-control {
        --collection-height: 44px;
        --collection-font-size: clamp(16px, 4.8vw, 18px);
        --collection-chevron-size: 20px;
        width: min(100%, 312px);
    }

    .artwork-collection-trigger,
    .artwork-collection-reference {
        padding: 0 10px;
    }

    .artwork-collection-trigger {
        gap: 6px;
    }

    .artwork-collection-reference {
        flex-basis: 70px;
    }

    .artwork-collection-menu a,
    .artwork-collection-menu-heading {
        padding-left: 12px;
        padding-right: 12px;
        font-size: 18px;
        line-height: 1.2;
    }

    .artwork-collection-menu a:first-child,
    .artwork-collection-menu-heading {
        font-size: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .artwork-collection-chevron {
        transition: none;
    }
}
