.pixel-blogrelatedposts {
  margin: 40px 0;
}

.pixel-blogrelatedposts__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.pixel-blogrelatedposts__item {
  min-width: 0;
}

.pixel-blogrelatedposts__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: #f8f8f8;
  border-radius: 12px;
  transition: box-shadow 0.2s ease;
}

.pixel-blogrelatedposts__link:hover,
.pixel-blogrelatedposts__link:focus {
  color: inherit;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(43, 42, 88, 0.12);
}

.pixel-blogrelatedposts__image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eeeef3;
}

.pixel-blogrelatedposts__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pixel-blogrelatedposts__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
  padding: 16px 20px 20px;
}

.pixel-blogrelatedposts__category {
  color: #dc257b;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.pixel-blogrelatedposts__title {
  color: #2b2a58;
  font-size: 17px;
  font-weight: 700;
  line-height: 24px;
}

.pixel-blogrelatedposts__excerpt {
  color: #6d6d84;
  font-size: 14px;
  line-height: 22px;
}

.pixel-blogrelatedposts__more {
  margin-top: auto;
  color: #dc257b;
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 575px) {
  .pixel-blogrelatedposts {
    margin: 24px 0;
  }

  .pixel-blogrelatedposts__list {
    grid-template-columns: 1fr;
  }
}
