.services-gallery-section {
  padding: 80px;
  background: #f9f9f9;
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.gallery-card {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
  
  height: 410px;
  text-decoration: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-overlay {
  background: rgba(0, 0, 0, 0.5);
  padding: 30px;
  text-align: center;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: background 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
  background: rgba(0, 0, 0, 0.7);
}

.gallery-overlay i {
 color: #FFF;
text-align: center;
font-family: "Font Awesome 6 Pro";
font-size: 30px;
font-style: normal;
font-weight: 400;
line-height: 16px; /* 53.333% */
letter-spacing: 0.6px;
}

.gallery-overlay h3 {
color: #FFF;
text-align: center;
font-family: Lato;
font-size: 24px;
font-style: normal;
font-weight: 700;
line-height: 26px; /* 66.667% */
letter-spacing: 0.6px;
}

.gallery-overlay p {
color: #FFF;
text-align: center;
font-family: Lato;
font-size: 18px;
font-style: normal;
font-weight: 400;
line-height: 16px; /* 88.889% */
letter-spacing: 0.6px;
}

.gallery-overlay .learn-more {
  font-size: 14px;
  font-weight: 400;
  color: white;
  align-self: anchor-center;
  border: 1px solid white;
  padding: 15px 15px;
  border-radius: 30px;
  display: inline-block;
  margin-top: 5px;
  font-family: Lato, sans-serif;
  transition: all 0.3s ease;
  color: #FFF;
  text-align: center;
  font-family: Lato;
  font-size: 18px;
  font-style: normal;
  width: 180px;
  font-weight: 400;
  line-height: 16px; /* 88.889% */
  letter-spacing: 0.6px;
}

i.fa-regular.fa-plus-circle {
    color: #FFF;
    text-align: center;
    font-family: "Font Awesome 6 Pro";
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px; /* 88.889% */
    letter-spacing: 0.6px;
}


.gallery-overlay .learn-more:hover {
  background: white;
  color: #000;
}
.gallery-overlay .learn-more:hover i {
  color: #000;
}
@media (max-width: 991px) {
  .gallery-card {
    max-width: 100%;
  }
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center; /* centro por padrão */
}

.gallery-card {
  flex: 1 1 calc(33.333% - 20px); /* 3 por linha com gap */
}

@media (max-width: 991px) {
  .gallery-card {
    flex: 1 2 40%;
    /* max-width: 50%; */
  }
   .services-gallery-section {
      padding:80px 30px
  }
}

@media (max-width: 591px) {
  .gallery-card {
    
    flex: 1 1 100%;
  }
 
}