.thanks-showcase {
  position: relative;
  overflow: hidden;
}

.thanks-showcase--compact {
  color: #fff;
  background: var(--color-dark);
}

.thanks-showcase--compact::before,
.thanks-showcase--compact::after {
  position: absolute;
  width: 320px;
  height: 190px;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .18) 1.5px, transparent 1.7px);
  background-size: 24px 24px;
  content: "";
  pointer-events: none;
}

.thanks-showcase--compact::before { top: -62px; left: 12%; }
.thanks-showcase--compact::after { right: 8%; bottom: -76px; }

.thanks-showcase .container { position: relative; z-index: 1; }

.thanks-showcase__heading {
  margin-bottom: 40px;
  text-align: center;
}

.thanks-showcase__heading h2 { margin: 0; }
.thanks-showcase--compact .thanks-showcase__heading h2 { color: #fff; font-size: 38px; line-height: 1.25; }

.thanks-showcase__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.thanks-card { min-width: 0; }

.thanks-card__link {
  display: flex;
  height: 100%;
  overflow: visible;
  flex-direction: column;
  border: 0;
  border-radius: 0;
  color: var(--color-dark);
  background: transparent;
  transition: transform var(--transition);
}

.thanks-showcase--compact .thanks-card__link {
  border: 0;
  color: #fff;
  background: transparent;
}

.thanks-card__link:hover,
.thanks-card__link:focus-visible {
  transform: translateY(-4px);
}

.thanks-card__preview {
  aspect-ratio: 210 / 297;
  overflow: hidden;
  border-radius: var(--radius-control);
  background: #fff;
}

.thanks-card__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.thanks-card__link:hover .thanks-card__preview img { transform: scale(1.025); }

.thanks-card h3 {
  margin: 0;
  padding: 16px 0 0;
  font-size: 16px;
  line-height: 1.35;
}

@media (max-width: 1180px) {
  .thanks-showcase__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .thanks-showcase__heading { margin-bottom: 30px; text-align: left; }
  .thanks-showcase--compact .thanks-showcase__heading h2 { font-size: 27px; }
  .thanks-showcase__grid { gap: 12px; }
  .thanks-card h3 { padding: 13px 0 0; font-size: 14px; }
}
