/* ============================================================
   MUCKYWORX WEBSITE CREATOR V3
   ============================================================ */

.mw-pub {
    width:
        min(
            1240px,
            calc(100% - 36px)
        );

    margin:
        28px auto 64px;

    color:
        #e9f3f7;

    font-family:
        Arial,
        sans-serif;
}

.mw-pub * {
    box-sizing:
        border-box;
}

.mw-pub h1,
.mw-pub h2 {
    font-family:
        Orbitron,
        Arial,
        sans-serif;
}

.mw-kicker {
    color:
        #f2a23a;

    font-family:
        monospace;

    font-size:
        13px;

    letter-spacing:
        2px;

    text-transform:
        uppercase;
}


/* ============================================================
   TITEL
   ============================================================ */

.mw-overview-header {
    max-width:
        920px;

    margin:
        0 auto 34px;

    text-align:
        center;
}

.mw-overview-header h1 {
    margin:
        7px 0 0;

    color:
        #00d9ff;

    font-size:
        clamp(
            34px,
            5vw,
            48px
        );

    letter-spacing:
        2px;

    text-shadow:
        0 0 14px
        rgba(0,217,255,.42);
}

.mw-overview-header p {
    max-width:
        820px;

    margin:
        13px auto 0;

    color:
        #d5e2e7;

    font-size:
        17px;

    line-height:
        1.6;
}

.mw-title-line {
    width:
        min(
            720px,
            80%
        );

    height:
        1px;

    margin:
        15px auto 0;

    background:
        linear-gradient(
            90deg,
            transparent,
            #b97732,
            transparent
        );
}


/* ============================================================
   KACHELN
   Maximal 390 px.
   Eine einzelne Kachel wird NICHT mehr zum Scheunentor.
   ============================================================ */

.mw-tile-grid {
    display:
        grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(
                300px,
                390px
            )
        );

    justify-content:
        center;

    gap:
        24px;

    align-items:
        stretch;
}

.mw-tile-card {
    width:
        100%;

    min-height:
        100%;

    overflow:
        hidden;

    border:
        1px solid
        #8e5d2d;

    border-radius:
        13px;

    background:
        linear-gradient(
            180deg,
            rgba(13,24,31,.98),
            rgba(7,13,17,.98)
        );

    cursor:
        pointer;

    box-shadow:
        0 16px 36px
        rgba(0,0,0,.34);

    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.mw-tile-card:hover {
    transform:
        translateY(-4px);

    border-color:
        #00d9ff;

    box-shadow:
        0 20px 46px
        rgba(0,0,0,.46),

        0 0 22px
        rgba(0,217,255,.10);
}


/* ============================================================
   BILDPRINZIP

   Ebene 1:
   gleiches Bild groß + unscharf

   Ebene 2:
   Originalbild scharf + vollständig

   Wenn gar kein Bild vorhanden:
   Gradient-Fallback.
   ============================================================ */

.mw-media-frame {
    position:
        relative;

    overflow:
        hidden;

    isolation:
        isolate;

    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(0,217,255,.17),
            transparent 38%
        ),

        radial-gradient(
            circle at 80% 75%,
            rgba(242,162,58,.14),
            transparent 40%
        ),

        linear-gradient(
            145deg,
            #020609,
            #07151a 55%,
            #120b05
        );
}

.mw-media-frame::before {
    content:
        "";

    position:
        absolute;

    inset:
        -30px;

    z-index:
        0;

    background-image:
        var(
            --mw-media-image,
            none
        );

    background-position:
        center;

    background-repeat:
        no-repeat;

    background-size:
        cover;

    filter:
        blur(18px)
        brightness(.48)
        saturate(1.12);

    transform:
        scale(1.13);

    opacity:
        .98;
}

.mw-media-frame.no-image::before {
    display:
        none;
}

.mw-media-frame > img {
    position:
        absolute;

    inset:
        0;

    z-index:
        1;

    width:
        100%;

    height:
        100%;

    object-fit:
        contain;

    object-position:
        center;
}


/* ============================================================
   KACHEL
   ============================================================ */

.mw-card-media {
    height:
        225px;

    border-bottom:
        1px solid
        #795128;
}

.mw-card-overlay {
    position:
        absolute;

    inset:
        0;

    z-index:
        2;

    background:
        linear-gradient(
            180deg,
            rgba(3,7,10,.03),
            rgba(3,7,10,.17) 46%,
            rgba(3,7,10,.88) 100%
        );
}

.mw-card-image-copy {
    position:
        absolute;

    left:
        0;

    right:
        0;

    bottom:
        0;

    z-index:
        3;

    padding:
        20px 21px;
}

.mw-card-type {
    margin-bottom:
        6px;

    color:
        #f2a23a;

    font-family:
        monospace;

    font-size:
        12px;

    letter-spacing:
        1.5px;
}

.mw-card-image-title {
    color:
        #00d9ff;

    font-family:
        Orbitron,
        Arial,
        sans-serif;

    font-size:
        30px;

    line-height:
        1.08;

    text-shadow:
        0 2px 10px #000,
        0 0 18px
        rgba(0,217,255,.52);
}

.mw-card-body {
    display:
        flex;

    flex-direction:
        column;

    min-height:
        205px;

    padding:
        21px 22px 19px;
}

.mw-card-body h2 {
    margin:
        0 0 10px;

    color:
        #f2a23a;

    font-size:
        22px;
}

.mw-card-body p {
    flex-grow:
        1;

    margin:
        0;

    color:
        #e0e8eb;

    font-size:
        16px;

    line-height:
        1.58;
}

.mw-card-footer {
    display:
        flex;

    justify-content:
        space-between;

    margin-top:
        20px;

    padding-top:
        13px;

    border-top:
        1px solid
        rgba(0,217,255,.16);

    color:
        #00d9ff;

    font-family:
        monospace;

    font-size:
        12px;

    letter-spacing:
        1px;
}


/* ============================================================
   DETAIL
   ============================================================ */

.mw-detail-topline {
    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        16px;

    margin-bottom:
        15px;
}

.mw-back {
    padding:
        9px 14px;

    border:
        1px solid
        #1c4c60;

    border-radius:
        8px;

    background:
        #0b1822;

    color:
        #00d9ff;

    cursor:
        pointer;
}

.mw-system-label {
    color:
        #78909c;

    font-family:
        monospace;

    font-size:
        12px;

    letter-spacing:
        1px;
}

.mw-detail-hero {
    min-height:
        400px;

    border:
        1px solid
        #356172;

    border-radius:
        16px;

    box-shadow:
        0 18px 48px
        rgba(0,0,0,.38);
}

.mw-detail-overlay {
    position:
        absolute;

    inset:
        0;

    z-index:
        2;

    background:
        linear-gradient(
            90deg,
            rgba(5,14,21,.94),
            rgba(5,14,21,.68) 40%,
            rgba(5,14,21,.15) 78%
        ),

        linear-gradient(
            0deg,
            rgba(3,8,12,.82),
            transparent 55%
        );
}

.mw-detail-copy {
    position:
        absolute;

    left:
        0;

    bottom:
        0;

    z-index:
        3;

    max-width:
        820px;

    padding:
        34px 38px;
}

.mw-detail-copy h1 {
    margin:
        6px 0 12px;

    color:
        #00d9ff;

    font-size:
        clamp(
            38px,
            6vw,
            64px
        );

    line-height:
        1.05;

    text-shadow:
        0 2px 10px #000,
        0 0 22px
        rgba(0,217,255,.38);
}

.mw-detail-copy p {
    margin:
        0;

    color:
        #f1f6f8;

    font-size:
        18px;

    line-height:
        1.62;

    text-shadow:
        0 2px 7px
        rgba(0,0,0,.95);
}

.mw-detail-layout {
    display:
        grid;

    grid-template-columns:
        minmax(0,1fr)
        290px;

    gap:
        24px;

    margin-top:
        24px;

    align-items:
        start;
}

.mw-detail-main {
    min-width:
        0;
}

.mw-content-panel,
.mw-history-panel,
.mw-gallery-panel,
.mw-side-panel {
    border:
        1px solid
        #1c4c60;

    border-radius:
        13px;

    background:
        rgba(10,22,30,.94);

    box-shadow:
        0 14px 34px
        rgba(0,0,0,.22);
}

.mw-content-panel,
.mw-history-panel,
.mw-gallery-panel {
    padding:
        27px 30px;
}

.mw-content-panel p,
.mw-history-panel p {
    margin:
        0 0 1.15em;

    color:
        #e4ecef;

    font-size:
        17px;

    line-height:
        1.76;
}

.mw-history-panel,
.mw-gallery-panel {
    margin-top:
        22px;
}

.mw-history-panel h2,
.mw-gallery-panel h2 {
    margin:
        0 0 18px;

    color:
        #f2a23a;
}

.mw-detail-side {
    position:
        sticky;

    top:
        24px;
}

.mw-side-panel {
    margin-bottom:
        18px;

    padding:
        18px;
}

.mw-side-panel-title {
    margin-bottom:
        12px;

    color:
        #78909c;

    font-family:
        monospace;

    font-size:
        12px;

    letter-spacing:
        1.5px;
}

.mw-action {
    display:
        flex;

    justify-content:
        space-between;

    gap:
        12px;

    width:
        100%;

    margin-top:
        9px;

    padding:
        12px 13px;

    border:
        1px solid
        #285965;

    border-radius:
        8px;

    background:
        #0b1d27;

    color:
        #00d9ff;

    text-decoration:
        none;

    overflow-wrap:
        anywhere;
}

.mw-action.download {
    border-color:
        #356b51;

    color:
        #31d17c;
}


/* ============================================================
   NORMALE GALERIE
   ============================================================ */

.mw-gallery-grid {
    display:
        grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(260px,1fr)
        );

    gap:
        16px;
}

.mw-gallery-item {
    margin:
        0;

    overflow:
        hidden;

    border:
        1px solid
        #244958;

    border-radius:
        10px;

    background:
        #04090d;
}

.mw-gallery-item img {
    display:
        block;

    width:
        100%;

    height:
        auto;

    max-height:
        820px;

    object-fit:
        contain;
}

.mw-gallery-item figcaption {
    padding:
        10px 12px;

    color:
        #8ca2ab;
}


/* ============================================================
   BLOG / TAGEBUCH
   CHAT-ARTIG
   ============================================================ */

.mw-blog-feed {
    width:
        min(
            100%,
            1020px
        );

    margin:
        0 auto;
}

.mw-chat-post {
    display:
        grid;

    grid-template-columns:
        82px
        minmax(0,1fr);

    gap:
        18px;

    margin-bottom:
        28px;

    align-items:
        start;
}

.mw-chat-avatar {
    width:
        76px;

    height:
        76px;

    overflow:
        hidden;

    border:
        2px solid
        #b97732;

    border-radius:
        50%;

    background:
        #071015;

    box-shadow:
        0 0 18px
        rgba(242,162,58,.15);
}

.mw-chat-avatar img {
    display:
        block;

    width:
        100%;

    height:
        100%;

    object-fit:
        cover;
}

.mw-chat-bubble {
    position:
        relative;

    min-width:
        0;

    padding:
        22px 25px;

    border:
        1px solid
        #1c4c60;

    border-radius:
        6px 15px 15px 15px;

    background:
        rgba(9,21,29,.95);

    box-shadow:
        0 12px 30px
        rgba(0,0,0,.24);
}

.mw-chat-bubble::before {
    content:
        "";

    position:
        absolute;

    left:
        -9px;

    top:
        22px;

    width:
        16px;

    height:
        16px;

    border-left:
        1px solid
        #1c4c60;

    border-bottom:
        1px solid
        #1c4c60;

    background:
        #09151d;

    transform:
        rotate(45deg);
}

.mw-chat-header {
    margin-bottom:
        17px;
}

.mw-chat-header h2 {
    margin:
        0 0 5px;

    color:
        #00d9ff;

    font-size:
        25px;

    line-height:
        1.22;
}

.mw-chat-date {
    color:
        #f2a23a;

    font-family:
        monospace;

    font-size:
        12px;

    letter-spacing:
        .8px;
}

.mw-chat-text p {
    margin:
        0 0 1em;

    color:
        #e4ecef;

    font-size:
        17px;

    line-height:
        1.72;
}

.mw-chat-text p:last-child {
    margin-bottom:
        0;
}


/* Bilder hängen DIREKT unter dem Blogtext */

.mw-chat-gallery {
    display:
        grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(220px,1fr)
        );

    gap:
        12px;

    margin-top:
        20px;

    padding-top:
        17px;

    border-top:
        1px solid
        rgba(0,217,255,.15);
}

.mw-chat-gallery figure {
    margin:
        0;

    overflow:
        hidden;

    border:
        1px solid
        #244958;

    border-radius:
        9px;

    background:
        #04090d;
}

.mw-chat-gallery img {
    display:
        block;

    width:
        100%;

    height:
        auto;

    max-height:
        760px;

    object-fit:
        contain;
}

.mw-chat-gallery figcaption {
    padding:
        8px 10px;

    color:
        #78909c;

    font-size:
        12px;
}


/* ============================================================
   STARTSEITE: LETZTES UPDATE
   ============================================================ */

.mw-site-update {
    width:
        fit-content;

    max-width:
        calc(100% - 30px);

    margin:
        28px auto 8px;

    padding:
        8px 13px;

    border:
        1px solid
        rgba(0,217,255,.25);

    border-radius:
        7px;

    background:
        rgba(5,16,23,.70);

    color:
        #78909c;

    font-family:
        monospace;

    font-size:
        12px;

    letter-spacing:
        .6px;

    text-align:
        center;
}

.mw-site-update strong {
    color:
        #31d17c;

    font-weight:
        normal;
}


/* ============================================================
   EMPTY
   ============================================================ */

.mw-empty {
    grid-column:
        1 / -1;

    padding:
        42px;

    border:
        1px dashed
        #285965;

    border-radius:
        12px;

    color:
        #78909c;

    text-align:
        center;

    font-family:
        monospace;
}


/* ============================================================
   MOBIL
   ============================================================ */

@media (max-width:900px) {

    .mw-detail-layout {
        grid-template-columns:
            1fr;
    }

    .mw-detail-side {
        position:
            static;
    }

    .mw-detail-hero {
        min-height:
            330px;
    }
}


@media (max-width:600px) {

    .mw-pub {
        width:
            calc(100% - 20px);
    }

    .mw-tile-grid {
        grid-template-columns:
            minmax(
                0,
                390px
            );
    }

    .mw-chat-post {
        grid-template-columns:
            58px
            minmax(0,1fr);

        gap:
            12px;
    }

    .mw-chat-avatar {
        width:
            54px;

        height:
            54px;
    }

    .mw-chat-bubble {
        padding:
            17px;
    }

    .mw-chat-header h2 {
        font-size:
            20px;
    }

    .mw-chat-text p {
        font-size:
            16px;
    }
}


/* ==========================================================
   MUCKY BLOG FOLD V4
   ========================================================== */

.mw-chat-summary {
    margin-top: 14px;
    line-height: 1.65;
    font-size: 1.02em;
}

.mw-chat-details {
    margin-top: 14px;
}

.mw-chat-toggle {
    cursor: pointer;
    user-select: none;
    list-style: none;

    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: #40d9ff;
    font-weight: 700;
}

.mw-chat-toggle::-webkit-details-marker {
    display: none;
}

.mw-chat-toggle::before {
    content: "▸";
    display: inline-block;
    transition: transform 0.15s ease;
}

.mw-chat-details[open] > .mw-chat-toggle::before {
    transform: rotate(90deg);
}

.mw-chat-toggle:hover {
    text-decoration: underline;
}

.mw-chat-expanded {
    margin-top: 15px;
    padding-top: 2px;
}



/* ==========================================================
   MUCKY AUTO PROJECT DOWNLOADS V4
   ========================================================== */

.mw-auto-downloads {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(
                min(100%, 330px),
                1fr
            )
        );
    gap: 18px;
    margin-top: 24px;
}

.mw-auto-download-card {
    padding: 20px;

    border:
        1px solid
        rgba(64, 217, 255, 0.35);

    border-radius: 12px;

    background:
        rgba(5, 15, 22, 0.92);

    box-shadow:
        0 10px 32px
        rgba(0, 0, 0, 0.25);
}

.mw-auto-download-kicker {
    margin-bottom: 7px;

    color: #E7C563;

    font-size: 0.72rem;
    font-weight: 800;

    letter-spacing: 0.13em;
}

.mw-auto-download-title {
    margin:
        0
        0
        11px
        0;

    color: #40D9FF;
}

.mw-auto-download-summary {
    margin-bottom: 14px;

    color: #E7EDF2;

    line-height: 1.55;
}

.mw-auto-download-project {
    margin-bottom: 14px;
}

.mw-auto-download-project a {
    color: #E7C563;
    text-decoration: none;
    font-weight: 700;
}

.mw-auto-download-project a:hover {
    text-decoration: underline;
}

.mw-auto-download-files {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mw-auto-download-file {
    display: flex;
    align-items: center;
    gap: 9px;

    padding: 10px 12px;

    border:
        1px solid
        rgba(64, 217, 255, 0.25);

    border-radius: 7px;

    background:
        rgba(64, 217, 255, 0.06);

    color: #E7EDF2;

    text-decoration: none;

    overflow-wrap: anywhere;
}

.mw-auto-download-file:hover {
    border-color:
        rgba(64, 217, 255, 0.65);

    background:
        rgba(64, 217, 255, 0.11);
}

.mw-auto-download-arrow {
    color: #40D9FF;
    font-size: 1.15em;
    font-weight: 900;
}



/* ==========================================================
   MUCKY AUTO PROJECT DOWNLOADS V4 · LAYOUT V2
   Auto-Downloads benutzen den normalen Tile-Grid.
   ========================================================== */

.mw-tile-grid > .mw-auto-download-card {
    cursor: default;
    min-height: 0;
    overflow: visible;
}

.mw-tile-grid > .mw-auto-download-card:hover {
    transform: none;
}

.mw-auto-download-card {
    display: block;
}

.mw-auto-download-card .mw-auto-download-title {
    margin: 0 0 12px 0;
    color: #40D9FF;
    font-size: 1.45rem;
    line-height: 1.2;
}

.mw-auto-download-card .mw-auto-download-summary {
    margin: 0 0 16px 0;
    color: #E7EDF2;
    line-height: 1.55;
}

.mw-auto-download-card .mw-auto-download-project {
    margin: 0 0 18px 0;
}

.mw-auto-download-card .mw-auto-download-project a {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: #E7C563;
    text-decoration: none;
    font-weight: 700;
}

.mw-auto-download-card .mw-auto-download-project a:hover {
    color: #40D9FF;
}

.mw-auto-download-card .mw-auto-download-files {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.mw-auto-download-card a.mw-auto-download-file,
.mw-auto-download-card a.mw-auto-download-file:link,
.mw-auto-download-card a.mw-auto-download-file:visited {
    display: flex;
    align-items: center;
    gap: 10px;

    box-sizing: border-box;
    width: 100%;

    padding: 11px 13px;

    border:
        1px solid
        rgba(64, 217, 255, 0.35);

    border-radius: 7px;

    background:
        rgba(64, 217, 255, 0.07);

    color: #E7EDF2;
    text-decoration: none;

    font-family: inherit;
    font-size: 0.93rem;
    line-height: 1.3;

    overflow-wrap: anywhere;
}

.mw-auto-download-card a.mw-auto-download-file:hover {
    border-color:
        rgba(64, 217, 255, 0.8);

    background:
        rgba(64, 217, 255, 0.14);

    color: #FFFFFF;
}

.mw-auto-download-card .mw-auto-download-arrow {
    flex: 0 0 auto;

    color: #40D9FF;
    font-size: 1.25rem;
    font-weight: 900;
}


/* ==========================================================
   MUCKY DOWNLOADS · SINGLE COLUMN V3
   Download-Karten immer untereinander.
   ========================================================== */

.mw-tile-grid > .mw-auto-download-card {
    grid-column: 1 / -1;

    box-sizing: border-box;

    width: min(100%, 820px);
    max-width: 820px;

    justify-self: center;

    padding: 22px 26px;
}

.mw-auto-download-card .mw-auto-download-files {
    width: 100%;
}

.mw-auto-download-card a.mw-auto-download-file,
.mw-auto-download-card a.mw-auto-download-file:link,
.mw-auto-download-card a.mw-auto-download-file:visited {
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 700px) {

    .mw-tile-grid > .mw-auto-download-card {
        width: 100%;
        max-width: none;

        padding: 18px 16px;
    }
}



/* ==========================================================
   MUCKY GALLERY LIGHTBOX V4
   ========================================================== */

.mw-gallery-item img,
.mw-chat-gallery img {
    cursor: zoom-in;
}

.mw-gallery-item img:hover,
.mw-chat-gallery img:hover {
    filter: brightness(1.08);
}

html.mw-lightbox-open {
    overflow: hidden;
}

.mw-gallery-lightbox[hidden] {
    display: none !important;
}

.mw-gallery-lightbox {
    position: fixed;
    inset: 0;

    z-index: 999999;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    padding: 32px;

    background:
        rgba(0, 0, 0, 0.88);

    backdrop-filter:
        blur(6px);

    cursor: zoom-out;
}

.mw-gallery-lightbox-image {
    display: block;

    width: auto;
    height: auto;

    max-width:
        min(94vw, 1800px);

    max-height: 92vh;

    object-fit: contain;

    border-radius: 8px;

    box-shadow:
        0 16px 60px
        rgba(0, 0, 0, 0.75);

    cursor: default;
}

.mw-gallery-lightbox-close {
    position: fixed;

    top: 16px;
    right: 22px;

    z-index: 1000000;

    width: 48px;
    height: 48px;

    padding: 0;

    border:
        1px solid
        rgba(64, 217, 255, 0.5);

    border-radius: 50%;

    background:
        rgba(10, 20, 26, 0.88);

    color: #FFFFFF;

    font-size: 32px;
    line-height: 42px;

    cursor: pointer;
}

.mw-gallery-lightbox-close:hover {
    border-color: #40D9FF;
    color: #40D9FF;
}

@media (max-width: 700px) {

    .mw-gallery-lightbox {
        padding: 12px;
    }

    .mw-gallery-lightbox-image {
        max-width: 96vw;
        max-height: 88vh;
    }

    .mw-gallery-lightbox-close {
        top: 8px;
        right: 8px;

        width: 44px;
        height: 44px;
    }
}


/* MUCKY HTML5 LOCAL VIDEO V1 */

.mw-local-videos {
    display: grid;
    gap: 18px;
    margin: 0 0 26px 0;
}

.mw-local-video-item {
    width: 100%;
    overflow: hidden;
    background: #000;
    border-radius: 10px;
}

.mw-local-video-item video {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    background: #000;
}


/* ==========================================================
   MUCKY VIDEO DISPLAY V3 · BRSA · 720PX
   ========================================================== */

/*
 * Desktop bewusst NICHT über die ganze Inhaltsbreite.
 * Auf Mobilgeräten bleibt alles responsiv.
 */

.mw-video-hero,
.mw-local-videos {
    width: min(100%, 720px);
    margin-left: auto;
    margin-right: auto;
}

.mw-video-hero {
    margin-top: 0;
    margin-bottom: 24px;
}

.mw-video-hero img {
    display: block;
    width: 100%;
    max-width: 720px;
    max-height: 405px;
    margin: 0 auto;
    object-fit: contain;
}

.mw-local-videos {
    display: grid;
    gap: 18px;
    margin-top: 0;
    margin-bottom: 26px;
}

.mw-local-video-item {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    overflow: hidden;
    background: #000;
    border-radius: 10px;
}

.mw-local-video-item video {
    display: block;
    width: 100%;
    height: auto;
    max-width: 720px;
    margin: 0 auto;
    background: #000;
}

@media (max-width: 700px) {

    .mw-video-hero,
    .mw-local-videos,
    .mw-local-video-item,
    .mw-local-video-item video {
        width: 100%;
        max-width: 100%;
    }

    .mw-video-hero img {
        width: 100%;
        max-width: 100%;
        max-height: none;
    }
}


/* ==========================================================
   MUCKY VIDEO / SINGLE IMAGE LAYOUT V4 · BRSA
   ========================================================== */

/*
 * Video hat auf Desktop eine klare Zielbreite.
 * Unterhalb davon schrumpft es stumpf mit dem Viewport.
 */

.mw-local-videos {
    width: min(100%, 720px);
    margin-left: auto;
    margin-right: auto;
}

.mw-local-video-item {
    width: min(100%, 720px);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.mw-local-video-item video {
    display: block;
    width: 100%;
    max-width: 720px;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}


/*
 * Eine Gallery mit genau EINEM echten zusätzlichen Bild
 * darf nicht die komplette Inhaltsfläche aufblasen.
 */

.mw-gallery-panel.mw-gallery-single {
    width: min(100%, 640px);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.mw-gallery-panel.mw-gallery-single .mw-gallery-grid {
    display: block;
}

.mw-gallery-panel.mw-gallery-single .mw-gallery-item {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.mw-gallery-panel.mw-gallery-single .mw-gallery-item img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 540px;
    height: auto;
    object-fit: contain;
    margin-left: auto;
    margin-right: auto;
}


@media (max-width: 700px) {

    .mw-local-videos,
    .mw-local-video-item,
    .mw-local-video-item video,
    .mw-gallery-panel.mw-gallery-single {
        width: 100%;
        max-width: 100%;
    }

    .mw-gallery-panel.mw-gallery-single .mw-gallery-item img {
        max-width: 100%;
        max-height: none;
    }
}

