.pl-entry__content--full-bleed > .chmf-home-gallery,
.pl-entry__content--full-bleed > .wp-block-chmf-home-gallery {
	max-width: none;
	width: 100%;
	margin-inline: 0;
	padding-inline: 0;
}

.chmf-home-gallery {
	width: 100%;
	background: var(--pl-color-surface-alt, #fafaf9);
	/*
	 * Breathing room above/below the photo row comes from PADDING, not margin.
	 * The gallery and both adjoining sections are all surface-alt (#FAFAF9)
	 * while <body> is pure white — so margin here punched a white stripe
	 * through an otherwise continuous tinted column. Padding keeps the band's
	 * own background filling the space. Clamped to the theme's section rhythm.
	 */
	padding-inline: 3px;
	padding-block: var(--pl-section-padding-compact, clamp(2rem, 4vw, 3rem));
	margin-block: 0;
}

.chmf-home-gallery__grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 3px;
	width: 100%;
	margin: 0;
}

.chmf-home-gallery__item {
	margin: 0;
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

.chmf-home-gallery__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
}

@media (max-width: 62rem) {
	.chmf-home-gallery__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 30rem) {
	.chmf-home-gallery__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
