.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.modal-imagem {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px #000;
}

.modal-fechar {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  z-index: 1001;
}

.galeria_lista {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
  justify-content: center;
}

.galeria_lista {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
  justify-content: center;
}

.galeria_lista li {
  width: auto;
}

.galeria_lista img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}


.galeria_lista img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.subtitulo {
  font-size: 2rem;
  text-align: center;
  margin: 40px 0 20px 0;
  color: #fff;
}



/* Responsivo para tablets */
@media (max-width: 900px) {
  .galeria_lista li {
    flex: 0 0 calc(50% - 20px); /* 2 colunas */
  }
}

/* Responsivo para celulares */
@media (max-width: 600px) {
  .galeria_lista li {
    flex: 0 0 100%; /* 1 coluna */
  }
}

html,
      body {
        margin: 0;
        padding: 0;
        background-color: #0088cc;
        color: #fff;
        font-family: Arial, sans-serif;
        min-height: 100%;
      }


