/* Catalog blog body (AP-MT-BLOG-01) — keep out of site.css (OVER). */

.blog-body .blog-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 1.25rem 0 1.5rem;
  clear: both;
  width: 100%;
  max-width: 100%;
}

/* Defense: nested wrappers from re-run rewrite must not subdivide the grid. */
.blog-body .blog-gallery .blog-gallery {
  display: contents;
}

@media (min-width: 520px) {
  .blog-body .blog-gallery {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 860px) {
  .blog-body .blog-gallery {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.blog-body .blog-figure {
  margin: 1.25rem 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.blog-body .blog-figure img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 2px;
  object-fit: contain;
}

/* Multi-col tiles: equal cells (Elementor-like). Solo figures keep natural aspect. */
.blog-body .blog-gallery .blog-figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--nv-light-bg, #f7f7f7);
}

.blog-body .blog-gallery .blog-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
}

/* Soft catalog CTA after stripped Woo sale blocks (AP-MT-BLOG-01 §1.9) */
.blog-body .blog-catalog-cta {
  margin: 1.25rem 0 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.blog-body .blog-catalog-cta a {
  color: var(--nv-secondary-accent);
}

.blog-body .blog-catalog-cta a:hover {
  color: var(--nv-primary-accent);
}
