.panel-read-more {
    --btn-text: var(--gray-100);
    --btn-background: var(--primary-color-700);
    --btn-hover: var(--primary-color-800);

    /* Store the line height for <p> and the number of lines to show */
    --lh: var(--leading-normal);
    --max-lines: 10;
}

.panel-read-more .extendable  {
    position: relative;
    overflow: hidden;
}

.panel-read-more .extendable.extended  {
    /* Generate a max height base on the line height * number of lines */
    max-height: calc(var(--lh) * var(--max-lines) * 1rem);
}

.panel-read-more .extendable.extended::after  {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to bottom, transparent 80%, white);
}

.panel-read-more .read-more-btn {
    display: block;
    margin: var(--space-8) auto;
    border-radius: 30px;
    font-weight: 600;
    font-size: var(--text-base);
    padding: var(--space-3) var(--space-6);
    color: var(--btn-text);
    background-color: var(--btn-background);
}

@media(hover: hover) {
    .panel-read-more .read-more-btn:hover {
        background-color: var(--btn-hover);
    }
}