.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px,1fr));
  gap: 15px;
  padding: 20px;
}

.post-card {
  aspect-ratio: 1;
  position: relative;
  border: 1px solid white;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.post-card:hover {
  transform: scale(1.03);
}

.post-card__image-wrapper {
  width: 100%;
  height: 100%;
}

.post-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card:hover .post-card__caption {
  opacity: 1;
}

.post-card__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 0 20px 15px;
  background: linear-gradient(
    transparent 0%,
    rgba(0, 0, 0, 0.5) 70%,
    rgba(0, 0, 0, 0.6) 100%
  );
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
  height: 50%;
  display: flex;
  align-items: flex-end;
  font-size: 16px;
}

.section__title {
  padding: 20px;
  margin: 0;
}

.section__a {
  text-decoration: none;
  color: inherit;
}

.section--gap {
  margin-top: 20px;
}

