.mbg-post-grid-wrap {
  width: 100%;
}

.mbg-post-grid {
  display: grid;
  grid-template-columns: repeat(var(--mbg-columns, 3), minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.mbg-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.mbg-thumb-link,
.mbg-title a,
.mbg-read-more {
  text-decoration: none;
}

.mbg-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f4f4f4;
}

.mbg-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mbg-card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.mbg-title {
  font-size: 1.25rem;
  line-height: 1.2;
  margin: 0;
}

.mbg-title a {
  color: inherit;
}

.mbg-meta {
  font-size: 0.9rem;
  opacity: 0.72;
}

.mbg-excerpt {
  font-size: 0.98rem;
  line-height: 1.55;
  opacity: 0.9;
}

.mbg-actions {
  margin-top: auto;
  padding-top: 4px;
}

.mbg-read-more {
  display: inline-block;
  font-weight: 600;
}

.mbg-empty {
  padding: 16px 18px;
  border: 1px dashed rgba(0, 0, 0, 0.2);
  border-radius: 12px;
}

@media (max-width: 1100px) {
  .mbg-post-grid {
    grid-template-columns: repeat(min(3, var(--mbg-columns, 3)), minmax(0, 1fr));
  }
}

@media (max-width: 782px) {
  .mbg-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 540px) {
  .mbg-post-grid {
    grid-template-columns: 1fr;
  }
}
