/*
 * Museum theme: results as object labels, serif titles, quiet colours.
 * The styles of the records are in records.css.
 */
@import url("records.css");

/* Results: object labels side by side on wide screens (only when the list
   has object labels; records in other formats keep the whole width) */
.results-container:has(.museum-label) {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

@media (max-width: 575.98px) {
    .results-container:has(.museum-label) {
        grid-template-columns: 1fr;
    }
}

/* Messages and other elements of the list take the whole row */
.results-container > :not(.registro-item) {
    grid-column: 1 / -1;
}

/* Records of databases without the formats of this theme (integrated
   search) keep the whole width, in a row of their own */
.results-container:has(.museum-label) > .registro-item:not(:has(.museum-label)) {
    grid-column: 1 / -1;
}

.results-container .registro-item {
    margin-bottom: 0 !important;
}

/* Page titles in the serif of the labels */
h1, h2, h3, .h1, .h2, .h3 {
    font-family: var(--museum-serif);
}
