/*
 * BROXONARO — ACERVO TEMÁTICO
 * Piloto visual.
 *
 * Princípios:
 * - meme first
 * - carvão + creme
 * - mostarda somente como acento
 * - mídia maior que interface
 * - contexto factual no fim
 */

:root {
    --brx-bg: #f1eee6;
    --brx-surface: #f8f5ee;
    --brx-ink: #20201d;
    --brx-muted: #706e66;
    --brx-line: rgba(32, 32, 29, .16);
    --brx-accent: #d6a900;

    --brx-dark: #1d1f20;
    --brx-dark-2: #252728;
    --brx-dark-text: #f3efe4;
    --brx-dark-muted: #b9b6ad;

    --brx-container: 1460px;
    --brx-reading: 850px;

    --brx-radius: 7px;
}

/* ============================================================
   BASE
   ============================================================ */

html {
    scroll-behavior: smooth;
}

body.theme-page {
    margin: 0;
    background: var(--brx-bg);
    color: var(--brx-ink);
    font-family:
        Inter,
        "IBM Plex Sans",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.55;
}

body.theme-page *,
body.theme-page *::before,
body.theme-page *::after {
    box-sizing: border-box;
}

body.theme-page img,
body.theme-page video {
    max-width: 100%;
}

body.theme-page a {
    color: inherit;
}

body.theme-page main {
    display: block;
}

/* ============================================================
   HEADER
   ============================================================ */

body.theme-page .brx-universal-header {
    position: relative;
    z-index: 100;
    background: #191b1c;
    color: #f6f1e5;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

body.theme-page .brx-universal-inner {
    width: min(calc(100% - 48px), var(--brx-container));
    min-height: 76px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

body.theme-page .brx-universal-brand {
    display: flex;
    align-items: center;
    gap: 11px;

    color: inherit;
    text-decoration: none;
}

body.theme-page .brx-universal-brand img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

body.theme-page .brx-universal-brand > div {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

body.theme-page .brx-universal-brand strong {
    font-size: 16px;
    letter-spacing: .045em;
}

body.theme-page .brx-universal-brand span {
    margin-top: 5px;
    color: #c9c5ba;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .16em;
}

body.theme-page .brx-universal-nav {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.2vw, 34px);
}

body.theme-page .brx-universal-nav a {
    position: relative;
    color: #e8e4da;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
}

body.theme-page .brx-universal-nav a:hover {
    color: #fff;
}

body.theme-page .brx-universal-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -8px;
    height: 2px;
    background: var(--brx-accent);
    transition: right .18s ease;
}

body.theme-page .brx-universal-nav a:hover::after {
    right: 0;
}

body.theme-page .brx-universal-mobile {
    display: none;
}

/* ============================================================
   HERO — COMPACTO
   ============================================================ */

body.theme-page .page-hero {
    width: min(calc(100% - 48px), var(--brx-container));
    margin: 0 auto;
    padding: clamp(54px, 7vw, 96px) 0 clamp(42px, 5vw, 68px);

    border-bottom: 1px solid var(--brx-line);
}

body.theme-page .page-hero::before {
    content: "";
    display: block;

    width: 62px;
    height: 5px;

    margin-bottom: 25px;
    background: var(--brx-accent);
}

body.theme-page .kicker {
    display: block;
    margin-bottom: 13px;

    color: #947500;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

body.theme-page .page-hero h1 {
    max-width: 1100px;
    margin: 0;

    color: var(--brx-ink);
    font-size: clamp(54px, 8.1vw, 126px);
    font-weight: 900;
    line-height: .84;
    letter-spacing: -.065em;
    text-transform: uppercase;
}

body.theme-page .page-hero > p {
    max-width: 700px;
    margin: 30px 0 0;

    color: #57564f;
    font-size: clamp(16px, 1.35vw, 20px);
    line-height: 1.55;
}

body.theme-page .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 28px;
}

body.theme-page .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 39px;
    padding: 0 15px;

    border: 1px solid #aaa69c;
    border-radius: 999px;

    color: var(--brx-ink);
    text-decoration: none;

    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

body.theme-page .btn:hover {
    background: rgba(0,0,0,.04);
}

body.theme-page .btn.primary {
    border-color: var(--brx-ink);
    background: var(--brx-ink);
    color: #fff;
}

/* ============================================================
   COLLECTION
   ============================================================ */

body.theme-page .collection {
    width: min(calc(100% - 48px), var(--brx-container));
    margin: 0 auto;
}

body.theme-page .collection-section {
    padding: clamp(54px, 7vw, 96px) 0;
    border-bottom: 1px solid var(--brx-line);
}

body.theme-page .collection-section > h2 {
    margin: 0 0 clamp(28px, 4vw, 52px);

    color: var(--brx-ink);
    font-size: clamp(28px, 4.1vw, 58px);
    font-weight: 900;
    line-height: .98;
    letter-spacing: -.04em;
    text-transform: uppercase;
}

/* ============================================================
   GRID DE MEMES
   ============================================================ */

body.theme-page .media-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: clamp(18px, 2vw, 30px);
}

body.theme-page .media-card {
    min-width: 0;
    margin: 0;
}

body.theme-page .media-card .visual {
    position: relative;
    overflow: hidden;

    background: #e2ded4;
    border: 1px solid rgba(32,32,29,.13);
    border-radius: var(--brx-radius);
}

body.theme-page .media-card .visual > img {
    display: block;
    width: 100%;
    height: auto;

    transition:
        transform .25s ease,
        filter .25s ease;
}

body.theme-page .media-card:hover .visual > img {
    transform: scale(1.012);
}

/*
 * Primeira peça ganha um pouco mais de presença,
 * sem virar um hero artificial.
 */
body.theme-page .media-grid:not(.two) > .media-card:first-child {
    grid-column: span 2;
}

/* ============================================================
   VÍDEOS
   ============================================================ */

body.theme-page .media-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 3vw, 44px);
}

body.theme-page .video-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #111;
}

body.theme-page .video-shell > img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

body.theme-page .video-shell .play {
    position: absolute;
    left: 50%;
    top: 50%;

    width: 66px;
    height: 66px;

    transform: translate(-50%, -50%);

    border: 0;
    border-radius: 50%;

    background: var(--brx-accent);
    color: #171717;

    cursor: pointer;

    font-size: 20px;
    line-height: 1;

    box-shadow: 0 7px 30px rgba(0,0,0,.25);
}

body.theme-page .video-shell .play:hover {
    transform: translate(-50%, -50%) scale(1.06);
}

body.theme-page .media-card .meta {
    padding: 15px 2px 0;
}

body.theme-page .media-card .meta h3 {
    max-width: 620px;
    margin: 0;

    color: var(--brx-ink);
    font-size: clamp(16px, 1.5vw, 22px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -.018em;
}

/* ============================================================
   CONTEXTO — DEPOIS DO ACERVO E VISUALMENTE SECUNDÁRIO
   ============================================================ */

body.theme-page .contexto-acervo {
    width: 100%;
    padding-top: clamp(58px, 8vw, 110px);
    padding-bottom: clamp(64px, 8vw, 110px);
}

body.theme-page .contexto-acervo > .kicker {
    margin-bottom: 18px;
}

/*
 * O bloco antigo é mantido no HTML, mas deixa de parecer
 * uma segunda página principal.
 */
body.theme-page .contexto-acervo .seo-contexto-episodio,
body.theme-page .contexto-acervo .seo-contexto-pagina {
    max-width: var(--brx-reading);
    margin: 0;

    padding: 0;

    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

body.theme-page .contexto-acervo .seo-contexto-episodio h2,
body.theme-page .contexto-acervo .seo-contexto-pagina h2 {
    margin: 0 0 25px;

    color: var(--brx-ink);
    font-size: clamp(26px, 3.2vw, 44px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.035em;
    text-transform: uppercase;
}

body.theme-page .contexto-acervo p {
    margin: 0 0 17px;

    color: #55534d;
    font-size: 15px;
    line-height: 1.72;
}

body.theme-page .contexto-acervo strong {
    color: var(--brx-ink);
}

body.theme-page .seo-contexto-fontes {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--brx-line);
}

body.theme-page .seo-contexto-fontes > strong {
    display: block;
    margin-bottom: 12px;

    font-size: 11px;
    font-weight: 900;
    letter-spacing: .13em;
}

body.theme-page .seo-contexto-fontes ul {
    margin: 0;
    padding-left: 20px;
}

body.theme-page .seo-contexto-fontes li {
    margin: 8px 0;
    color: #66645d;
    font-size: 13px;
    line-height: 1.5;
}

body.theme-page .seo-contexto-fontes a {
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* ============================================================
   FOOTER
   ============================================================ */

body.theme-page .site-footer {
    margin: 0;
    padding: 54px max(24px, calc((100vw - var(--brx-container)) / 2));

    background: var(--brx-dark);
    color: var(--brx-dark-text);

    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: start;
}

body.theme-page .site-footer > div {
    display: flex;
    flex-direction: column;
}

body.theme-page .site-footer > div strong {
    font-size: 18px;
    letter-spacing: .04em;
}

body.theme-page .site-footer > div span {
    margin-top: 5px;
    color: var(--brx-dark-muted);
    font-size: 11px;
}

body.theme-page .site-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 18px;
}

body.theme-page .site-footer nav a {
    color: var(--brx-dark-text);
    text-decoration: none;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

body.theme-page .site-footer small {
    grid-column: 1 / -1;

    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,.12);

    color: #8f8d87;
    font-size: 11px;
}

/* ============================================================
   RESPONSIVO
   ============================================================ */

@media (max-width: 980px) {
    body.theme-page .media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.theme-page .media-grid:not(.two) > .media-card:first-child {
        grid-column: span 2;
    }

    body.theme-page .brx-universal-nav {
        display: none;
    }

    body.theme-page .brx-universal-mobile {
        display: block;
        position: relative;
    }

    body.theme-page .brx-universal-mobile summary {
        cursor: pointer;
        list-style: none;

        font-size: 11px;
        font-weight: 900;
        letter-spacing: .08em;
    }

    body.theme-page .brx-universal-mobile summary::-webkit-details-marker {
        display: none;
    }

    body.theme-page .brx-universal-mobile-panel {
        position: absolute;
        right: 0;
        top: 35px;

        min-width: 210px;
        padding: 12px;

        background: #202223;
        border: 1px solid rgba(255,255,255,.12);
        border-radius: 6px;

        display: flex;
        flex-direction: column;
    }

    body.theme-page .brx-universal-mobile-panel a {
        padding: 11px 10px;

        color: #eee9dd;
        text-decoration: none;

        font-size: 12px;
        font-weight: 800;
    }
}

@media (max-width: 680px) {
    body.theme-page .brx-universal-inner,
    body.theme-page .page-hero,
    body.theme-page .collection {
        width: min(calc(100% - 28px), var(--brx-container));
    }

    body.theme-page .brx-universal-inner {
        min-height: 66px;
    }

    body.theme-page .page-hero {
        padding-top: 44px;
        padding-bottom: 38px;
    }

    body.theme-page .page-hero h1 {
        font-size: clamp(47px, 16vw, 78px);
    }

    body.theme-page .page-hero > p {
        margin-top: 22px;
        font-size: 15px;
    }

    body.theme-page .hero-actions {
        margin-top: 23px;
    }

    body.theme-page .media-grid,
    body.theme-page .media-grid.two {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    body.theme-page .media-grid:not(.two) > .media-card:first-child {
        grid-column: auto;
    }

    body.theme-page .collection-section {
        padding: 54px 0;
    }

    body.theme-page .media-card .visual {
        border-radius: 4px;
    }

    body.theme-page .site-footer {
        grid-template-columns: 1fr;
        padding: 44px 20px;
    }

    body.theme-page .site-footer nav {
        justify-content: flex-start;
    }

    body.theme-page .site-footer small {
        grid-column: auto;
    }
}

/* ============================================================
   ACESSIBILIDADE
   ============================================================ */

body.theme-page a:focus-visible,
body.theme-page button:focus-visible,
body.theme-page summary:focus-visible {
    outline: 3px solid var(--brx-accent);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    body.theme-page *,
    body.theme-page *::before,
    body.theme-page *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}


/* BRX-PREVIEW-V2-START */

/* ============================================================
   HERO — FAIXA ESCURA REAL
   ============================================================ */

body.theme-page .page-hero {
    background: #1c1e1e !important;
    color: #f3efe4 !important;

    border-bottom: 0 !important;

    box-shadow:
        0 0 0 100vmax #1c1e1e;

    clip-path:
        inset(0 -100vmax);
}

body.theme-page .page-hero::before {
    background: #d6a900 !important;
}

body.theme-page .page-hero .kicker {
    color: #d6a900 !important;
}

body.theme-page .page-hero h1 {
    color: #f3efe4 !important;
    opacity: 1 !important;

    font-size:
        clamp(52px, 7.3vw, 112px);

    text-shadow: none !important;
}

body.theme-page .page-hero > p {
    color: #bbb7ad !important;

    max-width: 720px;
}

body.theme-page .page-hero .btn {
    color: #ebe6da !important;
    border-color:
        rgba(235,230,218,.42) !important;
}

body.theme-page .page-hero .btn:hover {
    background:
        rgba(255,255,255,.08) !important;
}

body.theme-page .page-hero .btn.primary {
    background: #d6a900 !important;
    border-color: #d6a900 !important;
    color: #181918 !important;
}


/* ============================================================
   ACERVO — FAIXA CLARA
   ============================================================ */

body.theme-page
.collection > .collection-section:first-of-type {
    background: #f1eee6;

    box-shadow:
        0 0 0 100vmax #f1eee6;

    clip-path:
        inset(0 -100vmax);
}

body.theme-page
.collection > .collection-section:first-of-type > h2 {
    position: relative;
}

body.theme-page
.collection > .collection-section:first-of-type > h2::after {
    content: "";

    display: block;

    width: 78px;
    height: 5px;

    margin-top: 22px;

    background: #d6a900;
}


/* ============================================================
   VÍDEOS — SEGUNDA FAIXA ESCURA
   ============================================================ */

body.theme-page
.collection > .collection-section:nth-of-type(2) {
    background: #202222;

    border-bottom: 0;

    box-shadow:
        0 0 0 100vmax #202222;

    clip-path:
        inset(0 -100vmax);
}

body.theme-page
.collection > .collection-section:nth-of-type(2)
.kicker {
    color: #d6a900;
}

body.theme-page
.collection > .collection-section:nth-of-type(2)
> h2 {
    color: #f3efe4;
}

body.theme-page
.collection > .collection-section:nth-of-type(2)
.media-card .meta h3 {
    color: #eee9dd;
}

body.theme-page
.collection > .collection-section:nth-of-type(2)
.media-card .visual {
    border-color:
        rgba(255,255,255,.15);
}


/* ============================================================
   CONTEXTO — FAIXA AREIA / COMPACTA
   ============================================================ */

body.theme-page .contexto-acervo {
    background: #ddd7ca;

    border-bottom: 0;

    box-shadow:
        0 0 0 100vmax #ddd7ca;

    clip-path:
        inset(0 -100vmax);

    padding-top:
        clamp(48px, 6vw, 78px);

    padding-bottom:
        clamp(48px, 6vw, 78px);
}

/* kicker antigo deixa de ser necessário */
body.theme-page
.contexto-acervo > .kicker {
    display: none;
}

body.theme-page .brx-contexto-details {
    width: min(100%, 960px);

    margin: 0;

    border-top:
        5px solid #d6a900;

    border-bottom:
        1px solid rgba(32,32,29,.25);

    background:
        rgba(255,255,255,.17);
}

body.theme-page
.brx-contexto-details > summary {
    list-style: none;
    cursor: pointer;

    min-height: 104px;

    padding:
        25px 4px 25px 0;

    display: grid;

    grid-template-columns:
        1fr auto auto;

    align-items: center;

    gap: 20px;
}

body.theme-page
.brx-contexto-details > summary::-webkit-details-marker {
    display: none;
}

body.theme-page
.brx-contexto-details > summary span {
    color: #22231f;

    font-size:
        clamp(27px, 3vw, 43px);

    font-weight: 900;

    line-height: 1;

    letter-spacing: -.035em;
}

body.theme-page
.brx-contexto-details > summary small {
    color: #716c61;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: .11em;

    text-transform: uppercase;
}

body.theme-page
.brx-contexto-details > summary::after {
    content: "+";

    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    border:
        1px solid rgba(32,32,29,.34);

    border-radius: 50%;

    color: #242520;

    font-size: 24px;

    font-weight: 500;
}

body.theme-page
.brx-contexto-details[open]
> summary::after {
    content: "−";
}

body.theme-page .brx-contexto-body {
    max-width: 840px;

    padding:
        0 0 38px;
}

body.theme-page
.brx-contexto-body p {
    color: #4e4b43;

    font-size: 15px;

    line-height: 1.72;
}

body.theme-page
.brx-contexto-body
.seo-contexto-fontes {
    margin-top: 30px;

    padding-top: 23px;

    border-top:
        1px solid rgba(32,32,29,.20);
}

body.theme-page
.brx-contexto-body
.seo-contexto-fontes > strong {
    color: #22231f;
}

body.theme-page
.brx-contexto-body
.seo-contexto-fontes a {
    color: #49463f;
}


/* ============================================================
   PEQUENOS AJUSTES DE RITMO
   ============================================================ */

body.theme-page .collection-section {
    padding-top:
        clamp(65px, 7vw, 105px);

    padding-bottom:
        clamp(65px, 7vw, 105px);
}

body.theme-page .media-grid {
    gap:
        clamp(22px, 2.3vw, 36px);
}

@media (max-width: 680px) {

    body.theme-page
    .brx-contexto-details > summary {
        grid-template-columns:
            1fr auto;

        min-height: 86px;
    }

    body.theme-page
    .brx-contexto-details
    > summary small {
        display: none;
    }

    body.theme-page
    .brx-contexto-details
    > summary span {
        font-size: 27px;
    }
}

/* BRX-PREVIEW-V2-END */


/* BRX-PREVIEW-V3-START */

/* ============================================================
   DESTAQUE
   ============================================================ */

body.theme-page .destaque-section {
    background: #d9d2c4 !important;

    box-shadow:
        0 0 0 100vmax #d9d2c4 !important;

    clip-path: inset(0 -100vmax);

    border-bottom:
        1px solid rgba(32,32,29,.16) !important;
}

body.theme-page .destaque-section .kicker {
    margin-bottom: 24px;
}

body.theme-page .destaque-card {
    max-width: 980px;
}

body.theme-page .destaque-card .visual {
    background: #ece8df;
}

body.theme-page .destaque-card .visual img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

body.theme-page .destaque-card .meta {
    padding-top: 18px;
}

body.theme-page .destaque-card .meta h3 {
    max-width: 900px;

    font-size:
        clamp(18px, 1.8vw, 26px);
}


/* ============================================================
   MEMES E SÁTIRAS
   ============================================================ */

body.theme-page .memes-section {
    background: #f1eee6 !important;

    color: #20201d !important;

    box-shadow:
        0 0 0 100vmax #f1eee6 !important;

    clip-path: inset(0 -100vmax);

    border-bottom:
        1px solid rgba(32,32,29,.16) !important;
}

body.theme-page .memes-section > h2 {
    color: #20201d !important;
}

body.theme-page .memes-section > h2::after {
    content: "";

    display: block;

    width: 78px;
    height: 5px;

    margin-top: 22px;

    background: #d6a900;
}

body.theme-page .memes-section .media-card {
    color: #20201d;
}


/* ============================================================
   VÍDEOS — não depender mais de nth-of-type
   ============================================================ */

body.theme-page .videos-section {
    background: #202222 !important;

    color: #f3efe4 !important;

    box-shadow:
        0 0 0 100vmax #202222 !important;

    clip-path: inset(0 -100vmax);

    border-bottom: 0 !important;
}

body.theme-page .videos-section .kicker {
    color: #d6a900 !important;
}

body.theme-page .videos-section > h2 {
    color: #f3efe4 !important;
}

body.theme-page
.videos-section
.media-card
.meta h3 {
    color: #eee9dd !important;
}


/* Corrige a regra antiga que usava posição da seção. */
body.theme-page
.collection > .collection-section:nth-of-type(2) {
    background: #f1eee6 !important;

    color: #20201d !important;

    box-shadow:
        0 0 0 100vmax #f1eee6 !important;
}

/* BRX-PREVIEW-V3-END */


/* BRX-PREVIEW-V4-START */

/* ============================================================
   CONTAINER CENTRAL — DESKTOP
   ============================================================ */

body.theme-page {
    --brx-container: 1280px;
}

body.theme-page .brx-universal-inner,
body.theme-page .page-hero,
body.theme-page .collection {
    width: min(
        calc(100% - 64px),
        var(--brx-container)
    );

    margin-left: auto;
    margin-right: auto;
}


/* ============================================================
   HERO — CENTRALIZA A COMPOSIÇÃO, NÃO O TEXTO
   ============================================================ */

body.theme-page .page-hero {
    padding-left: 0;
    padding-right: 0;
}

body.theme-page .page-hero h1,
body.theme-page .page-hero > p,
body.theme-page .hero-actions {
    margin-left: 0;
}


/* ============================================================
   DESTAQUE — CENTRAL E MAIOR
   ============================================================ */

body.theme-page .destaque-section {
    text-align: left;
}

body.theme-page .destaque-section > .kicker {
    width: min(100%, 880px);
    margin-left: auto;
    margin-right: auto;
}

body.theme-page .destaque-card {
    width: min(100%, 880px);
    max-width: none;

    margin-left: auto;
    margin-right: auto;
}

body.theme-page .destaque-card .visual {
    width: 100%;
}

body.theme-page .destaque-card .visual img {
    display: block;

    width: 100%;
    height: auto;

    max-height: 680px;

    object-fit: contain;
    object-position: center;

    margin: 0 auto;
}

body.theme-page .destaque-card .meta {
    max-width: 880px;
    margin: 0 auto;
}


/* ============================================================
   MEMES E SÁTIRAS — GRID REGULAR
   ============================================================ */

body.theme-page .memes-section > h2 {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

body.theme-page .memes-section .media-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap:
        clamp(24px, 2.6vw, 38px);

    width: 100%;

    margin-left: auto;
    margin-right: auto;

    align-items: start;
}

/*
 * A partir de agora não existe mais
 * "primeiro meme gigante".
 */
body.theme-page
.memes-section
.media-grid
> .media-card:first-child {
    grid-column: auto !important;
}

body.theme-page
.media-grid:not(.two)
> .media-card:first-child {
    grid-column: auto !important;
}

body.theme-page .memes-section .media-card {
    width: 100%;
    min-width: 0;
}

body.theme-page .memes-section .visual {
    width: 100%;

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

body.theme-page .memes-section .visual img {
    display: block;

    width: 100%;
    height: auto;

    object-fit: contain;
}


/* ============================================================
   VÍDEOS — MESMA LARGURA VISUAL DO RESTO
   ============================================================ */

body.theme-page .videos-section .media-grid.two {
    width: 100%;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap:
        clamp(26px, 3vw, 44px);

    margin-left: auto;
    margin-right: auto;
}


/* ============================================================
   CONTEXTO — MENOR E CENTRALIZADO
   ============================================================ */

body.theme-page .contexto-acervo {
    display: flex;
    justify-content: center;
}

body.theme-page .brx-contexto-details {
    width: min(100%, 960px);

    margin-left: auto;
    margin-right: auto;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 980px) {

    body.theme-page .brx-universal-inner,
    body.theme-page .page-hero,
    body.theme-page .collection {
        width: min(
            calc(100% - 40px),
            var(--brx-container)
        );
    }

    body.theme-page
    .memes-section
    .media-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    body.theme-page
    .destaque-card {
        width: min(100%, 760px);
    }
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 680px) {

    body.theme-page .brx-universal-inner,
    body.theme-page .page-hero,
    body.theme-page .collection {
        width: calc(100% - 28px);
    }

    body.theme-page
    .memes-section
    .media-grid,

    body.theme-page
    .videos-section
    .media-grid.two {
        grid-template-columns: 1fr;
    }

    body.theme-page
    .destaque-card {
        width: 100%;
    }

    body.theme-page
    .destaque-card
    .visual img {
        max-height: none;
    }
}

/* BRX-PREVIEW-V4-END */


/* BRX-PREVIEW-V5-FINAL-REFINEMENT */

/* Destaque forte, mas sem dominar a página inteira */
body.theme-page .destaque-card,
body.theme-page .destaque-section > .kicker {
    width: min(100%, 800px);
}

body.theme-page .destaque-card .visual img {
    max-height: 620px;
}

/* Aproxima o conteúdo seguinte do destaque */
body.theme-page .destaque-section {
    padding-bottom: clamp(52px, 5vw, 72px) !important;
}

body.theme-page .memes-section {
    padding-top: clamp(58px, 5.5vw, 78px) !important;
}

/* Mantém a composição editorial centralizada */
body.theme-page .memes-section > h2,
body.theme-page .memes-section .media-grid {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}
