.rbg{margin:32px 0}.rbg-filters{display:flex;gap:12px;flex-wrap:wrap;margin:24px 0}.rbg-filters button{background:#eeeade;color:#20372f;border:1px solid #ded8cb;border-radius:9px;padding:10px 24px;min-height:44px;font-weight:600}.rbg-filters button[aria-pressed=true]{background:#20372f;color:#fffdf7}.rbg-grid{display:grid;grid-template-columns:repeat(var(--rbg-columns,3),minmax(0,1fr));gap:20px}.rbg-card{border-radius:16px;overflow:hidden;min-width:0}.rbg-card[hidden]{display:none!important}.rbg-card a{display:block;position:relative}.rbg-card img{display:block;width:100%;height:280px;object-fit:cover}.rbg-card a>span{position:absolute;bottom:12px;left:12px;right:12px;padding:8px 12px;border-radius:8px;background:#fffdf7ed;color:#20372f;font-weight:600}.rbg-mosaic .rbg-card:nth-child(4n+1){grid-column:span 2}.rbg-viewer{width:min(1000px,94vw);max-height:94vh;overflow:auto;border:0;border-radius:18px;background:#f7f5f0;padding:20px}.rbg-viewer::backdrop{background:#10231eeb}.rbg-main{display:block;width:100%;max-height:65vh;object-fit:contain}.rbg-close{display:block;margin-left:auto;border-radius:50%;background:#20372f;color:#fff;min-width:44px;min-height:44px;margin-bottom:12px}.rbg-controls{display:flex;justify-content:center;align-items:center;gap:20px;margin:16px 0}.rbg-controls button{background:#20372f;color:white;border-radius:50%;min-height:44px;min-width:44px}.rbg-comparison:not([hidden]){display:grid;grid-template-columns:1fr 1fr;gap:16px}.rbg-comparison figure{margin:0}.rbg-comparison img{width:100%;height:220px;object-fit:cover;border-radius:12px}.rbg-comparison figcaption{color:#20372f;font-weight:600}.rbg-empty{padding:48px;background:#fffdf7;border:1px solid #ded8cb;border-radius:18px}.rbg :focus-visible{outline:3px solid #806027;outline-offset:4px}@media(max-width:800px){.rbg-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:500px){.rbg-grid{grid-template-columns:1fr}.rbg-mosaic .rbg-card:nth-child(4n+1){grid-column:auto}.rbg-card img{height:260px}.rbg-filters{gap:8px}.rbg-filters button{padding:10px 16px}.rbg-comparison img{height:150px}}

/* Reference composition: thumbnail row with an always-visible project preview. */
.rbg-grid{gap:16px}.rbg-card img{height:190px}.rbg-card a>span{font-size:12px;padding:5px 8px;left:8px;right:8px;bottom:8px}.rbg-card.is-selected{outline:3px solid #b99049;outline-offset:3px}.rbg-stage{position:relative;margin-top:24px;border-radius:18px;overflow:hidden;background:#20372f}.rbg-stage-main{display:block;width:100%;height:540px;object-fit:cover}.rbg-stage-expand,.rbg-stage-next{position:absolute;right:16px;border:0;background:#fffdf7;color:#20372f;border-radius:50%;width:44px;height:44px;padding:0;font-size:26px;box-shadow:0 2px 10px #0003}.rbg-stage-expand{top:16px}.rbg-stage-next{top:45%}.rbg-stage-before{position:absolute;bottom:60px;left:20px;width:180px;height:130px;border:3px solid #fffdf7;border-radius:12px;overflow:hidden;margin:0;box-shadow:0 4px 16px #0004}.rbg-stage-before img{display:block;width:100%;height:100%;object-fit:cover}.rbg-stage-before figcaption{position:absolute;bottom:6px;left:6px;background:#fffdf7;color:#20372f;padding:3px 8px;border-radius:6px;font-size:12px}.rbg-stage-label{position:absolute;bottom:62px;right:16px;padding:5px 10px;border-radius:20px;background:#fffdf7;color:#20372f;font-size:12px}.rbg-stage-caption{margin:0!important;padding:14px 20px;color:#fffdf7!important;font-size:14px!important}.rbg-stage-before[hidden],.rbg-stage[hidden]{display:none!important}
@media(max-width:600px){.rbg-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.rbg-card img{height:125px}.rbg-card a>span{font-size:9px;left:4px;right:4px;padding:3px 4px}.rbg-stage-main{height:320px}.rbg-stage-before{width:110px;height:85px;left:12px;bottom:78px}.rbg-stage-label{bottom:78px}.rbg-stage-caption{min-height:60px}.rbg-mosaic .rbg-card:nth-child(4n+1){grid-column:auto}}
