.small-image {
    max-width: 75%; /* Adjust size relative to its container */
    height: auto;   /* Maintain aspect ratio */
    display: block; /* Optional: Centers the image if combined with margin */
    margin: 0 auto; /* Optional: Centers the image horizontally */
}

.site-title img {
  display: block;
  max-height: 60px;
}

@media (min-width: 1024px) {
  .site-title img {
    max-height: 120px;
  }
}

.site-header .wrapper {
  display: flex;
  align-items: flex-end; /* Vertically center items */
  justify-content: space-between; /* Optional: spreads logo and nav */
  flex-wrap: wrap; /* Optional: wrap items on small screens */
}

.hero-image-container {
  width: 100%;
  aspect-ratio: 8 / 1;
  overflow: hidden;
  position: relative;
  z-index: -1;
  padding: 0;
  box-sizing: border-box;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  display: block;
  position: static; /* or just remove */
}

@media (min-width: 1024px) {
  .hero-image-container {
    padding-left: 4rem;
    padding-right: 4rem;
    box-sizing: border-box;
  }
}

/* Generic grid layout for post tiles */
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.post-tile {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.post-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.post-tile img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.post-tile h3 {
  margin: 0;
  padding: 1rem;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

@media (min-width: 768px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .post-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1200px) {
  .post-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

img.portrait {
  max-width: 70%;   /* allow more width for tall images */
  height: auto;
  border-radius: 8px;
}