/* Container Principal da Exposição */
.ev-galeria-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    padding: 40px 20px;
    background-color: #f4f4f4; /* Fundo claro estilo parede de galeria */
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Card de cada Obra */
.ev-card-obra {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.ev-card-obra:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Wrapper da Imagem (mantém proporção) */
.ev-imagem-wrapper {
    width: 100%;
    overflow: hidden;
    margin-bottom: 15px;
    background: #eee;
}

.ev-imagem-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s;
}

.ev-card-obra:hover .ev-imagem-wrapper img {
    opacity: 0.9;
}

/* Informações abaixo da imagem */
.ev-info-obra {
    text-align: left;
}

.ev-info-obra h3 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    color: #222;
    font-weight: 600;
}

.ev-artista {
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
}

/* --- Estilos do Lightbox (Tela cheia ao clicar) --- */
.ev-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 15, 15, 0.95); /* Fundo quase preto */
    overflow: auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.ev-lightbox.ativo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ev-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.ev-close:hover {
    color: #bbb;
}

.ev-lightbox-conteudo {
    display: flex;
    background: #1a1a1a;
    max-width: 1100px;
    width: 100%;
    max-height: 90vh;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    color: #eee;
}

.ev-lb-imagem {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    padding: 20px;
}

.ev-lb-imagem img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.ev-lb-detalhes {
    flex: 1;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

.ev-lb-detalhes h2 {
    color: #fff;
    margin-top: 0;
    font-size: 1.8rem;
    border-bottom: 1px solid #444;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.ev-lb-artista {
    font-size: 1.2rem;
    color: #aaa;
    font-style: italic;
    margin-bottom: 20px;
}

.ev-lb-meta {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 30px;
}

.ev-lb-descricao {
    font-size: 1rem;
    line-height: 1.6;
    color: #ccc;
}

@media (max-width: 768px) {
    .ev-lightbox-conteudo {
        flex-direction: column;
    }
    .ev-galeria-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}