.review-lightbox {
    position: fixed;
    z-index: 99999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 80px;
    background: rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.review-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.review-lightbox__content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
}

.review-lightbox__content img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: calc(100vh - 60px);
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
}

.review-lightbox__close {
    position: absolute;
    z-index: 2;
    top: 18px;
    right: 24px;
    width: 50px;
    height: 50px;
    padding: 0;
    color: #fff;
    background: none;
    border: 0;
    font-size: 44px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
}

.review-lightbox__arrow {
    position: absolute;
    z-index: 2;
    top: 50%;
    width: 54px;
    height: 70px;
    padding: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 0;
    border-radius: 8px;
    font-size: 52px;
    line-height: 1;
    transform: translateY(-50%);
    cursor: pointer;
    transition: background 0.2s ease;
}

.review-lightbox__arrow:hover {
    background: rgba(255, 255, 255, 0.2);
}

.review-lightbox__arrow--prev {
    left: 20px;
}

.review-lightbox__arrow--next {
    right: 20px;
}

body.review-lightbox-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .review-lightbox {
        padding: 55px 10px 20px;
    }

    .review-lightbox__content img {
        max-height: calc(100vh - 75px);
    }

    .review-lightbox__arrow {
        top: auto;
        bottom: 12px;
        width: 48px;
        height: 48px;
        font-size: 40px;
    }

    .review-lightbox__arrow--prev {
        left: calc(50% - 58px);
    }

    .review-lightbox__arrow--next {
        right: calc(50% - 58px);
    }
}



.reviews-section {
    padding: 70px 0 100px;
}

.reviews-section__header {
    max-width: 760px;
    margin-bottom: 40px;
}

.reviews-section__header h1 {
    margin: 0 0 18px;
}

.reviews-section__header p {
    margin: 0;
    color: #666;
    font-size: 18px;
    line-height: 1.6;
}

.reviews-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.reviews-gallery__item {
    display: block;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.reviews-gallery__image {
    position: relative;
    display: block;
    height: 430px;
    overflow: hidden;
    background: #f3f3f3;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.reviews-gallery__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.45s ease;
}

.reviews-gallery__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    color: #fff;
    background: rgba(20, 20, 20, 0.58);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reviews-gallery__zoom {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(5px);
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.reviews-gallery__zoom svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
}

.reviews-gallery__open {
    font-size: 15px;
    font-weight: 500;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.reviews-gallery__item:hover .reviews-gallery__image {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.reviews-gallery__item:hover .reviews-gallery__image img {
    transform: scale(1.035);
}

.reviews-gallery__item:hover .reviews-gallery__overlay {
    opacity: 1;
}

.reviews-gallery__item:hover .reviews-gallery__zoom,
.reviews-gallery__item:hover .reviews-gallery__open {
    transform: translateY(0);
}

.reviews-gallery__title {
    display: block;
    padding: 15px 5px 0;
    font-size: 16px;
    line-height: 1.4;
}

@media (max-width: 1100px) {
    .reviews-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .reviews-section {
        padding: 40px 0 60px;
    }

    .reviews-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .reviews-gallery__image {
        height: 310px;
        border-radius: 10px;
    }

    .reviews-gallery__overlay {
        display: none;
    }

    .reviews-gallery__title {
        padding-top: 10px;
        font-size: 14px;
    }
}

@media (max-width: 420px) {
    .reviews-gallery__image {
        height: 270px;
    }
}


