/*
 * Pinterest inspiration collage.
 *
 * This is a Sola adaptation of the image-led, quiet editorial rhythm recorded
 * in the Article evidence. It uses Sola's own neutral palette, Hebrew-first
 * RTL flow, and approved owner-provided pin URLs. The stylesheet is page
 * scoped and intentionally contains no catalog or product presentation.
 */

body.page-id-6676 .sola-pinterest-collage,
body.page-id-6677 .sola-pinterest-collage {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(var(--space-3), 2.4vw, var(--space-6));
	inline-size: 100%;
	max-inline-size: 68rem;
	margin-block: clamp(2.5rem, 5vw, 4.5rem);
	padding: 0;
	list-style: none;
}
body.page-id-6676 .sola-pinterest-collage__item,
body.page-id-6677 .sola-pinterest-collage__item {
	min-inline-size: 0;
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	background: var(--color-surface);
	box-shadow: 0 0.35rem 1rem rgba(32, 34, 30, 0.06);
}

body.page-id-6676 .sola-pinterest-collage__item > a,
body.page-id-6677 .sola-pinterest-collage__item > a {
	display: block;
	min-block-size: 44px;
	overflow: visible;
	aspect-ratio: auto;
	background: var(--color-surface-strong);
	color: inherit;
}

/* Wide tiles keep the 2-by-2 / 3-by-3 rhythm collage-like without JS masonry. */
body.page-id-6676 .sola-pinterest-collage__item:nth-child(1),
body.page-id-6676 .sola-pinterest-collage__item:nth-child(4),
body.page-id-6676 .sola-pinterest-collage__item:nth-child(6),
body.page-id-6677 .sola-pinterest-collage__item:nth-child(1),
body.page-id-6677 .sola-pinterest-collage__item:nth-child(4),
body.page-id-6677 .sola-pinterest-collage__item:nth-child(6) {
	grid-column: span 2;
}

body.page-id-6676 .sola-pinterest-collage__item img,
body.page-id-6677 .sola-pinterest-collage__item img {
	display: block;
	inline-size: 100%;
	block-size: auto;
	aspect-ratio: 1 / 1;
	max-inline-size: none;
	object-fit: cover;
	object-position: center;
}

body.page-id-6676 .sola-pinterest-collage__item:nth-child(1) > a img,
body.page-id-6676 .sola-pinterest-collage__item:nth-child(4) > a img,
body.page-id-6676 .sola-pinterest-collage__item:nth-child(6) > a img,
body.page-id-6677 .sola-pinterest-collage__item:nth-child(1) > a img,
body.page-id-6677 .sola-pinterest-collage__item:nth-child(4) > a img,
body.page-id-6677 .sola-pinterest-collage__item:nth-child(6) > a img {
	aspect-ratio: 2 / 1;
}

body.page-id-6676 .sola-pinterest-collage__item figcaption,
body.page-id-6677 .sola-pinterest-collage__item figcaption {
	margin: 0;
	padding: var(--space-3) var(--space-4) var(--space-4);
	color: var(--color-ink-soft);
	font-size: var(--font-size-ui);
	font-weight: var(--font-weight-semibold);
	line-height: var(--line-height-ui);
	text-align: start;
}

body.page-id-6676 .sola-pinterest-collage__item > a:hover,
body.page-id-6677 .sola-pinterest-collage__item > a:hover {
	background: var(--color-surface);
}

body.page-id-6676 .sola-pinterest-collage__item > a:focus-visible,
body.page-id-6677 .sola-pinterest-collage__item > a:focus-visible {
	position: relative;
	z-index: 1;
	outline: var(--focus-width) solid var(--focus-color);
	outline-offset: -3px;
}

@media (max-width: 47.999rem) {
	/* Keep the final two tiles together on the two-column mobile grid. */
	body.page-id-6676 .sola-pinterest-collage__item:nth-child(6),
	body.page-id-6677 .sola-pinterest-collage__item:nth-child(6) {
		grid-column: span 1;
	}

	body.page-id-6676 .sola-pinterest-collage__item:nth-child(6) > a img,
	body.page-id-6677 .sola-pinterest-collage__item:nth-child(6) > a img {
		aspect-ratio: 1 / 1;
	}
}

@media (min-width: 48rem) {
	body.page-id-6676 .sola-pinterest-collage,
	body.page-id-6677 .sola-pinterest-collage {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	body.page-id-6676 .sola-pinterest-collage__item:nth-child(1),
	body.page-id-6676 .sola-pinterest-collage__item:nth-child(4),
	body.page-id-6676 .sola-pinterest-collage__item:nth-child(6),
	body.page-id-6677 .sola-pinterest-collage__item:nth-child(1),
	body.page-id-6677 .sola-pinterest-collage__item:nth-child(4),
	body.page-id-6677 .sola-pinterest-collage__item:nth-child(6) {
		grid-column: span 2;
	}
}
