
/* ── grid de cards ───────────────────────────────────────── */
.ev-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.ev-card {
    background: var(--fundo2);
    border: 1px solid var(--ouro-borda);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform .22s, box-shadow .22s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.ev-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sombra-lg);
}

.ev-card:hover .ev-thumb {
    transform: scale(1.05);
    filter: brightness(1);
}

.ev-thumb-wrap {
    position: relative;
    overflow: hidden;
    height: 210px;
    flex-shrink: 0;
}

.ev-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.85);
    transition: transform .45s ease, filter .35s;
    display: block;
}

.ev-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,11,8,.75) 0%, transparent 55%);
    pointer-events: none;
}

.ev-thumb-count {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(13,11,8,.8);
    border: 1px solid var(--ouro-borda);
    border-radius: var(--radius);
    padding: 4px 10px;
    font-size: .68rem;
    color: var(--ouro);
    font-weight: 600;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 5px;
}

.ev-thumb-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--ouro);
    border-radius: var(--radius);
    padding: 3px 10px;
    font-size: .62rem;
    font-weight: 700;
    color: #0d0b08;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.ev-corpo {
    padding: 18px 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ev-meta-linha {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.ev-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: .7rem;
    color: var(--texto-muted);
}

.ev-titulo {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--texto);
    line-height: 1.3;
    margin-bottom: 6px;
    transition: color .18s;
}

.ev-card:hover .ev-titulo { color: var(--ouro); }

.ev-desc {
    font-size: .78rem;
    color: var(--texto-muted);
    line-height: 1.65;
    flex: 1;
}

.ev-rodape {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ── galeria de fotos ────────────────────────────────────── */
.foto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
}

.foto-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: pointer;
    aspect-ratio: 4/3;
    background: var(--fundo3);
}

.foto-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease, filter .3s;
    filter: brightness(.88);
}

.foto-item:hover img {
    transform: scale(1.08);
    filter: brightness(1.05);
}

.foto-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13,11,8,0);
    transition: background .2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.foto-item:hover .foto-item-overlay {
    background: rgba(13,11,8,.3);
}

.foto-item-icon {
    opacity: 0;
    transform: scale(.7);
    transition: opacity .2s, transform .2s;
}

.foto-item:hover .foto-item-icon {
    opacity: 1;
    transform: scale(1);
}

.foto-item-num {
    position: absolute;
    bottom: 6px;
    right: 8px;
    font-size: .62rem;
    color: rgba(255,255,255,.55);
}

/* ── lightbox ────────────────────────────────────────────── */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(5,4,3,.96);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    backdrop-filter: blur(12px);
}

.lightbox.ativo { display: flex; }

.lb-img-wrap {
    position: relative;
    max-width: calc(100vw - 120px);
    max-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-img {
    max-width: 100%;
    max-height: calc(100vh - 160px);
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 20px 80px rgba(0,0,0,.8);
    transition: opacity .2s;
    display: block;
}

.lb-img.carregando { opacity: .3; }

.lb-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(13,11,8,.8);
    border: 1px solid var(--ouro-borda);
    color: var(--texto);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .18s, border-color .18s;
    z-index: 2;
}

.lb-btn:hover { background: var(--ouro); border-color: var(--ouro); color: #0d0b08; }

.lb-prev { left: 16px; }
.lb-next { right: 16px; }

.lb-fechar {
    position: fixed;
    top: 16px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(13,11,8,.8);
    border: 1px solid var(--ouro-borda);
    color: var(--texto-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .18s;
    z-index: 2;
}

.lb-fechar:hover { background: var(--vermelho); border-color: var(--vermelho); color: #fff; }

.lb-info {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px 20px;
    background: linear-gradient(to top, rgba(5,4,3,.95), transparent);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    z-index: 2;
}

.lb-contador {
    font-size: .78rem;
    color: var(--texto-muted);
}

.lb-nome-ev {
    font-family: 'Playfair Display', serif;
    font-size: .88rem;
    color: var(--ouro);
}

.lb-nome-arq {
    font-size: .7rem;
    color: var(--texto-muted);
    opacity: .6;
}

/* thumb strip */
.lb-strip {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 8px 20px 14px;
    scrollbar-width: none;
    max-width: 100vw;
}
.lb-strip::-webkit-scrollbar { display: none; }

.lb-strip-thumb {
    width: 52px;
    height: 38px;
    border-radius: 2px;
    object-fit: cover;
    flex-shrink: 0;
    cursor: pointer;
    opacity: .5;
    border: 2px solid transparent;
    transition: opacity .18s, border-color .18s;
}

.lb-strip-thumb.ativo {
    opacity: 1;
    border-color: var(--ouro);
}

/* ── filtros de categoria ────────────────────────────────── */
.ev-filtros {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.ef-btn {
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid var(--ouro-borda);
    background: transparent;
    color: var(--texto-muted);
    font-family: 'Source Sans 3', sans-serif;
    font-size: .72rem;
    letter-spacing: .05em;
    cursor: pointer;
    transition: all .18s;
}

.ef-btn:hover { color: var(--ouro); border-color: var(--ouro); }
.ef-btn.ativo { background: var(--ouro); border-color: var(--ouro); color: #0d0b08; font-weight: 600; }

/* ── estado vazio ────────────────────────────────────────── */
.ev-vazio {
    text-align: center;
    padding: 80px 20px;
    color: var(--texto-muted);
}

.ev-vazio h2 { font-family:'Playfair Display',serif; color:var(--texto-muted); margin-bottom: 8px; }

/* ── responsivo ──────────────────────────────────────────── */
@media (max-width: 600px) {
    .foto-grid { grid-template-columns: repeat(2, 1fr); gap: 5px; }
    .ev-grid   { grid-template-columns: 1fr; }
    .lb-btn    { width: 38px; height: 38px; }
    .lb-prev   { left: 6px; }
    .lb-next   { right: 6px; }
    .lb-img-wrap { max-width: 100vw; }
}
