/**
 * .l-content
 * Wraps the main area and the sidebar.
 *
 * Without a sidebar, .l-main spans the full width so that full-width blocks
 * can reach the edges of the screen. With a sidebar (sidebar.php outputs
 * .l-sidebar only when it has widgets), it becomes two columns on wide screens.
 */
.l-content {
	flex: 1;
}

@media (min-width: 1024px) {
	.l-content:has(> .l-sidebar) {
		display: grid;
		gap: var(--wp--preset--spacing--60);
		grid-template-columns: minmax(0, 1fr) 280px;
		margin-inline: auto;
		width: min(
			100% - var(--wp--style--root--padding-left) - var(--wp--style--root--padding-right),
			var(--wp--style--global--wide-size)
		);
	}
}
