.testimonials {
    position: relative;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    /* border-left: 1px solid var(--border-color); */
    /* border-right: 1px solid var(--border-color); */
    display: flex;
    flex-direction: column;
    justify-content: center !important;
    max-width: 24em;
    height: 20ch;
    margin-left: auto !important;
    margin-right: auto !important;
}

.testimonial {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    opacity: 1;
    animation: swipe-in 1s forwards;

    p {
        text-align: center;
        text-align-last: center;
        align-content: center;
        flex-grow: 1;
    }

    h3 {
        font-size: 80%;
        position: absolute;
        inset: 0;
        top: auto;
        color: var(--text-color-light);
        font-weight: var(--font-weight-normal);
        font-style: italic;
        text-align: right;
        margin-right: 1ch;
        margin-bottom: 2ch;
    }

    h3::before {
        content: "- ";
    }
}

.swipe-in {
    animation: swipe-in 1s forwards;
}

.swipe-out {
    animation: swipe-out 1s forwards;
}

.testimonial-buttons {
	display: flex;
	flex-direction: row;
	justify-content: center !important;
	width: auto;
	margin-left: auto !important;
	margin-right: auto !important;
    margin-top: 16px;
}

.index-button {
    width: 10px;
    height: 10px;
    margin: 4px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0);
    transition: background-color var(--anim-speed);
    cursor: pointer;
    pointer-events: all;
}

.index-button.active {
    background-color: rgba(255, 255, 255, 0.2);
}

@keyframes swipe-in {
    from {
        transform: translateX(-70%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes swipe-out {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(70%);
        opacity: 0;
    }
}