/* Pinterest / Masonry Layout using CSS Columns */
.reviews-grid {
    column-count: 3;
    column-gap: 30px;
}

.reviews-grid-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 30px;
    break-inside: avoid;
    background: transparent;
}

/* Override testimonial card for better grid fit */
.reviews-grid-item .testimonial-card {
    margin-top: 30px;
    /* Space for the floating avatar */
}

.reviews-grid-item .testimonial-card__text {
    min-height: auto;
    /* Remove min-height to allow Pinterest flow */
}

/* Responsive Grid */
@media (max-width: 1199px) {
    .reviews-grid {
        column-count: 2;
    }
}

@media (max-width: 767px) {
    .reviews-grid {
        column-count: 1;
    }
}

/* Animation for cards appearance */
.reviews-grid-item {
    animation: fadeInUp 0.6s ease backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delay for each item */
.reviews-grid-item:nth-child(1) {
    animation-delay: 0.1s;
}

.reviews-grid-item:nth-child(2) {
    animation-delay: 0.2s;
}

.reviews-grid-item:nth-child(3) {
    animation-delay: 0.3s;
}

.reviews-grid-item:nth-child(4) {
    animation-delay: 0.4s;
}

.reviews-grid-item:nth-child(5) {
    animation-delay: 0.5s;
}

.reviews-grid-item:nth-child(6) {
    animation-delay: 0.6s;
}