.sponsor-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.sponsor-card {
  overflow: hidden;
  border: 1px solid rgba(118, 175, 194, 0.18);
  border-radius: var(--radius);
  background: rgba(16, 25, 34, 0.54);
}

.sponsor-card .card-label {
  margin: 22px 22px 12px;
}

.sponsor-card h3 {
  margin: 0 22px 10px;
  color: #fff;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.18;
}

.sponsor-card p:not(.card-label) {
  margin: 0 22px 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.sponsor-visual {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  background: var(--bg);
}

.sponsor-visual::before,
.sponsor-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sponsor-visual::before {
  opacity: 0.98;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.01);
  transition: transform 260ms ease, opacity 260ms ease;
}

.sponsor-card:hover .sponsor-visual::before {
  transform: scale(1.035);
}

.sponsor-visual::after {
  background:
    linear-gradient(180deg, rgba(6, 10, 14, 0.02), rgba(6, 10, 14, 0.42) 74%, rgba(6, 10, 14, 0.82)),
    linear-gradient(90deg, rgba(6, 10, 14, 0.14), transparent 56%);
}

.sponsor-visual.ambient-mug::before {
  background-image:
    url("../images/sponsor-examples/ambient-luma-mug.png"),
    url("../images/hero.webp"),
    url("../images/hero.png");
}

.sponsor-visual.ambient-frame::before {
  background-image:
    url("../images/sponsor-examples/ambient-nord-home.png"),
    url("../images/hero.webp"),
    url("../images/hero.png");
}

.sponsor-visual.animals-kit::before {
  background-image:
    url("../images/sponsor-examples/animals-wildnest.png"),
    url("../images/animals-hero.webp"),
    url("../images/animals-hero.png");
}

.sponsor-visual.animals-care::before {
  background-image:
    url("../images/sponsor-examples/animals-paw-calm.png"),
    url("../images/animals-hero.webp"),
    url("../images/animals-hero.png");
}

.sponsor-visual.space-desk::before {
  background-image:
    url("../images/sponsor-examples/space-orbit-focus.png"),
    url("../images/space-hero.webp"),
    url("../images/space-hero.png");
}

.sponsor-visual.space-panel::before {
  background-image:
    url("../images/sponsor-examples/space-nova-labs.png"),
    url("../images/space-hero.webp"),
    url("../images/space-hero.png");
}

.mock-product,
.mock-frame {
  display: none;
}

@media (max-width: 980px) {
  .sponsor-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .sponsor-gallery {
    grid-template-columns: 1fr;
  }

  .sponsor-visual {
    min-height: 230px;
  }
}
