/* Museum of One, October 2026. Shared catalogue treatment, inherited by new records. */

/* Keep the row alignment, but let a single rule carry each record instead of nested panels. */
body.institution-dark .mo1-content-card {
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    align-self: stretch !important;
    padding: 24px 0 0 !important;
    border: 0 !important;
    border-top: 1px solid var(--surface-rule) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}
body.institution-dark .mo1-content-card > .mo1-card-actions {
    margin-top: auto !important;
}
body.institution-dark #programme-outputs .prg-card {
    border: 0;
    border-top: 1px solid var(--surface-rule);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
body.institution-dark .mo1-content-card > .moo-card-visual {
    margin: 0 0 24px !important;
}
body.institution-dark .mo1-content-card > .moo-card-visual > a {
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
}
body.institution-dark .mo1-content-card.mo1-content-card > .moo-card-visual img {
    height: 260px !important;
    max-height: 260px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    object-fit: contain !important;
    object-position: center;
    background: transparent !important;
}
body.institution-dark .mo1-content-card > .moo-card-visual figcaption {
    opacity: 1;
    color: var(--secondary-text-color);
    margin-top: 12px !important;
}

/* Publication covers get the room of a catalogue, without changing the two-column sequence. */
body.institution-dark .publication-catalogue-grid,
body.institution-dark .home-record-group[aria-labelledby="featured-publications-title"] .current-work-grid {
    --content-card-width: 496px;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100%;
    max-width: 1040px !important;
    gap: 48px !important;
    align-items: stretch !important;
}
body.institution-dark .publication-catalogue-grid > .mo1-content-card,
body.institution-dark .home-record-group[aria-labelledby="featured-publications-title"] .mo1-content-card {
    max-width: none !important;
}
body.institution-dark .publication-catalogue-grid .mo1-content-card.mo1-content-card > .moo-card-visual img,
body.institution-dark .home-record-group[aria-labelledby="featured-publications-title"] .mo1-content-card.mo1-content-card > .moo-card-visual img,
body.institution-dark .publication-catalogue-grid .publication-catalogue-cover img {
    height: 340px !important;
    max-height: 340px !important;
    width: 100% !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center;
    background: transparent !important;
    border-radius: 0 !important;
}
body.institution-dark .publication-catalogue-grid[data-catalogue-view="list"] {
    grid-template-columns: minmax(0, 1fr) !important;
    max-width: 1040px !important;
    gap: 32px !important;
}

/* Keep the gallery stage. A lower, darker base and a softer pool of light support the image. */
body.home-template .home-panel .gallery-stage::before {
    background: radial-gradient(ellipse at 50% 22%, rgba(233, 218, 185, .12), rgba(196, 185, 156, .04) 42%, transparent 72%);
}
body.home-template .home-panel .gallery-stage::after {
    height: 14px;
    bottom: 20px;
    background: linear-gradient(180deg, #494b43 0, #35372f 38%, #22241f 42%, #171914 100%);
}
body.home-template .home-panel .gallery-stage .tag-image {
    box-shadow: 0 12px 28px rgba(0, 0, 0, .3), 0 0 0 1px rgba(255, 255, 255, .04);
}
body.home-template.institution-light .home-panel .gallery-stage::before {
    background: radial-gradient(ellipse at 50% 22%, rgba(173, 154, 113, .1), transparent 68%);
}
body.home-template.institution-light .home-panel .gallery-stage::after {
    background: linear-gradient(180deg, #c5c3b9 0, #b3b1a7 38%, #a5a49b 42%, #95958b 100%);
}

@media (max-width: 767px) {
    body.institution-dark .publication-catalogue-grid,
    body.institution-dark .home-record-group[aria-labelledby="featured-publications-title"] .current-work-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        max-width: 520px !important;
        gap: 40px !important;
    }
    body.institution-dark .mo1-content-card {
        padding-top: 20px !important;
    }
    body.institution-dark .mo1-content-card.mo1-content-card > .moo-card-visual img {
        height: 240px !important;
        max-height: 240px !important;
    }
    body.institution-dark .publication-catalogue-grid .mo1-content-card.mo1-content-card > .moo-card-visual img,
    body.institution-dark .home-record-group[aria-labelledby="featured-publications-title"] .mo1-content-card.mo1-content-card > .moo-card-visual img,
    body.institution-dark .publication-catalogue-grid .publication-catalogue-cover img {
        height: 300px !important;
        max-height: 300px !important;
    }
    body.home-template .home-panel .gallery-stage::after {
        height: 12px;
        bottom: 16px;
    }
}
