/* Base line-clamp classes (optional) */
.line-clamp-1,
.line-clamp-2,
.line-clamp-3,
.line-clamp-4 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

/* Line limits */
.line-clamp-1 {
    -webkit-line-clamp: 1;
}
.line-clamp-2 {
    -webkit-line-clamp: 2;
}
.line-clamp-3 {
    -webkit-line-clamp: 3;
}
.line-clamp-4 {
    -webkit-line-clamp: 4;
}

/* Large screen variants like lg:line-clamp-N */
@media (min-width: 1024px) {
    /* lg breakpoint */
    .lg\:line-clamp-1 {
        -webkit-line-clamp: 1;
    }
    .lg\:line-clamp-2 {
        -webkit-line-clamp: 2;
    }
    .lg\:line-clamp-3 {
        -webkit-line-clamp: 3;
    }
    .lg\:line-clamp-4 {
        -webkit-line-clamp: 4;
    }
}
