/**
 * 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: #050505;
    --mjm-white: #ffffff;
    --mjm-yellow: #ffca1a;
    --mjm-orange: #ff5a1f;
    --mjm-green: #189b0a;
    --mjm-blue: #67afea;
    --mjm-pink: #ee67bf;
    --mjm-cream: #f7f3e8;
    --mjm-gray: #f1f1f1;
    --mjm-rule: #111111;
}

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

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

.single-exhibit .mjm-exhibit-page {
    width: 100%;
    margin: 0;
    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 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
    gap: 34px;
    align-items: center;
    min-height: 530px;
    margin: 0;
    padding: 28px;
    background: 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;
    min-width: 0;
    flex-direction: column;
}

.single-exhibit .mjm-exhibit-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    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 {
    max-width: 760px;
    margin: 0;
    color: var(--mjm-black);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 74px;
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: 0;
    text-transform: none;
    overflow-wrap: anywhere;
}

.single-exhibit .mjm-exhibit-date {
    max-width: 640px;
    margin: auto 0 0;
    padding-top: 32px;
    font-size: 36px;
    font-weight: 400;
    line-height: 1.08;
}

.single-exhibit .mjm-exhibit-hero-media {
    width: 100%;
    min-height: 420px;
    aspect-ratio: 4 / 3;
    margin: 0;
    align-self: center;
    background: var(--mjm-yellow);
}

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

/* Page structure */

.single-exhibit .mjm-exhibit-content {
    max-width: 1180px;
    margin: 0 auto;
    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 .mjm-exhibit-section,
.single-exhibit .mjm-exhibit-aside .card {
    margin: 0 0 46px;
    border: 0;
    border-top: 1px solid #000;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    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 h2,
.single-exhibit .card-header .h4,
.single-exhibit .mjm-exhibit-sources h2 {
    margin: 0;
    color: var(--mjm-black);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 34px;
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: 0;
}

.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 > p:first-child {
    font-size: 25px;
    font-weight: 500;
    line-height: 1.16;
}

.single-exhibit .mjm-exhibit-body a,
.single-exhibit .card-body a {
    color: var(--mjm-black);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.16em;
}

.single-exhibit .mjm-exhibit-body a:hover,
.single-exhibit .mjm-exhibit-body a:focus,
.single-exhibit .card-body a:hover,
.single-exhibit .card-body a:focus {
    color: var(--mjm-orange);
}

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

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

.single-exhibit .sources-content {
    color: var(--mjm-black);
    font-size: 14px;
    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: 15px;
    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 #000;
    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: 14px;
    bottom: auto;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: var(--mjm-white);
    opacity: 1;
}

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

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

.single-exhibit .carousel-control-prev-icon,
.single-exhibit .carousel-control-next-icon {
    width: 20px;
    height: 20px;
    filter: invert(1) grayscale(1);
}

/* Location */

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

.single-exhibit .mjm-map-link-wrap {
    margin: 16px 0;
}

.single-exhibit .mjm-pill-link,
.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 .mjm-pill-link:hover,
.single-exhibit .mjm-pill-link:focus,
.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: 4px solid var(--mjm-yellow);
    border-radius: 999px;
    background: var(--mjm-black);
}

/* 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;
}

/* Modal refinements */

.single-exhibit .modal-content {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.single-exhibit .modal-header {
    border-bottom: 0;
    background: var(--mjm-yellow);
}

.single-exhibit .modal-title {
    color: var(--mjm-black);
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 800;
    letter-spacing: 0;
}

.single-exhibit .modal-body {
    color: var(--mjm-black);
    font-size: 15px;
    line-height: 1.45;
}

.single-exhibit .modal-body img {
    width: 100%;
    height: auto;
}

.single-exhibit .modal-header .btn-close {
    filter: none;
}

.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: 26px;
        min-height: 0;
    }

    .single-exhibit .mjm-exhibit-hero .display-4 {
        font-size: 58px;
    }

    .single-exhibit .mjm-exhibit-date {
        margin: 34px 0 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: 20px;
    }

    .single-exhibit .mjm-exhibit-hero .display-4 {
        font-size: 42px;
        line-height: 0.96;
    }

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

    .single-exhibit .mjm-exhibit-date {
        margin: 26px 0 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 h2,
    .single-exhibit .card-header .h4,
    .single-exhibit .mjm-exhibit-sources h2 {
        font-size: 28px;
        line-height: 1;
    }

    .single-exhibit .mjm-exhibit-body > p:first-child {
        font-size: 21px;
    }

    .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;
    }
}
