.post {
  display: flex;
  flex-direction: column;
  /* Fill the grid column. Without this the card shrinks to fit its text, so a
     post with a short excerpt ends up narrower than its neighbours — and its
     picture box with it. */
  width: 100%;
  min-width: 0;
  height: 100%;
}

.post a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: black;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  padding: 0;
  overflow: hidden;
}

.post a:hover,
.post a:active {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* One fixed picture box on every card, whatever the column width or the
   photo's shape. `cover` fills it completely — no empty space — and the
   post's focal point (an inline object-position) decides which part survives
   the crop. Switch to `contain` if you'd rather never crop and accept the
   letterboxing. */
.post img {
  width: 100%;
  height: 13rem;
  object-fit: cover;
  /* Fallback if a post has no focal point set; the template's inline
     object-position wins when it does. */
  object-position: center top;
  display: block;
  background-color: #ede1fb;
}

.post__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0.75rem 1.25rem 1.25rem 1.25rem;
  text-align: center;
}

.post h3 {
  margin: 0.25rem 0;
  font-size: 1.15rem;
  line-height: 1.3;
}

.post__content p {
  margin: 0;
  color: #4a4a4a;
  line-height: 1.5;
}

.post time {
  color: #666666;
  font-style: italic;
  font-size: 0.85rem;
}

.post a:hover .post__content p,
.post a:hover .post__meta,
.post a:hover time {
  color: #4a4a4a;
}

/* --------------------------------------------------------------------------
   The "read more" cue. Not everyone realises a whole card is clickable, so the
   card says so. Pushed to the bottom of the card, which keeps it on one line
   across a row whatever length the excerpts are.
   -------------------------------------------------------------------------- */

.post__more {
  display: block;
  margin-top: auto;
  padding-top: 0.85rem;
  color: #5706c0;
  font-size: 0.9rem;
  font-weight: bold;
}

.post__more span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.post a:hover .post__more span,
.post a:focus-visible .post__more span {
  transform: translateX(3px);
}
