/* //////////////////////////////////////////////// */
/* Grid */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(3, auto);
  justify-content: center;
  justify-items: center;
  align-content: center;
  align-items: center;
  gap: 4.8rem;
  width: 100%;
}

.card-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(4, auto);
  justify-content: center;
  justify-items: center;
  align-content: center;
  align-items: center;
  gap: 4.8rem;
  width: 100%;
}

.card-grid-team {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(8, auto);
  justify-content: center;
  justify-items: center;
  align-content: center;
  align-items: center;
  gap: 4.8rem;
  width: 100%;
}

.card-grid-values {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(4, auto);
  justify-content: center;
  justify-items: center;
  align-content: center;
  align-items: center;
  gap: 4.8rem;
  width: 100%;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, auto);
  justify-content: center;
  justify-items: center;
  align-content: center;
  align-items: center;
  gap: 0;
  width: 100%;
  overflow: hidden;
  border-radius: 1.2rem;
}

.gallery-grid-img {
  width: 100%;
  transition: all 0.3s ease-in-out;
}

.gallery-grid-img:hover {
  transform: scale(1.2);
}

.gallery-img-box {
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
  width: auto;
  overflow: hidden;
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
  }

  .card-grid-2 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
  }

  .card-grid-team {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, auto);
  }

  .card-grid-values {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
  }

  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(2, auto);
  }
}

@media (min-width: 1200px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
  }

  .card-grid-team {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, auto);
  }
}
