.post-type-archive-patienttestimonials .the-posts-main--items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.post-type-archive-patienttestimonials .testimonialcard .singlepost-testimonial {
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    background: #E6E4DB;
}

.post-type-archive-patienttestimonials .testimonialcard .singlepost-testimonial figure {
    margin-block: 0;
    position: relative;
}

.post-type-archive-patienttestimonials .testimonialcard .singlepost-testimonial figure:after {
    content: "";
    background: rgba(0, 0, 0, 0.5);
    inset: 0;
    position: absolute;
    z-index: 1;
}

.post-type-archive-patienttestimonials .testimonialcard .singlepost-testimonial figure img {
    aspect-ratio: 4 / 4;
    display: block;
    width: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.post-type-archive-patienttestimonials .testimonialcard .singlepost-testimonial .singlepost--content {
    position: absolute;
    bottom: 1rem;
    transform: translateY(-1rem);
    width: 100%;
    color: #fff;
    z-index: 3;
    flex-basis: 100%;
    flex-grow: 1;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    text-align: center;
}
.singlepost-testimonial .singlepost--content h2 {
    margin-bottom: 15px;
    font-size: 24px;
}
.singlepost-testimonial .singlepost--content p {
    margin-bottom: 0;
}
.singlepost-testimonial .singlepost--content .btn-underline {
    font-weight: 200;
    display: inline-block;
    text-decoration: underline;
    cursor: pointer;
    color: #fff;
    font-size: 20px;
    letter-spacing: 1px;
    position: relative;
    padding: 13px 40px;
    line-height: normal;
    box-shadow: 0 0 1px 0 rgba(0, 0, 0, .3);
    text-align: center;
}

@media screen and (max-width: 1024px) {
    .post-type-archive-patienttestimonials .the-posts-main--items {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .post-type-archive-patienttestimonials .the-posts-main--items {
        grid-template-columns: repeat(1, 1fr);
    }
}