.reviews-gallery {
    max-width: 1160px;
    margin-inline: auto;
    padding-block: 4px 12px;
}

.reviews-gallery h1 {
    margin-bottom: clamp(18px, 3vw, 30px);
}

.reviews-gallery-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: clamp(14px, 2vw, 24px);
}

.reviews-gallery-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    scroll-margin-top: 110px;
}

.reviews-gallery-card:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 3px;
}

.reviews-gallery-media {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px;
    background: var(--line);
}

.reviews-gallery-media-item {
    min-width: 0;
    aspect-ratio: 1;
    background: var(--canvas);
}

.reviews-gallery-media-item--wide {
    grid-column: 1 / -1;
    aspect-ratio: 4 / 3;
}

.reviews-gallery-media-item :is(img, video) {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.reviews-gallery-media-item video {
    background: #252522;
}

.reviews-gallery-content {
    padding: clamp(14px, 2vw, 20px);
    overflow-wrap: anywhere;
}

.reviews-gallery-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 12px;
    margin-bottom: 10px;
}

.reviews-gallery-stars {
    display: inline-flex;
    gap: 2px;
    color: #a75c00;
    font: 17px/1 Arial, sans-serif;
}

.reviews-gallery-star--empty {
    color: #d6d0c6;
}

.reviews-gallery-meta time {
    color: var(--muted);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.reviews-gallery-product {
    font-size: 17px;
    line-height: 1.3;
}

.reviews-gallery-product a {
    color: #8e4e00;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.reviews-gallery-body {
    margin: 10px 0 0;
    font-size: 15px;
    white-space: pre-line;
}

.reviews-gallery-empty {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.reviews-gallery-pagination {
    display: grid;
    justify-items: center;
    gap: 8px;
    margin-top: clamp(20px, 3vw, 32px);
    text-align: center;
    overflow-anchor: none;
}

.reviews-gallery-pagination a[aria-disabled='true'] {
    opacity: .58;
    cursor: wait;
}

.reviews-gallery-status {
    min-height: 1.5em;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

@media (min-width: 600px) {
    .reviews-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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