.rmt-container {
    margin: 1em 0;
    text-align: center;
}

.rmt-text {
    max-height: calc(1.5em * var(--rmt-lines));
    overflow: hidden;
    position: relative;
    text-align: justify;
    transition: max-height 0.5s ease;
}

.rmt-text::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3em;
    background: linear-gradient(to top, white 50%, transparent);
    opacity: 0.6;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.rmt-text.expanded {
    max-height: 500em;
}

.rmt-text.expanded::after {
    opacity: 0;
}

.rmt-toggle {
    background: none;
    border: none;
    font-size: 1em;
    cursor: pointer;
    margin-top: 0.5em;
    transition: color 0.3s ease;
}
