.testimonial {
    border: 1px solid #ddd;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
    background-color: #f9f9f9;
}

.testimonial img {
    max-width: 100px;
    height: auto;
    border-radius: 50%;
    margin-bottom: 10px;
}

.wpte-testimonials .author,
.wpte-testimonials .company{
    margin-bottom:0;
}

.wpte-testimonials .content{
    margin-bottom:5px;
}

.testimonial .author {
    font-weight: bold;
    color:#000;
    display:block;
    position:relative;
}

.testimonial .company {
    font-style: italic;
    color:#000;
    display:block;
    position:relative;
}

.testimonial .rating {
    font-size: 20px;
    color: #ffcc00;
}


.wpte-testimonials.inline .testimonial .content {
    height: 100px;
    overflow: hidden;
}

.wpte-testimonials.grid {
    display: grid;
    gap: 15px;
}

@media screen and (max-width: 782px) {
    .wpte-testimonials.grid {
        display: grid;
        gap: 15px;
        column-count: 1 !important;
        grid-template-columns: repeat(1, 1fr) !important;
    }
}

/* Default to 1 item per line */
.wpte-testimonials.grid .testimonial {
    box-sizing: border-box;
    margin: 0;
}







.wpte-testimonials.masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
}

/* Make each testimonial adjust its height automatically */
.wpte-testimonials.masonry .testimonial {
    box-sizing: border-box;
    margin: 0;
    break-inside: avoid;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.wpte-testimonials.carousel {

    overflow: hidden;
    position: relative;
}

.wpte-testimonials .carousel-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.wpte-testimonials .carousel-slide {
    flex: 0 0 auto;
    width: calc(100% / var(--testimonials-to-show, 1));
    box-sizing: border-box;
    padding: 10px;
}

.wpte-testimonials .carousel-prev,
.wpte-testimonials .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

.wpte-testimonials .carousel-prev {
    left: 10px;
}

.wpte-testimonials .carousel-next {
    right: 10px;
}

.carousel-dots {
    text-align: center;
    margin-top: 10px;
    position: absolute;
    bottom: 10px;
    width: 100%;
}

.wpte-testimonials .carousel-dots .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: #ccc;
    border-radius: 50%;
    cursor: pointer;
}

.wpte-testimonials .carousel-dots .dot.active {
    background-color: #007cba;
}