/*.overlay {
    position: fixed;
    z-index: 5;
    height: 100%;
    width: 100%;
    top: 40px;
    left: 0;
    background-color: rgba(0,0,0,0.6);
    display: none;
}
.overlay.active {
    display: block;
}
.overlay .flex-popup {
    height: 97%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.overlay .flex-popup .popup {
    position: relative;
    background-color: #fff;
    padding: 35px 35px;
    border-radius: 20px;
    box-shadow: 0 20px 12px -16px rgba(0,0,0,.2),
    0 8px 24px 18px rgba(0,0,0,.15);
    margin: 0 10px;
    max-width: 90%;
    max-height: 90%;
    overflow: hidden;
}
.popup span {
    position: absolute;
    top: 17px;
    right: 20px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
}
.popup .photo-wrapper {

}
.popup .photo {
    max-height: 500px;
}
.popup h2 {
    padding-top: 35px;
}*/


.overlay {
    position: fixed;
    z-index: 5;
    height: 100%;
    width: 100%;
    left: 0;
    background-color: rgba(0,0,0,0.6); /* затемнение фона */
    display: none;
}
.overlay.active {
    display: block;
}
.overlay .flex-popup-review {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.overlay .flex-popup-review .popup-review {
    position: relative;
    background-color: #fff;  /* цвет фона всплывающего блока */
    padding: 35px 35px;
    border-radius: 20px;
    box-shadow: 0 20px 12px -16px rgba(0,0,0,.2),
    0 8px 24px 18px rgba(0,0,0,.15);
    margin: 0 10px;
    /*max-width: 450px;*/
    overflow: auto;
    display: flex;
}
.popup-review span {
    position: absolute;
    top: 17px;
    right: 20px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
}
.popup-review .popup-image {
    position: relative;
    width: 230px;
    /*height: 230px;*/
    -ms-flex-negative: 0;
    flex-shrink: 0;
    margin-right: 30px;
    /*border-radius: 50%;*/
    /*overflow: hidden;*/
}
.popup-review .popup-image img {
    width: 100%;
    border-radius: 5px;
}
.popup-review h2 {
    padding-top: 35px;
}
.description {
    max-width: 300px;
}

@media (max-width: 350px) {
    .popup-review .popup-image {
        display: none;
    }
    .popup-review h2 {
        padding-top: 0px;
    }
    .description {
        max-height: 250px;
        overflow: scroll;
    }
}
@media (min-width: 350px) and (max-width: 480px) {
    .overlay .flex-popup-review .popup-review {
        display: block;
    }
    .popup-review .popup-image img {
        width: 130px;
        /*border-radius: 50%;*/
    }
    .popup-review .popup-image {
        flex-shrink: 0;
        overflow: hidden;
        margin-right: 0px;
        /*border-radius: 50%;*/
        display: flex;
        align-items: center;
        justify-content: center;
        height: 130px;
        width: 100%;
    }
}