.rwg-taxonomy-grid, .rwg-grid { box-sizing: border-box; width: 100%; max-width: 100%; }
.rwg-grid { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; grid-auto-flow: row; align-items: stretch; justify-items: stretch; }
.rwg-card { position: relative; display: flex !important; align-items: center; justify-content: center; justify-self: center; box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; height: auto; aspect-ratio: 1 / 1; min-height: 1px; margin: 0; padding: 0; float: none !important; clear: none !important; overflow: hidden; color: #fff; background: #f5f5f5; text-decoration: none; transition: transform .25s ease, background-color .25s ease; }
.rwg-card:hover { color: #fff; transform: translateY(-3px); }
.rwg-image { position: absolute; inset: 0; z-index: 0; display: block !important; width: 100% !important; height: 100%; max-width: 100% !important; object-fit: cover; object-position: center; }
.rwg-overlay { position: absolute; inset: 0; z-index: 1; background: transparent; }
.rwg-name { position: relative; z-index: 2; display: block; width: 100%; color: #fff; background-color: transparent; text-align: center; }
.rwg-card:not(.has-image) .rwg-name { color: #222; }
