.ct-structure-narrow {
	// --block-max-width: 750px;
	// --wide-block-max-width: 1100px;

	--block-max-width: var(--narrow-container-max-width);
	--wide-block-max-width: calc(var(--narrow-container-max-width) + var(--wide-offset) * 2);
}

.ct-structure-normal {
	// @media (max-width: 1449px) {
	// 	--block-max-width: 900px;
	// 	--wide-block-max-width: 1100px;
	// }

	// @media (min-width: 1450px) {
	// 	--block-max-width: 1290px;
	// 	--wide-block-max-width: 1500px;
	// }

	--block-max-width: var(--container-max-width);
	--wide-block-max-width: calc(var(--container-max-width) + var(--wide-offset) * 2);
}



.ct-theme-editor-styles {

	.wp-block {
		max-width: var(--has-wide, var(--block-max-width));
	}

	.wp-block[data-align='wide'] {
		max-width: var(--has-wide, var(--wide-block-max-width));
	}

	.wp-block[data-align=full] {
		max-width: none;
		margin-left: var(--has-wide, -10px) !important;
		margin-right: var(--has-wide, -10px) !important;
	}


	// group inner container
	[class*="_inner-container"] {
		> * {
			&:first-child {
				margin-top: 0;
			}

			&:nth-last-child(2) {
				margin-bottom: 0;
			}
		}

		.wp-block[data-align=full] {
			margin-left: -30px !important;
			margin-right: -30px !important;
		}
	}

	.wp-block-group.has-background {
		padding: 30px;
	}

	.block-editor-writing-flow {
		margin-left: var(--has-boxed, auto);
		margin-right: var(--has-boxed, auto);
		width: 100%;
		max-width: var(--has-boxed, var(--block-max-width));
	}

	// .edit-post-layout .interface-interface-skeleton__content,
	.edit-post-layout .edit-post-visual-editor {
		background-color: #FCFCFC;

		// .editor-styles-wrapper,
		.edit-post-visual-editor__content-area > div {
			padding: 10px;
			border: none !important;
			border-radius: initial !important;
			box-shadow: 0 5px 40px rgba(0, 0, 0, 0.08);
		}

		// remove extra title top space in boxed structure
		.editor-post-title {
			margin-top: var(--has-wide, 2em);
		}
	}	
}




// getwid
div.wp-block-getwid-section {
	.wp-block-getwid-section__wrapper {
		.wp-block-getwid-section__inner-wrapper {
			max-width: var(--block-max-width);
		}
	}
}

// stackable
[data-type^='ugb/'][data-align='full'] > * > .ugb-main-block {
	&.ugb--has-block-background {
		padding-left: 30px;
		padding-right: 30px;

		> .ugb-inner-block--center {
			max-width: var(--block-max-width) !important;
		}

		> .ugb-inner-block--wide {
			max-width: var(--wide-block-max-width) !important;
		}
	}
}

.wp-block-ugb-column.ct-special-column .ugb-column__item {
	overflow: visible !important;
	background-color: transparent !important;
}

// stackable v3
.stk-block-button {
	--stk-button-text-color: var(--buttonTextInitialColor);
	--stk-button-background-color: var(--buttonInitialColor);
}


// qubely
.editor-styles-wrapper {
	.qubely-section,
	.qubely-block-wrapper-block {
		h1,
		h2,
		h3,
		h4,
		h5,
		h6 {
			margin: 0;
		}
	}
}

.block-editor-block-list__block {
	&[data-type='qubely/row'],
	&[data-type='qubely/column'],
	&[data-type='qubely/button'],
	&[data-type='qubely/wrapper'],
	&[data-type='qubely/heading'],
	&[data-type='qubely/videopopup'],
	&[data-type='qubely/buttongroup'] {
		margin-top: 0;
		margin-bottom: 0;
	}
}

.qubely-section .qubely-container {
	max-width: var(--block-max-width) !important;
	padding-left: 0 !important;
	padding-right: 0 !important;

	> .qubely-row > div,
	> .qubely-row > div > div,
	> .qubely-row > div > div > [data-type='qubely/column'],
	> .qubely-row > div > div > [data-type='qubely/column'] > div,
	> .qubely-row > div > div > [data-type='qubely/column'] > div > .qubely-column,
	> .qubely-row > div > div > [data-type='qubely/column'] > div > .qubely-column > .qubely-column-inner {
		min-height: inherit !important;
	}
}