/* ── Recent posts grid ── */
.recent-posts-grid {
  margin-bottom: 2rem;
}

.recent-posts-grid > h2 {
  margin-bottom: 1rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 720px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 400px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Individual card ── */
.recent-post-card {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  text-decoration: none;
  background: #1a1a1a; /* fallback if image is missing */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* thumbnail figure fills the card */
.recent-post-card .entry-thumbnail {
  position: absolute;
  inset: 0;
  margin: 0;
}

.recent-post-card .entry-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Title overlay ── */
.recent-post-card .card-title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  padding: 3rem 0.85rem 0.85rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, transparent 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.3;
}

.recent-post-card:hover .card-title-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.15) 100%);
}

/* ── About section: headshot floated left ── */
.post-content > p:first-of-type > img {
  float: left;
  margin: 0 1.5rem 1rem 0;
  border-radius: 4px;
}
