.relatedposts-container {
  position: relative;
  margin: 104px 0 0;
  padding: 60px 0 104px;
}

.relatedposts-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  height: 100%;
  background: #f8f8f8;
  z-index: -1;
}

.relatedposts-wrapper {
  width: var(--max-width);
  margin: auto;
  @media (max-width: 1230px) {
    width: 100%;
  }
}

.postblock-item {
  width: 95%;
  @media (min-width: 640px) {
    width: 47%;
  }
  @media (min-width: 768px) {
    width: 33.3333%;
  }
}

.postblock-item:first-child {
  padding-left: 16px;
  @media (min-width: 768px) {
    padding-left: 0;
  }
}

.software-article {
  .postblock-item-image img {
    height: 219px;
    width: 100%;
    object-fit: cover;
  }

  .postblock-item-content {
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(255, 255, 255);
    @media (min-width: 768px) {
      height: 205px;
    }
  }
}

.backstage-article {
  .postblock-item-image img {
    height: 219px;
    width: 100%;
    object-fit: cover;
  }

  article {
    height: 100%;
    background: rgba(255, 255, 255);
  }

  .postblock-item-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(255, 255, 255);
  }
  .postblock-item-title h6 {
    padding-bottom: 1rem;
  }
}

.projects-article,
.projekte-article {
  .postblock-item-image img {
    height: 219px;
    width: 100%;
    object-fit: cover;
  }

  .postblock-item-title h6 {
    padding-bottom: 3rem;
  }

  .postblock-item-content {
    height: 205px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(255, 255, 255);
  }
}

.trends-article {
  position: relative;
  height: 390px;

  .postblock-item-image {
    position: relative;

    img {
      width: 100%;
      height: 390px;
      object-fit: cover;
    }
  }

  .postblock-item-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.5) 88.31%
    );
    z-index: 1;
  }

  .postblock-item-content {
    position: absolute;
    bottom: 0;
    padding: 1.5rem;
    z-index: 2;
    color: white;
  }
}
