/* ===== GALERIA FLUTUANTE SIMPLIFICADA ===== */
.galeria-estrutura-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.galeria-estrutura-overlay.active {
    display: flex;
    opacity: 1;
}

.galeria-estrutura-container {
    background: white;
    border-radius: 20px;
    width: 95%;
    max-width: 1000px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.galeria-estrutura-overlay.active .galeria-estrutura-container {
    transform: translateY(0) scale(1);
}

.galeria-estrutura-header {
    padding: 20px;
    background: linear-gradient(135deg, #7bcaef 0%, #097e8d 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.galeria-estrutura-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: white;
    text-align: left;
}

.galeria-estrutura-fechar {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.galeria-estrutura-fechar:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.galeria-estrutura-conteudo {
    position: relative;
    padding: 20px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.galeria-estrutura-slide {
    display: none;
    animation: fadeIn 0.5s ease;
    flex: 1;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.galeria-estrutura-slide.active {
    display: flex;
    flex-direction: column;
}

.galeria-imagem-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 15px;
    margin-bottom: 15px;
    overflow: hidden;
    min-height: 450px;
}

.galeria-imagem-container img {
    width: 100%;
    height: 100%;
    max-height: 550px;
    object-fit: contain;
}

.galeria-descricao {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 10px;
    margin-top: 10px;
}

.galeria-descricao h3 {
    color: #2c3e50;
    margin: 0 0 8px 0;
    font-size: 1.3rem;
}

.galeria-descricao p {
    color: #5d6d7e;
    margin: 0;
    font-size: 1rem;
}

/* CONTROLES DA GALERIA */
.galeria-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, rgba(123, 202, 233, 0.9), rgba(9, 126, 141, 0.9));
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.galeria-nav:hover {
    transform: translateY(-50%) scale(1.1);
    background: linear-gradient(135deg, #7bcaef, #097e8d);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.galeria-prev {
    left: 15px;
}

.galeria-next {
    right: 15px;
}

/* INDICADORES */
.galeria-estrutura-indicadores {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
}

.galeria-indicador {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #bdc3c7;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.galeria-indicador.active {
    background: #097e8d;
    width: 25px;
    border-radius: 5px;
}

.galeria-indicador:hover {
    background: #7bcaef;
}

/* RESPONSIVIDADE */
@media screen and (max-width: 768px) {
    .galeria-estrutura-container {
        max-width: 95%;
    }
    
    .galeria-estrutura-conteudo {
        min-height: 400px;
        padding: 15px;
    }
    
    .galeria-imagem-container {
        min-height: 350px;
    }
    
    .galeria-imagem-container img {
        max-height: 350px;
    }
    
    .galeria-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .galeria-prev {
        left: 10px;
    }
    
    .galeria-next {
        right: 10px;
    }
    
    .galeria-descricao h3 {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 480px) {
    .galeria-estrutura-conteudo {
        min-height: 350px;
    }
    
    .galeria-imagem-container {
        min-height: 280px;
    }
    
    .galeria-imagem-container img {
        max-height: 280px;
    }
}