.rev-slider {
    padding: 100px 0 60px;
}

@media screen and (max-width: 992px) {
    .rev-slider {
        padding: 85px 0 80px;
    }
}

.rev-slider .slick-list {
    overflow: initial;
}

.rev-slider__block-title {
    margin-bottom: 57px;
}

@media screen and (max-width: 768px) {
    .rev-slider__block-title {
        font-size: 32px;
    }
}

@media screen and (max-width: 560px) {
    .rev-slider__block-title {
        font-size: 24px;
    }
}

.rev-slider__box {
    width: 100%;
    box-sizing: border-box;
}

.rev-slider__box {
    overflow: hidden;
}

@media screen and (max-width: 599px) {
    .rev-slider__box {
        padding-right: 10%;
    }
}

@media screen and (max-width: 460px) {
    .rev-slider__box {
        padding-right: 4%;
        margin-left: -12px;
        margin-right: -12px;
    }
}

.rev-slider__box .slick-track {
    display: flex;
}

.rev-slider__item.rev-slider__item{
    margin-left: 15px;
    margin-right: 15px;

    border-radius: 3px;
    box-shadow: 0 18px 86px -18px rgba(0, 0, 0, 0.08);
    background: #fff;
    overflow: hidden;
    float: none;
    height: initial;
}

@media screen and (max-width: 768px) {
    .rev-slider__item.rev-slider__item {
        margin-left: 10px;
        margin-right: 10px;
    }
}

.rev-slider__item {
    opacity: 15%;
}

@media screen and (max-width: 599px) {
    .rev-slider__item {
        opacity: .35;
    }
}

.rev-slider__item.slick-active {
    opacity: 1;
}

.rev-slider__item-col, .newReviewPage__video__item-col {
    display: flex;
    flex-direction: column;
}

.rev-slider__item.all.all {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    background-color: #e5dbd2;
    box-sizing: border-box;
}

.rs-item-all__icon {
    margin: 0 auto;

    display: block;
    width: 77px;
    height: auto;

}

.rs-item-all__title {
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 35px;
    line-height: 1.2;
    text-align: center;
    color: #000;
}

@media screen and (max-width: 768px) {
    .rs-item-all__title {
        font-size: 24px;
    }
}

.rs-item-all__title span {
    color: #ec7633;
}

.rev-slider__link, .newReviewPage__video__link {
    position: relative;
    display: block;
    aspect-ratio: 336/270;
}

.rev-slider__link::after, .newReviewPage__video__link::after {
    display: block;
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 78px;
    height: 81px;
    background: url(/wp-content/themes/understrap/css/../images/play.png) center center / contain no-repeat;
    margin-top: -40px;
    margin-left: -39px;
}

.rev-slider__link::before, .newReviewPage__video__link::before {
    position: absolute;
    content: '';
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: #ccc3ba;
    opacity: .7;
    transition: all .25s;
}

.rev-slider__link:hover::before, .newReviewPage__video__link::before {
    opacity: 0;
}

.rev-slider__img, .newReviewPage__video__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;

    border-radius: 3px;
    overflow: hidden;
}

.rev-slider__info, .newReviewPage__video__info {
    padding: 29px 25px 44px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media screen and (max-width: 460px) {
    .rev-slider__info, .newReviewPage__video__info {
        padding: 29px 12px 44px;
    }
}

.rev-slider__title, .newReviewPage__video__title {
    margin: 0;

    font-weight: 700;
    font-size: 20px;
    line-height: 1.35;
    text-align: center;
    color: #000;

    text-align: center;
}

.rev-slider__descr, .newReviewPage__video__descr {
    margin: 0 auto;

    position: relative;
    width: calc(100% - 62px);

    font-weight: 400;
    font-size: 17px;
    line-height: 1.47059;
    color: #6a6969;
}

.rev-slider__descr::before,
.rev-slider__descr::after {
    position: absolute;
    content: '';
    width: 20px;
    height: 17px;
    background-size: cover;
    background-position: center;
    background-image: url('../images/rev-slider/comment.png');
}

.rev-slider__descr::before {
    top: 0;
    left: -31px;
}

.rev-slider__descr::after {
    right: -31px;
    bottom: 0;
    transform: rotate(-180deg);
}

.rev-slider__btns {
    margin: 50px auto 0 15px;

    display: flex;
    align-items: center;
    gap: 18px;
}

@media screen and (max-width: 768px) {
    .rev-slider__btns {
        margin: 40px auto 0;
        justify-content: center;
    }
}

@media screen and (max-width: 500px) {
    .rev-slider__btns {
        margin-bottom: 80px;
    }
}

.rev-slider__btn-prev,
.rev-slider__btn-next {
    position: relative;
    width: 68px;
    height: 68px;

    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #ababab;

    transition: all 0.25s;
}

.rev-slider__btn-next {
    transform: rotate(180deg);
}

.rev-slider__btn-prev::before,
.rev-slider__btn-next::after {
    content: "";
    background: url(../images/arrow_left.png) no-repeat;
    display: block;
    width: 26px;
    height: 13px;
    margin-left: auto;
    margin-right: auto;
}

.rev-slider__btn-prev:hover,
.rev-slider__btn-next:hover {
    background: linear-gradient(45deg, #fb995f, #e35a0e);
    border: 2px solid #ec7633;
}

.rev-slider__btn-prev:hover::before,
.rev-slider__btn-next:hover::after {
    background: url(../images/arrow_left_white.png) no-repeat;
}

.custom-video-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9500;
    background-color: #000000ba;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    visibility: hidden;
    opacity: 0;
}

.custom-video-popup.open {
    visibility: visible;
    opacity: 1;
}

.custom-video-popup__container {
    padding: 8px;
    border-radius: 6px;
    background-color: #ffffffba;
    display: flex;
    align-items: center;
    max-width: 100%;
    max-height: 100%;
}

.custom-video-popup.vertical .custom-video-popup__container {
    aspect-ratio: 325/646;
    height: 80vh;
}

.custom-video-popup.horizontal .custom-video-popup__container {
    width: 800px;
        aspect-ratio: 16/9;
}

.custom-video-popup__frame {
    width: 100%;
        height: 100%;
}

@media screen and (max-width:860px) {
    .custom-video-popup.horizontal .custom-video-popup__container {
    width: 600px;
    }
}

@media screen and (max-width:660px) {
    .custom-video-popup.horizontal .custom-video-popup__container {
    max-width: 600px;
    width: 100%;
    }
}