/*
Blog image and title with other information displayed in a column (not side by side).
Also left-aligned text.
*/
.md-post--excerpt .md-post__header {
  flex-direction: column;
  align-items: start;
}

/* Blog title without unnecessary space around it. */
.list-of-posts h2 {
  margin: 0;
}

/* Hero image container */
.hero-image {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding-bottom: 100%; /* Creates a square aspect ratio */
}

/* Hero image styling */
.hero-image img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

/* Hover effect for hero images */
.hero-image img:hover {
  transform: scale(1.03);
}

/* Two blog previews side by side */
@media (min-width: 45em) {
  .list-of-posts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
