/* Exhibit RSGDX — custom-product-brand-grid.css — v3
   v3: brand grid now lives inside the product gallery's right column.
   Still 3 cards per row on desktop, 1 per row on mobile. */

#exhibitrsgdx-product-brand-grid,
#exhibitrsgdx-product-brand-grid *,
#exhibitrsgdx-product-brand-grid *::before,
#exhibitrsgdx-product-brand-grid *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

#exhibitrsgdx-product-brand-grid.exhibitrsgdx-product-brand-grid {
	width: 100%;
	padding: 0;
	font-family: var(--exhibitrsgdx-font-sans, inherit);
}

#exhibitrsgdx-product-brand-grid .exhibitrsgdx-product-brand-grid__inner {
	max-width: none;
	margin: 0;
	padding: 0;
}

#exhibitrsgdx-product-brand-grid .exhibitrsgdx-product-brand-grid__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

#exhibitrsgdx-product-brand-grid .exhibitrsgdx-product-brand-grid__card {
	background: var(--exhibitrsgdx-color-surface, #1a1a1a);
	border: 1px solid var(--exhibitrsgdx-color-border, #2e2e2e);
	border-radius: var(--exhibitrsgdx-radius-md, 3px);
	padding: 20px 16px;
	text-align: center;
	transition: transform var(--exhibitrsgdx-transition, 0.3s ease), border-color var(--exhibitrsgdx-transition, 0.3s ease);
}

#exhibitrsgdx-product-brand-grid .exhibitrsgdx-product-brand-grid__card:hover {
	transform: translateY(-4px);
	border-color: var(--exhibitrsgdx-color-primary, #f26419);
}

#exhibitrsgdx-product-brand-grid .exhibitrsgdx-product-brand-grid__icon {
	width: 36px;
	height: 36px;
	border-radius: var(--exhibitrsgdx-radius-full, 999px);
	background: var(--exhibitrsgdx-color-primary, #f26419);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	margin: 0 auto 12px;
	overflow: hidden;
}

#exhibitrsgdx-product-brand-grid .exhibitrsgdx-product-brand-grid__icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: inherit;
}

#exhibitrsgdx-product-brand-grid .exhibitrsgdx-product-brand-grid__card-title {
	color: var(--exhibitrsgdx-color-text, #f5f5f5);
	font-size: 0.875rem;
	margin-bottom: 6px;
}

#exhibitrsgdx-product-brand-grid .exhibitrsgdx-product-brand-grid__card-subtext {
	color: var(--exhibitrsgdx-color-text-muted, #a8a8a8);
	font-size: 0.8125rem;
	margin-bottom: 0;
	line-height: 1.4;
}

@media (max-width: 900px) {
	#exhibitrsgdx-product-brand-grid .exhibitrsgdx-product-brand-grid__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 500px) {
	#exhibitrsgdx-product-brand-grid .exhibitrsgdx-product-brand-grid__grid {
		grid-template-columns: 1fr;
	}
}
