.section-posts-layout {
  /* height: 100vh; */
  padding: 120px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;

  font-style: normal;
}

.section-posts-content {
  /* 63.15 = 1200/1920px */
  width: 63.15%;
  /* 61.17= 525/850px */
  /* height: 61.17%; */
  display: flex;
  flex-direction: row;

  &>img {
    width: 295px;
    height: 524px;
    /* aspect-ratio: 295/524; */
    padding-right: 40px;
    object-fit: cover;
    object-position: center;
  }

  &>div {
    width: 65%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
  }
}

.section-posts-caption {
  &>h4 {
    font-weight: 700;
    font-size: 24px;
    line-height: 35px;
    color: #000000;
  }

  &>h1 {
    font-weight: 700;
    font-size: 48px;
    line-height: 70px;
    color: #000000;
  }

  &>p {
    padding-top: 1rem;
    font-weight: 500;
    font-size: 20px;
    line-height: 29px;
    color: rgba(0, 0, 0, 0.6);
  }

}

.section-posts-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.section-posts-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 9px; /* inner img radius 8px + border 1px */ 
  background-color: white;

  &>img {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
  }
}

.section-posts-card-caption {
  padding: 1rem 1rem;

  & h5 {
    font-weight: 700;
    font-size: 20px;
    line-height: 29px;
    color: #000000;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 58px; /* 2 * line-height */
  }

  & p {
    font-weight: 400;
    font-size: 16px;
    line-height: 23px;
    color: rgba(0, 0, 0, 0.6);
    /* ref: Applying an ellipsis to multiline text  */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.section-posts-button {
  padding: 48px 12px 8px 16px;
  display: flex;
  flex-direction: row;
  align-items: center;

  & span {
    font-weight: 600;
    font-size: 20px;
    line-height: 30px;
  }
  & span a {
    color: black;
  }
}

@media only screen and (max-width: 768px) {
  .section-posts-content>img {
    display: none;
  }

  .section-posts-content>div {
    width: 100%;
  }
}

/** Opt1. 3 row 1 col */
@media only screen and (max-width: 576px) {
  .section-posts-cards {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, minmax(0, 1fr));
  }
}

/** Opt2. 1 row 3 col */
/* @media only screen and (max-width: 576px) {
  .section-posts-content {
    width: 89.58%;
  }

  .section-posts-cards {
    gap: 1rem;
  }

  .section-posts-card-caption {
    padding: 0.5rem;

    & h5 {
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      text-overflow: ellipsis;
      font-size: 1rem;
    }

    & p {
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
  }
} */