/* --- Estilos para a Página de Galeria --- */

.gallery-header {
    text-align: center;
    padding: 40px 20px;
    color: #333;
}

.gallery-header h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    color: var(--color-standard-top);
}

.gallery-header p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: #555;
}

.gallery-section {
    max-width: 1200px;
    margin: 0 auto 40px auto;
    padding: 0 20px;
}

.gallery-section h2 {
    font-size: 2rem;
    color: #333;
    border-left: 5px solid var(--color-standard-top);
    padding-left: 15px;
    margin-bottom: 25px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* --- Estilos para o Lightbox --- */

.lightbox {
    display: none; /* Começa escondido */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.4s;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    border-radius: 5px;
    animation: zoomIn 0.4s;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #ccc;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}

/* Responsividade da Galeria */
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
     .gallery-item img {
        height: 150px;
    }
}