/* RG Filter Gallery — revglass-components */

.rg-filter-gallery { --rg-cols: 3; --rg-gap: 14px; }

/* dropdown */
.rg-fg-bar { margin-bottom: 20px; }
.rg-fg-select {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    color: #1e2933;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231e2933' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 16px center;
    border: 1px solid #d8dde3;
    border-radius: 8px;
    padding: 12px 44px 12px 18px;
    width: auto !important; /* theme sets select{width:100%} — keep intrinsic */
    min-width: 230px;
    max-width: 100%;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.rg-fg-select:focus {
    outline: none;
    border-color: #1e2933;
}

/* grid */
.rg-fg-grid {
    display: grid;
    grid-template-columns: repeat(var(--rg-cols), 1fr);
    gap: var(--rg-gap);
}

/* items */
.rg-fg-item {
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}
.rg-fg-item.rg-hide { display: none; }
.rg-fg-item.rg-in { animation: rgFgIn .28s ease; }
@keyframes rgFgIn {
    from { opacity: 0; transform: scale(.97); }
    to   { opacity: 1; transform: none; }
}
.rg-fg-item a {
    display: block;
    aspect-ratio: 1 / 1;
}
.rg-fg-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.rg-fg-zoom .rg-fg-item:hover img { transform: scale(1.05); }

/* caption overlay */
.rg-fg-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 26px 14px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.65) 100%);
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .rg-fg-item.rg-in { animation: none; }
    .rg-fg-item img { transition: none; }
}

/* ── RG Project Gallery: static collage (CSS columns masonry) ───── */
.rg-pg-collage {
    column-count: 3;
    column-gap: 14px;
}
.rg-pg-collage figure {
    margin: 0 0 14px;
    overflow: hidden;
    border-radius: 8px;
    break-inside: avoid;
}
.rg-pg-collage a { display: block; }
.rg-pg-collage img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .35s ease;
}
.rg-pg-collage figure:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) {
    .rg-pg-collage img { transition: none; }
}
