/*
Theme Name: MJM Theme
Theme URI:
Description: Custom theme for the Museum of Jewish Montreal
Version: 1.0
Author: MJM
Text Domain: mjm-theme
*/

@font-face {
    font-family: "KF Zuka Thin";
    src:
        url("assets/fonts/KF%20Zuka%20Thin.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "KF Zuka Thin Italic";
    src:
        url("assets/fonts/KF%20Zuka%20Thin%20Italic.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "KF Zuka Light";
    src:
        url("assets/fonts/KF%20Zuka%20Light.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "KF Zuka Light Italic";
    src:
        url("assets/fonts/KF%20Zuka%20Light%20Italic.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "KF Zuka Book";
    src:
        url("assets/fonts/KF%20Zuka%20Book.woff2") format("woff2"),
        url("assets/fonts/KFZuka-Book.otf") format("opentype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "KF Zuka Book Italic";
    src:
        url("assets/fonts/KF%20Zuka%20Book%20Italic.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "KF Zuka Regular";
    src:
        url("assets/fonts/KF%20Zuka%20Regular.woff2") format("woff2"),
        url("assets/fonts/KFZuka-Regular.otf") format("opentype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "KF Zuka Regular Italic";
    src:
        url("assets/fonts/KF%20Zuka%20Regular%20Italic.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "KF Zuka Medium";
    src:
        url("assets/fonts/KF%20Zuka%20Medium.woff2") format("woff2"),
        url("assets/fonts/KFZuka-Medium.otf") format("opentype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "KF Zuka Medium Italic";
    src:
        url("assets/fonts/KF%20Zuka%20Medium%20Italic.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "KF Zuka Bold";
    src:
        url("assets/fonts/KF%20Zuka%20Bold.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "KF Zuka Bold Italic";
    src:
        url("assets/fonts/KF%20Zuka%20Bold%20Italic.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "KF Zuka Black";
    src:
        url("assets/fonts/KF%20Zuka%20Black.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "KF Zuka Black Italic";
    src:
        url("assets/fonts/KF%20Zuka%20Black%20Italic.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "KF Zuka Ultra";
    src:
        url("assets/fonts/KF%20Zuka%20Ultra.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "KF Zuka Ultra Italic";
    src:
        url("assets/fonts/KF%20Zuka%20Ultra%20Italic.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

/* =============================================
   Typography Design Tokens
   Spec: MJM Brand Guidelines, Typography Hierarchy (pages 15-22)
   ============================================= */
:root {
    /* Font families (semantic aliases) */
    --font-headline: "KF Zuka Medium", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-subtitle: "KF Zuka Medium", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-body:     "KF Zuka Regular", "Helvetica Neue", Helvetica, Arial, sans-serif;

    /* Tracking: -1% across all levels */
    --tracking-tight: -0.01em;

    /* Type scale — responsive, proportional to brand ratios (1/1, 1/2, 1/4, 1/6) */
    --text-level-1: clamp(2.5rem, 6vw, 5rem);     /* Level 1 — 100pt hero headline  */
    --text-level-2: clamp(1.75rem, 3.5vw, 3rem);  /* Level 2 — 50pt subtitle        */
    --text-level-3: clamp(1.1rem, 1.8vw, 1.5rem); /* Level 3 — 25pt event/date info */
    --text-level-4: clamp(0.875rem, 1vw, 1rem);   /* Level 4 — 15pt body copy       */

    /* Line heights per level */
    --leading-level-1: 0.85;
    --leading-level-2: 0.90;
    --leading-level-3: 1.0;
    --leading-level-4: 1.1;

    /* Layout */
    --mjm-content-gutter: clamp(1.5rem, 3vw, 2rem);
    --mjm-contained-max-width: 1200px;
    --mjm-contained-width: min(var(--mjm-contained-max-width), calc(100vw - var(--mjm-content-gutter) - var(--mjm-content-gutter)));

    /* Button tokens */
    --mjm-button-min-height: 32px;
    --mjm-button-padding: 8px 16px;
    --mjm-button-radius: 999px;
    --mjm-button-font-family: "KF Zuka Book", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --mjm-button-font-size: 14px;
    --mjm-button-font-weight: normal;
    --mjm-button-line-height: 1;
    --mjm-button-letter-spacing: 0.02em;
    --mjm-button-background-color: #000000;
    --mjm-button-text-color: #ffffff;
    --mjm-button-transition: opacity 0.2s ease;

    /* =============================================
       Brand colour tokens
       ============================================= */

    /* Base palette */
    --color-black:      #000000;
    --color-near-black: #1a1a1a;
    --color-dark:       #333333;
    --color-mid:        #666666;
    --color-border:     #e0e0e0;
    --color-white:      #ffffff;

    /* Accents */
    --color-green:      #1D8D02;  /* nav active, donate button */
    --color-orange:     #FF5500;  /* newsletter checkbox */

    /* Semantic aliases */
    --color-text:       var(--color-near-black);
    --color-link:       var(--color-near-black);
    --color-link-hover: var(--color-near-black);
    --color-success:    #23613c;
    --color-error:      #b42318;
}

/* =============================================
   Heading Scale
   h1 → Level 1 (KF Zuka Medium, hero)
   h2 → Level 2 (KF Zuka Book, subtitle)
   h3 → Level 3 (KF Zuka Book, info)
   h4–h6 → Level 4 (KF Zuka Regular, fine)
   ============================================= */
h1 {
    font-family: var(--font-headline);
    font-size: var(--text-level-1);
    line-height: var(--leading-level-1);
    letter-spacing: var(--tracking-tight);
    font-weight: normal;
}

h2 {
    font-family: var(--font-subtitle);
    font-size: var(--text-level-2);
    line-height: var(--leading-level-2);
    letter-spacing: var(--tracking-tight);
    font-weight: normal;
}

h3 {
    font-family: var(--font-subtitle);
    font-size: var(--text-level-3);
    line-height: var(--leading-level-3);
    letter-spacing: var(--tracking-tight);
    font-weight: normal;
}

h4, h5, h6 {
    font-family: var(--font-body);
    font-size: var(--text-level-4);
    line-height: var(--leading-level-4);
    letter-spacing: var(--tracking-tight);
    font-weight: normal;
}

/* =============================================
   Utility Classes
   Apply brand hierarchy levels to any element
   ============================================= */
.mjm-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;
}

.mjm-skip-link {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10000;
    padding: 0.75rem 1rem;
    transform: translateY(-120%);
}

.mjm-skip-link:focus,
.mjm-skip-link:focus-visible {
    transform: translateY(0);
}

.text-level-1 {
    font-family: var(--font-headline);
    font-size: var(--text-level-1);
    line-height: var(--leading-level-1);
    letter-spacing: var(--tracking-tight);
}

.text-level-2 {
    font-family: var(--font-subtitle);
    font-size: var(--text-level-2);
    line-height: var(--leading-level-2);
    letter-spacing: var(--tracking-tight);
}

.text-level-3 {
    font-family: var(--font-subtitle);
    font-size: var(--text-level-3);
    line-height: var(--leading-level-3);
    letter-spacing: var(--tracking-tight);
}

.text-level-4 {
    font-family: var(--font-body);
    font-size: var(--text-level-4);
    line-height: var(--leading-level-4);
    letter-spacing: var(--tracking-tight);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-level-4);
    line-height: var(--leading-level-4);
    letter-spacing: var(--tracking-tight);
    color: #1a1a1a;
}

a {
    color: var(--color-link);
    text-decoration: none;
}

a:hover {
    color: var(--color-link-hover);
    text-decoration: none;
}

/* =============================================
   Responsive Media
   ============================================= */
img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =============================================
   Focus Styles
   ============================================= */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-near-black);
    outline-offset: 2px;
}

/* =============================================
   Entry Content — HTML element defaults
   Scoped to .entry-content so these only apply
   to page/post body copy, not header/footer/blocks.
   ============================================= */

/* Paragraphs */
:where(.entry-content) p {
    margin-bottom: 1.25em;
    line-height: var(--leading-level-4);
}
:where(.entry-content) p:last-child {
    margin-bottom: 0;
}

/* Headings — spacing (size/weight set by global h1–h6 rules) */
:where(.entry-content) h1,
:where(.entry-content) h2,
:where(.entry-content) h3,
:where(.entry-content) h4,
:where(.entry-content) h5,
:where(.entry-content) h6 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}
:where(.entry-content) h1:first-child,
:where(.entry-content) h2:first-child {
    margin-top: 0;
}

/* Links in content */
:where(.entry-content) a {
    text-decoration: none;
}
:where(.entry-content) a:hover {
    text-decoration: none;
}

/* Lists */
:where(.entry-content) ul,
:where(.entry-content) ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25em;
}
:where(.entry-content) ul {
    list-style: disc;
}
:where(.entry-content) ol {
    list-style: decimal;
}
:where(.entry-content) li {
    margin-bottom: 0.35em;
}
:where(.entry-content) ul ul,
:where(.entry-content) ol ol,
:where(.entry-content) ul ol,
:where(.entry-content) ol ul {
    margin-bottom: 0;
    margin-top: 0.25em;
}

/* Blockquote */
:where(.entry-content) blockquote {
    border-left: 3px solid var(--color-near-black);
    padding-left: 1.25rem;
    margin: 1.5em 0;
    font-style: italic;
    color: var(--color-dark);
}
:where(.entry-content) blockquote cite {
    display: block;
    margin-top: 0.5em;
    font-size: 0.875em;
    color: var(--color-mid);
    font-style: normal;
}

/* Inline code */
:where(.entry-content) code {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.875em;
    background: #f4f4f4;
    padding: 0.15em 0.35em;
    border-radius: 3px;
}

/* Code blocks */
:where(.entry-content) pre {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.875em;
    background: #f4f4f4;
    padding: 1rem 1.25rem;
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 1.25em;
    line-height: 1.55;
}
:where(.entry-content) pre code {
    background: none;
    padding: 0;
    font-size: inherit;
    border-radius: 0;
}

/* Tables */
:where(.entry-content) table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.25em;
    font-size: var(--text-level-4);
}
:where(.entry-content) th,
:where(.entry-content) td {
    padding: 0.5rem 0.75rem;
    text-align: left;
    border: 1px solid var(--color-border);
}
:where(.entry-content) th {
    font-family: var(--font-headline);
    font-weight: normal;
    background: #f7f7f7;
}
:where(.entry-content) tr:nth-child(even) td {
    background: #fafafa;
}

/* Figures & captions */
:where(.entry-content) figure {
    margin: 1.5em 0;
}
:where(.entry-content) figcaption {
    font-size: 0.8rem;
    color: var(--color-mid);
    margin-top: 0.4rem;
    line-height: 1.35;
}

/* Horizontal rule */
:where(.entry-content) hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 2em 0;
}

/* Bold — KF Zuka Medium is the "bold" weight in this type system */
:where(.entry-content) strong,
:where(.entry-content) b {
    font-family: var(--font-headline);
    font-weight: normal;
}

/* =============================================
   Core WordPress Block Defaults
   wp-block-library-theme is dequeued, so
   provide minimal replacements for common blocks.
   ============================================= */

/* Block: Image */
.entry-content .wp-block-image {
    margin: 1.5em 0;
}
.entry-content .wp-block-image img {
    max-width: 100%;
    height: auto;
}
.entry-content .wp-block-image figcaption {
    font-size: 0.8rem;
    color: var(--color-mid);
    margin-top: 0.4rem;
    line-height: 1.35;
}

/* Block: Quote */
.entry-content .wp-block-quote {
    border-left: 3px solid var(--color-near-black);
    padding-left: 1.25rem;
    margin: 1.5em 0;
    font-style: italic;
    color: var(--color-dark);
}
.entry-content .wp-block-quote cite,
.entry-content .wp-block-quote footer {
    display: block;
    margin-top: 0.5em;
    font-size: 0.875em;
    color: var(--color-mid);
    font-style: normal;
}

/* Block: Separator */
.entry-content .wp-block-separator {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 2em 0;
}

/* Block: Code */
.entry-content .wp-block-code {
    background: #f4f4f4;
    padding: 1rem 1.25rem;
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 1.25em;
}
.entry-content .wp-block-code code {
    background: none;
    padding: 0;
    font-size: inherit;
}

/* Block: Table */
.entry-content .wp-block-table {
    margin-bottom: 1.25em;
    overflow-x: auto;
}
.entry-content .wp-block-table table {
    margin-bottom: 0;
}

/* Block: List */
.entry-content .wp-block-list {
    padding-left: 1.5rem;
    margin-bottom: 1.25em;
}

/* Block: Paragraph — ensure spacing when adjacent blocks stack */
.entry-content .wp-block-paragraph {
    margin-bottom: 1.25em;
}
.entry-content .wp-block-paragraph:last-child {
    margin-bottom: 0;
}

/* Full-bleed root content blocks */
.entry-content > :where(
    p,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    ul,
    ol,
    blockquote,
    pre,
    table,
    figure,
    .alignfull,
    .alignwide,
    [class^="wp-block-"],
    [class*=" wp-block-"]
) {
    box-sizing: border-box;
    width: 100vw;
    max-width: 100vw;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
}

.entry-content > :where(
    p,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    ul,
    ol,
    blockquote,
    pre,
    table,
    .wp-block-paragraph,
    .wp-block-heading,
    .wp-block-list,
    .wp-block-quote,
    .wp-block-pullquote,
    .wp-block-code,
    .wp-block-preformatted,
    .wp-block-table,
    .wp-block-buttons,
    .wp-block-group,
    .wp-block-columns,
    .wp-block-details,
    .wp-block-verse,
    .wp-block-calendar,
    .wp-block-search,
    .wp-block-social-links,
    .wp-block-separator
) {
    padding-right: var(--mjm-content-gutter);
    padding-left: var(--mjm-content-gutter);
}

.entry-content > :where(
    .wp-block-image,
    .wp-block-gallery,
    .wp-block-video,
    .wp-block-embed,
    .wp-block-audio,
    .wp-block-file
) figcaption {
    padding-right: var(--mjm-content-gutter);
    padding-left: var(--mjm-content-gutter);
}

.entry-content > .wp-block-html,
.entry-content > .wp-block-html iframe {
    width: 100vw;
    max-width: 100vw;
}

.entry-content > .wp-block-html {
    padding-right: 0;
    padding-left: 0;
}

.entry-content > .wp-block-html iframe {
    display: block;
    margin-right: 0;
    margin-left: 0;
}

/* Optional centered width for top-level core and MJM blocks */
.entry-content > .mjm-layout-contained {
    box-sizing: border-box;
    width: var(--mjm-contained-width);
    max-width: var(--mjm-contained-max-width);
    margin-right: auto;
    margin-left: auto;
}

.entry-content > .mjm-layout-contained:is(
    .mjm-apply,
    .mjm-at-a-glance,
    .mjm-creators-statement,
    .mjm-feature-card--standalone,
    .mjm-feature-tri-cards,
    .mjm-general-info,
    .mjm-hero,
    .mjm-hero-2,
    .mjm-hero-carousel,
    .mjm-intro-statement,
    .mjm-profile-grid,
    .mjm-quote-feature,
    .mjm-single-column-feature,
    .mjm-sponsors,
    .mjm-split-banner,
    .mjm-two-column-feature
) {
    width: var(--mjm-contained-width) !important;
    max-width: var(--mjm-contained-max-width) !important;
    margin-right: auto !important;
    margin-left: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
}

/* Optional full width with theme gutter for top-level core and MJM blocks */
.entry-content > .mjm-layout-full-padded {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

/* Core blocks get a fresh wrapper div - apply the full gutter shorthand here */
.entry-content > .mjm-layout-full-padded:not(:is(
    .mjm-apply,
    .mjm-at-a-glance,
    .mjm-creators-statement,
    .mjm-feature-card--standalone,
    .mjm-feature-tri-cards,
    .mjm-general-info,
    .mjm-hero,
    .mjm-hero-2,
    .mjm-hero-carousel,
    .mjm-intro-statement,
    .mjm-profile-grid,
    .mjm-quote-feature,
    .mjm-single-column-feature,
    .mjm-sponsors,
    .mjm-split-banner,
    .mjm-two-column-feature
)) {
    padding: 0 var(--mjm-content-gutter) 2rem;
}

/* MJM blocks: force full width, neutralize full-bleed tricks, add only the side gutter */
.entry-content > .mjm-layout-full-padded:is(
    .mjm-apply,
    .mjm-at-a-glance,
    .mjm-creators-statement,
    .mjm-feature-card--standalone,
    .mjm-feature-tri-cards,
    .mjm-general-info,
    .mjm-hero,
    .mjm-hero-2,
    .mjm-hero-carousel,
    .mjm-intro-statement,
    .mjm-profile-grid,
    .mjm-quote-feature,
    .mjm-single-column-feature,
    .mjm-sponsors,
    .mjm-split-banner,
    .mjm-two-column-feature
) {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    padding-right: var(--mjm-content-gutter) !important;
    padding-left: var(--mjm-content-gutter) !important;
}

/* Header */
.site-header {
    --site-nav-root-font-size: 1.1rem;
    --site-nav-drawer-font-size: 3.3rem;
    --site-nav-drawer-offset: clamp(1.5rem, 3vw, 2rem);
    --site-nav-drawer-y-padding: clamp(0.75rem, 1.8vw, 1.15rem);

    background: #fff;
    width: 100%;
}

.site-header__bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 55px;
    padding: 0 clamp(1.5rem, 2.7vw, 2.7rem);
}

.site-branding .site-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.site-branding .site-title a {
    color: #333;
    text-decoration: none;
}

.site-branding .site-description {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

/* Site Logo */
.site-branding {
    height: 100%;
}

.site-logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.site-logo a {
    display: flex;
    align-items: center;
    height: 100%;
    line-height: 0;
}

.site-logo img {
    display: block;
    height: 20px;
    max-height: 100%;
    width: auto;
}

/* Header Right (nav + language switcher) */
.header-right {
    display: flex;
    align-items: center;
    gap: 3.25rem;
}

/* Main Navigation - Top Right */
.main-navigation {
    display: flex;
    align-items: center;
}

/* WPML Language Switcher */
.language-switcher {
    list-style: none;
    display: flex;
    gap: 3.25rem;
    margin: 0;
    padding: 0;
}

.language-switcher a {
    color: #000;
    font-family: "KF Zuka Regular", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: var(--site-nav-root-font-size);
    font-weight: normal;
    letter-spacing: 0;
    text-transform: uppercase;
    transition: color 0.2s;
}

.language-switcher .active a {
    color: #000;
}

.language-switcher a:hover {
    color: #0073aa;
    text-decoration: none;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: #000;
    font-family: "KF Zuka Medium", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: clamp(0.88rem, 0.88vw, 1.5rem);
    font-weight: normal;
    letter-spacing: 0;
    padding: 0rem 0;
    transition: color 0.2s;
}

.main-navigation a:hover {
    color: #0073aa;
    text-decoration: none;
}

.main-navigation .nav-donate > a {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1.2rem;
    border-radius: 49.87px;
    background: #1D8D02;
    color: #000;
    text-decoration: none;
    gap: 9.97px;
}

/* Submenus are rendered in the full-width drawer. */
.main-navigation ul ul {
    display: none;
}

.site-nav-drawer {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    background: #fff;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.75rem);
    transition: max-height 0.35s ease, opacity 0.2s ease, transform 0.35s ease;
}

.site-header.is-drawer-open .site-nav-drawer {
    max-height: var(--site-nav-drawer-height, 26rem);
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.site-nav-drawer__inner {
    padding: var(--site-nav-drawer-y-padding) clamp(1.5rem, 3vw, 2rem);
    padding-left: var(--site-nav-drawer-offset);
}

.site-nav-drawer__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15em;
    margin: 0;
    padding: 0;
    max-width: min(46rem, calc(100vw - var(--site-nav-drawer-offset) - clamp(1.5rem, 3vw, 2rem)));
}

.site-nav-drawer__list li {
    max-width: 100%;
}

.site-nav-drawer__list a {
    color: #000;
    display: block;
    font-family: "KF Zuka Regular", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: var(--site-nav-drawer-font-size);
    font-weight: normal;
    letter-spacing: 0;
    line-height: 1.05;
    max-width: min(100%, 18ch);
    overflow-wrap: anywhere;
    text-wrap: balance;
    white-space: normal;
}

.site-nav-drawer__list a:hover {
    color: #0073aa;
    text-decoration: none;
}

/* Content */
.site-content {
    max-width: none;
    width: 100%;
    margin: 0rem auto;
    padding: 0;
}

.entry-title {
    width: 100vw;
    max-width: 100vw;
    margin: 2rem calc(50% - 50vw) 0;
    padding: 0 clamp(1.5rem, 3vw, 2rem);
    text-align: left;
}

/* Footer */
.site-footer {
    padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2rem) 2rem;
    font-family: var(--font-body);
    font-size: 1.0rem;
    line-height: 1.1;
    color: #000;
}

.footer-inner {
    display: grid;
    grid-template-columns: 3fr 1fr 2fr;
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: stretch;
    border-top: 1px solid #000;
    padding-top: clamp(1rem, 2vw, 1.4rem);
}

.footer-col {
    min-width: 0;
}

/* Footer About Column */
.footer-about {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: space-between;
}

.footer-about p {
    margin: 0;
    line-height: 1.3;
    max-width: 70%;
}

.footer-logo {
    margin-top: auto;
    padding-top: 10rem;
}

.footer-logo a {
    display: block;
    line-height: 0;
}

.footer-logo img {
    width: min(100%, 38.7rem);
    max-width: 100%;
    height: auto;
}

.footer-nav ul {
    list-style: none;
    margin: 0;
    padding-top: 1px;
    padding-left:1rem;
    display: grid;
    gap: 0.55rem;
}

.footer-nav li {
    font-family: var(--font-headline);
    margin: 0;
}

.footer-nav a {
    color: #000;
}

.footer-nav a:hover {
    text-decoration: none;
}

/* Footer Contact Column */
.footer-contact {
    display: grid;
    align-content: start;
}

.footer-heading {
    padding-top: 1px;
    font-family: var(--font-headline);
    margin: 0 0 0.5rem;
}

.newsletter-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0;
    padding: 0.65rem 0;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
}

.newsletter-form input[type="email"] {
    flex: 1;
    border: none;
    padding: 0;
    font-size: 0.85rem;
    line-height: 1.3;
    background: transparent;
    outline: none;
    min-width: 0;
    color: #000;
}

.newsletter-form input[type="email"]::placeholder {
    color: #000;
    opacity: 1;
}

.newsletter-checkbox {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    margin: 0;
}

.newsletter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #FF5500;
    background: #FF5500;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
}

.newsletter-checkbox input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -58%) rotate(45deg);
}

.newsletter-checkbox input[type="checkbox"]:focus {
    outline: 2px solid rgba(255, 85, 0, 0.25);
    outline-offset: 2px;
}

.newsletter-form.is-loading {
    opacity: 0.75;
}

.newsletter-form.is-loading .newsletter-checkbox input[type="checkbox"] {
    cursor: progress;
}

.newsletter-turnstile {
    flex: 0 0 100%;
}

.newsletter-turnstile .cf-turnstile {
    max-width: 100%;
    overflow: hidden;
}

.newsletter-status {
    margin: 0;
    min-height: 0.5rem;
    font-size: 0.8rem;
    line-height: 1.4;
}

.newsletter-status.is-success {
    color: #23613c;
}

.newsletter-status.is-error {
    color: #b42318;
}

.footer-address p,
.footer-contact-info p {
    margin: 0;
    line-height: 1.5;
}

.footer-contact-info {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.footer-contact-info a {
    color: #000;
}

.footer-social {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-social a {
    color: #000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    line-height: 0;
    border: 1px solid currentColor;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.footer-social a:hover {
    opacity: 1;
    background: #000;
    color: #fff;
    text-decoration: none;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.8rem;
    color: #666;
}

.footer-bottom p {
    margin: 0;
}

/* Contact Lightbox */
.contact-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.contact-lightbox.is-open {
    display: flex;
}

.contact-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.contact-lightbox-content {
    position: relative;
    background: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
}

.contact-lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.2rem;
}

.contact-lightbox-content h2 {
    margin: 0 0 1.5rem;
    font-size: 1.25rem;
}

.contact-lightbox-logo {
    display: flex;
    align-items: center;
}

.contact-lightbox-logo a {
    display: block;
    line-height: 0;
}

.contact-lightbox-logo img {
    max-height: 30px;
    width: auto;
}

.contact-lightbox-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    color: #333;
}

.contact-form .form-field {
    margin-bottom: 1rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
    font-size: 0.85rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: inherit;
}

.contact-form textarea {
    resize: vertical;
}

.contact-submit {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
}

.contact-submit:hover {
    background: #333;
}

/* The Events Calendar Shortcode */
.mjm-events-shortcode {
    display: grid;
    gap: 3rem;
    width: 100vw;
    max-width: 100vw;
    position: relative;
    margin: 1.5rem calc(50% - 50vw) 0;
    padding: 0 clamp(1.5rem, 3vw, 2rem);
    box-sizing: border-box;
    color: #000;
}

.mjm-events-shortcode *,
.mjm-events-shortcode *::before,
.mjm-events-shortcode *::after {
    letter-spacing: 0;
}

.entry-content .mjm-events-shortcode h2,
.entry-content .mjm-events-shortcode h3,
.entry-content .mjm-events-shortcode p,
.entry-content .mjm-events-shortcode figure {
    margin: 0;
}

.mjm-events-shortcode__featured {
    background: var(--color-green);
    color: #000;
    padding: 1.6rem;
}

.mjm-events-shortcode__featured-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.95fr);
    gap: 1.6rem;
    min-height: 28rem;
}

.mjm-events-shortcode__featured-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.mjm-events-shortcode__featured-main {
    display: grid;
    gap: 0.95rem;
    align-content: start;
}

.mjm-events-shortcode__featured-date {
    font-family: var(--font-headline);
    font-size: clamp(1.31rem, 1.31vw, 1.31rem);
    font-weight: 500;
    line-height: 1.05;
}

.mjm-events-shortcode__featured-title {
    max-width: 8ch;
    font-family: var(--font-headline);
    font-size: clamp(5.0rem, 7.5vw, 7.5rem);
    line-height: 0.86;
    font-weight: normal;
    overflow-wrap: anywhere;
}

.mjm-events-shortcode__featured-title a,
.mjm-events-shortcode__grid-title a {
    color: inherit;
    text-decoration: none;
}

.mjm-events-shortcode__featured-title a:hover,
.mjm-events-shortcode__featured-title a:focus-visible,
.mjm-events-shortcode__grid-title a:hover,
.mjm-events-shortcode__grid-title a:focus-visible {
    text-decoration: none;
    text-underline-offset: 0.12em;
}

.mjm-events-shortcode__category {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    width: fit-content;
    font-family: var(--font-headline);
     font-size: clamp(1.31rem, 1.31vw, 1.31rem);
    font-weight: 500;
    line-height: 1;
}

.mjm-events-shortcode__category-dot {
    display: inline-block;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background: #000;
    flex: 0 0 auto;
}

.mjm-events-shortcode__featured-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 4rem;
}

.mjm-events-shortcode__featured-location {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
    max-width: 14ch;
    font-family: var(--font-body);
    font-size: clamp(2.3rem, 3.75vw, 3.75vmax);
    line-height: 1;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
}

.mjm-events-shortcode__featured-footer--no-button .mjm-events-shortcode__featured-location {
    width: 100%;
    max-width: none;
}

.mjm-events-shortcode__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: fit-content;
    min-height: var(--mjm-button-min-height);
    padding: var(--mjm-button-padding);
    border-radius: var(--mjm-button-radius);
    background-color: var(--mjm-button-background-color);
    color: var(--mjm-button-text-color);
    font-family: var(--mjm-button-font-family);
    font-size: var(--mjm-button-font-size);
    font-weight: var(--mjm-button-font-weight);
    line-height: var(--mjm-button-line-height);
    letter-spacing: var(--mjm-button-letter-spacing);
    text-decoration: none;
    transition: var(--mjm-button-transition);
    white-space: nowrap;
}

.mjm-events-shortcode__button--featured {
    margin-left: auto;
}

.mjm-events-shortcode__button:hover,
.mjm-events-shortcode__button:focus-visible {
    color: #fff;
    text-decoration: none;
    opacity: 0.82;
}

.mjm-events-shortcode__featured-media,
.mjm-events-shortcode__featured-media a {
    display: block;
    min-width: 0;
    height: 100%;
}

.mjm-events-shortcode__featured-image {
    width: 100%;
    height: 100%;
    min-height: 22rem;
    object-fit: cover;
}

.mjm-events-shortcode__featured--no-image .mjm-events-shortcode__featured-card {
    grid-template-columns: minmax(0, 1fr);
}

.mjm-events-shortcode__section {
    display: grid;
    gap: 1.25rem;
    border-top: 1px solid #000;
    padding-top: 1.35rem;
}

.mjm-events-shortcode__heading {
    font-family: var(--font-headline);
    font-size: clamp(2.0rem, 3.28vw, 3.28rem);
    line-height: 0.95;
    font-weight: normal;
}

.mjm-events-shortcode__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.0rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.entry-content .mjm-events-shortcode__grid {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mjm-events-shortcode__grid-item {
    min-width: 0;
}

.entry-content .mjm-events-shortcode__grid-item {
    margin: 0;
}

.mjm-events-shortcode__grid-card {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.mjm-events-shortcode__grid-media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f2f2f2;
}

.mjm-events-shortcode__grid-image-link,
.mjm-events-shortcode__grid-fallback {
    display: block;
    width: 100%;
    height: 100%;
}

.mjm-events-shortcode__grid-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mjm-events-shortcode__grid-fallback {
    display: flex;
    align-items: flex-start;
    padding: 1.35rem;
    background: var(--mjm-event-fallback-color, var(--color-orange));
    color: var(--mjm-event-fallback-title-color, #000);
}

.mjm-events-shortcode__grid-fallback-title {
    max-width: 10ch;
    color: inherit;
    font-family: var(--font-headline);
    font-size: 3.4rem;
    line-height: 0.92;
    overflow-wrap: anywhere;
}

.mjm-events-shortcode__grid-title {
    padding-top: 0.15rem;
    font-family: var(--font-headline);
    font-size: clamp(1.0rem, 1.5vw, 1.5rem);
    line-height: 1.05;
    font-weight: normal;
    overflow-wrap: anywhere;
}

.mjm-events-shortcode__grid-meta,
.mjm-events-shortcode__empty,
.mjm-events-shortcode__notice {
    font-family: var(--font-headline);
    font-size: clamp(0.88rem, 0.88vw, 0.88rem);
    line-height: 1.12;
    color: #000;
}

.mjm-events-shortcode__section-action {
    display: flex;
    justify-content: center;
    padding-top: 0.6rem;
}

.mjm-events-shortcode__notice {
    margin: 1.5rem 2rem;
}

@media (max-width: 900px) {
    .mjm-events-shortcode__featured-card {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .mjm-events-shortcode__featured-title {
        max-width: 12ch;
        font-size: 4rem;
    }

    .mjm-events-shortcode__featured-location {
        font-size: 1.9rem;
    }
}

@media (max-width: 700px) {
    .mjm-events-shortcode {
        gap: 2.25rem;
        margin-top: 1.25rem;
    }

    .mjm-events-shortcode__featured {
        padding: 1rem;
    }

    .mjm-events-shortcode__featured-title {
        font-size: 3rem;
    }

    .mjm-events-shortcode__featured-image {
        min-height: 16rem;
    }

    .mjm-events-shortcode__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .mjm-events-shortcode__grid-fallback-title {
        font-size: 2.6rem;
    }
}

/* Past events archive (/events/?eventDisplay=past) — Exhibitions-style grid.
   The .mjm-events-list--past class is added to the view container by the
   tribe/events/v2/list.php override only in past display mode. */
.mjm-events-list--past .tribe-events-header,
.mjm-events-list--past .tribe-events-c-ical {
    display: none;
}

/* Neutralize The Events Calendar's centered, max-width container so the grid
   can span the same full-bleed width as the Exhibitions page instead of TEC's
   narrower (~1048px) centered column, which left the page looking misaligned. */
.mjm-events-list--past .tribe-common-l-container.tribe-events-l-container {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Match .mjm-exhibitions-shortcode's full-bleed alignment exactly. Scoped under
   .mjm-events-list--past so these win over The Events Calendar's container
   resets, which zero the padding/margin at a higher specificity. */
.mjm-events-list--past .mjm-events-shortcode--past-archive {
    display: block;
    box-sizing: border-box;
    width: 100vw;
    max-width: 100vw;
    position: relative;
    margin: 2rem calc(50% - 50vw) 0;
    padding: 0 2rem;
}

.mjm-events-list--past .mjm-events-shortcode__section--past-archive {
    display: block;
    margin-top: 1.5rem;
    border-top: 1px solid #000;
    padding-top: 1.35rem;
}

.mjm-events-list--past .mjm-events-shortcode__heading--past-archive {
    font-family: var(--font-subtitle);
    font-size: var(--text-level-2);
    line-height: var(--leading-level-2);
    letter-spacing: var(--tracking-tight);
    font-weight: normal;
}

.mjm-events-list--past .mjm-events-shortcode__grid-item {
    margin: 0;
    padding: 0;
}

.mjm-events-list--past .mjm-events-shortcode__section-action--past-archive {
    padding-top: 1.5rem;
}

/* Image fills the 4:3 card without distortion — cover-scaled and centred.
   Scoped under .mjm-events-list--past so it beats The Events Calendar's
   `.tribe-common img` reset (which forces height:auto and breaks object-fit). */
.mjm-events-list--past .mjm-events-shortcode__grid-media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.mjm-events-list--past .mjm-events-shortcode__grid-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.mjm-events-list--past .mjm-events-shortcode__grid-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* The Events Calendar resets every link background via `.tribe-common a`.
   This more-specific rule restores the event-selected fallback colour on the
   past archive's image-less card links. */
.mjm-events-list--past .mjm-events-shortcode__grid-fallback {
    box-sizing: border-box;
    padding: 1.35rem;
    background-color: var(--mjm-event-fallback-color, var(--color-orange));
    color: var(--mjm-event-fallback-title-color, #000);
}

/* The Facebook archive button renders inside .tribe-common, where TEC's link
   resets strip the background, text colour and padding — leaving it looking
   like a plain link. Re-assert the shared MJM button tokens (the same pill
   style used by the theme's block buttons) at a winning specificity. */
.mjm-events-list--past .mjm-events-shortcode__button {
    padding: var(--mjm-button-padding);
    background-color: var(--mjm-button-background-color);
    color: var(--mjm-button-text-color);
    text-decoration: none;
}

.mjm-events-list--past .mjm-events-shortcode__button:hover,
.mjm-events-list--past .mjm-events-shortcode__button:focus-visible {
    color: var(--mjm-button-text-color);
    text-decoration: none;
    opacity: 0.82;
}

@media (max-width: 700px) {
    .mjm-events-list--past .mjm-events-shortcode--past-archive {
        padding: 0 1.5rem;
    }
}

/* The Events Calendar Single Event */
body.single-tribe_events .site-content {
    margin-top: 0;
    margin-bottom: 0;
}

body.single-tribe_events #tribe-events-pg-template {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.mjm-events-single {
    width: 100vw;
    max-width: 100vw;
    position: relative;
    margin: 0 calc(50% - 50vw);
    padding: 0;
    background: #fff;
    color: #000;
    box-sizing: border-box;
}

.mjm-events-single *,
.mjm-events-single *::before,
.mjm-events-single *::after {
    letter-spacing: 0;
}

.mjm-events-single__notices {
    max-width: 90rem;
    margin: 0 auto;
    padding: 1rem clamp(1.5rem, 3.1vw, 2.5rem);
}

.mjm-events-single.tribe-events-single > .mjm-events-single__article {
    display: block;
    width: 100%;
    overflow: visible;
}

.mjm-events-single__hero {
    position: relative;
    display: block;
    min-height: clamp(38rem, 59.2vw, 71rem);
    overflow: hidden;
    background: #000;
    color: #fff;
}

.mjm-events-single__hero--fallback-colour {
    color: var(--mjm-event-fallback-title-color, #000);
}

.mjm-events-single__hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: inherit;
    min-width: 0;
    padding: clamp(2rem, 3vw, 2.5rem) clamp(1.5rem, 3.1vw, 2.5rem) clamp(2rem, 3.2vw, 2.8rem);
}

/* For image-less events, paint the chosen colour on the content layer itself.
   This keeps it entirely independent of image filters and media overlays. */
.mjm-events-single__hero--fallback-colour .mjm-events-single__hero-content {
    background-color: var(--mjm-event-fallback-color);
}

.mjm-events-single__eyebrow {
    display: none;
}

.mjm-events-single__title {
    margin: 0;
    min-width: 0;
    max-width: 33%;
    font-family: var(--font-headline);
    font-size: clamp(4rem, 7.6vw, 9.5rem);
    line-height: 1;
    font-weight: normal;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
    overflow: visible;
    text-wrap: balance;
}

.mjm-events-single__title.mjm-events-single__title--width-33 {
    width: 33%;
    max-width: 33%;
}

.mjm-events-single__title.mjm-events-single__title--width-66 {
    width: 66%;
    max-width: 66%;
}

.mjm-events-single__title.mjm-events-single__title--width-full {
    width: 100%;
    max-width: 100%;
}

.mjm-events-single__subtitle {
    max-width: 9.5ch;
    margin: 0.6rem 0 0;
    font-family: var(--font-headline);
    font-size: clamp(2rem, 3.8vw, 4.6rem);
    line-height: 0.95;
}

.mjm-events-single__meta {
    display: grid;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mjm-events-single__meta--hero {
    margin-top: auto;
    margin-bottom: 0.95rem;
    color: #fff;
}

.mjm-events-single__hero--fallback-colour .mjm-events-single__meta--hero {
    color: inherit;
}

.mjm-events-single__meta-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    margin: 0;
}

.mjm-events-single__meta-icon {
    display: none;
}

.mjm-events-single__meta-item::before {
    content: "";
    width: 1.1rem;
    height: 1.1rem;
    flex: 0 0 1.1rem;
    border-radius: 999px;
    background: currentColor;
}

.mjm-events-single__meta-text {
    min-width: 0;
    font-family: var(--font-headline);
    font-size: clamp(1.05rem, 1.45vw, 1.95rem);
    line-height: 1.05;
}

.mjm-events-single__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: var(--mjm-button-min-height);
    padding: var(--mjm-button-padding);
    border-radius: var(--mjm-button-radius);
    background: #ffcc00;
    color: #000;
    font-family: var(--mjm-button-font-family);
    font-size: var(--mjm-button-font-size);
    font-weight: var(--mjm-button-font-weight);
    line-height: var(--mjm-button-line-height);
    letter-spacing: var(--mjm-button-letter-spacing);
    text-decoration: none;
    text-transform: none;
    transition: var(--mjm-button-transition);
    white-space: nowrap;
}

.mjm-events-single__button:hover,
.mjm-events-single__button:focus-visible {
    color: #000;
    text-decoration: none;
    opacity: 0.88;
}

.mjm-events-single__hero-media {
    display: block;
    position: absolute;
    inset: 0;
    margin: 0;
    background: #000;
}

.mjm-events-single__hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
}

.mjm-events-single__hero--fallback-colour .mjm-events-single__hero-media::after {
    background: transparent;
}

.mjm-events-single__hero-image {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

.mjm-events-single__image-fallback {
    width: 100%;
    height: 100%;
    min-height: 100%;
    background: var(--mjm-event-fallback-color, linear-gradient(90deg, #111 0 25%, #2f2f2f 25% 55%, #1a1a1a 55% 100%));
}

.mjm-events-single__body {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
    gap: clamp(3rem, 8vw, 9rem);
    width: 100%;
    margin: 0;
    padding: clamp(4.25rem, 6vw, 6rem) clamp(1.5rem, 3.1vw, 2.5rem) clamp(4rem, 5vw, 5.5rem);
    background: #fff;
}

.mjm-events-single__body--no-intro .mjm-events-single__body-content {
    grid-column: 2;
}

.mjm-events-single__body-intro {
    min-width: 0;
}

.mjm-events-single__body-intro p {
    max-width: 13ch;
    margin: 0 0 1.65rem;
    font-family: var(--font-body);
    font-size: clamp(2.7rem, 4.4vw, 5rem);
    line-height: 0.98;
}

.mjm-events-single__body-content {
    min-width: 0;
    font-family: var(--font-headline);
    font-size: clamp(1.2rem, 1.55vw, 2rem);
    line-height: 1.18;
}

.mjm-events-single__body-content > * {
    margin-top: 0;
    margin-bottom: clamp(1.7rem, 2.2vw, 2.5rem);
}

.mjm-events-single__body-content > :last-child {
    margin-bottom: 0;
}

.mjm-events-single__body-content ul,
.mjm-events-single__body-content ol {
    padding-left: 1.5rem;
    margin-left: 0;
    list-style-position: outside;
}

.mjm-events-single__body-content ul {
    list-style: disc;
}

.mjm-events-single__body-content ol {
    list-style: decimal;
}

.mjm-events-single__body-content ul ul,
.mjm-events-single__body-content ol ol,
.mjm-events-single__body-content ul ol,
.mjm-events-single__body-content ol ul {
    margin-top: 0.35em;
    margin-bottom: 0;
}

.mjm-events-single__body-content p,
.mjm-events-single__body-content li {
    line-height: 1.18;
}

.mjm-events-single__body-content strong,
.mjm-events-single__body-content b {
    font-family: var(--font-headline);
    font-weight: normal;
}

.mjm-events-single__body-content h2,
.mjm-events-single__body-content h3,
.mjm-events-single__body-content h4 {
    font-family: var(--font-headline);
    line-height: 1.05;
}

.mjm-events-single__body-content a {
    text-decoration: underline;
    text-underline-offset: 0.14em;
}

.mjm-events-single__body-content figure {
    margin-left: 0;
    margin-right: 0;
}

.mjm-events-single__body-content figcaption {
    font-size: 0.9rem;
    line-height: 1.35;
}

.mjm-events-single__body-cta {
    display: flex;
    justify-content: flex-start;
    margin-top: 1.2rem;
}

.mjm-events-single__upcoming {
    display: block;
    border-top: 1px solid #000;
    margin: 0 clamp(1.5rem, 3.1vw, 2.5rem);
    padding-top: clamp(1.25rem, 2vw, 1.9rem);
    padding-bottom: clamp(4rem, 6vw, 6rem);
}

.mjm-events-single__upcoming-heading {
    margin: 0 0 clamp(1.35rem, 2vw, 2rem);
    font-family: var(--font-headline);
    font-size: clamp(2.7rem, 4vw, 5rem);
    line-height: 0.95;
    font-weight: normal;
}

.mjm-events-single__related-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 4vw, 2.5rem);
    list-style: none;
    margin: 0;
    padding: 0;
}

.mjm-events-single__related-list--count-1 {
    grid-template-columns: minmax(0, 1fr);
    max-width: calc((100% - clamp(2rem, 4vw, 2.5rem)) / 2);
}

.mjm-events-single__related-item {
    margin: 0;
}

.mjm-events-single__related-card {
    display: grid;
    gap: 0.55rem;
    min-width: 0;
}

.mjm-events-single__related-media {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #ff5500;
    color: #000;
}

.mjm-events-single__related-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mjm-events-single__related-fallback {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: flex-start;
    padding: clamp(1.5rem, 3vw, 2.6rem);
    background: #ff5500;
    color: #000;
}

.mjm-events-single__related-fallback-title {
    max-width: 9ch;
    font-family: var(--font-headline);
    font-size: clamp(2.5rem, 5vw, 6.8rem);
    line-height: 0.94;
    overflow-wrap: anywhere;
}

.mjm-events-single__related-content {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.mjm-events-single__related-title {
    margin: 0;
    font-family: var(--font-headline);
    font-size: clamp(1.2rem, 1.55vw, 1.7rem);
    line-height: 1;
    font-weight: normal;
    overflow-wrap: anywhere;
}

.mjm-events-single__related-title a {
    color: inherit;
    text-decoration: none;
}

.mjm-events-single__related-title a:hover,
.mjm-events-single__related-title a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.mjm-events-single__related-meta {
    font-family: var(--font-headline);
    font-size: clamp(0.95rem, 1vw, 1.1rem);
    line-height: 1.1;
}

.mjm-events-single__related-meta p {
    margin: 0;
}

@media (max-width: 980px) {
    .mjm-events-single__body {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.5rem;
    }

    .mjm-events-single__body--no-intro .mjm-events-single__body-content {
        grid-column: auto;
    }

    .mjm-events-single__body-intro p {
        max-width: 14ch;
    }

    .mjm-events-single__related-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .mjm-events-single__related-list--count-1 {
        max-width: none;
    }
}

@media (max-width: 600px) {
    .mjm-events-single__hero {
        min-height: 36rem;
    }

    .mjm-events-single__hero-content {
        padding: 1.45rem 1.5rem 1.65rem;
    }

    .mjm-events-single__title {
        width: 100%;
        max-width: 100%;
        font-size: clamp(3.1rem, 16vw, 4.25rem);
    }

    .mjm-events-single__subtitle {
        font-size: clamp(1.8rem, 10vw, 2.6rem);
    }

    .mjm-events-single__meta-text {
        font-size: 1.12rem;
    }

    .mjm-events-single__body {
        padding-top: 3rem;
        padding-bottom: 3.5rem;
    }

    .mjm-events-single__body-intro p {
        max-width: 11ch;
        font-size: clamp(2.35rem, 11vw, 3.25rem);
    }

    .mjm-events-single__body-content {
        font-size: 1.12rem;
    }

    .mjm-events-single__upcoming {
        padding-top: 1.15rem;
        padding-bottom: 4rem;
    }

    .mjm-events-single__upcoming-heading {
        font-size: 2.35rem;
    }

    .mjm-events-single__related-fallback-title {
        font-size: clamp(2.4rem, 12vw, 3.8rem);
    }

    .mjm-events-single__button {
        white-space: normal;
        text-align: center;
    }
}

/* Hamburger Toggle (hidden on desktop) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    flex-direction: column;
    gap: 4px;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: #333;
    transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.is-active .hamburger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Responsive - Tablet and below */
@media (max-width: 768px) {

    /* Header */
    .site-header {
        --site-nav-root-font-size: 1.1rem;
        --site-nav-drawer-font-size: 3rem;
        --site-nav-drawer-y-padding: clamp(0.85rem, 4vw, 1.25rem);
    }

    .site-header__bar {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: flex;
    }

    .header-right {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding: 1rem 0 0.75rem;
        gap: 1rem;
    }

    .header-right.is-open {
        display: flex;
    }

    .main-navigation {
        width: 100%;
    }

    .main-navigation ul {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.75rem;
    }

    .language-switcher {
        border-left: none;
        padding-left: 0;
        padding-top: 0;
    }

    .site-nav-drawer__inner {
        padding-top: var(--site-nav-drawer-y-padding);
        padding-bottom: var(--site-nav-drawer-y-padding);
    }

    .site-nav-drawer__list {
        flex-direction: column;
        gap: 0.15em;
        max-width: calc(100vw - var(--site-nav-drawer-offset) - clamp(1.5rem, 3vw, 2rem));
    }

    /* Footer */
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-nav ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem 1rem;
    }

    .footer-logo img {
        width: min(100%, 31.7rem);
    }

    .newsletter-form {
        max-width: 24rem;
    }

    .site-content {
        padding: 0;
    }
}

/* Responsive - Small phones */
@media (max-width: 480px) {

    .site-header {
        --site-nav-root-font-size: 0.9rem;
        --site-nav-drawer-font-size: 2.7rem;
    }

    .site-header__bar {
        padding: 0.2rem clamp(1.5rem, 3vw, 2rem);
    }

    .site-content {
        padding: 0;
        margin: 1rem auto;
    }

    .site-footer {
        padding: 1.5rem clamp(1.5rem, 3vw, 2rem);
    }

    .footer-nav ul {
        grid-template-columns: 1fr;
    }

    .contact-lightbox-content {
        padding: 1.5rem;
        width: 95%;
    }
}
