/* Fonte pincelada do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Rock+Salt&display=swap');

body {
  font-family: Arial, sans-serif;
  margin: 0;
  background-color: #f4f4f4;
  color: #333;
}

/* Cabeçalho com imagem de fundo */
header {
  background: url('imagens/fundo.png') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 60px 20px;
}

header h1 {
  font-family: 'Rock Salt', cursive;
  font-size: 48px;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

header p {
  font-size: 20px;
  margin-top: 10px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

/* Galeria com fundo vibrante e pinceladas */
.galeria {
  background: 
    url('imagens/pincelada.jpeg') center/cover no-repeat,
    linear-gradient(135deg, #f9d423, #ff4e50);
  background-blend-mode: overlay;
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  border-top: 4px solid #e67e22;
  border-bottom: 4px solid #e74c3c;
}

/* Cartões das obras */
.obra {
  background-color: white;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.obra:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.obra img {
  width: 100%;
  border-radius: 6px;
  cursor: zoom-in;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.8);
  text-align: center;
  padding-top: 100px;
  z-index: 1000;
  transition: opacity 0.3s ease;
}

.modal img {
  max-width: 80%;
  border-radius: 10px;
}

.modal p {
  color: white;
  font-size: 20px;
  margin-top: 10px;
}

#modal-descricao {
  font-size: 18px;
  margin-top: 5px;
  color: #ccc;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.fechar {
  position: absolute;
  top: 20px; right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

/* Rodapé */
footer {
  background-color: #2c3e50;
  color: white;
  text-align: center;
  padding: 20px;
}

/* Responsivo */
@media (max-width: 600px) {
  .modal img {
    max-width: 95%;
  }

  .modal p {
    font-size: 16px;
  }

  .fechar {
    font-size: 30px;
    right: 20px;
  }

  header h1 {
    font-size: 36px;
  }

  header p {
    font-size: 16px;
  }
}