/* ============================================
   Exposição Virtual v2 — Estilos Completos
   ============================================ */

/* --- Container da Galeria --- */
.ev2-galeria-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    padding: 40px 20px;
    background-color: #f4f4f4;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* --- Card de cada Obra --- */
.ev2-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;
    border-radius: 4px;
    outline: none;
}

.ev2-card-obra:hover,
.ev2-card-obra:focus-visible {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.ev2-card-obra:focus-visible {
    outline: 3px solid #2d6a4f;
    outline-offset: 2px;
}

/* --- Wrapper da Imagem --- */
.ev2-imagem-wrapper {
    width: 100%;
    overflow: hidden;
    margin-bottom: 15px;
    background: #eee;
    position: relative;
}

.ev2-imagem-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s;
}

.ev2-card-obra:hover .ev2-imagem-wrapper img {
    opacity: 0.9;
}

/* --- Badges de Acessibilidade (nos cards) --- */
.ev2-acess-badges {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
}

.ev2-acess-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* --- Info abaixo da imagem --- */
.ev2-info-obra {
    text-align: left;
}

.ev2-info-obra h3 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    color: #222;
    font-weight: 600;
}

.ev2-artista {
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
}

.ev2-ano {
    font-size: 0.95rem;
    color: #888;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.ev2-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 15, 15, 0.95);
    overflow: auto;
    padding: 30px 20px;
    box-sizing: border-box;
}

.ev2-lightbox.ativo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ev2-close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    background: none;
    border: none;
    z-index: 10;
    line-height: 1;
}

.ev2-close:hover {
    color: #bbb;
}

/* --- Conteúdo do Lightbox (layout 2 colunas) --- */
.ev2-lightbox-conteudo {
    display: flex;
    background: #1a1a1a;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    color: #eee;
    border-radius: 4px;
    overflow: hidden;
}

/* Coluna da Imagem */
.ev2-lb-imagem-col {
    flex: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #000;
    padding: 20px;
    min-width: 0;
}

.ev2-lb-imagem {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ev2-lb-imagem img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    display: block;
}

.ev2-lb-creditos-foto {
    font-size: 0.75rem;
    color: #777;
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}

/* Coluna de Detalhes */
.ev2-lb-detalhes-col {
    flex: 2;
    min-width: 320px;
    max-height: 90vh;
    overflow: hidden;
}

.ev2-lb-scroll {
    padding: 30px 28px;
    overflow-y: auto;
    max-height: 90vh;
}

/* --- Título e Artista --- */
.ev2-lb-detalhes-col h2 {
    color: #fff;
    margin: 0 0 4px;
    font-size: 1.6rem;
}

.ev2-lb-artista {
    font-size: 1.1rem;
    color: #aaa;
    font-style: italic;
    margin-bottom: 18px;
}

/* --- Seções --- */
.ev2-lb-secao {
    margin-bottom: 20px;
}

.ev2-lb-secao h4 {
    color: #2d6a4f;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #333;
    padding-bottom: 6px;
    margin: 0 0 10px;
}

/* Ficha técnica (definition list) */
.ev2-lb-ficha {
    margin: 0;
}

.ev2-lb-ficha-row {
    display: flex;
    gap: 6px;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.ev2-lb-ficha-row dt {
    color: #999;
    font-weight: 600;
    min-width: 95px;
    flex-shrink: 0;
}

.ev2-lb-ficha-row dt::after {
    content: ":";
}

.ev2-lb-ficha-row dd {
    color: #ddd;
    margin: 0;
}

/* Texto curatorial */
.ev2-lb-curatorial {
    font-size: 0.92rem;
    line-height: 1.65;
    color: #ccc;
}

.ev2-lb-curatorial p {
    margin: 0 0 8px;
}

/* Descrição / Conceito */
.ev2-lb-descricao {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #ccc;
}

/* Créditos */
.ev2-lb-credito {
    font-size: 0.88rem;
    color: #aaa;
    font-style: italic;
}

/* Link biografia */
.ev2-lb-bio-link {
    display: inline-block;
    color: #4caf7d;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
    text-decoration: none;
}

.ev2-lb-bio-link:hover {
    color: #6fdba5;
    text-decoration: underline;
}

/* Recursos Acessíveis no lightbox */
.ev2-lb-acess-recursos {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ev2-acess-recurso-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #2a2a2a;
    padding: 10px 14px;
    border-radius: 8px;
    transition: background 0.2s;
}

.ev2-acess-recurso-item:hover {
    background: #333;
}

.ev2-acess-recurso-item img {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.ev2-acess-recurso-item .ev2-acess-label {
    font-size: 0.92rem;
    color: #ddd;
    font-weight: 500;
}

.ev2-acess-recurso-item .ev2-acess-label small {
    display: block;
    font-weight: 400;
    font-size: 0.8rem;
    color: #999;
}

.ev2-acess-recurso-item a {
    color: #4caf7d;
    text-decoration: none;
    font-weight: 600;
    margin-left: auto;
}

.ev2-acess-recurso-item a:hover {
    color: #6fdba5;
    text-decoration: underline;
}

.ev2-acess-braile-texto {
    font-size: 0.88rem;
    color: #bbb;
    line-height: 1.5;
    margin-top: 6px;
    padding: 10px;
    background: #2a2a2a;
    border-radius: 6px;
    border-left: 3px solid #2d6a4f;
}

/* Mensagem vazia */
.ev2-vazio {
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 1.1rem;
}

/* ============================================
   RESPONSIVO
   ============================================ */
@media (max-width: 900px) {
    .ev2-lightbox-conteudo {
        flex-direction: column;
        max-height: 95vh;
    }

    .ev2-lb-imagem-col {
        flex: 0 0 auto;
        max-height: 50vh;
        padding: 15px;
    }

    .ev2-lb-imagem img {
        max-height: 45vh;
    }

    .ev2-lb-detalhes-col {
        flex: 1;
        min-width: unset;
        max-height: 50vh;
    }

    .ev2-lb-scroll {
        padding: 20px;
        max-height: 50vh;
    }
}

@media (max-width: 768px) {
    .ev2-galeria-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 12px;
    }

    .ev2-lightbox {
        padding: 10px;
    }

    .ev2-close {
        top: 8px;
        right: 14px;
        font-size: 32px;
    }

    .ev2-lb-detalhes-col h2 {
        font-size: 1.3rem;
    }

    .ev2-lb-ficha-row {
        flex-direction: column;
        gap: 0;
        margin-bottom: 8px;
    }

    .ev2-lb-ficha-row dt {
        min-width: unset;
    }

    .ev2-lb-ficha-row dt::after {
        content: "";
    }
}