*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

body {
    margin: 0;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    overflow-wrap: anywhere;
}

.public-exhibitions-shell {
    width: min(calc(100% - 2rem), 1100px);
    margin: 0 auto;
    padding: 2rem 0 4rem;
}

.public-exhibitions-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.public-exhibitions-header {
    margin-bottom: 2rem;
}

.public-exhibitions-header h1,
.public-exhibitions-section h2,
.public-exhibition-card h3 {
    margin-top: 0;
}

.public-exhibitions-section {
    margin-top: 2.5rem;
}

.public-exhibitions-past {
    padding-top: 1.5rem;
    border-top: 1px solid currentColor;
}

.public-exhibitions-list {
    display: grid;
    gap: 1.5rem;
}

.public-exhibition-card {
    display: grid;
    grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid currentColor;
}

.public-exhibition-card-image img {
    width: 100%;
}

.public-exhibition-card-content > :last-child,
.public-exhibition-detail > :last-child {
    margin-bottom: 0;
}

.public-exhibition-date {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
}

.public-exhibition-summary {
    font-size: 1.1rem;
}

.public-exhibition-featured-image {
    margin: 0 0 2rem;
}

.public-exhibition-featured-image img {
    max-height: 720px;
    object-fit: contain;
}

.public-exhibition-featured-image figcaption {
    display: grid;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.public-exhibition-body {
    margin-bottom: 2.5rem;
    overflow-wrap: anywhere;
}

.public-exhibition-downloads {
    display: grid;
    gap: 0.75rem;
    padding-left: 1.25rem;
}

.public-exhibition-downloads li span {
    display: block;
    font-size: 0.9rem;
}

.public-exhibitions-backlink {
    margin-top: 3rem;
}

.public-exhibitions-home-list {
    display: grid;
    gap: 1rem;
}

.public-exhibitions-home-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid currentColor;
}

.public-exhibitions-home-item .public-exhibition-card-image {
    display: block;
    width: min(100%, 280px);
    margin-bottom: 1rem;
}

.public-exhibitions-home-item > :last-child {
    margin-bottom: 0;
}

@media (max-width: 700px) {
    .public-exhibition-card {
        grid-template-columns: 1fr;
    }

    .public-exhibition-card-image {
        max-width: 480px;
    }
}

.public-exhibition-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 140px));
    align-items: start;
    justify-content: start;
    gap: 0.75rem;
}

.public-exhibition-gallery-item {
    width: 100%;
    max-width: 140px;
    min-width: 0;
    margin: 0;
}

.public-exhibition-gallery-link {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid currentColor;
    border-radius: 0.35rem;
    background: #f4f4f4;
}

.public-exhibition-gallery-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 160ms ease;
}

.public-exhibition-gallery-link:hover img,
.public-exhibition-gallery-link:focus-visible img {
    transform: scale(1.025);
}

.public-exhibition-gallery-item figcaption {
    font-size: 0.9rem;
}

.public-exhibition-lightbox[hidden] {
    display: none;
}

.public-exhibition-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.78);
}

.public-exhibition-lightbox-panel {
    position: relative;
    width: min(94vw, 1200px);
    max-height: 92vh;
    padding: 2.75rem 1rem 1rem;
    border-radius: 0.5rem;
    background: #fff;
    overflow: auto;
}

.public-exhibition-lightbox-close {
    position: absolute;
    top: 0.45rem;
    right: 0.6rem;
    min-width: 2.25rem;
    min-height: 2.25rem;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.public-exhibition-lightbox-figure {
    margin: 0;
}

.public-exhibition-lightbox-figure img {
    width: auto;
    max-width: 100%;
    max-height: 72vh;
    margin: 0 auto;
    object-fit: contain;
}

.public-exhibition-lightbox-caption {
    display: grid;
    gap: 0.25rem;
    margin-top: 0.75rem;
}

.public-exhibition-lightbox-caption[hidden] {
    display: none;
}

.public-exhibition-lightbox-open {
    overflow: hidden;
}

.public-exhibition-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 700px) {
    .public-exhibition-gallery {
        grid-template-columns: repeat(auto-fill, minmax(92px, 120px));
        justify-content: start;
        gap: 0.6rem;
    }

    .public-exhibition-gallery-item {
        max-width: 120px;
    }

    .public-exhibition-lightbox {
        padding: 0.5rem;
    }

    .public-exhibition-lightbox-panel {
        width: 100%;
        max-height: 96vh;
    }

    .public-exhibition-lightbox-figure img {
        max-height: 76vh;
    }
}

/* Korrekturschritt 0.9.1-02d:
   Frühere Wechselausstellungen als beim Erstaufruf geschlossene Box,
   gestalterisch analog zur aufklappbaren Terminbox der Themenführungen. */
.public-exhibitions-shell details.public-exhibitions-legacy-archive {
    padding: 0;
    border: 1px solid currentColor;
    border-radius: 0.45rem;
    background: transparent;
    overflow: hidden;
}

.public-exhibitions-shell details.public-exhibitions-legacy-archive > summary {
    padding: 0.85rem 1rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #960000;
    cursor: pointer;
    list-style-position: inside;
}

.public-exhibitions-shell details.public-exhibitions-legacy-archive > summary:hover,
.public-exhibitions-shell details.public-exhibitions-legacy-archive > summary:focus-visible {
    text-decoration: underline;
}

.public-exhibitions-legacy-archive__content {
    padding: 0 1rem 1rem;
}

.public-exhibitions-archive-intro {
    margin-top: 0;
}

.public-exhibitions-archive-list {
    display: grid;
    gap: 0.45rem;
    margin: 1rem 0 0;
    padding-left: 1.4rem;
}

/* Schritt 0.9.1-02: aktuelle Ausstellung wahlweise vollständig ohne Detailseite. */
.public-exhibition-detail--embedded {
    overflow: hidden;
}

.public-exhibition-embedded-header h3,
.public-exhibition-embedded-subsection h4 {
    margin-top: 0;
}

.public-exhibition-embedded-subsection {
    margin-top: 2rem;
}

/* Korrekturschritt 0.9.1-02c:
   Beim Hauptbild bleibt die Bildunterschrift sichtbar.
   Zusätzliche Galeriebilder zeigen Caption/Rechte nur in der Vergrößerung. */
.public-exhibitions-shell .public-exhibition-gallery-item > figcaption {
    display: none;
}


/* Korrekturschritt 0.9.1-03ba:
   Wenn der sichtbare Seitentitel entfällt, folgt die erste Fachsektion direkt
   auf den Breadcrumb. Deren obere Trennlinie wird dann nicht zusätzlich gezeigt. */
.public-exhibitions-shell > .public-exhibitions-breadcrumb + .public-exhibitions-section {
    border-top: 0;
}

/* Korrekturschritt 0.9.1-03bb:
   Hauptbilder von Ausstellungen werden auf kleinen Ansichten unabhängig
   von der redaktionellen Desktop-Breitenstufe einspaltig dargestellt. */
@media (max-width: 720px) {
    .public-exhibitions-shell .public-exhibition-featured-image.public-sized-image.public-image-size-mode--width,
    .public-exhibitions-shell .public-exhibition-featured-image.public-sized-image.public-image-size-mode--height {
        width: 100%;
        max-width: 100%;
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

/* Korrekturschritt 0.9.1-03bd: Mobil Abstand zwischen Hauptbild und folgendem Inhalt. */
