:root {
    --profile-photo-width: 150px;
}

.review-section {
    background-color: var(--very-light-grey);
}

.review-section > p {
    width: 60%;
    text-align: center;
    margin: 0 auto;
}

.review-grid {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 0 3%;
    margin-top: 130px; 
    max-height: 2500px; /* Play around with this to get the reviews to fit nicely into two columns */
}

.review-card {
    width: 48%;
    position: relative;
    margin-bottom: 120px;
    padding: 5% 3%;
    background-color: white;
    border-radius: 20px;
    box-shadow: var(--box-shadow);
}

.review-card img {
    display: block;
    width: var(--profile-photo-width); 
    position: absolute;
    top: calc(var(--profile-photo-width)/-2);
    left: 50%;
    transform: translateX(-50%);
    border: 10px solid var(--bg-color);
    border-radius: 50%;
    box-shadow: 0px 5px 10px rgba(0,0,0,0.4)
}

.review-card-text {
    margin-top: calc((var(--profile-photo-width)/2));
}

.review-card-text i {
    color: var(--light-grey);
}

.review-card-text::before {
    content: url('../media/svg/quote-left-solid.svg');
    display: inline-block;
    width: 50px;
    height: 50px;
    margin-right: 0px;
    transform: translateY(8px);
}

.review-card-text::after {
    content: url('../media/svg/quote-right-solid.svg');
    display: inline-block;
    margin-left: 0px;
    margin-top: -10px;
    transform: translateY(8px);
}

.review-card-text::before, .review-card-text::after {
    display: inline-block;
    width: 30px;
    height: 30px;
    filter: invert(80%);
}

.location {
    float: right;
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--very-light-grey); 
}

.review-name {
    color: var(--medium-grey);
    display: inline;
    float: right;
}

.review-stars {
    display: inline;
    color: var(--accent-color-4);
}

@media (max-width: 1000px) {
    .review-grid {
        max-height: none;
        height: auto;
    }

    .review-card {
        width: 100%;
        padding: 5% 5%;
    }

    .review-section > p {
        width: 100%;
        text-align: left;
    }
}

@media (max-width: 450px) {
    .review-card-text {
        font-size: 1.3rem;
    }
    
    .review-name {
        font-size: 1.4rem;
    }
}