.readmore-text {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* show 2 lines initially */
    -webkit-box-orient: vertical;
    transition: all 0.3s ease-in-out;
    max-height: 3.6em; /* approx for 2 lines */
}