/* ================================
   Testimonials - Base Styling
=================================*/

.testimonial-text {
    text-align: center;
}

.testimonial-paragraph {
    font-style: italic;
    opacity: 1;
}

.testimonial-client {
    font-style: italic;
}

.testimonial-holder {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    padding: 30px 25px;
    gap: 20px; /* spacing between items */
}

.testimonials-img-new {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/* Image container */
.testimonials-big-img {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin-bottom: 20px;
    text-align: center;
    color: white;
}

/* Images */
.test-big-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
}

/* Overlay text boxes */
.testimonials-writing-tom,
.testimonials-writing-jane {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    padding: 10px 15px;
    width: 80%;
    max-width: 300px;
    color: #fff;
    text-align: center;
}

/* Utility */
.width-80 {
    width: 80vw;
    margin-left: auto;
    margin-right: auto;
}

/* ================================
   Responsive Adjustments
=================================*/

/* Tablets and below */
@media (max-width: 992px) {
    .testimonial-holder {
        justify-content: center;
    }

    .testimonials-big-img {
        max-width: 400px;
    }
}

/* Mobiles */
@media (max-width: 768px) {
    .testimonial-holder {
        flex-direction: column;
        align-items: center;
    }

    .testimonials-big-img {
        max-width: 90%;
    }

    .testimonials-writing-tom,
    .testimonials-writing-jane {
        position: static;   /* removes absolute positioning */
        transform: none;
        margin-top: 10px;
        width: 100%;
        max-width: 100%;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .testimonial-paragraph {
        font-size: 0.9rem;
    }

    .testimonial-client h3 {
        font-size: 1rem;
    }
}
