/**
 * Tekton — page & block width modes.
 */

/* Page container */
body.tekton-page-width-full #content.site-content .container,
body.tekton-page-width-full.tekton-width-full #content.site-content .container {
	max-width: 100% !important;
	width: 100%;
}

body.tekton-page-width-content #content.site-content .container {
	max-width: var(--tekton-page-container-width, var(--container-width, 1200px)) !important;
	margin-left: auto;
	margin-right: auto;
}

body.tekton-page-width-boxed #content.site-content .container {
	max-width: var(--tekton-page-content-max-width, var(--tekton-page-width-boxed, 800px)) !important;
	margin-left: auto;
	margin-right: auto;
}

body.tekton-page-width-custom #content.site-content .container {
	max-width: var(--tekton-page-content-max-width, var(--tekton-page-width-custom, 900px)) !important;
	margin-left: auto;
	margin-right: auto;
}

/* Entry content column (pages/posts) */
body.tekton-page-width-boxed .entry-content,
body.tekton-page-width-custom .entry-content,
body.tekton-page-width-content .entry-content {
	width: 100%;
}

/* Per-block width (editor-controlled) */
.tekton-block-width {
	box-sizing: border-box;
}

.tekton-block-width-full {
	max-width: 100% !important;
	width: 100% !important;
}

.tekton-block-width-content {
	max-width: var(--tekton-page-container-width, var(--container-width, 1200px));
	margin-left: auto;
	margin-right: auto;
	width: 100%;
}

.tekton-block-width-boxed {
	max-width: var(--tekton-page-content-max-width, var(--tekton-page-width-boxed, 800px));
	margin-left: auto;
	margin-right: auto;
	width: 100%;
}

.tekton-block-width-custom {
	margin-left: auto;
	margin-right: auto;
	width: 100%;
}

/* Wide/full blocks still respect alignments */
.tekton-block-width .alignwide {
	max-width: min(100%, var(--tekton-page-container-width, 1200px));
}

body.tekton-page-width-full .entry-content > .alignwide,
body.tekton-page-width-full .entry-content > .alignfull {
	max-width: 100%;
}
