.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: #1a1a1a;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
  overflow: hidden;
  cursor: default;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.8);
}

.card img {
  width: 100%;
  height: auto;
  border-bottom: 1px solid #333;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  display: block;
}

.caption {
  padding: 15px 12px;
  color: #eee;
  font-size: 1.1rem;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.number {
  font-weight: 700;
  color: #f00;
  font-size: 1.15rem;
  margin-bottom: 6px;
}
