/* Layout Principal */
/*body { font-family: sans-serif; margin: 0; padding: 20px; background: #f4f4f4; }*/

/*.demo-1 {
    /*margin-top: 245px;*/
/*}*/
@media only screen and (min-width: 992px) {
    .galeria-tem-imagem {
        grid-template-columns: repeat(3, 1fr); /* 4 imagens por linha */
        max-width: 1000px;/* 1200 */
        gap: 25px;
        margin-top: 270px;
    }
    .zoom-icon {
        width: 20px;/*35*/
        height: 20px;/*35*/
    }    
}

@media only screen and (max-width: 991px) {
    .galeria-tem-imagem {
        grid-template-columns: repeat(2, 1fr); /* 2 imagens por linha */
        max-width: 500px;/* 1200 */
        gap: 15px;
        margin-top: 248px; 
    }
    .zoom-icon {
        width: 19px;/*35*/
        height: 19px;/*35*/
    }    
}

@media only screen and (max-width: 364px) {
    .galeria-tem-imagem {
       margin-top: 240px; /*272*/
    }
    .zoom-icon {
        width: 18px;/*35*/
        height: 18px;/*35*/
    }    
}

.galeria-tem-imagem {
    display: grid;
    /*grid-template-columns: repeat(2, 1fr); /* 2 imagens por linha */
    /*gap: 15px;*/
    /*max-width: 500px;/* 1200 */
    /*margin: 0 auto;*/
    /*margin-top: 275px;*/
    margin-bottom: 0;
    margin-left: auto;
    margin-right: auto;
}
/*Css do imagem-card antes da colocação do ícone*/
/*.imagem-card {
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    text-align: center;
}*/
/*Css do imagem-card com a colocação do ícone*/
.imagem-card {
    position: relative; /* Referência para o ícone */
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    text-align: center;
    overflow: hidden;

    /* Em fev 2026*/
    opacity: 0; 
    transition: opacity 0.5s ease; /* Efeito suave ao aparecer */
}

/* Quando a imagem carregar, esta classe será adicionada via JS -  Em fev 2026*/
.imagem-card.revelado {
    opacity: 1;
}

/* Estilo do Ícone de Zoom */
.zoom-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    /*width: 20px;/*35*/
    /*height: 20px;/*35*/
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, background 0.3s ease;
    z-index: 10;
}

/* Efeito ao passar o mouse */
.imagem-card:hover .zoom-icon {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.imagem-card img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.descricao { margin-top: 10px; font-weight: bold; color: #333; }

/* Estilo do Overlay (Ampliação) */
#overlay {
    display: none; /* Escondido por padrão */ 
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    flex-direction: column;
    justify-content: center; 
    align-items: center; 
    cursor: pointer;
}

/*#img-ampliada {
    max-width: 90%;
    max-height: 80%;
    border: 3px solid #fff;
}*/

#img-ampliada {
    margin-top: -2px;
    max-width: 95%;
    max-height: 85%;
    border: 3px solid #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    /* Se a imagem demorar, mostra um fundo cinza com pulsação */
    background: #222 url('../imagens/ajax-loader.gif') no-content center center; 
}


#legenda-ampliada {
    color: #fff;
    margin-top: 6px;/*15*/
    font-size: 1.0rem;/*1.2*/
}

#btn-fechar {
    position: absolute;
    top: 20px; right: 30px;
    color: #fff; font-size: 40px; font-weight: 500;
}

/* Ajuste Mobile */
@media (max-width: 600px) {
    .galeria-container { gap: 8px; padding: 5px; }
    #img-ampliada { width: 100%; border: none; } /* Tela cheia na largura */
}