/* ======= Gallery Section (responsiva) ======= */
.gallery-clean{
  padding: 0 20px;
  background: #fff;
  margin: 0;
  display: flow-root;
  overflow: hidden;
  box-sizing: border-box;
}

/* ======= Grid base: 3 colunas (desktop + tablet) ======= */
.gallery-grid{
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 colunas por padrão */
  gap: 24px;
  justify-items: stretch;
}

/* ======= Card ======= */
.gallery-card{
  position: relative;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #a8d18d;
  box-shadow: 0 6px 18px rgba(0,0,0,.10);
  transition: transform .25s ease, box-shadow .25s ease;

  display: flex;
  align-items: center;
  justify-content: center;

  aspect-ratio: 16 / 9;  /* ajuste a proporção se quiser */
  height: auto;
  width: 100%;
}

.gallery-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0,0,0,.14);
}

.gallery-card img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

/* ======= Mobile (até 560px): SEMPRE 2 colunas ======= */
@media (max-width: 560px){
  .gallery-clean{
    padding-left: 8px;
    padding-right: 8px;
  }

  .gallery-grid{
    max-width: none;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important; /* 2 colunas */
    gap: 8px !important;
  }

  .gallery-card{
    border-radius: 16px;
    /* Se quiser mais alto no mobile: */
    /* aspect-ratio: 4 / 3; */
  }
}

/* ======= Telas muito pequenas (até 379px): mantém 2 colunas ======= */
@media (max-width: 379px){
  .gallery-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }
}
