/* RESET BÁSICO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: rgba(255,255,255,1.00);
    color: #333;
    /* Adiciona um espaço no topo igual à altura do header para o conteúdo não sumir atrás dele */
    padding-top: 76px; 
}
html, body {
    overflow-x: hidden; /* Impede a barra de rolagem horizontal em todo o site */
    max-width: 100vw;
}


/* CORES PRINCIPAIS */
:root {
    --azul-escuro: #1b263b;
    --vermelho: #e60000;
    --verde-whats: #00664d;
    --cinza-escuro: #2a2a2a;
}

 .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}


/* Ajuste do cabeçalho da página */
        .page-header { 
        margin-top: 30px;
        margin-bottom: 70px;
            background-color: var(--azul-escuro); 
            color: #fff; 
            text-align: center; 
            padding: 60px 20px; 
        }
        .page-header h1 { font-size: 44px; margin: 0; font-weight: 700; padding-bottom: 27px; }
        .page-header span { color: var(--vermelho); }
        
    /* GALERIA */
.gallery {
    text-align: center;
    padding: 180px 20px;
    
  
}
.gallery h2 {
    color: var(--azul-escuro);
    margin-top: 190px;
    margin-bottom: 100px;
    font-size: 44px;
    font-weight: 700;
  

 
 
    
}
.gallery h2 span {

 
    border-bottom: 2px solid var(--vermelho);
   
       
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 100px;
}
.gallery-item {
margin-top: 27px;
    background: #fff;
    padding-bottom: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}
.legenda {
    background-color: var(--vermelho);
    color: #fff;
    padding: 10px;
    font-weight: bold;
}

        /* Estilos específicos para o botão de carregar mais */
        .btn-carregar-mais {
            background-color: var(--vermelho);
            color: #fff;
            border: none;
            padding: 15px 40px;
            font-size: 16px;
            font-weight: bold;
            border-radius: 4px;
            cursor: pointer;
            margin: 70px auto;
            display: block;
            text-transform: uppercase;
            transition: background-color 0.3s ease, transform 0.2s;
        }
        .btn-carregar-mais:hover {
            background-color: #cc0000;
            transform: translateY(-2px);
        }
        .btn-carregar-mais:active {
            transform: translateY(0);
        }
        /* Classe para esconder as fotos além do limite inicial */
        .foto-oculta {
            display: none;
        }
        
        
        /* --- EFEITO LIGHTBOX (FOTO EM TELA CHEIA) --- */

/* Mostra que a imagem é clicável */
.gallery-item {
    cursor: pointer;
    transition: transform 0.3s ease;
}
.gallery-item:hover {
    transform: scale(1.02); /* Dá um leve zoom ao passar o mouse */
}

/* O fundo escuro que cobre a tela */
.lightbox {
    display: none; /* Escondido por padrão */
    position: fixed;
    z-index: 2000; /* Fica acima de tudo, inclusive do header */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Preto com 85% de transparência */
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Classe que o JavaScript vai adicionar para mostrar o Lightbox */
.lightbox.active {
    display: flex;
}

/* A foto grande no centro */
.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease; /* Animação de entrada */
}

/* O título da foto */
.lightbox-caption {
    margin-top: 15px;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
}

/* O botão de fechar (X) */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--vermelho);
}

/* Animação suave ao abrir */
@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}












/* RESPONSIVIDADE BÁSICA */
@media (max-width: 768px) {

.container {
    max-width: 350px;
    margin: 0 auto;
    
}


/* Ajuste do cabeçalho da página */
        .page-header { 
        margin-top: 30px;
        margin-bottom: 70px;
            background-color: var(--azul-escuro); 
            color: #fff; 
            text-align: center; 
            padding: 60px 20px; 
        }
        .page-header h1 { font-size: 40px; margin: 0; font-weight: 700; padding-bottom: 27px; }
        .page-header span { color: var(--vermelho); }



/* GALERIA */
.gallery {
    text-align: center;
   padding-bottom: 400px;
}
.gallery h2 {
    color: var(--azul-escuro);
    margin-top: 70px;
    margin-bottom: 70px;
    font-size: 30px;
    font-weight: 700;
  

 
 
    
}
.gallery h2 span {

 
    border-bottom: 2px solid var(--vermelho);
   
       
}
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.gallery-item {
margin-top: 27px;
    background: #fff;
    padding-bottom: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}
.legenda {
    background-color: var(--vermelho);
    color: #fff;
    padding: 10px;
    font-weight: bold;
}



}












