/* ==========================================================================
   Abutre's Race Team — Estética 100% Monocromática (Preto, Branco & Prata)
   Fiel à folha de estilo geral.css (Alfa Slab One + Roboto Slab + Xadrez P&B)
   ========================================================================== */

.raceteam-page {
    background-color: #000;
    color: #fff;
    padding-bottom: 4rem;
}

.raceteam-section {
    padding: 1.5rem 1.25rem 2.5rem;
}

/* ---------- ATO 1: HERO ---------- */
.raceteam-hero {
    position: relative;
    padding: 3.5rem 1.25rem 2.5rem;
    background:
        radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.1) 0%, rgba(18, 18, 18, 0.92) 48%, #000000 85%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    overflow: hidden;
}

.raceteam-hero-grid {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) 110px;
    align-items: center;
    gap: 2rem;
}

.raceteam-emblem-wrap {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.raceteam-hero-emblem {
    max-width: 290px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 24px rgba(255, 255, 255, 0.16));
    transition: transform 0.35s ease;
}

.raceteam-hero-emblem:hover {
    transform: scale(1.03);
}

.raceteam-hero-title {
    font-family: "Alfa Slab One", cursive;
    font-size: 2.7rem;
    letter-spacing: 2px;
    color: #ffffff;
    text-transform: uppercase;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.95);
    margin-bottom: 0.75rem;
}

.raceteam-hero-subtitle {
    max-width: 720px;
    margin: 0 auto 1.75rem;
    color: #d0d0d0;
    font-size: 1.15rem;
    line-height: 1.65;
}

/* 3 Selos de Pista Metálicos */
.raceteam-badges-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.raceteam-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.2rem;
    background: linear-gradient(145deg, #1b1b1b, #0c0c0c);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #f5f5f5;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7);
}

.raceteam-badge .icon {
    color: #cfcfcf;
}

/* Botão CTA P&B/Prata */
.raceteam-cta-btn {
    background: linear-gradient(145deg, #ffffff 0%, #d4d4d4 100%);
    color: #000000 !important;
    border: 2px solid #ffffff;
    font-family: "Roboto Slab", serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.8rem 1.8rem;
    height: auto;
    border-radius: 6px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.raceteam-cta-btn:hover {
    background: #000000;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(255, 255, 255, 0.18);
}

/* ---------- PINHEIRO DE LARGADA (CHRISTMAS TREE P&B/PRATA) ---------- */
.christmas-tree-wrap {
    display: flex;
    justify-content: center;
}

.christmas-tree {
    width: 84px;
    padding: 0.85rem 0.65rem;
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 2px solid rgba(255, 255, 255, 0.28);
    border-radius: 10px;
    box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.9), 0 10px 26px rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
}

.tree-label {
    font-size: 0.56rem;
    letter-spacing: 1px;
    font-weight: 700;
    color: #9b9b9b;
    text-transform: uppercase;
}

.tree-go-label {
    color: #ffffff;
    margin-top: 0.2rem;
}

.tree-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.18);
    margin: 0.15rem 0;
}

.tree-pair {
    display: flex;
    gap: 0.55rem;
}

.tree-bulb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #232323;
    border: 1px solid #4d4d4d;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.9);
}

.tree-bulb.is-stage {
    width: 10px;
    height: 10px;
}

.tree-bulb.stage-1 { animation: treePulseSilver 4.2s infinite 0s; }
.tree-bulb.stage-2 { animation: treePulseSilver 4.2s infinite 0.5s; }
.tree-bulb.step-1  { animation: treeStepGlow 4.2s infinite 1.1s; }
.tree-bulb.step-2  { animation: treeStepGlow 4.2s infinite 1.6s; }
.tree-bulb.step-3  { animation: treeStepGlow 4.2s infinite 2.1s; }
.tree-bulb.step-4  { animation: treeGoFlash 4.2s infinite 2.6s; }

@keyframes treePulseSilver {
    0%, 75% { background: #d4d4d4; box-shadow: 0 0 8px rgba(255, 255, 255, 0.65); }
    85%, 100% { background: #262626; box-shadow: none; }
}

@keyframes treeStepGlow {
    0%, 15% { background: #ffffff; box-shadow: 0 0 12px rgba(255, 255, 255, 0.9); }
    35%, 100% { background: #232323; box-shadow: none; }
}

@keyframes treeGoFlash {
    0%, 30% { background: #ffffff; border-color: #ffffff; box-shadow: 0 0 18px #ffffff, 0 0 30px rgba(255, 255, 255, 0.75); }
    45%, 100% { background: #232323; border-color: #4d4d4d; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
    .tree-bulb { animation: none !important; }
    .tree-bulb.is-go { background: #ffffff; box-shadow: 0 0 10px rgba(255, 255, 255, 0.7); }
}

/* ---------- ATO 2: MANIFESTO & DESTAQUES ---------- */
.raceteam-manifesto-box {
    background: linear-gradient(145deg, #121212 0%, #090909 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    padding: 2.25rem;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.75);
}

.raceteam-mascote-img {
    max-width: 240px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.9));
}

.raceteam-manifesto-title {
    font-family: "Alfa Slab One", cursive;
    font-size: 1.75rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.raceteam-manifesto-text {
    color: #d6d6d6;
    font-size: 1.05rem;
    line-height: 1.8;
    white-space: pre-line;
}

/* Cards de Destaque */
.raceteam-highlight-card {
    background: linear-gradient(160deg, #161616 0%, #0b0b0b 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.raceteam-highlight-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.85), 0 0 18px rgba(255, 255, 255, 0.12);
}

.raceteam-highlight-media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #000;
    overflow: hidden;
}

.raceteam-highlight-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.raceteam-highlight-card:hover .raceteam-highlight-media img {
    transform: scale(1.06);
}

.raceteam-cat-pill {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    background: rgba(0, 0, 0, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.raceteam-highlight-body {
    padding: 1.25rem;
    flex: 1;
}

.raceteam-highlight-title {
    font-family: "Alfa Slab One", cursive;
    font-size: 1.15rem;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.raceteam-highlight-desc {
    color: #c2c2c2;
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ---------- ATO 3: GALERIA COM ABAS ---------- */
.raceteam-filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.raceteam-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: #121212;
    color: #d0d0d0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 6px;
    font-family: "Roboto Slab", serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.raceteam-filter-btn:hover {
    border-color: #ffffff;
    color: #ffffff;
}

.raceteam-filter-btn.is-active {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.raceteam-filter-btn .filter-count {
    font-size: 0.75rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.raceteam-filter-btn.is-active .filter-count {
    background: rgba(0, 0, 0, 0.15);
    color: #000000;
}

.raceteam-gallery-card {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.raceteam-gallery-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.65);
}

.raceteam-gallery-figure {
    position: relative;
    overflow: hidden;
    background: #000;
}

.raceteam-gallery-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.raceteam-gallery-card:hover .raceteam-gallery-figure img {
    transform: scale(1.07);
}

.raceteam-gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.1) 55%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0.75rem;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.raceteam-gallery-card:hover .raceteam-gallery-overlay {
    opacity: 1;
}

.raceteam-overlay-cat {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #cfcfcf;
}

.raceteam-overlay-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
}

.raceteam-overlay-zoom {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8rem;
}

/* Paginação P&B */
.raceteam-pagination .pagination-previous,
.raceteam-pagination .pagination-next,
.raceteam-pagination .pagination-link {
    background: #141414;
    color: #e0e0e0;
    border-color: rgba(255, 255, 255, 0.25);
    cursor: pointer;
}

.raceteam-pagination .pagination-link.is-current {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    font-weight: 700;
}

#raceteam-galeria {
    scroll-margin-top: 1rem;
}

.raceteam-pagination .pagination-ellipsis {
    color: #9b9b9b;
}

.raceteam-pagination button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* ---------- ATO 4: PREPARAÇÃO OFICIAL (BOB'S GARAGE) ---------- */
.raceteam-oficina-card {
    background: linear-gradient(145deg, #161616 0%, #090909 100%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
}

.raceteam-oficina-logo {
    max-width: 240px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.95));
}

.raceteam-oficina-kicker {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 2px;
    font-weight: 700;
    color: #bdbdbd;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.raceteam-oficina-title {
    font-family: "Alfa Slab One", cursive;
    font-size: 1.85rem;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.raceteam-oficina-subtitle {
    color: #b8b8b8;
    font-size: 0.98rem;
    font-weight: 600;
    margin-bottom: 1.15rem;
}

.raceteam-oficina-text {
    color: #d6d6d6;
    font-size: 1.02rem;
    line-height: 1.75;
    white-space: pre-line;
}

/* ---------- LIGHTBOX ---------- */
.raceteam-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.94);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.raceteam-lightbox.is-active {
    display: flex;
}

.raceteam-lightbox-stage {
    max-width: 90vw;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.raceteam-lightbox-stage img {
    max-width: 86vw;
    max-height: 72vh;
    object-fit: contain;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95);
}

.raceteam-lightbox-caption {
    margin-top: 1rem;
    max-width: 720px;
}

.raceteam-lb-cat {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #aaaaaa;
}

.raceteam-lb-title {
    font-family: "Alfa Slab One", cursive;
    font-size: 1.2rem;
    color: #ffffff;
    margin: 0.25rem 0;
}

.raceteam-lb-desc {
    color: #cccccc;
    font-size: 0.92rem;
}

.raceteam-lightbox-close {
    position: fixed;
    top: 1.25rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
}

.raceteam-lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.raceteam-lightbox-nav:hover {
    background: #ffffff;
    color: #000000;
}

.raceteam-lightbox-controls {
    display: contents;
}

.raceteam-lb-counter {
    display: none;
}

.raceteam-lightbox-nav.is-prev { left: 1.25rem; }
.raceteam-lightbox-nav.is-next { right: 1.25rem; }

/* ---------- RESPONSIVIDADE ---------- */
@media (max-width: 1023px) {
    @supports (overflow-x: clip) {
        html,
        body {
            overflow-x: clip;
        }
    }
    .raceteam-page {
        max-width: 100%;
        overflow-x: hidden;
        overflow-x: clip;
    }
    .raceteam-section {
        padding: 1.5rem 1.5rem 2.5rem;
    }
    .raceteam-hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .raceteam-hero-title {
        font-size: 2rem;
    }
    /* Brasão centralizado com um pinheiro de cada lado */
    .raceteam-emblem-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
        column-gap: 0.75rem;
        margin-bottom: 1.5rem;
    }
    .raceteam-emblem-row .raceteam-tree-mobile-left {
        grid-column: 1;
        justify-content: flex-end;
    }
    .raceteam-emblem-row .raceteam-tree-mobile-right {
        grid-column: 3;
        justify-content: flex-start;
    }
    .raceteam-emblem-row .raceteam-emblem-wrap {
        grid-column: 2;
        margin-bottom: 0;
    }
    .raceteam-emblem-row .raceteam-hero-emblem {
        width: min(260px, 44vw);
        max-width: none;
    }
}

/* Overlay sempre legível em dispositivos touch / mobile sem depender de :hover */
@media (hover: none), (max-width: 768px) {
    .raceteam-gallery-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.25) 38%, transparent 65%);
        padding: 0.5rem 0.55rem;
    }
    .raceteam-overlay-cat {
        font-size: 0.62rem;
        line-height: 1.2;
    }
    .raceteam-overlay-title {
        display: block;
        font-size: 0.76rem;
        line-height: 1.25;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .raceteam-overlay-zoom {
        top: 0.45rem;
        right: 0.45rem;
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
        background: rgba(0, 0, 0, 0.65);
    }
}

@media (hover: none) {
    .raceteam-hero-emblem:hover,
    .raceteam-highlight-card:hover,
    .raceteam-highlight-card:hover .raceteam-highlight-media img,
    .raceteam-gallery-card:hover,
    .raceteam-gallery-card:hover .raceteam-gallery-figure img,
    .raceteam-cta-btn:hover {
        transform: none;
    }
}

@media (max-width: 768px) {
    .raceteam-page {
        padding-bottom: 2.5rem;
    }
    .raceteam-section {
        padding: 1rem 1rem 1.75rem;
    }
    .raceteam-page h1,
    .raceteam-page h2,
    .raceteam-page h3,
    .raceteam-page h4 {
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
    }
    .raceteam-page .section-divider span {
        min-width: 0;
        max-width: calc(100% - 3.5rem);
    }

    /* ---------- ATO 1: HERO MOBILE ---------- */
    .raceteam-hero {
        padding: 1.75rem 1rem 1.75rem;
    }
    .raceteam-emblem-row {
        column-gap: clamp(0.35rem, 2vw, 0.75rem);
        margin-bottom: 1rem;
    }
    .raceteam-emblem-row .raceteam-hero-emblem {
        width: clamp(120px, 42vw, 200px);
        max-width: 100%;
    }
    /* Pinheiro compacto fluido para caber ao lado do brasão em qualquer largura mobile */
    .raceteam-tree-mobile .christmas-tree {
        width: clamp(46px, 15vw, 62px);
        padding: 0.45rem 0.3rem;
        gap: 0.25rem;
    }
    .raceteam-tree-mobile .tree-label {
        font-size: 0.42rem;
        letter-spacing: 0.4px;
    }
    .raceteam-tree-mobile .tree-pair {
        gap: 0.32rem;
    }
    .raceteam-tree-mobile .tree-bulb {
        width: 10px;
        height: 10px;
    }
    .raceteam-tree-mobile .tree-bulb.is-stage {
        width: 7px;
        height: 7px;
    }
    .raceteam-hero-title {
        font-size: clamp(1.45rem, 6.5vw, 1.75rem);
        letter-spacing: 1px;
        margin-bottom: 0.5rem;
    }
    .raceteam-hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1.15rem;
    }
    .raceteam-badges-row {
        gap: 0.45rem;
        margin-bottom: 1.25rem;
    }
    .raceteam-badge {
        padding: 0.35rem 0.7rem;
        font-size: 0.72rem;
        letter-spacing: 0.8px;
        gap: 0.35rem;
        max-width: 100%;
        white-space: normal;
        text-align: center;
    }
    .raceteam-cta-btn {
        white-space: normal;
        text-align: center;
        min-height: 44px;
        max-width: 100%;
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
        line-height: 1.3;
    }

    /* ---------- ATO 2 & ATO 4: MANIFESTO E PREPARAÇÃO OFICIAL ---------- */
    .raceteam-manifesto-box,
    .raceteam-oficina-card {
        padding: 1.25rem 1.1rem;
    }
    .raceteam-page .raceteam-manifesto-box > .columns.is-variable,
    .raceteam-page .raceteam-oficina-card > .columns.is-variable {
        --columnGap: 0rem;
        margin-left: 0;
        margin-right: 0;
    }
    .raceteam-page .raceteam-manifesto-box > .columns.is-variable > .column,
    .raceteam-page .raceteam-oficina-card > .columns.is-variable > .column {
        padding-left: 0;
        padding-right: 0;
    }
    .raceteam-mascote-img,
    .raceteam-oficina-logo {
        max-width: 165px;
    }
    .raceteam-manifesto-title {
        font-size: 1.35rem;
        text-align: center;
        margin-bottom: 0.75rem;
    }
    .raceteam-oficina-kicker {
        display: block;
        text-align: center;
        font-size: 0.72rem;
        letter-spacing: 1.4px;
    }
    .raceteam-oficina-title {
        font-size: 1.38rem;
        text-align: center;
    }
    .raceteam-oficina-subtitle {
        font-size: 0.9rem;
        text-align: center;
        margin-bottom: 0.9rem;
    }
    .raceteam-manifesto-text,
    .raceteam-oficina-text {
        font-size: 0.95rem;
        line-height: 1.7;
        text-align: left;
    }
    .raceteam-oficina-card .raceteam-cta-btn {
        width: 100%;
        justify-content: center;
    }

    /* Carrossel horizontal com scroll-snap e peek do próximo card nos Destaques */
    .raceteam-page .columns.is-variable.raceteam-highlights-grid {
        --columnGap: 0rem;
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 0.85rem;
        width: 100%;
        max-width: 100%;
        margin: 0 !important;
        padding: 0.25rem 0 0.75rem;
        box-sizing: border-box;
        scrollbar-width: none;
    }
    .raceteam-highlights-grid::-webkit-scrollbar {
        display: none;
    }
    .raceteam-page .columns.is-variable.raceteam-highlights-grid > .column {
        flex: 0 0 85%;
        max-width: 85%;
        min-width: 0;
        padding: 0 !important;
        scroll-snap-align: start;
    }
    .raceteam-highlight-body {
        padding: 1rem;
    }
    .raceteam-highlight-title {
        font-size: 1.05rem;
    }

    /* ---------- ATO 3: GALERIA, FILTROS & PAGINAÇÃO ---------- */
    .raceteam-filter-bar {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        gap: 0.5rem;
        width: 100%;
        max-width: 100%;
        margin: 0 0 1.25rem;
        padding: 0.25rem 0;
        box-sizing: border-box;
        scrollbar-width: none;
    }
    .raceteam-filter-bar::-webkit-scrollbar {
        display: none;
    }
    .raceteam-filter-btn {
        flex: 0 0 auto;
        min-height: 44px;
        padding: 0.55rem 0.95rem;
        font-size: 0.84rem;
        white-space: nowrap;
        scroll-snap-align: start;
    }
    .raceteam-page .columns.is-variable.raceteam-gallery-grid {
        --columnGap: 0.375rem;
        margin-left: -0.375rem;
        margin-right: -0.375rem;
        margin-top: -0.375rem;
    }
    .raceteam-page .columns.is-variable.raceteam-gallery-grid > .column {
        padding: 0.375rem;
    }
    .raceteam-pagination {
        margin-left: 0;
        margin-right: 0;
    }
    .raceteam-pagination .pagination-list {
        flex-wrap: wrap;
        max-width: 100%;
        justify-content: center;
    }
    .raceteam-pagination .pagination-previous,
    .raceteam-pagination .pagination-next,
    .raceteam-pagination .pagination-link {
        min-height: 44px;
        min-width: 40px;
        margin: 0.15rem;
    }
    .raceteam-pagination .pagination-ellipsis {
        margin: 0.1rem;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    /* ---------- LIGHTBOX MOBILE ---------- */
    .raceteam-lightbox {
        flex-direction: column;
        justify-content: center;
        padding: calc(3.5rem + env(safe-area-inset-top, 0px)) 0.75rem calc(4.75rem + env(safe-area-inset-bottom, 0px));
    }
    .raceteam-lightbox-stage {
        max-width: 100%;
        max-height: 100%;
        overflow-y: auto;
        touch-action: pan-y;
    }
    .raceteam-lightbox-stage img {
        max-width: 100%;
        max-height: 58dvh;
    }
    .raceteam-lightbox-caption {
        margin-top: 0.75rem;
        padding: 0 0.25rem;
    }
    .raceteam-lb-title {
        font-size: 1.05rem;
    }
    .raceteam-lb-desc {
        font-size: 0.85rem;
    }
    .raceteam-lightbox-close {
        top: calc(0.75rem + env(safe-area-inset-top, 0px));
        right: 0.75rem;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: rgba(20, 20, 20, 0.85);
        border: 1px solid rgba(255, 255, 255, 0.3);
        font-size: 1.75rem;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
    }
    .raceteam-lightbox-controls {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.75rem 1.25rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
        background: linear-gradient(to top, rgba(0, 0, 0, 0.96) 65%, transparent);
        z-index: 10;
    }
    .raceteam-lightbox-nav {
        position: static;
        transform: none;
        width: 46px;
        height: 46px;
    }
    .raceteam-lb-counter {
        display: inline-block;
        font-family: "Roboto Slab", serif;
        font-size: 0.88rem;
        font-weight: 700;
        letter-spacing: 1px;
        color: #e0e0e0;
    }
}
