.wp-block-uagb-container {
	display: flex;
	position: relative;
	box-sizing: border-box;
	transition-property: box-shadow;
	transition-duration: 0.2s;
	transition-timing-function: ease;

	.spectra-container-link-overlay {
		bottom: 0;
		left: 0;
		position: absolute;
		right: 0;
		top: 0;
		z-index: 10;
	}

	&.uagb-is-root-container {
		margin-left: auto;
		margin-right: auto;
	}

	&.alignfull.uagb-is-root-container .uagb-container-inner-blocks-wrap {
		display: flex;
		position: relative;
		box-sizing: border-box;
		margin-left: auto !important;
		margin-right: auto !important;
	}

	// Handeling Edge case for blockquote
	.wp-block-uagb-blockquote,
	.wp-block-spectra-pro-login,
	.wp-block-spectra-pro-register {
		margin: unset;
	}

	// Background Video CSS Start.
	.uagb-container__video-wrap {
		height: 100%;
		width: 100%;
		top: 0;
		left: 0;
		position: absolute;
		overflow: hidden;
		-webkit-transition: opacity 1s;
		-o-transition: opacity 1s;
		transition: opacity 1s;

		video {
			max-width: 100%;
			width: 100%;
			height: 100%;
			margin: 0;
			line-height: 1;
			border: none;
			display: inline-block;
			vertical-align: baseline;
			-o-object-fit: cover;
			object-fit: cover;
			background-size: cover;
		}
	}

	// Background Video CSS End.
}

// Css with grid layout.
.wp-block-uagb-container.uagb-layout-grid {
	display: grid;
	width: 100%;

	> .uagb-container-inner-blocks-wrap {
		display: inherit;
		width: inherit;
		> .wp-block-uagb-container {
			max-width: unset !important;
			width: unset !important;
		}
	}

	> .wp-block-uagb-container {
		max-width: unset !important;
		width: unset !important;
	}

	&.uagb-is-root-container {
		margin-left: auto;
		margin-right: auto;
		> .wp-block-uagb-container {
			max-width: unset !important;
			width: unset !important;
		}
	}

	&.alignwide.uagb-is-root-container {
		margin-left: auto;
		margin-right: auto;
	}

	&.alignfull.uagb-is-root-container .uagb-container-inner-blocks-wrap {
		display: inherit;
		position: relative;
		box-sizing: border-box;
		margin-left: auto !important;
		margin-right: auto !important;
	}
}

body
.wp-block-uagb-container > .uagb-container-inner-blocks-wrap > *:not( .wp-block-uagb-container ):not( .wp-block-uagb-column ):not( .wp-block-uagb-container ):not( .wp-block-uagb-section ):not( .uagb-container__shape ):not( .uagb-container__video-wrap ):not( .wp-block-spectra-pro-register ):not( .wp-block-spectra-pro-login ):not( .uagb-slider-container ):not(.spectra-image-gallery__control-lightbox):not(.wp-block-uagb-info-box),
body .wp-block-uagb-container > .uagb-container-inner-blocks-wrap,
body
.wp-block-uagb-container > *:not( .wp-block-uagb-container ):not( .wp-block-uagb-column ):not( .wp-block-uagb-container ):not( .wp-block-uagb-section ):not( .uagb-container__shape ):not( .uagb-container__video-wrap ):not( .wp-block-spectra-pro-register ):not( .wp-block-spectra-pro-login ):not( .uagb-slider-container ):not( .spectra-container-link-overlay ):not(.spectra-image-gallery__control-lightbox):not(.wp-block-uagb-lottie):not(.uagb-faq__outer-wrap) {
	min-width: unset !important;
	width: 100%;
	position: relative;
}

body .ast-container .wp-block-uagb-container > .uagb-container-inner-blocks-wrap > .wp-block-uagb-container,
body .ast-container .wp-block-uagb-container > .uagb-container-inner-blocks-wrap {
	> ul,
	ol {
		max-width: -webkit-fill-available;
		margin-block-start: 0;
		margin-block-end: 0;
		margin-left: 20px;
	}
}

// For Astra theme boxed compatibility
.ast-plain-container
.editor-styles-wrapper
.block-editor-block-list__layout.is-root-container
.uagb-is-root-container.wp-block-uagb-container.alignwide {
	margin-left: auto;
	margin-right: auto;
}

// Shape Divider CSS Start.
.uagb-container__shape {
	overflow: hidden;
	position: absolute;
	left: 0;
	width: 100%;
	line-height: 0;
	direction: ltr;
}

.uagb-container__shape-top {
	top: -3px;
}

.uagb-container__shape-bottom {
	bottom: -3px;
}

.uagb-container__shape.uagb-container__invert.uagb-container__shape-bottom,
.uagb-container__shape.uagb-container__invert.uagb-container__shape-top {
	-webkit-transform: rotate(180deg);
	-ms-transform: rotate(180deg);
	transform: rotate(180deg);
}

.uagb-container__shape.uagb-container__shape-flip svg {
	transform: translateX(-50%) rotateY(180deg);
}

.uagb-container__shape svg {
	display: block;
	width: -webkit-calc(100% + 1.3px);
	width: calc(100% + 1.3px);
	position: relative;
	left: 50%;
	-webkit-transform: translateX(-50%);
	-ms-transform: translateX(-50%);
	transform: translateX(-50%);
}

.uagb-container__shape .uagb-container__shape-fill {
	-webkit-transform-origin: center;
	-ms-transform-origin: center;
	transform-origin: center;
	-webkit-transform: rotateY(0deg);
	transform: rotateY(0deg);
}

.uagb-container__shape.uagb-container__shape-above-content {
	z-index: 9;
	pointer-events: none;
}
// Shape Divider CSS End.

//Neve Theme Compatibility
.nv-single-page-wrap .nv-content-wrap.entry-content {

	.wp-block-uagb-container.alignfull {
		margin-left: calc(50% - 50vw);
		margin-right: calc(50% - 50vw);
	}
}
//Heading block compatibility
@media only screen and (max-width: 767px) {
	.wp-block-uagb-container .wp-block-uagb-advanced-heading {
		width: -webkit-fill-available;
	}
}
// Handle backward case where Image block aligns to left by default.
.wp-block-uagb-image--align-none {
	justify-content: center;
}
