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

.hero-right {
    background-image:
        var(--gradient-1),
        url('../media/reviews-hero.jpg');
}

.review-section {
    background-color: #06222e;
}

.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: 3000px; /* 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-image: var(--gradient-4);
    border-radius: 20px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.7);
}

.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 #183947;
    border-radius: 50%;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.7);

}

.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(85%) sepia(30%) saturate(4057%) hue-rotate(171deg) brightness(50%) contrast(109%);
}

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

.review-name {
    color: lightblue;
    display: inline;
    float: right;
}

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

@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;
    }
}