.pscg-grid-wrap {
  --pscg-columns: 4;
  --pscg-tablet-columns: 2;
  --pscg-mobile-columns: 1;
  --pscg-gap: 18px;
  --pscg-card-height: 230px;
  --pscg-radius: 0px;
  --pscg-overlay: .65;
  margin: 28px 0;
}

.pscg-heading {
  margin: 0 0 18px;
}

.pscg-heading p {
  margin: 0 0 5px;
  color: #d95400;
  font: 900 .76rem/1 Inter, system-ui, sans-serif;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.pscg-heading h2 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.pscg-heading div {
  max-width: 760px;
  color: #5c574d;
}

.pscg-grid {
  display: grid;
  grid-template-columns: repeat(var(--pscg-columns), minmax(0, 1fr));
  gap: var(--pscg-gap);
}

/* v1.0.2 card layout: image in square, copy below it */
.pscg-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--pscg-radius);
  background: rgba(255, 255, 255, .38);
  color: #111;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .12);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.pscg-card:hover,
.pscg-card:focus {
  color: #111;
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .16);
}

.pscg-card::before,
.pscg-card::after {
  display: none !important;
  content: none !important;
}

.pscg-card-media {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: var(--pscg-card-height);
  padding: 14px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .78), rgba(255, 255, 255, .24) 42%, rgba(0, 0, 0, .055) 100%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .018) 0 1px, transparent 1px 14px),
    #eee8dc;
  overflow: hidden;
}

.pscg-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: radial-gradient(circle, rgba(0, 0, 0, .08) 0 1px, transparent 1.5px);
  background-size: 4px 4px;
  opacity: .18;
  pointer-events: none;
}

.pscg-card-bg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(0 7px 6px rgba(0, 0, 0, .24));
}

.pscg-card-content {
  position: relative;
  z-index: 3;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 14px 16px 16px;
  background: rgba(255, 252, 244, .88);
  color: #111;
  text-shadow: none;
}

.pscg-card-label {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 5px;
  background: #1687e5;
  color: #fff;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .18);
}

.pscg-card-content strong {
  display: block;
  color: #111;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.05rem, 1.35vw, 1.35rem);
  font-weight: 900;
  line-height: 1.04;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .12em;
}

.pscg-card-description {
  display: block;
  color: #5c574d;
  font-size: .92rem;
  line-height: 1.3;
}

@media (max-width: 980px) {
  .pscg-grid {
    grid-template-columns: repeat(var(--pscg-tablet-columns), minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .pscg-grid {
    grid-template-columns: repeat(var(--pscg-mobile-columns), minmax(0, 1fr));
  }

  .pscg-card-media {
    min-height: max(210px, var(--pscg-card-height));
  }
}
