/* Final exhibition-detail contract. Loaded after each page's legacy inline
   rules so all six detail pages share the same responsive behaviour. */
.exhibition-hero-bg > picture {
    display: block;
    width: 100%;
    height: 100%;
}

.exhibition-hero-bg > picture > img {
    display: block;
    width: 100%;
    height: 100%;
}

html body .exhibition-hero .exhibition-hero-content h1,
html body.en .exhibition-hero .exhibition-hero-content h1,
html body .exhibition-hero.exhibition-hero-feast .exhibition-hero-content h1,
html body.en .exhibition-hero.exhibition-hero-feast .exhibition-hero-content h1,
html body .exhibition-hero.exhibition-hero-know .exhibition-hero-content h1,
html body.en .exhibition-hero.exhibition-hero-know .exhibition-hero-content h1 {
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 2.5em !important;
    margin: 0 auto 1rem !important;
    font-size: 32px !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    letter-spacing: 0.04em !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    transform: none !important;
}

@media (min-width: 769px) {
    html body .exhibition-hero {
        height: 100vh !important;
        height: 100svh !important;
    }
}

@media (hover: hover) and (pointer: fine) {
    html body .exhibition-detail .album-card.inline-gallery .gallery-item,
    html body .exhibition-detail .album-card.inline-gallery .gallery-item:hover {
        overflow: visible !important;
        transform: none !important;
    }

    html body .exhibition-detail .album-card.inline-gallery .gallery-item > img,
    html body .exhibition-detail .album-card.inline-gallery img.gallery-item,
    html body .exhibition-detail .album-card.inline-gallery img:not(.gallery-item) {
        transform: none !important;
        transform-origin: center center !important;
        transition: transform 0.45s cubic-bezier(.22, .61, .36, 1) !important;
    }

    html body .exhibition-detail .album-card.inline-gallery .gallery-item:hover > img,
    html body .exhibition-detail .album-card.inline-gallery img.gallery-item:hover,
    html body .exhibition-detail .album-card.inline-gallery img:not(.gallery-item):hover {
        transform: scale(1.02) !important;
    }
}

@media (max-width: 768px) {
    html body .exhibition-hero .exhibition-hero-bg {
        height: 80vh !important;
        height: 80svh !important;
        min-height: 420px !important;
    }

    .exhibition-hero-bg > picture {
        position: relative !important;
        display: block !important;
        width: 100% !important;
        height: 100% !important;
    }

    .exhibition-hero-bg > picture > img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    html body .exhibition-hero {
        display: block !important;
        height: auto !important;
        min-height: 0 !important;
    }

    html body .exhibition-hero .exhibition-hero-content h1,
    html body.en .exhibition-hero .exhibition-hero-content h1,
    html body .exhibition-hero.exhibition-hero-feast .exhibition-hero-content h1,
    html body.en .exhibition-hero.exhibition-hero-feast .exhibition-hero-content h1,
    html body .exhibition-hero.exhibition-hero-know .exhibition-hero-content h1,
    html body.en .exhibition-hero.exhibition-hero-know .exhibition-hero-content h1 {
        height: 3.75em !important;
        min-height: 3.75em !important;
        max-height: 3.75em !important;
        font-size: 22px !important;
        line-height: 1.25 !important;
        letter-spacing: 0.02em !important;
    }

    html body .nav-links,
    html body .nav-links.active {
        top: 58px !important;
        height: auto !important;
        max-height: calc(100vh - 58px) !important;
        max-height: calc(100dvh - 58px) !important;
        padding: 1rem 0 !important;
        border-top: 0 !important;
        border-bottom: 0 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    html body .nav-links > .nav-link,
    html body .nav-links > .has-dropdown > span {
        box-sizing: border-box !important;
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
        border: 0 !important;
    }
}
