/* ═══════════════════════════════════════════════
   HERO DA GALERIA
═══════════════════════════════════════════════ */
.gal-hero {
    background: linear-gradient(150deg, #0f2318 0%, var(--green-dark) 45%, #1a3a28 75%, #1e2d26 100%);
    position: relative;
    overflow: hidden;
    padding: 168px 0 100px;
    /* topbar(36) + header(72) + respiro(60) */
}

.gal-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(241, 179, 28, .06) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.gal-hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 540px;
    height: 540px;
    border-radius: 50%;
    border: 90px solid rgba(241, 179, 28, .06);
    pointer-events: none;
}

/* Glow central hero */
.gal-hero-glow {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(51, 95, 70, .25) 0%, transparent 70%);
    pointer-events: none;
}

.gal-hero-deco {
    position: absolute;
    top: -60px;
    left: -60px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 50px solid rgba(255, 255, 255, .03);
    pointer-events: none;
}

.gal-hero-accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, transparent, var(--gold), transparent);
    opacity: .5;
}

.gal-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 260px;
    align-items: center;
    gap: 56px;
}

.gal-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .5);
    margin-bottom: 16px;
}

.gal-breadcrumb a {
    color: rgba(255, 255, 255, .5);
    text-decoration: none;
    transition: color .2s;
}

.gal-breadcrumb a:hover {
    color: var(--gold);
}

.gal-breadcrumb i {
    font-size: 9px;
}

.gal-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(241, 179, 28, .15);
    border: 1px solid rgba(241, 179, 28, .3);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.gal-hero h1 {
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 900;
    color: #fff;
    line-height: 1.05;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
}

.gal-hero h1 em {
    font-style: normal;
    color: var(--gold);
    position: relative;
}

.gal-hero h1 em::after {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
    opacity: .4;
}

.gal-hero p {
    font-size: 15px;
    color: rgba(255, 255, 255, .7);
    line-height: 1.7;
    max-width: 500px;
    margin-bottom: 28px;
}

/* Stat chips hero */
.gal-hero-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gal-stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 50px;
    padding: 8px 16px;
    backdrop-filter: blur(4px);
}

.gal-stat-chip strong {
    font-size: 15px;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
}

.gal-stat-chip span {
    font-size: 11.5px;
    color: rgba(255, 255, 255, .6);
    font-weight: 500;
}

/* Painel decorativo direita — PREMIUM */
.gal-hero-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 10px;
    width: 260px;
    flex-shrink: 0;
    filter: drop-shadow(0 24px 48px rgba(0, 0, 0, .5));
}

/* Badge "Arquivo" flutuante no painel */
.gal-hero-panel-badge {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: #1a2e20;
    font-size: 10.5px;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 50px;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(241, 179, 28, .4);
    z-index: 10;
    letter-spacing: .04em;
}

.gal-hero-thumb {
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 1;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
    border: 1.5px solid rgba(255, 255, 255, .08);
}

.gal-hero-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1);
    transition: transform .4s ease;
}

.gal-hero-thumb:hover img {
    transform: scale(1.08);
}

.gal-hero-thumb:first-child {
    grid-column: span 2;
    aspect-ratio: 16/10;
    border-radius: 14px 14px 8px 8px;
    position: relative;
}

.gal-hero-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 35, 24, .7) 0%, rgba(0, 0, 0, .15) 60%, transparent 100%);
}

/* Contador de fotos no painel */
.gal-hero-panel-count {
    position: absolute;
    bottom: 10px;
    left: 12px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, .9);
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 3;
}

.gal-hero-panel-count i {
    color: var(--gold);
    font-size: 10px;
}

/* Wave */
.gal-hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════
   GALERIA MAIN — LAYOUT GERAL
═══════════════════════════════════════════════ */
.gal-main {
    padding: 48px 0 80px;
    background: var(--bg-light);
    min-height: 60vh;
}

/* ── Tabs wrap + label ── */
.gal-tabs-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.gal-tabs-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-muted);
}

/* ── Tabs principais ── */
.gal-tabs-wrap {
    background: #fff;
    border-radius: 18px;
    padding: 6px;
    display: inline-flex;
    gap: 4px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06), 0 0 0 1px var(--border);
}

.gal-tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-muted);
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all .22s ease;
    position: relative;
    font-family: 'Inter', sans-serif;
}

.gal-tab-btn i {
    font-size: 13px;
}

.gal-tab-btn .gal-tab-count {
    background: var(--bg-light);
    color: var(--text-muted);
    font-size: 10.5px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 50px;
    min-width: 20px;
    text-align: center;
    transition: all .22s;
}

.gal-tab-btn:hover {
    color: var(--text-dark);
}

.gal-tab-btn.active {
    background: var(--green);
    color: #fff;
    box-shadow: 0 4px 14px rgba(51, 95, 70, .3);
}

.gal-tab-btn.active .gal-tab-count {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

/* Tab Vídeos — badge "Em Breve" */
.gal-tab-btn .gal-tab-soon {
    background: rgba(239, 68, 68, .12);
    border: 1px solid rgba(239, 68, 68, .25);
    color: #dc2626;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Tab panels */
.gal-tab-panel {
    display: none;
}

.gal-tab-panel.active {
    display: block;
    animation: tabFadeIn .25s ease-out;
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Toolbar de fotos ── */
.gal-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    padding: 14px 16px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.gal-toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Filtros de categoria */
.gal-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
    border: 1.5px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    transition: all .2s;
    font-family: 'Inter', sans-serif;
}

.gal-filter-btn .gal-filter-count {
    font-size: 10px;
    background: var(--bg-light);
    border-radius: 50px;
    padding: 0 5px;
    min-width: 16px;
    text-align: center;
    color: var(--text-muted);
    transition: all .2s;
}

.gal-filter-btn:hover {
    border-color: var(--green);
    color: var(--green);
}

.gal-filter-btn.active {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

.gal-filter-btn.active .gal-filter-count {
    background: rgba(255, 255, 255, .22);
    color: #fff;
}

/* Contador de itens */
.gal-counter {
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.gal-counter strong {
    color: var(--text-dark);
}

/* View toggle */
.gal-view-toggle {
    display: flex;
    gap: 4px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 3px;
}

.gal-view-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    transition: all .18s;
}

.gal-view-btn.active,
.gal-view-btn:hover {
    background: var(--green);
    color: #fff;
}

/* ── GRID MASONRY ── */
.gal-masonry {
    columns: 4;
    column-gap: 14px;
}

.gal-masonry.cols-3 {
    columns: 3;
}

.gal-masonry.cols-2 {
    columns: 2;
}

.gal-photo-item {
    break-inside: avoid;
    margin-bottom: 14px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    display: block;
    transition: box-shadow .35s ease, transform .35s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}

.gal-photo-item:hover {
    box-shadow: 0 12px 36px rgba(0, 0, 0, .18);
    transform: translateY(-2px);
}

.gal-photo-item.hidden {
    display: none;
}

.gal-photo-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .55s cubic-bezier(.4, 0, .2, 1);
    border-radius: 16px;
}

.gal-photo-item:hover img {
    transform: scale(1.05);
}

/* Overlay sobre cada foto */
.gal-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 22, 16, .9) 0%, rgba(0, 0, 0, .15) 50%, transparent 100%);
    opacity: 0;
    transition: opacity .3s ease;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
}

.gal-photo-item:hover .gal-photo-overlay {
    opacity: 1;
}

/* Botão expand centrado */
.gal-photo-expand {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(.65);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(241, 179, 28, .2);
    border: 2px solid rgba(241, 179, 28, .6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 17px;
    opacity: 0;
    transition: all .28s cubic-bezier(.34, 1.56, .64, 1);
    box-shadow: 0 0 0 8px rgba(241, 179, 28, .08);
}

.gal-photo-item:hover .gal-photo-expand {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Número de foto (canto superior direito ao hover) */
.gal-photo-num {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(4px);
    color: rgba(255, 255, 255, .85);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 50px;
    opacity: 0;
    transition: opacity .25s ease;
    letter-spacing: .04em;
}

.gal-photo-item:hover .gal-photo-num {
    opacity: 1;
}

/* Info no rodapé do overlay */
.gal-photo-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.gal-photo-caption {
    font-size: 12.5px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.gal-photo-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 2px 8px;
    border-radius: 50px;
    white-space: nowrap;
    flex-shrink: 0;
}

.cat-assembleia {
    background: rgba(241, 179, 28, .22);
    color: var(--gold);
    border: 1px solid rgba(241, 179, 28, .45);
}

.cat-eventos {
    background: rgba(51, 95, 70, .35);
    color: #6ee7b7;
    border: 1px solid rgba(110, 231, 183, .35);
}

.cat-formacao {
    background: rgba(59, 130, 246, .22);
    color: #93c5fd;
    border: 1px solid rgba(147, 197, 253, .35);
}

/* Vista slide */
.gal-masonry.slide-view {
    display: flex;
    justify-content: center;
    align-items: center;
    columns: auto;
    column-gap: 0;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    min-height: 450px;
}

.gal-masonry.slide-view .gal-photo-item {
    display: none;
    width: 100%;
    margin-bottom: 0;
    max-width: 100%;
}

.gal-masonry.slide-view .gal-photo-item.active-slide {
    display: block !important;
    animation: slideFadeIn 0.35s ease;
}

@keyframes slideFadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.gal-masonry.slide-view .gal-photo-item img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 16px;
    background: #000;
}

/* Setas do slide */
.gal-slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.gal-slide-arrow:hover {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
    transform: translateY(-50%) scale(1.06);
}

.gal-slide-prev {
    left: -64px;
}

.gal-slide-next {
    right: -64px;
}

@media (max-width: 1024px) {
    .gal-slide-prev {
        left: 10px;
    }
    .gal-slide-next {
        right: 10px;
    }
}

/* Estado vazio */
.gal-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
    display: none;
}

.gal-empty i {
    font-size: 48px;
    color: #d1d5db;
    margin-bottom: 16px;
}

.gal-empty p {
    font-size: 15px;
}

/* ── Shimmer placeholder ── */
@keyframes shimmerPulse {
    0% {
        background-position: -600px 0;
    }

    100% {
        background-position: 600px 0;
    }
}

.gal-photo-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 600px 100%;
    animation: shimmerPulse 1.4s infinite;
    border-radius: 16px;
    min-height: 180px;
    margin-bottom: 14px;
}

/* ═══════════════════════════════════════════════
   VÍDEOS
═══════════════════════════════════════════════ */

/* Cabeçalho da secção de vídeos */
.gal-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.gal-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gal-section-title-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(51, 95, 70, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
    font-size: 14px;
}

.gal-section-title h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -.3px;
}

.gal-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(51, 95, 70, .08);
    border: 1px solid rgba(51, 95, 70, .15);
    color: var(--green);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
}

.gal-videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gal-video-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform .3s ease, box-shadow .3s ease;
    cursor: pointer;
    position: relative;
}

.gal-video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .1);
}

.gal-video-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--green-dark);
}

.gal-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
    opacity: .85;
}

.gal-video-card:hover .gal-video-thumb img {
    transform: scale(1.06);
    opacity: 1;
}

.gal-video-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20, 35, 25, .7) 0%, rgba(0, 0, 0, .2) 100%);
}

/* Botão play */
.gal-video-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gal-video-play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-dark);
    font-size: 20px;
    transition: transform .28s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .35);
    padding-left: 4px;
    position: relative;
}

/* Pulse ring no play */
.gal-video-play-btn::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .25);
    opacity: 0;
    transition: opacity .25s;
}

.gal-video-card:hover .gal-video-play-btn::after {
    opacity: 1;
}

.gal-video-card:hover .gal-video-play-btn {
    transform: scale(1.12);
    box-shadow: 0 6px 28px rgba(0, 0, 0, .4);
}

/* Badge "Em Breve" */
.gal-video-soon {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(220, 38, 38, .88);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 3px 10px;
    border-radius: 50px;
    backdrop-filter: blur(4px);
}

/* Duração badge */
.gal-video-dur {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, .65);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 5px;
    backdrop-filter: blur(4px);
}

/* Body do card de vídeo */
.gal-video-body {
    padding: 18px 18px 20px;
}

.gal-video-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.gal-video-tag {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--green);
    background: rgba(51, 95, 70, .1);
    padding: 3px 9px;
    border-radius: 5px;
    border: 1px solid rgba(51, 95, 70, .15);
}

.gal-video-date {
    font-size: 11.5px;
    color: var(--text-muted);
}

.gal-video-body h4 {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 6px;
    letter-spacing: -.2px;
}

.gal-video-body p {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.55;
}

/* Placeholder de vídeos em breve */
.gal-videos-cta {
    margin-top: 40px;
    background: linear-gradient(135deg, #1a3a28 0%, var(--green-dark) 60%, #0f2318 100%);
    border-radius: 20px;
    padding: 40px 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .06);
}

.gal-videos-cta::before {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 40px solid rgba(241, 179, 28, .08);
    pointer-events: none;
}

.gal-videos-cta::after {
    content: '';
    position: absolute;
    left: -20px;
    bottom: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(51, 95, 70, .4) 0%, transparent 70%);
    pointer-events: none;
}

.gal-videos-cta-left {
    position: relative;
    z-index: 1;
}

.gal-videos-cta h3 {
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -.3px;
}

.gal-videos-cta p {
    font-size: 14px;
    color: rgba(255, 255, 255, .68);
    line-height: 1.6;
    max-width: 480px;
}

.gal-videos-cta-social {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.gal-social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50px;
    padding: 10px 18px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s;
}

.gal-social-btn:hover {
    background: rgba(255, 255, 255, .2);
}

/* ═══════════════════════════════════════════════
   DOCUMENTOS
═══════════════════════════════════════════════ */

/* Cabeçalho docs + contador */
.gal-docs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.gal-docs-count {
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 500;
}

.gal-docs-count strong {
    color: var(--text-dark);
}

/* Empty state documentos */
.gal-docs-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    display: none;
}

.gal-docs-empty i {
    font-size: 40px;
    color: #d1d5db;
    margin-bottom: 12px;
}

.gal-docs-empty p {
    font-size: 14px;
}

.gal-docs-toolbar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.gal-docs-search {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 360px;
}

.gal-docs-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 13px;
    pointer-events: none;
}

.gal-docs-search input {
    width: 100%;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 9px 12px 9px 36px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    background: #fff;
    color: var(--text-dark);
}

.gal-docs-search input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(51, 95, 70, .1);
}

.gal-docs-filter-btns {
    display: flex;
    gap: 6px;
}

.gal-docs-filter {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    border: 1.5px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    transition: all .2s;
    font-family: 'Inter', sans-serif;
}

.gal-docs-filter.active {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

.gal-docs-filter:hover:not(.active) {
    border-color: var(--green);
    color: var(--green);
}

/* Grid de documentos */
.gal-docs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.gal-doc-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
}

/* Brilho de hover no doc card */
.gal-doc-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(51, 95, 70, .03) 0%, transparent 60%);
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
}

.gal-doc-card:hover::after {
    opacity: 1;
}

.gal-doc-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 16px 0 0 16px;
    transition: transform .3s ease;
    transform: scaleY(0);
    transform-origin: bottom;
}

.gal-doc-card:hover::before {
    transform: scaleY(1);
}

.gal-doc-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, .09);
    border-color: rgba(51, 95, 70, .15);
    transform: translateY(-3px);
}

.gal-doc-card.type-pdf::before {
    background: #ef4444;
}

.gal-doc-card.type-pptx::before {
    background: #f97316;
}

.gal-doc-card.type-word::before {
    background: #3b82f6;
}

.gal-doc-card.type-xls::before {
    background: #22c55e;
}

/* Ícone por tipo */
.gal-doc-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    transition: transform .25s;
}

.gal-doc-card:hover .gal-doc-icon {
    transform: scale(1.08);
}

.icon-pdf {
    background: rgba(239, 68, 68, .1);
    color: #ef4444;
}

.icon-pptx {
    background: rgba(249, 115, 22, .1);
    color: #f97316;
}

.icon-word {
    background: rgba(59, 130, 246, .1);
    color: #3b82f6;
}

.icon-xls {
    background: rgba(34, 197, 94, .1);
    color: #22c55e;
}

.gal-doc-info {
    flex: 1;
    min-width: 0;
}

.gal-doc-info h4 {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -.2px;
}

.gal-doc-info p {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 10px;
}

.gal-doc-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.gal-doc-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-muted);
}

.gal-doc-meta-item i {
    font-size: 10px;
    color: var(--gold-dark);
}

.gal-doc-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-light);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    transition: all .22s;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    letter-spacing: .01em;
}

.gal-doc-dl-btn:hover {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

/* ═══════════════════════════════════════════════
   LIGHTBOX PREMIUM
═══════════════════════════════════════════════ */
.gal-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(10, 16, 12, 0.97);
    backdrop-filter: blur(12px);
    animation: lbFadeIn .22s ease;
}

.gal-lightbox.open {
    display: flex;
}

@keyframes lbFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Imagem central */
.gal-lb-img-wrap {
    position: relative;
    max-width: calc(100vw - 300px);
    max-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
}

#galLbImg {
    max-width: 100%;
    max-height: calc(100vh - 80px);
    border-radius: 14px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .7);
    object-fit: contain;
    display: block;
}

@keyframes lbImgIn {
    from {
        transform: scale(.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Sidebar de info */
.gal-lb-sidebar {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 270px;
    background: rgba(10, 18, 14, .7);
    border-left: 1px solid rgba(255, 255, 255, .07);
    padding: 72px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Logótipo MEA no topo da sidebar */
.gal-lb-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.gal-lb-sidebar-brand span {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--gold);
}

.gal-lb-sidebar-brand-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, .07);
}

.gal-lb-sidebar-title {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    line-height: 1.35;
    margin-bottom: 4px;
}

.gal-lb-sidebar-cat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 3px 10px;
    border-radius: 50px;
    background: rgba(241, 179, 28, .18);
    border: 1px solid rgba(241, 179, 28, .3);
    color: var(--gold);
    margin-bottom: 14px;
}

.gal-lb-sidebar-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, .52);
    line-height: 1.7;
    margin-top: 6px;
}

.gal-lb-divider {
    height: 1px;
    background: rgba(255, 255, 255, .07);
}

/* Contador e dots */
.gal-lb-counter {
    font-size: 12px;
    color: rgba(255, 255, 255, .4);
    font-weight: 600;
    text-align: center;
}

.gal-lb-dots {
    display: flex;
    gap: 5px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.gal-lb-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    cursor: pointer;
    transition: all .2s;
}

.gal-lb-dot.active {
    background: var(--gold);
    width: 18px;
    border-radius: 3px;
}

/* Partilha */
.gal-lb-share-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255, 255, 255, .35);
    margin-bottom: 8px;
}

.gal-lb-share-btns {
    display: flex;
    gap: 8px;
}

.gal-lb-share-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 10px;
    padding: 8px;
    color: rgba(255, 255, 255, .7);
    font-size: 12px;
    text-decoration: none;
    transition: background .2s;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.gal-lb-share-btn:hover {
    background: rgba(255, 255, 255, .15);
    color: #fff;
}

/* Botões de navegação LB */
.gal-lb-prev,
.gal-lb-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s;
    backdrop-filter: blur(6px);
    z-index: 9010;
}

.gal-lb-prev {
    left: 16px;
}

.gal-lb-next {
    right: 286px;
}

.gal-lb-prev:hover,
.gal-lb-next:hover {
    background: rgba(255, 255, 255, .2);
    transform: translateY(-50%) scale(1.08);
}

.gal-lb-prev:disabled,
.gal-lb-next:disabled {
    opacity: .3;
    cursor: default;
}

/* Fechar */
.gal-lb-close {
    position: fixed;
    top: 16px;
    right: 280px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .15);
    color: rgba(255, 255, 255, .8);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s;
    z-index: 9010;
}

.gal-lb-close:hover {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

/* Hint teclado */
.gal-lb-key-hint {
    font-size: 10.5px;
    color: rgba(255, 255, 255, .25);
    text-align: center;
    line-height: 1.5;
    margin-top: auto;
}

.gal-lb-key-hint kbd {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 10px;
    font-family: 'Inter', sans-serif;
}

/* ═══════════════════════════════════════════════
   CTA STRIP
═══════════════════════════════════════════════ */
.gal-cta-strip {
    background: linear-gradient(135deg, #f7f5f0 0%, #fdf8f0 100%);
    border-top: 1px solid var(--border);
    padding: 64px 0;
    position: relative;
    overflow: hidden;
}

.gal-cta-strip::before {
    content: '';
    position: absolute;
    right: -60px;
    top: -60px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(241, 179, 28, .08) 0%, transparent 70%);
    pointer-events: none;
}

.gal-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.gal-cta-text h3 {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 8px;
    letter-spacing: -.5px;
}

.gal-cta-text p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.gal-cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .gal-lb-sidebar {
        width: 230px;
    }

    .gal-lb-next {
        right: 246px;
    }

    .gal-lb-close {
        right: 240px;
    }

    .gal-lb-img-wrap {
        max-width: calc(100vw - 250px);
    }

    .gal-docs-grid {
        grid-template-columns: 1fr;
    }

    .gal-hero-inner {
        grid-template-columns: 1fr 220px;
        gap: 36px;
    }
}

@media (max-width: 960px) {
    .gal-masonry {
        columns: 3;
    }

    .gal-videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gal-hero-inner {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .gal-hero-panel {
        display: none;
    }

    .gal-toolbar {
        padding: 10px 12px;
    }
}

@media (max-width: 900px) {
    .gal-hero {
        padding: 108px 0 100px;
    }

    /* header(64) + respiro(44) */
}

@media (max-width: 768px) {
    .gal-hero {
        padding: 96px 0 80px;
    }

    /* header(64) + respiro(32) */
    .gal-masonry {
        columns: 2;
    }

    .gal-lb-sidebar {
        display: none;
    }

    .gal-lb-next {
        right: 16px;
    }

    .gal-lb-close {
        right: 16px;
        top: 16px;
    }

    .gal-lb-img-wrap {
        max-width: 100vw;
        padding: 0 70px;
    }

    .gal-videos-grid {
        grid-template-columns: 1fr;
    }

    .gal-cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .gal-cta-actions {
        justify-content: center;
    }

    .gal-toolbar {
        gap: 10px;
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 14px;
    }

    .gal-toolbar-left {
        gap: 6px;
    }

    .gal-videos-cta {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
    }

    .gal-videos-cta-social {
        justify-content: center;
    }

    .gal-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .gal-docs-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .gal-cta-strip {
        padding: 48px 0;
    }
}

@media (max-width: 480px) {
    .gal-masonry {
        columns: 1;
    }

    .gal-tabs-wrap {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .gal-tab-btn {
        padding: 9px 14px;
        font-size: 12.5px;
    }

    .gal-tab-btn span:not(.gal-tab-count):not(.gal-tab-soon) {
        display: none;
    }

    .gal-docs-grid {
        grid-template-columns: 1fr;
    }

    .gal-hero {
        padding: 88px 0 80px;
    }

    /* header(64) + respiro(24) */
    .gal-doc-card {
        flex-direction: column;
    }

    .gal-doc-dl-btn {
        align-self: flex-start;
    }
}