/**
 * Single Exhibit Page Styles
 *
 * Brings exhibit singles in line with the flat, graphic MJM design language:
 * big type, hard rules, strong color, sharp media, and minimal chrome.
 */

:root {
    --mjm-black: var(--color-black, #000000);
    --mjm-white: var(--color-white, #ffffff);
    --mjm-yellow: #FFC800;
    --mjm-orange: #FF5C00;
    --mjm-green: var(--color-green, #1D8D02);
    --mjm-blue: #63B2F8;
    --mjm-pink: #FA78CD;
    --mjm-cream: #FFFBF0;
    --mjm-gray: #F6F6F6;
    --mjm-rule: var(--color-black, #000000);
}

.single-exhibit,
.single-exhibit article.type-exhibit {
    background: var(--mjm-white);
    color: var(--mjm-black);
    font-family: var(--font-body, "Helvetica Neue", Helvetica, Arial, sans-serif);
}

.single-exhibit .mjm-exhibit-page,
.single-exhibit .mjm-exhibit-page * {
    box-sizing: border-box;
}

.single-exhibit .mjm-exhibit-page {
    width: 100vw;
    max-width: none;
    margin: 0;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    background: var(--mjm-white);
}

.single-exhibit .site-main {
    margin: 0;
    padding: 0;
}

.single-exhibit .mjm-exhibit-page img {
    display: block;
    max-width: 100%;
}

.single-exhibit .visually-hidden-focusable:focus {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 10000;
    width: auto;
    height: auto;
    padding: 10px 14px;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
    background: var(--mjm-black);
    color: var(--mjm-white);
}

/* Hero */

.single-exhibit .mjm-exhibit-hero {
    --mjm-exhibit-hero-height: clamp(24rem, 45vw, 34rem);

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
    gap: 0;
    align-items: stretch;
    height: var(--mjm-exhibit-hero-height);
    max-height: var(--mjm-exhibit-hero-height);
    margin: 0;
    overflow: hidden;
    padding: 0;
    background: var(--mjm-exhibit-hero-bg, var(--mjm-yellow));
    color: var(--mjm-black);
}

.single-exhibit .mjm-exhibit-hero--no-media {
    grid-template-columns: minmax(0, 980px);
}

.single-exhibit .mjm-exhibit-hero-copy {
    display: flex;
    align-self: stretch;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    padding: clamp(1.5rem, 3vw, 2rem);
}

.single-exhibit .mjm-exhibit-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: clamp(0.85rem, 1.5vw, 1rem) 0 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.1;
}

.single-exhibit .mjm-exhibit-kicker::before {
    width: 18px;
    height: 18px;
    content: "";
    border-radius: 999px;
    background: var(--mjm-black);
    flex: 0 0 auto;
}

.single-exhibit .mjm-exhibit-hero .display-4 {
    position: sticky;
    top: 0;
    z-index: 5;
    max-width: 760px;
    margin: 0;
    padding-bottom: clamp(0.75rem, 1.4vw, 1rem);
    background: var(--mjm-exhibit-hero-bg, var(--mjm-yellow));
    color: var(--mjm-black);
    font-family: "KF Zuka Medium", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: clamp(2.0rem, 4.0vw, 4.0rem);
    font-weight: 900;
    line-height: 1.0;
    letter-spacing: 0;
    text-transform: none;
    overflow-wrap: anywhere;
}

.single-exhibit .mjm-exhibit-date {
    max-width: 640px;
    margin: auto 0 0;
    padding-top: clamp(5rem, 10vw, 11rem);
    font-size: 36px;
    font-weight: 400;
    line-height: 1.08;
}

.single-exhibit .mjm-exhibit-hero-media {
    position: relative;
    width: auto;
    min-width: 0;
    min-height: 0;
    margin: clamp(1rem, 2vw, 1.5rem);
    margin-left: 0;
    align-self: stretch;
    background: var(--mjm-exhibit-hero-bg, var(--mjm-yellow));
    overflow: hidden;
}

.single-exhibit .mjm-exhibit-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Page structure */

.single-exhibit .mjm-exhibit-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 72px 24px 92px;
}

.single-exhibit .mjm-exhibit-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 58px;
    align-items: start;
}

.single-exhibit .card {
    box-shadow: none !important;
}

.single-exhibit .mjm-exhibit-section,
.single-exhibit .mjm-exhibit-aside .card {
    margin: 0 0 46px;
    border: 0;
    border-top: 1px solid var(--mjm-black);
    border-radius: 0;
    background: transparent;
    overflow: visible;
}

.single-exhibit .mjm-exhibit-copy-section {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 34px;
    padding-top: clamp(1rem, 2vw, 1.4rem);
}

.single-exhibit .mjm-exhibit-section-heading--empty {
    min-width: 0;
}

.single-exhibit .mjm-exhibit-section-heading h2,
.single-exhibit .mjm-exhibit-description-heading,
.single-exhibit .card-header .h4,
.single-exhibit .mjm-exhibit-sources h2 {
    margin: 0;
    color: var(--mjm-black);
    font-family: var(--font-subtitle, "Helvetica Neue", Helvetica, Arial, sans-serif);
    font-size: 34px;
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: 0;
}

.single-exhibit .mjm-exhibit-description-heading {
    margin-bottom: clamp(0.85rem, 1.2vw, 1.2rem);
}

.single-exhibit .mjm-exhibit-body {
    min-width: 0;
    font-size: 17px;
    line-height: 1.45;
    color: var(--mjm-black);
}

.single-exhibit .mjm-exhibit-body p {
    margin: 0 0 1.05em;
}

.single-exhibit .mjm-exhibit-body a,
.single-exhibit .sources-content a,
.single-exhibit .card-body a {
    color: var(--mjm-exhibit-link-hover-color, var(--mjm-orange));
    text-decoration: none;
    transition: color 0.2s ease;
}

.single-exhibit .mjm-exhibit-body a {
    font-weight: 800 !important;
}

.single-exhibit .mjm-exhibit-body a:hover,
.single-exhibit .mjm-exhibit-body a:focus,
.single-exhibit .sources-content a:hover,
.single-exhibit .sources-content a:focus,
.single-exhibit .card-body a:hover,
.single-exhibit .card-body a:focus {
    color: var(--mjm-exhibit-link-hover-color, var(--mjm-orange));
    text-decoration: none;
}

.single-exhibit .mjm-exhibit-body > a:hover,
.single-exhibit .mjm-exhibit-body > a:focus,
.single-exhibit .mjm-exhibit-body > :not(.mjm-exhibit-sources) a:hover,
.single-exhibit .mjm-exhibit-body > :not(.mjm-exhibit-sources) a:focus {
    color: var(--mjm-black);
}

.single-exhibit .mjm-exhibit-sources {
    margin-top: 44px;
    padding-top: clamp(1rem, 2vw, 1.4rem);
    border-top: 1px solid var(--mjm-black);
}

.single-exhibit .mjm-exhibit-sources h2 {
    margin-bottom: 16px;
}

.single-exhibit .sources-content {
    color: var(--mjm-black);
    font-size: 17px;
    line-height: 1.45;
}

.single-exhibit .sources-content p {
    margin: 0 0 0.7em;
}

/* Aside panels */

.single-exhibit .mjm-exhibit-aside {
    min-width: 0;
}

.single-exhibit .mjm-exhibit-aside .card-header {
    padding: clamp(1rem, 2vw, 1.4rem) 0 12px;
    border: 0;
    background: transparent;
}

.single-exhibit .mjm-exhibit-aside .card-body {
    padding: 0;
    color: var(--mjm-black);
    font-size: 17px;
    line-height: 1.35;
}

.single-exhibit .mjm-exhibit-aside .card-body > p:first-child {
    margin-top: 0;
}

.single-exhibit .mjm-exhibit-aside .list-unstyled {
    display: grid;
    gap: 10px;
    margin: 0;
}

.single-exhibit .mjm-exhibit-aside li {
    padding: 12px;
    background: var(--mjm-gray);
}

.single-exhibit .mjm-exhibit-aside h3 {
    margin: 18px 0 10px;
    color: var(--mjm-black);
    font-size: 16px;
    font-weight: 800;
}

.single-exhibit .mjm-exhibit-aside hr {
    margin: 18px 0;
    border: 0;
    border-top: 1px solid var(--mjm-black);
    opacity: 1;
}

/* Gallery */

.single-exhibit .location-image-container {
    position: relative;
    overflow: hidden;
    background: var(--mjm-cream);
}

.single-exhibit .location-image-trigger {
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    background: none;
    text-align: left;
    cursor: pointer;
}

.single-exhibit .location-image-trigger:focus {
    outline: 3px solid var(--mjm-black);
    outline-offset: 3px;
}

.single-exhibit .location-image-trigger:focus:not(:focus-visible) {
    outline: none;
}

.single-exhibit .location-image {
    width: 100%;
    height: 350px;
    border-radius: 0 !important;
    background: var(--mjm-cream);
    object-fit: contain;
}

.single-exhibit .location-image-title,
.single-exhibit .location-image-caption {
    position: static;
    margin: 0;
    padding: 10px 12px;
    background: var(--mjm-yellow);
    color: var(--mjm-black);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.single-exhibit .carousel-control-prev,
.single-exhibit .carousel-control-next {
    top: 10px;
    bottom: auto;
    width: 48px;
    height: 48px;
    border-radius: 0;
    background: transparent;
    opacity: 1;
}

.single-exhibit .carousel-control-prev:hover,
.single-exhibit .carousel-control-next:hover,
.single-exhibit .carousel-control-prev:focus,
.single-exhibit .carousel-control-next:focus {
    opacity: 0.7;
    background: transparent;
}

.single-exhibit .carousel-control-prev {
    left: 10px;
}

.single-exhibit .carousel-control-next {
    right: auto;
    left: 62px;
}

.single-exhibit .mjm-arrow-icon {
    display: block;
    width: 48px;
    height: 48px;
}

/* Location */

.single-exhibit #single-exhibit-map {
    height: 340px;
    min-height: 340px;
    border: 0;
    border-radius: 0;
    background: var(--mjm-gray);
}

.single-exhibit .entry-footer .btn-outline-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border: 0;
    border-radius: 999px;
    padding: 7px 16px;
    background: var(--mjm-black);
    color: var(--mjm-white) !important;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none !important;
}

.single-exhibit .entry-footer .btn-outline-secondary:hover,
.single-exhibit .entry-footer .btn-outline-secondary:focus {
    background: var(--mjm-orange);
    color: var(--mjm-black) !important;
}

.single-exhibit .custom-marker {
    width: 28px;
    height: 28px;
    border: 3px solid var(--mjm-white);
    border-radius: 999px;
    background: var(--mjm-single-marker-color, var(--mjm-orange));
    background-image: none;
}

/* Terms */

.single-exhibit .exhibit-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.single-exhibit .badge.bg-secondary {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    border-radius: 999px;
    padding: 7px 13px;
    background: var(--mjm-green) !important;
    color: var(--mjm-black) !important;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}

.single-exhibit .badge.bg-secondary:nth-child(2n) {
    background: var(--mjm-blue) !important;
}

.single-exhibit .badge.bg-secondary:nth-child(3n) {
    background: var(--mjm-pink) !important;
}

.single-exhibit .badge.bg-secondary:hover,
.single-exhibit .badge.bg-secondary:focus {
    background: var(--mjm-orange) !important;
    color: var(--mjm-black) !important;
}

/* Unified Lightbox */

.mjm-exhibit-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.92);
}

.mjm-exhibit-lightbox.active {
    display: flex;
}

.mjm-exhibit-lightbox-content {
    display: flex;
    max-width: 90vw;
    max-height: 85vh;
    flex-direction: column;
    align-items: center;
}

.mjm-exhibit-lightbox-img {
    max-width: 90vw;
    max-height: 78vh;
    object-fit: contain;
}

.mjm-exhibit-lightbox-caption {
    max-width: 70ch;
    margin-top: 10px;
    color: var(--mjm-white);
    font-size: 13px;
    text-align: center;
}

.mjm-exhibit-lightbox-close,
.mjm-exhibit-lightbox-prev,
.mjm-exhibit-lightbox-next {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    line-height: 1;
    transition: opacity 0.15s ease;
}

.mjm-exhibit-lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: var(--mjm-white);
    color: var(--mjm-black);
    font-size: 0;
    opacity: 1;
    padding: 0;
}

.mjm-exhibit-lightbox-close::before,
.mjm-exhibit-lightbox-close::after {
    content: "";
    position: absolute;
    width: 23px;
    height: 2.5px;
    border-radius: 999px;
    background: currentColor;
}

.mjm-exhibit-lightbox-close::before {
    transform: rotate(45deg);
}

.mjm-exhibit-lightbox-close::after {
    transform: rotate(-45deg);
}

.mjm-exhibit-lightbox-close:hover,
.mjm-exhibit-lightbox-close:focus {
    background: var(--mjm-white);
    color: var(--mjm-black);
    opacity: 0.75;
}

.mjm-exhibit-lightbox-close:focus-visible {
    outline: 3px solid #005fcc;
    outline-offset: 3px;
}

.mjm-exhibit-lightbox-prev,
.mjm-exhibit-lightbox-next {
    top: 50%;
    width: 60px;
    height: 60px;
    border-radius: 0;
    background: transparent;
    color: transparent;
    font-size: 0;
    transform: translateY(-50%);
    padding: 0;
}

.mjm-exhibit-lightbox-prev:hover,
.mjm-exhibit-lightbox-next:hover,
.mjm-exhibit-lightbox-prev:focus,
.mjm-exhibit-lightbox-next:focus {
    background: transparent;
    opacity: 0.7;
}

.mjm-exhibit-lightbox-prev {
    left: 16px;
}

.mjm-exhibit-lightbox-next {
    right: 16px;
}

.mjm-exhibit-lightbox-prev .mjm-arrow-icon,
.mjm-exhibit-lightbox-next .mjm-arrow-icon {
    display: block;
    width: 60px;
    height: 60px;
}

.single-exhibit .entry-footer {
    margin-top: 0 !important;
    padding-top: 0;
    border-top: 0;
}

/* Theme and builder cleanup */

.single-exhibit .vc_row,
.single-exhibit .vc_row-fluid,
.single-exhibit .vc_column-inner,
.single-exhibit .wpb_wrapper,
.single-exhibit [class*="vc_custom_"] {
    background: var(--mjm-white) !important;
}

/* Responsive */

@media (max-width: 1100px) {
    .single-exhibit .mjm-exhibit-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        height: auto;
        max-height: none;
        min-height: 0;
        overflow: visible;
    }

    .single-exhibit .mjm-exhibit-date {
        margin: 34px 0 0;
        padding-top: 0;
        font-size: 30px;
    }

    .single-exhibit .mjm-exhibit-hero-media img {
        min-height: 0;
    }

    .single-exhibit .mjm-exhibit-hero-media {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .single-exhibit .mjm-exhibit-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .single-exhibit .mjm-exhibit-aside {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px;
    }

    .single-exhibit .mjm-exhibit-aside .card {
        margin-bottom: 0;
    }
}

@media (max-width: 760px) {
    .single-exhibit .mjm-exhibit-hero {
        padding: 0;
    }

    .single-exhibit .mjm-exhibit-hero-copy {
        padding: 1.25rem 1.5rem 1.5rem;
    }

    .single-exhibit .mjm-exhibit-hero-media {
        margin: 0;
    }

    .single-exhibit .mjm-exhibit-kicker {
        font-size: 17px;
    }

    .single-exhibit .mjm-exhibit-date {
        margin: 26px 0 0;
        padding-top: 0;
        font-size: 25px;
    }

    .single-exhibit .mjm-exhibit-hero-media {
        aspect-ratio: 4 / 3;
    }

    .single-exhibit .mjm-exhibit-content {
        padding: 44px 18px 64px;
    }

    .single-exhibit .mjm-exhibit-copy-section {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .single-exhibit .mjm-exhibit-section-heading--empty {
        display: none;
    }

    .single-exhibit .mjm-exhibit-section-heading h2,
    .single-exhibit .mjm-exhibit-description-heading,
    .single-exhibit .card-header .h4,
    .single-exhibit .mjm-exhibit-sources h2 {
        font-size: 28px;
        line-height: 1;
    }

    .single-exhibit .mjm-exhibit-aside {
        grid-template-columns: minmax(0, 1fr);
    }

    .single-exhibit .location-image,
    .single-exhibit #single-exhibit-map {
        height: 300px;
        min-height: 300px;
    }
}
