.post-grid {
  display: grid;
  grid-template-columns: repeat(1, 100%);
  gap: 1.25rem;
  margin: 1.25rem auto;
  padding: 0;
}

.post-item {
  border: 1px solid var(--background-03);
  overflow: hidden;
  transition: transform 0.3s ease;
  background-color: var(--background-05);
  border-radius: var(--border-radius-m);
  display: flex;
  padding: 1.875rem;
  gap: 1.25rem;
}
@media (max-width: 768px) {
  .post-item {
    padding: 1.25rem;
  }
}

.post-content {
  display: flex;
  flex-direction: column;
}

.post-thumbnail {
  width: 100%;
  height: 100%;
  min-height: 10rem;
  border-radius: var(--border-radius-s);
  overflow: hidden;
  position: relative;
}
@media (max-width: 768px) {
  .post-item.has-thumbnail {
    flex-direction: column-reverse;
  }
}

@media (min-width: 768px) {
  .post-item.has-thumbnail .post-content {
    width: calc(60% - 1.25rem / 2);
  }
  .post-item.has-thumbnail .post-thumbnail {
    width: calc(40% - 1.25rem / 2);
  }
}

.post-thumbnail img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
}

.post-content .post-title {
  font-size: var(--headline-xs);
  margin-bottom: 0.3125rem;
  hyphens: auto;
}
.post-content .post-title a {
  text-decoration: none;
}

.post-meta {
  font-size: calc(var(--body-text-size) * 0.9);
  color: var(--foreground-03);
  margin-bottom: 0.5rem;
}

.post-excerpt {
  font-size: calc(var(--body-text-size) * 0.95);
  color: var(--foreground-03);
  hyphens: auto;
}

.post-content .post-link {
  background-color: var(--accent-01);
  color: var(--accent-contrast);
  font-size: calc(var(--body-text-size) * 0.9);
  padding: 0.375rem 0.75rem;
  margin-top: 1rem;
  width: fit-content;
  border-radius: var(--border-radius-s);
  text-decoration: none;
}

.post-content .post-link:hover {
  background-color: var(--foreground-01);
}

.wp-block-image img {
  border-radius: var(--border-radius-m);
}
