/* ==========================================================================
   Review Gallery Module
   File: orvix-core/modules/review-gallery/review-gallery.css
   ========================================================================== */

.rg-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}
@media (max-width: 478px) {
    .rg-grid { gap: 3px; }
}

.rg-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1 / 1;
    background: var(--bricks-color-grey-100);
    cursor: pointer;
}
.rg-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.rg-item img.rg-blur   { filter: blur(8px); transform: scale(1.05); }
.rg-item img.rg-loaded { filter: none; transform: scale(1); transition: filter 0.4s, transform 0.4s; }
.rg-item:hover img { transform: scale(1.05); }

.rg-item--viewall::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    transition: background 0.25s;
}
.rg-item--viewall:hover::after {
    background: rgba(0,0,0,0.65);
}

.rg-viewall-label {
    display: flex;
    position: absolute;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #FFF;
    pointer-events: none;
}
.rg-viewall-label svg {
    width: 18px;
    height: 18px;
    stroke: #FFF;
    margin-bottom: 4px;
}
.rg-viewall-label span:first-of-type {
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
}
.rg-viewall-label span:last-of-type {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.85;
}
@media (max-width: 478px) {
    .rg-viewall-label svg { width: 14px; height: 14px; }
    .rg-viewall-label span:first-of-type { font-size: 12px; }
    .rg-viewall-label span:last-of-type  { font-size: 10px; }
}