/* Estilos para a Galeria de Trabalhos */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Grid responsivo */
    gap: 20px;
    padding: 10px;
}

.gallery-work-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out;
}

.gallery-work-item:hover {
    transform: translateY(-5px);
}

.gallery-thumbnail {
    width: 100%;
    height: 120px; /* Altura fixa para miniaturas */
    object-fit: cover; /* Garante que a imagem cubra a área */
    border-bottom: 1px solid #eee;
}

.gallery-work-info {
    padding: 10px;
    flex-grow: 1; /* Permite que o info ocupe o espaço restante */
    width: 100%;
}

.gallery-work-title {
    font-weight: bold;
    font-size: 0.9em;
    color: #333;
    display: block;
    margin-bottom: 5px;
    white-space: nowrap; /* Evita quebra de linha */
    overflow: hidden; /* Esconde o excesso */
    text-overflow: ellipsis; /* Adiciona "..." */
}

.gallery-work-date {
    font-size: 0.75em;
    color: #777;
    display: block;
}

.load-work-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px;
    transition: background-color 0.2s;
    width: calc(100% - 20px); /* Ocupa a largura total menos o margin */
}

.load-work-btn:hover {
    background-color: #0056b3;
}

.loading-indicator, .gallery-message {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 1.1em;
}

.gallery-message.error {
    color: red;
}