/* Brand "Mūsų žvaigždės" cards ([bw_zvaigzdes]): 3:4 image, title below.
   Sizes and gaps match the former Elementor grid; title uses the site's label typography. */

.bw-stars {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 40px 20px;
}

.bw-stars__item {
	min-width: 0;
}

.bw-stars__media {
	aspect-ratio: 3 / 4;
	border-radius: 8px;
	overflow: hidden;
}

.bw-stars .bw-stars__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center center;
	border-radius: 0;
}

/* Two classes to beat the kit's ".elementor-kit-242 h3" rules. */
.bw-stars .bw-stars__title {
	margin: 16px 0 0;
	padding: 0;
	color: var(--e-global-color-secondary, #1a1a1a);
	font-family: var(--e-global-typography-8f521e7-font-family, "Helvetica"), sans-serif;
	font-size: var(--e-global-typography-8f521e7-font-size, 13px);
	font-weight: var(--e-global-typography-8f521e7-font-weight, 500);
	font-style: normal;
	line-height: var(--e-global-typography-8f521e7-line-height, 1.5em);
	letter-spacing: var(--e-global-typography-8f521e7-letter-spacing, 3px);
	text-transform: var(--e-global-typography-8f521e7-text-transform, uppercase);
	text-decoration: none;
}

@media (max-width: 1024px) {
	.bw-stars {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.bw-stars {
		gap: 28px 12px;
	}

	.bw-stars .bw-stars__title {
		margin-top: 12px;
		font-size: 11px;
		letter-spacing: 1.5px;
	}
}

/* No products: hide the whole section, heading included (kept visible in the Elementor editor). */
body:not(.elementor-editor-active) .bw-stars-section:not(:has(.bw-stars)) {
	display: none;
}
