/*
 * Ticket #297: the one width rule. Pages sit on a 1200px frame; reading text stops at about 780px and
 * starts at the frame's left edge, under the title. Grids, cards and photo walls use the full frame.
 */

/* Plain text blocks placed straight in page content (not inside a pattern's own group). */
.wp-block-post-content.leimer-frame > :where(p, ul, ol, h2, h3, h4, h5, h6, blockquote) {
	max-width: 780px;
	margin-left: max(0px, calc((100% - 1200px) / 2)) !important;
	margin-right: auto !important;
}

/* Text with aside: text 2/3, a card, photo or quote 1/3. Columns stack on phones (core default). */
.leimer-text-aside {
	gap: var(--wp--preset--spacing--50, 2rem);
	align-items: flex-start;
}
.leimer-text-aside .leimer-aside {
	padding: var(--wp--preset--spacing--40, 1.5rem);
	border: 1px solid var(--wp--preset--color--line, #ddd7cc);
	border-radius: 6px;
}
.leimer-text-aside .leimer-aside > :first-child { margin-top: 0; }
.leimer-text-aside .leimer-aside > :last-child { margin-bottom: 0; }

/* Two-column text. */
.leimer-text-columns {
	gap: var(--wp--preset--spacing--50, 2rem);
}
