.blog-container {
  max-width: 960px;
  margin: 0 auto;
}

.year-section {
  margin-bottom: 60px;
}

.year-section h2 {
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 10px;
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: normal;
}

.posts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.post-card {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
}

.media-frame {
  width: 100%;
  background-color: #ffffff;
  overflow: hidden;
  margin-bottom: 12px;
  border-radius: 4px;
  position: relative;
  /* Aspect ratio: 16/9 = 56.25% */
  padding-bottom: 56.25%;
  height: 0;
}

.media-frame img,
.media-frame video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s ease-in-out;
}

.post-card:hover .media-frame img {
  opacity: 0.9;
}

.post-title {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  color: #1772d0;
}

.post-card a:hover .post-title {
  color: #f09228;
}

.post-meta {
  color: #666;
  font-size: 12px;
  margin-top: 4px;
}

@media (min-width: 600px) {
  .post-card {
    flex: 0 0 calc(50% - 15px);
  }
}

@media (min-width: 900px) {
  .post-card {
    flex: 0 0 calc(33.333% - 20px);
  }
}

.back-link {
  margin-bottom: 40px;
}
