/* Figma node 2045:18179 - uses only supplied media-page assets */
    .meiji-media-page,
    .meiji-media-page * {
        box-sizing: border-box;
    }

    .meiji-media-page {
        --mm-width: 1576px;
        --mm-gutter: max(24px, calc((100vw - var(--mm-width)) / 2));
        --mm-red: #c1272d;
        position: relative;
        background: #fffafa url('../../assets/media-page/media-page-bg.png') center top / 1920px auto no-repeat;
        color: #131313;
        font-family: 'Poppins', Arial, sans-serif;
        padding: 100px 0;
        overflow: hidden;
    }

    .meiji-media-page .mm-container {
        width: min(var(--mm-width), calc(100% - 48px));
        margin: 0 auto;
        position: relative;
        z-index: 1;
    }

    .meiji-media-page h1,
    .meiji-media-page h2,
    .meiji-media-page h3 {
        color: inherit;
    }

    /* Intro and Figma-sized hero (919 / 637, 590 tall) */
    .mm-intro {
        text-align: center;
        margin-bottom: 50px;
    }

    .mm-intro h1 {
        font: 700 60px/1.05 'Archivo', 'Poppins', sans-serif !important;
        text-transform: uppercase;
        margin: 0 0 15px !important;
    }

    .mm-intro p {
        margin: 0;
        color: #6c757d;
        font-size: 16px;
    }

    .mm-hero {
        display: grid;
        grid-template-columns: minmax(0, 919fr) minmax(0, 637fr);
        gap: 20px;
        height: 590px;
    }

    .mm-hero__right {
        display: grid;
        grid-template-rows: minmax(0, 290fr) minmax(0, 280fr);
        gap: 20px;
        min-height: 0;
    }

    .mm-hero-card {
        position: relative;
        overflow: hidden;
        border-radius: 20px;
        min-width: 0;
        background: #c1272d;
        isolation: isolate;
    }

    .mm-hero-card__image,
    .mm-hero-card__gradient {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        pointer-events: none;
    }

    .mm-hero-card__gradient {
        object-fit: fill;
        z-index: 1;
    }

    .mm-hero-card__text {
        position: absolute;
        z-index: 2;
        color: #fff;
        bottom: 50px;
        left: 50px;
        right: 50px;
    }

    .mm-hero-card h2 {
        font: 700 30px/1.15 'Archivo', 'Poppins', sans-serif !important;
        text-transform: uppercase;
        margin: 0 0 10px !important;
        color: #fff !important;
    }

    .mm-hero-card p {
        margin: 0;
        color: #fff;
        font-size: 16px;
        line-height: 1.48;
        max-width: 600px;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
    }

    .mm-hero-card time {
        display: block;
        color: #fff;
        font-size: 16px;
        margin: 0 0 8px;
    }

    .mm-hero-card--small .mm-hero-card__text {
        top: 45px;
        bottom: auto;
        left: 50px;
        right: 40px;
    }

    .mm-hero-card--small p {
        -webkit-line-clamp: 2;
    }

    .mm-link-white {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin-top: 12px;
        color: #fff !important;
        font: 600 18px/28px 'Inter', 'Poppins', sans-serif;
        text-decoration: none !important;
    }

    .mm-link-white img {
        width: 16px;
        height: 12px;
    }

    .mm-play {
        position: absolute;
        display: grid;
        place-items: center;
        z-index: 3;
        padding: 0;
        border: 0;
        background: none;
    }

    .mm-play img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .mm-play--large {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 100px;
        height: 100px;
        cursor: pointer;
    }

    .mm-play--inactive {
        cursor: default;
    }

    /* Article sections */
    .mm-section {
        margin-top: 100px;
    }

    .mm-section__header {
        min-height: 115px;
        margin-bottom: 31px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 24px;
    }

    .mm-section__header h2 {
        font: 700 40px/50px 'Archivo', 'Poppins', sans-serif !important;
        text-transform: uppercase;
        margin: 0 !important;
    }

    .mm-section__header p {
        margin: 0;
        font-size: 16px;
        color: #131313;
    }

    .mm-view-all {
        flex: none;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        min-height: 34px;
        padding: 8px 18px;
        border-radius: 5px;
        background: #c1272d;
        color: #fff !important;
        font: 700 16px/18px 'Poppins', sans-serif;
        text-transform: uppercase;
        text-decoration: none !important;
    }

    .mm-view-all:hover {
        background: #ac1f25;
    }

    .mm-view-all img {
        width: 6px;
        height: 10px;
        object-fit: contain;
    }

    .mm-articles {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
    }

    .mm-article {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border: 1px solid #e4e7ec;
        border-radius: 20px;
        background: #fff;
        min-height: 487px;
        text-decoration: none !important;
        color: #131313 !important;
        cursor: default;
        transition: border-color .2s, transform .2s;
    }

    .mm-article--linked {
        cursor: pointer;
    }

    .mm-article--linked:hover,
    .mm-article--linked:focus-visible {
        border-color: #c1272d;
        transform: translateY(-2px);
    }

    .mm-article--linked:focus-visible {
        outline: 2px solid #c1272d;
        outline-offset: 3px;
    }

    .mm-article__image {
        display: block;
        width: 100%;
        height: 192px;
        overflow: hidden;
        background: #eee;
        border-radius: 19px 19px 0 0;
    }

    .mm-article__image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .mm-article__copy {
        display: flex;
        flex-direction: column;
        gap: 12px;
        flex: 1;
        padding: 24px;
    }

    .mm-article__date {
        color: #c1272d;
        letter-spacing: .6px;
        font: 500 12px/17px 'JetBrains Mono', monospace;
    }

    .mm-article__title {
        margin: 0 !important;
        color: #131313;
        font: 600 20px/1.25 'Poppins', sans-serif !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .mm-article--linked:hover .mm-article__title {
        color: #c1272d;
    }

    .mm-article__excerpt {
        margin: 0;
        color: #6c757d;
        font: 400 16px/1.43 'Poppins', sans-serif;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .mm-read-more {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin-top: auto;
        color: #c1272d !important;
        font: 600 18px/28px 'Inter', 'Poppins', sans-serif;
        text-decoration: none !important;
    }

    .mm-read-more img {
        width: 16px;
        height: 12px;
    }

    /* ============================================================
   MEDIA HIGHLIGHTS - intentional asymmetrical full-bleed.
   At 1920px: content grid x=172..1748 (1576px wide).
   Carousel viewport x=172..1920 (1748px wide).
   This yields 3 complete slides and ~half a fourth.
   Heading and arrows stay aligned to the 1576px grid.
   ============================================================ */
    .mm-highlights {
        margin-top: 100px;
    }

    .mm-highlights__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        height: 91px;
        border-bottom: 1px solid #e4e7ec;
        margin-bottom: 20px;
    }

    .mm-highlights__header h2 {
        margin: 0 !important;
        font: 700 40px/50px 'Archivo', 'Poppins', sans-serif !important;
        text-transform: uppercase;
    }

    .mm-highlights__buttons {
        display: flex;
        gap: 20px;
        align-items: center;
    }

    .mm-highlights__buttons button {
        display: block;
        width: 40px;
        height: 40px;
        background: none;
        border: 0;
        padding: 0;
        cursor: pointer;
    }

    .mm-highlights__buttons button img {
        display: block;
        width: 40px;
        height: 40px;
    }

    .mm-highlights__buttons button:disabled {
        cursor: default;
    }

    .mm-highlights__buttons button img {
        transition: transform .15s ease;
    }

    .mm-highlights__viewport {
        /* ONLY this viewport extends into the right page padding. */
        width: calc(100% + var(--mm-gutter));
        margin-right: calc(-1 * var(--mm-gutter));
        overflow: hidden;
    }

    .mm-highlights__track {
        display: flex;
        gap: 20px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        scrollbar-width: none;
        overscroll-behavior-inline: contain;
        padding: 10px 0 20px 10px;
    }

    .mm-highlights__track::-webkit-scrollbar {
        display: none;
    }

    .mm-highlight {
        /* Exactly 3.5 visible items at desktop widths (including gaps). */
        flex: 0 0 calc((100% - 70px) / 3.5);
        height: 289px;
        position: relative;
        border-radius: 20px;
        overflow: hidden;
        scroll-snap-align: start;
        isolation: isolate;
        background: #c1272d;
    }

    .mm-highlight__image,
    .mm-highlight__overlay {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
    }

    .mm-highlight__image {
        object-fit: cover;
    }

    .mm-highlight__overlay {
        object-fit: fill;
    }

    .mm-highlight__copy {
        position: absolute;
        z-index: 2;
        bottom: 20px;
        left: 20px;
        right: 20px;
        color: #fff;
    }

    .mm-highlight__copy h3 {
        margin: 0 0 10px !important;
        color: #fff !important;
        font: 700 20px/1.2 'Archivo', 'Poppins', sans-serif !important;
        text-transform: uppercase;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mm-highlight__copy p {
        margin: 0;
        font: 400 16px/1.3 'Poppins', sans-serif;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .mm-highlight .mm-play {
        z-index: 3;
        width: 80px;
        height: 80px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        cursor: pointer;
    }

    .mm-highlight .mm-play--inactive {
        cursor: default;
    }

    /* Video modal */
    .mm-modal[hidden] {
        display: none !important;
    }

    .mm-modal {
        position: fixed;
        z-index: 999999;
        inset: 0;
        display: grid;
        place-items: center;
        padding: 35px 20px;
        background: rgba(0, 0, 0, .86);
    }

    .mm-modal__inner {
        position: relative;
        width: min(1100px, 100%);
    }

    .mm-modal__close {
        position: absolute;
        top: -42px;
        right: 0;
        border: 0;
        background: transparent;
        color: #fff;
        font-size: 30px;
        cursor: pointer;
    }

    .mm-modal__video {
        position: relative;
        aspect-ratio: 16 / 9;
        border-radius: 10px;
        overflow: hidden;
        background: #000;
    }

    .mm-modal__video iframe {
        display: block;
        width: 100%;
        height: 100%;
        border: 0;
    }

    @media (max-width: 1199px) {
        .meiji-media-page {
            padding: 70px 0;
        }

        .mm-intro h1 {
            font-size: 48px !important;
        }

        .mm-hero {
            height: 500px;
        }

        .mm-hero-card--small .mm-hero-card__text {
            left: 26px;
            right: 20px;
            top: 25px;
        }

        .mm-hero-card--small h2 {
            font-size: 24px !important;
        }

        .mm-hero-card--small p {
            font-size: 13px;
            -webkit-line-clamp: 2;
        }

        .mm-section {
            margin-top: 70px;
        }

        .mm-articles {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .mm-highlights {
            margin-top: 70px;
        }
    }

    @media (max-width: 991px) {
        .mm-hero {
            grid-template-columns: 1.25fr 1fr;
            height: 455px;
        }

        .mm-hero-card__text {
            left: 25px;
            right: 25px;
            bottom: 25px;
        }

        .mm-hero-card--small h2 {
            font-size: 20px !important;
        }

        .mm-hero-card--small time {
            font-size: 12px;
        }

        .mm-highlights__header h2 {
            font-size: 32px !important;
        }

        .mm-highlight {
            flex-basis: calc((100% - 40px) / 2.5);
            height: 250px;
        }
    }

    @media (max-width: 767px) {
        .meiji-media-page {
            --mm-gutter: 14px;
            padding: 50px 0;
            background-size: auto 100%;
        }

        .meiji-media-page .mm-container {
            width: calc(100% - 28px);
        }

        .mm-intro {
            margin-bottom: 32px;
        }

        .mm-intro h1 {
            font-size: 32px !important;
        }

        .mm-intro p {
            font-size: 13px;
        }

        .mm-hero {
            grid-template-columns: 1fr;
            height: auto;
            gap: 12px;
        }

        .mm-hero-card--large {
            height: 370px;
        }

        .mm-hero__right {
            grid-template-rows: 230px 230px;
            gap: 12px;
        }

        .mm-hero-card__text {
            bottom: 22px;
            left: 22px;
            right: 22px;
        }

        .mm-hero-card h2 {
            font-size: 24px !important;
        }

        .mm-hero-card p {
            font-size: 13px;
        }

        .mm-hero-card--small .mm-hero-card__text {
            top: auto;
            bottom: 24px;
        }

        .mm-hero-card--small h2 {
            font-size: 22px !important;
        }

        .mm-play--large {
            width: 80px;
            height: 80px;
        }

        .mm-section {
            margin-top: 50px;
        }

        .mm-section__header {
            min-height: 0;
            margin-bottom: 24px;
            align-items: flex-start;
            flex-wrap: wrap;
            gap: 12px;
        }

        .mm-section__header h2 {
            font-size: 28px !important;
            line-height: 34px !important;
        }

        .mm-section__header p {
            font-size: 13px;
            line-height: 20px;
        }

        .mm-view-all {
            min-height: 32px;
            font-size: 11px;
            padding: 7px 12px;
        }

        .mm-articles {
            gap: 12px;
        }

        .mm-article {
            min-height: 345px;
        }

        .mm-article__image {
            height: 130px;
        }

        .mm-article__copy {
            padding: 14px;
            gap: 8px;
        }

        .mm-article__title {
            font-size: 14px !important;
        }

        .mm-article__excerpt {
            font-size: 12px;
        }

        .mm-article__date {
            font-size: 10px;
        }

        .mm-read-more {
            font-size: 13px;
        }

        .mm-highlights {
            margin-top: 50px;
        }

        .mm-highlights__header {
            height: 78px;
        }

        .mm-highlights__header h2 {
            font-size: 26px !important;
            line-height: 32px !important;
        }

        .mm-highlights__buttons {
            gap: 6px;
        }

        .mm-highlights__buttons button,
        .mm-highlights__buttons img {
            width: 35px !important;
            height: 35px !important;
        }

        .mm-highlight {
            flex-basis: 80%;
            height: 240px;
        }

        .mm-highlight__copy h3 {
            font-size: 17px !important;
        }

        .mm-highlight__copy p {
            font-size: 12px;
        }

        .mm-highlight .mm-play {
            width: 68px;
            height: 68px;
        }
    }

    @media (max-width: 420px) {
        .mm-articles {
            grid-template-columns: 1fr;
        }

        .mm-article {
            min-height: 0;
        }

        .mm-article__image {
            height: 180px;
        }

        .mm-highlight {
            flex-basis: 88%;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .mm-highlights__track {
            scroll-behavior: auto;
        }
    }

.mm-modal__video video{display:block;width:100%;height:100%;object-fit:contain;background:#000}.mm-modal__video{aspect-ratio:var(--mm-video-aspect,16 / 9)}.mm-modal__video [hidden]{display:none}.mm-modal__inner{max-width:100%}.mm-modal__error{padding:12px;background:#fff;color:#131313}.mm-modal__error a{color:#c1272d;text-decoration:underline}

.mm-modal{grid-template-columns:minmax(0,1fr)}.mm-modal__inner{min-width:0;max-width:100%}.mm-modal__video{min-width:0;max-height:calc(100dvh - 140px)}

.mm-hero-card--small .mm-play{width:56px;height:56px;right:24px;bottom:24px;top:auto;left:auto;cursor:pointer}.mm-hero-card--small .mm-hero-card__text{right:40px}@media(max-width:1199px){.mm-hero-card--small .mm-play{width:48px;height:48px;right:20px;bottom:20px}}

@media(max-width:767px){.mm-hero-card--small .mm-play{top:20px;bottom:auto}.mm-hero-card--large .mm-play--large{top:35%}}

@media(max-width:359px){.mm-hero-card .mm-play{top:18px;right:18px;left:auto;bottom:auto;transform:none;width:48px;height:48px}.mm-hero-card h2{font-size:20px!important}.mm-hero-card--small .mm-hero-card__text{left:22px;right:22px}}
