/**
 * Reviews NewNeuro - Frontend Styles
 */

/* Wrapper */
.reviews-newneuro-wrapper {
    width: 100%;
}

/* Toolbar - Filter button + Sort */
.reviews-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.reviews-toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reviews-toolbar-center {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.reviews-count-info {
    font-size: 14px;
    color: #666;
}

.reviews-count-current,
.reviews-count-total {
    font-weight: 600;
    color: #333;
}

.reviews-toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Filter toggle button */
.reviews-filter-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
}

.reviews-filter-toggle-btn:hover {
    border-color: #999;
    background: #f9f9f9;
}

.reviews-filter-toggle-btn.active {
    border-color: #2271b1;
    background: #f0f7fc;
    color: #2271b1;
}

.reviews-filter-toggle-btn.has-filters {
    border-color: #2271b1;
}

.reviews-filter-toggle-btn .filter-icon {
    font-size: 16px;
}

.reviews-filter-toggle-btn .filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #2271b1;
    color: #fff;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

/* Filters accordion panel */
.reviews-filters-accordion {
    overflow: visible;
    transition: all 0.3s ease;
    margin-bottom: 16px;
    padding: 16px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    position: relative;
    z-index: 50;
}

.reviews-filters-accordion.open {
    display: block !important;
}

/* Filters */
.reviews-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.reviews-filter-group {
    flex: 0 0 auto;
}

/* Multiselect dropdown */
.reviews-multiselect {
    position: relative;
    min-width: 150px;
    z-index: 1;
}

.reviews-multiselect.open {
    z-index: 1001;
}

.reviews-multiselect-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    text-align: left;
}

.reviews-multiselect-toggle:hover {
    border-color: #999;
}

.reviews-multiselect.open .reviews-multiselect-toggle {
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.2);
}

.reviews-multiselect-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 8px;
}

.reviews-multiselect-arrow {
    font-size: 10px;
    color: #666;
    transition: transform 0.2s;
}

.reviews-multiselect.open .reviews-multiselect-arrow {
    transform: rotate(180deg);
}

.reviews-multiselect-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    min-width: 200px;
    max-height: 400px;
    width: max-content;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.reviews-multiselect.open .reviews-multiselect-dropdown {
    display: block;
}

.reviews-multiselect-option {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s;
    margin: 0;
    font-weight: normal;
}

.reviews-multiselect-option:hover {
    background: #f5f5f5;
}

.reviews-multiselect-option input[type="checkbox"] {
    margin: 0 10px 0 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

.reviews-multiselect-option span {
    flex: 1;
    font-size: 14px;
    color: #333;
}

/* List */
.reviews-newneuro-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.reviews-newneuro-empty {
    padding: 20px;
    text-align: center;
    color: #666;
    background: #f9f9f9;
    border-radius: 8px;
}

/* Review item */
.review-item {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.review-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Header */
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.review-author {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

/* Source badge in header */
.review-source-badge {
    max-width: 120px;
    font-size: 13px;
    color: #666;
}

.review-source-badge a {
    color: inherit;
    text-decoration: none;
}

.review-source-badge a:hover {
    text-decoration: underline;
}

.review-source-badge a,
.review-source-badge {
    display: flex;
    align-items: center;
    line-height: 0;
}

.review-source-badge .review-source-logo {
    display: block;
    max-height: 25px;
    max-width: 100%;
    width: auto;
}

/* Stars */
.review-rating .stars {
    display: inline-flex;
    gap: 2px;
}

.review-rating .star {
    font-size: 18px;
    line-height: 1;
}

.review-rating .star.filled {
    color: #ffb900;
}

.review-rating .star.empty {
    color: #ddd;
}

/* Content */
.review-content {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 15px;
}

/* Truncated content */
.review-content-truncated {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

/* Meta row: "Показать подробнее" + date */
.review-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

/* Read more link */
.review-read-more {
    display: inline-block;
    color: #2271b1;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

.review-read-more:hover {
    text-decoration: underline;
    color: #135e96;
}

.review-meta-row .review-date {
    font-size: 13px;
    color: #888;
    margin-left: auto;
}

/* Response */
.review-response {
    background: #f7f7f7;
    border-left: 3px solid #2271b1;
    padding: 12px 15px;
    margin: 15px 0;
    border-radius: 0 4px 4px 0;
}

.response-header {
    font-size: 13px;
    margin-bottom: 8px;
    color: #666;
}

.response-header strong {
    color: #2271b1;
    margin-right: 8px;
}

.response-author {
    color: #888;
}

.response-content {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

/* Truncated response */
.review-response-truncated .response-content {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 4.5em; /* 3 lines * 1.5 line-height */
    transition: max-height 0.3s ease;
}

.review-response-truncated.expanded .response-content {
    -webkit-line-clamp: unset;
    max-height: 3000px;
    overflow: visible;
}

.response-read-more {
    display: inline-block;
    color: #2271b1;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    margin-top: 8px;
}

.response-read-more:hover {
    text-decoration: underline;
    color: #135e96;
}

/* Source logo (in popup) */
.review-source-logo {
    max-height: 32px;
    max-width: 100%;
    width: auto;
    vertical-align: middle;
    display: inline-block;
    object-fit: contain;
}

.review-popup-source .review-source-logo {
    max-height: 36px;
}

/* Branch badge at bottom of card */
.review-branch-badge {
    background: #e8f4fd;
    color: #2271b1;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.4;
    margin-top: 10px;
}

/* Legacy branch style */
.review-branch {
    background: #e8f4fd;
    color: #2271b1;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
}

/* Tag badges */
.review-tags {
    border-top: 1px solid #f0f0f1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 20px;
    margin: 0;
}

.review-tag-badge {
    display: inline-block;
    background: #f0f0f1;
    color: #50575e;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.4;
}

.review-tag-hidden {
    display: none;
}

.review-tags.expanded .review-tag-hidden {
    display: inline-block;
}

.review-tags-more {
    display: inline-block;
    background: #e8f4fd;
    color: #2271b1;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.4;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.review-tags-more:hover {
    background: #d4eaf7;
}

.review-tags.expanded .review-tags-more {
    display: none;
}

.reviews-popup-content .review-tags {
    margin: 15px 0;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

/* Images */
.review-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.review-image {
    display: block;
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
}

.review-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.review-image:hover img {
    transform: scale(1.05);
}

/* Fullwidth images per-source */
.review-images-fullwidth {
    flex-direction: column;
}

.review-images-fullwidth .review-image {
    width: 100%;
    height: auto;
}

.review-images-fullwidth .review-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 600px;
}

/* Video and Audio */
.review-media {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.review-video {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.review-video iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: none;
}

.review-video-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #4a76a8 0%, #3b5998 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
}

.review-video-vk .review-video-link {
    background: linear-gradient(135deg, #5181b8 0%, #4a76a8 100%);
}

.review-video-rutube .review-video-link {
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
}

.review-video-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.review-video-link .video-icon {
    font-size: 18px;
}

/* Video placeholder (click to play in popup) */
.review-video-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.review-video-placeholder:hover {
    transform: scale(1.01);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.review-video-placeholder[data-video-type="vk"] {
    background: linear-gradient(135deg, #4a76a8 0%, #3b5998 100%);
}

.review-video-placeholder[data-video-type="rutube"] {
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
}

.video-placeholder-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.video-play-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 28px;
    transition: background 0.2s, transform 0.2s;
}

.review-video-placeholder:hover .video-play-icon {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.1);
}

.video-label {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
}

/* Video preview image */
.video-preview-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.has-preview .video-placeholder-inner {
    position: relative;
    z-index: 1;
}

.has-preview .video-label {
    display: none;
}

/* Video Lightbox */
.reviews-video-lightbox-overlay {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 40px !important;
    background: rgba(0, 0, 0, 0.92) !important;
    z-index: 9999999;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.reviews-video-lightbox-overlay.active {
    display: flex;
}

.reviews-video-lightbox-content {
    width: 90vw;
    max-width: 960px;
    aspect-ratio: 16 / 9;
    cursor: default;
}

.reviews-video-lightbox-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 4px;
}

.review-audio {
    width: 100%;
}

.review-audio audio {
    width: 100%;
    border-radius: 6px;
    background: #f5f5f5;
}

/* Audio player custom styling */
.review-audio audio::-webkit-media-controls-panel {
    background: #f5f5f5;
}

.review-audio audio::-webkit-media-controls-play-button {
    background-color: #2271b1;
    border-radius: 50%;
}

.review-audio audio::-webkit-media-controls-current-time-display,
.review-audio audio::-webkit-media-controls-time-remaining-display {
    color: #333;
}

/* Grid layout variant (legacy) */
.reviews-newneuro-list.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Layout: List (default) */
.reviews-newneuro-list.layout-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Layout: Grid 3 columns - adapts to container width */
.reviews-newneuro-list.layout-grid3 {
    display: grid;
    /* Auto-fit columns: min 280px, will show 3 cols at 900px+, 2 cols at 600-900px, 1 col below 600px */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.reviews-newneuro-list.layout-grid3 .review-item {
    display: flex;
    flex-direction: column;
}

.reviews-newneuro-list.layout-grid3 .review-content {
    flex: 1;
}

/* Compact variant */
.reviews-newneuro-list.compact .review-item {
    padding: 15px;
}

.reviews-newneuro-list.compact .review-content {
    font-size: 14px;
}

/* Card variant */
.reviews-newneuro-list.cards .review-item {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.reviews-newneuro-list.cards .review-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .review-item {
        background: #2d2d2d;
        border-color: #444;
    }

    .review-author {
        color: #eee;
    }

    .review-content {
        color: #ccc;
    }

    .review-response {
        background: #333;
    }

    .response-content {
        color: #bbb;
    }

    .review-footer {
        border-top-color: #444;
        color: #999;
    }
}

/* Show more button */
.reviews-show-more-wrapper {
    text-align: center;
    margin-top: 20px;
}

.reviews-show-more-btn {
    display: inline-block;
    padding: 12px 32px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.reviews-show-more-btn:hover {
    background: #135e96;
}

.reviews-show-more-btn:disabled {
    background: #999;
    cursor: not-allowed;
}

/* Loading indicator */
.reviews-loading {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
}

.reviews-loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-top-color: #2271b1;
    border-radius: 50%;
    animation: reviews-spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes reviews-spin {
    to { transform: rotate(360deg); }
}

.reviews-loading-inline {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 15px;
}

/* Sort select - styled like multiselect */
.reviews-filter-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 10px 36px 10px 14px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 12px center;
    background-size: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-width: 150px;
    font-family: inherit;
    line-height: 1.4;
}

.reviews-filter-select:hover {
    border-color: #999;
}

.reviews-filter-select:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.2);
}

.reviews-filter-select option {
    padding: 8px 12px;
}

/* Reset filter button */
.reviews-filter-reset-group {
    margin-left: auto;
}

.reviews-filter-reset {
    padding: 10px 16px;
    background: transparent;
    color: #d63638;
    border: 1px solid #d63638;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.reviews-filter-reset:hover {
    background: #d63638;
    border-color: #d63638;
    color: #fff;
}

/* Popup overlay */
.reviews-popup-overlay {
    display: none;
    position: fixed;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    margin: 0 !important;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.reviews-popup-overlay.active {
    display: flex;
}

/* Popup container */
.reviews-popup {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.reviews-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.reviews-popup-close:hover {
    background: #eee;
    color: #333;
}

/* Popup content */
.reviews-popup-content {
    font-size: 15px;
    line-height: 1.6;
}

.review-popup-header {
    display: flex !important;
    gap: 10% !important;
    margin-bottom: 16px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #eee !important;
}

.review-popup-header .review-author {
    font-weight: 600 !important;
    font-size: 18px !important;
}

.review-popup-header .review-date {
    color: #888 !important;
    font-size: 14px !important;
}

.reviews-popup-text {
    color: #333;
    margin-bottom: 20px;
}

.review-popup-branch {
    color: #2271b1;
    font-size: 14px;
    margin-bottom: 10px;
}

.reviews-popup-source {
    padding-top: 15px;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 14px;
}

.reviews-popup-source a {
    color: #2271b1;
    text-decoration: none;
}

.reviews-popup-source a:hover {
    text-decoration: underline;
}

.reviews-popup-content .review-response {
    margin-top: 20px;
}

/* Responsive - Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    /* Grid3 uses auto-fit with minmax, so it adapts automatically */
}

/* Responsive - Mobile (max-width: 600px) */
@media (max-width: 600px) {
    .review-item {
        padding: 15px;
    }

    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .review-rating {
        order: -1;
    }

    .review-footer {
        flex-direction: column;
        gap: 8px;
    }

    .reviews-video-lightbox-overlay {
        padding: 10px !important;
    }

    .video-play-icon {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }

    /* Legacy grid: 1 column on mobile */
    .reviews-newneuro-list.grid {
        grid-template-columns: 1fr;
    }

    /* Grid3: smaller gap on mobile (columns auto-adapt via minmax) */
    .reviews-newneuro-list.layout-grid3 {
        gap: 15px;
    }

    /* List: smaller gap on mobile */
    .reviews-newneuro-list.layout-list {
        gap: 15px;
    }

    .reviews-toolbar {
        flex-wrap: wrap;
        gap: 10px;
    }

    .reviews-toolbar-left {
        order: 0;
        flex: 1;
        max-width: fit-content;
    }

    .reviews-toolbar-right {
        order: 1;
        flex: 1;
        justify-content: flex-end;
    }

    .reviews-toolbar-center {
        order: 2;
    }

    .reviews-filter-toggle-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .reviews-filters-accordion {
        padding: 12px;
    }

    .reviews-filters {
        gap: 8px;
    }

    .reviews-filter-group {
        flex: 1 1 100%;
    }

    .reviews-multiselect {
        width: 100%;
        min-width: auto;
    }

    .reviews-multiselect-dropdown {
        min-width: 100%;
    }

    .reviews-filter-select {
        max-width: 160px;
        padding: 9px 36px 8px 14px;
    }

    .reviews-popup {
        padding: 20px;
        max-height: 90vh;
    }

    .reviews-popup-close {
        top: 10px;
        right: 10px;
    }

    .review-video iframe {
        height: 200px;
    }

    .review-video-link {
        padding: 10px 16px;
        font-size: 14px;
    }

    button.reviews-filter-reset {
        width: 100%;
    }

}

/* Image Lightbox */
.reviews-lightbox-overlay {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: rgba(0, 0, 0, 0.95) !important;
    z-index: 9999999;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.reviews-lightbox-overlay.active {
    display: flex;
}

.reviews-lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    cursor: default;
}

.reviews-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}

.reviews-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.reviews-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}

.reviews-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.reviews-lightbox-prev {
    left: 20px;
}

.reviews-lightbox-next {
    right: 20px;
}

.reviews-lightbox-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

