#related_posts .rp-wrapper {
    width: 100%;
}

#related_posts .rp-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

#related_posts .rp-item {
    display: flex;
    flex-direction: column;
}

#related_posts .rp-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
}

#related_posts .rp-thumb img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;

    object-fit: cover;
    display: block;

    transition: transform .35s ease;
}

#related_posts .rp-item:hover .rp-thumb img {
    transform: scale(1.05);
}

#related_posts .rp-title {
    margin-top: .75rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
}

#related_posts .rp-title a {
    color: inherit;
    text-decoration: none;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

/* Tablet */
@media (min-width: 600px) {
    #related_posts .rp-grid {
      grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop */
@media (min-width: 1024px) {
    #related_posts .rp-grid {
      grid-template-columns: repeat(3, 1fr);
    }

    #related_posts .rp-title {
      font-size: 1.05rem;
    }
}