
/* CLICK NA FOTTO - CARDS DE INSCRIÇÕES COMPACTOS */

.race-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fill,
    minmax(240px, 280px)
  );
  gap: 18px;
  justify-content: start;
  align-items: stretch;
  width: 100%;
}

.race-card {
  width: 100%;
  max-width: 280px;
  min-width: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #2a1320;
  border: 1px solid #803047;
  display: flex;
  flex-direction: column;
}

.race-cover {
  width: 100%;
  height: 230px;
  aspect-ratio: auto;
  background: #190b12;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.race-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.race-body {
  padding: 14px;
  gap: 8px;
}

.race-body h3 {
  font-size: 17px;
  line-height: 1.3;
}

.race-body p {
  font-size: 13px;
}

.race-cta {
  width: 100%;
  text-align: center;
  padding: 12px;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .race-grid {
    grid-template-columns: repeat(
      2,
      minmax(0, 1fr)
    );
    gap: 10px;
  }

  .race-card {
    max-width: none;
  }

  .race-cover {
    height: 180px;
  }

  .race-body {
    padding: 10px;
  }

  .race-body h3 {
    font-size: 14px;
  }
}

@media (max-width: 380px) {
  .race-grid {
    grid-template-columns: 1fr;
  }

  .race-card {
    max-width: 280px;
  }
}
