
.galeria-overlay {
    display: none;
    position: fixed;
    z-index: 99999;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.galeria-overlay.ativo {
    display: flex;
}

.galeria-conteudo {
    position: relative;
    max-width: 96vw;
    max-height: 92vh;
}

.galeria-conteudo img {
    max-width: 96vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0,0,0,.45);
}

.galeria-fechar {
    position: absolute;
    top: -42px;
    right: 0;
    color: #fff;
    font-size: 34px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.galeria-legenda {
    color: #fff;
    text-align: center;
    font-size: 14px;
    margin-top: 10px;
    opacity: .9;
}

.galeria-seta {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.35);
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 30px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    z-index: 100000;
    user-select: none;
}

.galeria-seta:hover {
    background: rgba(255,255,255,.22);
}

.galeria-anterior {
    left: 18px;
}

.galeria-proxima {
    right: 18px;
}

.galeria-miniaturas {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 12px;
    padding: 0 10px;
}

.galeria-thumb {
    width: 58px;
    height: 58px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: .78;
    transition: .15s ease;
}

.galeria-thumb:hover,
.galeria-thumb.ativa {
    opacity: 1;
    border-color: #fff;
    transform: translateY(-1px);
}

.galeria-thumbs-evento {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 10px auto 6px;
    max-width: 360px;
}

.galeria-thumbs-evento img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 8px;
    cursor: zoom-in;
    border: 2px solid rgba(0,0,0,.08);
    transition: .15s ease;
}

.galeria-thumbs-evento img:hover {
    transform: translateY(-1px);
    border-color: rgba(0,0,0,.25);
}

@media (max-width: 640px) {
    .galeria-seta {
        width: 38px;
        height: 38px;
        font-size: 26px;
    }

    .galeria-anterior {
        left: 8px;
    }

    .galeria-proxima {
        right: 8px;
    }

    .galeria-thumb {
        width: 46px;
        height: 46px;
    }
}