/* Blog categories hub — ported from SimYak simyak-sc.css (.smyk-sc-blogs-hub)
   Card colours come from templates/page.blogs.json placeholder_color values. */

.smyk-bch {
  padding-block: clamp(40px, 6vw, 80px);
  background: linear-gradient(180deg, #fff 0%, #faf7ff 60%, #fff 100%);
}
.smyk-bch__wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

/* ── 3-column grid ── */
.smyk-bch__grid {
  display: grid;
  gap: clamp(16px, 2.2vw, 24px);
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
  .smyk-bch__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .smyk-bch__grid { grid-template-columns: 1fr; }
}

/* ── Cell (card + label below) ── */
.smyk-bch__cell {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Card — static, no hover animation (as on SimYak) ── */
.smyk-bch__card {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  padding: clamp(18px, 2.4vw, 26px);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  isolation: isolate;
}
/* Full-bleed artwork card (live SimYak variant): the image IS the card design —
   no padding, no text overlay, no darkening; the artwork carries its own title. */
.smyk-bch__card--has-image {
  padding: 0;
  border: none;
  box-shadow: none;
}
.smyk-bch__card-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  display: block;
}
.smyk-bch__card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Label below the card ── */
.smyk-bch__label {
  margin: 0;
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  font-weight: 600;
  color: #0a1628;
  text-align: center;
  padding-inline: 4px;
}
