.single-related-posts-container{
    width: 100%;
    max-width:100% !important;
}

.single-related-posts-items{
    display: grid;
    grid-template-rows: auto auto;
    grid-template-columns: repeat(6, 1fr);
    gap: 1em;
}

.single-related-posts-item{
    display: flex;
    flex-direction: column;
}

.single-related-posts-content{
    flex: 1;
}

.element1 {
    grid-row: 1 / 2;
    grid-column: 1 / 3;
  }
  
  .element2 {
    grid-row: 1 / 2;
    grid-column: 3 / 5;
  }
  
  .element3 {
    grid-row: 1 / 2;
    grid-column: 5 / 7;
  }
  
  .element4 {
    grid-row: 2 / 3;
    grid-column: 1 / 4;
  }
  
  .element5 {
    grid-row: 2 / 3;
    grid-column: 4 / 7;
  }

.single-related-posts-frame{
    position: relative;
    height: 200px;
    width: 100%;
}

.single-related-posts-frame img{
    position: absolute;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.single-related-posts-content{
    padding: 1em;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0px 0px 40px 0px rgba(0, 0, 0, 0.10);
}

.single-related-posts-title{
    color: #51545e;
    font-family: 'Lato';
    font-size: var(--wp--preset--font-size--xl-text);
    font-style: normal;
    font-weight: 900;
    line-height: 24px; /* 120% */
}

.single-related-posts-link{
    color: #f96b79!important;
    font-family: 'Lato';
    font-size: var(--wp--preset--font-size--ms-text);
    font-style: normal;
    font-weight: 700;
    line-height: 24px; /* 150% */
    margin-top: .5em;
    display: block;
}

.single-related-posts-items.not-grid{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.single-related-posts-items.not-grid .single-related-posts-item{
    width: 31%;
}

@media(min-width:1800px){
    .single-related-posts-frame{
        height: 260px;
    }
}

@media (max-width:1024px){
    .single-related-posts-items{
        display: flex;
        flex-direction: column;
        gap: 1em;
        flex-wrap: unset;
        justify-content: unset;
    }
    .single-related-posts-items.not-grid .single-related-posts-item{
        width: 100%;
    }

    .single-related-posts-frame{
        height: 200px;
    }
}

@media(max-width:576px){
    .single-related-posts-frame{
        height: 140px;
    }
}
