body {
  background-color: #001a4d;
}

main{
    max-width: 1500px;
    width: 100%;
    margin: auto;
    padding: 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 60px 20px;
    color: white;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    text-align: center;
}

.coluna .card {
    border: 1px solid white;
    border-radius: 10px;
    background-color: rgb(0, 148, 104);
    overflow: hidden;
  }
  
.coluna .card img{
    width: 100%;
    display: block;
    border-radius: 10px 10px 0 0;
    object-fit: cover;   
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.card:hover {
    transform: scale(1.1);
    z-index: 10;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7);
}

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

body.dark-mode .modal {
  background: rgba(0, 0, 0, 0.9);
}

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

footer {
  text-align: center;
  padding: 10px 0;
  margin-top: 20px;
}

@media (max-width: 768px) {
    main {
        padding: 10px;
    }

    .grid {
        gap: 15px;
    }

    .card:hover {
        transform: scale(1.03); /* menos zoom no celular */
    }
}