.avatar-box {
  text-align: center;
  margin: 20px auto;
  max-width: 1000px;
  padding: 0 15px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  gap: 20px;

position: static !important;
height: auto !important;
}

/* Responsividade */
@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  padding: 10px;
  transition: box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
    position: relative;
  overflow: hidden;

  text-align: center;
  cursor: pointer;
}

.card:hover {
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}

.img-box {
  width: 100%;
  height: 240px;   /* quadrado fixo */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
    position: relative;

}

.img-box img {
  width: 100%;
   height: auto;
  object-fit: cover;  /* 🔥 imagem sempre cobre o quadrado */
  border-radius: 6px;
  transition: transform 0.3s ease;
}
.card:hover img {
  transform: scale(1.2);
}

.card:hover .overlay {
  opacity: 1;
}

.view-btn {
  background-color: #de2021;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
}

.card h2 {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  text-align: center;
  word-wrap: break-word; /* quebra automática se o título for grande */
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.slider {
    display: flex;
    flex-direction: column;
    height: 100%;
    animation: slideAnimation 6s infinite alternate;
}

.slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    transition: transform 1s ease;
}

.slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.up {
    animation: moveUp 3s infinite alternate;
}

.down {
    animation: moveDown 3s infinite alternate;
}

@keyframes slideAnimation {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(-200%);
    }
}

@keyframes moveUp {
    0% {
        transform: translateY(30px);
    }
    100% {
        transform: translateY(-30px);
    }
}

@keyframes moveDown {
    0% {
        transform: translateY(-30px);
    }
    100% {
        transform: translateY(30px);
    }
}
