/* =============================================
   ESTILOS DA PÁGINA GALERIA - INKLEGACY
================================================== */

/* --- CABEÇALHO INTRODUTÓRIO --- */
.intro-section {
    padding-top: 180px; /* Espaço para o header fixo */
    padding-bottom: 60px;
    text-align: center;
    background-color: var(--cor-secundaria);
    border-bottom: 1px solid var(--cor-borda);
    background-image: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.9)), url('https://images.unsplash.com/photo-1598371839696-5c5bb00bdc28?q=80&w=1200&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
}

.intro-section h1 {
    font-size: 3.5rem;
    color: var(--cor-destaque);
    margin-bottom: 15px;
}

.intro-section p {
    color: var(--cor-texto);
    line-height: 1.6;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    font-style: italic;
    font-family: var(--fonte-titulo);
}

/* --- 1. Seção da Galeria --- */
.gallery-section {
    padding-top: 60px;
    padding-bottom: 80px;
    background-color: var(--cor-fundo);
}

/* --- 2. Botões de Filtro --- */
.filter-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-btn {
    background-color: transparent;
    color: var(--cor-texto-suave);
    border: 1px solid var(--cor-borda);
    padding: 10px 25px;
    border-radius: 2px;
    cursor: pointer;
    font-family: var(--fonte-corpo);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

/* Efeito ao passar o mouse por cima */
.filter-btn:hover {
    color: var(--cor-destaque);
    border-color: var(--cor-destaque);
}

/* Estilo do botão ativo (selecionado) */
.filter-btn.active {
    background-color: var(--cor-destaque);
    color: #121212;
    border-color: var(--cor-destaque);
}

/* --- 3. Grid da Galeria --- */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    display: block;
    height: 350px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border: 1px solid var(--cor-borda);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease, filter 0.6s ease;
    filter: grayscale(60%); /* Estética levemente desaturada */
}

/* --- 4. Efeito de Sobreposição (Overlay) --- */
.gallery-item:hover img {
    transform: scale(1.05);
    filter: grayscale(0%); /* Cor total no hover */
}

.gallery-item__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item__overlay {
    opacity: 1;
}

.gallery-item__overlay span {
    color: var(--cor-destaque);
    font-family: var(--fonte-titulo);
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid var(--cor-destaque);
    padding: 10px 30px;
    border-radius: 2px;
}

/* =============================================
   5 - ESTILOS DO MODAL DA GALERIA
============================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 2px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    border: 1px solid var(--cor-borda);
}

/* Botão Fechar */
.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--cor-texto);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.3s;
}

.modal-close:hover { color: var(--cor-destaque); }

/* Navegação */
.modal-prev,
.modal-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: var(--cor-texto);
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.modal-next { right: 0; border-radius: 3px 0 0 3px; }
.modal-prev { left: 0; border-radius: 0 3px 3px 0; }

.modal-prev:hover, .modal-next:hover {
    background-color: rgba(197, 160, 89, 0.2); /* Highlight dourado sutil */
    color: var(--cor-destaque);
}

/* =============================================
   Media Queries
============================================= */
@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}