.template-hero {
  width: 100%;
  height: 320px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.newsletter-hero img {
  width: 100%;
  height: auto;
  max-height: 320px;
  display: block;
}

.newsletter-wrap {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  gap: 96px;
  width: 80%;
}

.category-sidebar {
  flex: 1 1 3%;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  padding-bottom: 40px;
}

.category-content {
  flex: 3 1 0%;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.post-card img {
  border-radius: 8px 8px 0 0;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1.414;
  object-fit: cover;
}


@media screen and (max-width: 960px) {
  .newsletter-wrap {
    flex-direction: column;
    gap: 16px;
    width: 90%;
  }
  
  .post-card img {
    border-radius: 8px 8px 0 0;
    width: 100%;
    height: max-content;
    max-height: 100%;
    aspect-ratio: 1 / 1.414;
    object-fit: cover;
  }
}