.paddedArea > .has-background:where(:not(p), :not(hr))
{
	padding-top: var(--wp--custom--v-pad);
	padding-bottom: var(--wp--custom--v-pad);
}

.paddedArea > :not(.has-background) + .has-background,
.paddedArea > .has-background + :not(.has-background)
{
	margin-top: var(--wp--custom--v-pad);
}

.paddedArea > :last-child:not(.has-background)
{
	margin-bottom: var(--wp--custom--v-pad);
}

.paddedArea > :last-child.has-background
{
	margin-bottom: 0;
}

/* Columns */
.wp-block-columns
{
	margin-bottom: var(--wp--custom--v-pad);
}

:where(.wp-block-columns:not(.is-not-stacked-on-mobile)) > .wp-block-column + .wp-block-column
{
	margin-top: var(--wp--custom--v-pad);
}

.wp-block-column > :first-child
{
	margin-top: 0;
}

.wp-block-column > :last-child
{
	margin-bottom: 0;
}

@media (min-width: 600px)
{
	.wp-block-column + .wp-block-column
	{
		margin-top: unset;
	}
}
/* Columns End */

/* Ensure images fill to the edges when they should */
.alignfull.is-image-fill > .wp-block-media-text__media
{
	margin-left: calc(-1 * var(--wp--custom--h-inset));
	margin-right: calc(-1 * var(--wp--custom--h-inset));
}

/* Remove top background when stacked on mobile */
.wp-block-media-text:where(.has-background) > .wp-block-media-text__media
{
	margin-top: calc(-1 * var(--wp--custom--v-pad));
	margin-bottom: calc(-1 * var(--wp--custom--v-pad));
}

.wp-block-media-text:where(:not(.has-background), .alignfull) > .wp-block-media-text__content
{
	padding: 0;
}

.wp-block-media-text > .wp-block-media-text__content
{
	padding: 8%
}

@media(min-width: 601px)
{
	/* Make media fill properly when background padding is applied */
	.wp-block-media-text.has-background.is-image-fill > .wp-block-media-text__media
	{
		height: calc(100% + 2 * var(--wp--custom--v-pad));
	}

	/* START make media fill correctly when alignfull is applied */
	.wp-block-media-text.alignfull.is-image-fill:not(.has-media-on-the-right) > .wp-block-media-text__media
	{
		margin-right: 0;
	}

	.wp-block-media-text.alignfull.is-image-fill.has-media-on-the-right > .wp-block-media-text__media
	{
		margin-left: 0;
	}
	/* END */

	/* START Make no crop media go to edge in align full */
	.wp-block-media-text.alignfull:not(.has-media-on-the-right) > .wp-block-media-text__media
	{
		margin-left: calc(-1 * var(--wp--custom--h-inset));
	}
	.wp-block-media-text.alignfull.has-media-on-the-right > .wp-block-media-text__media
	{
		margin-right: calc(-1 * var(--wp--custom--h-inset));
	}
	/* END */
}

@media (max-width: 600px)
{
	/* Ensure stacked media has gap underneath */
	.is-stacked-on-mobile:where(.has-background) > .wp-block-media-text__media
	{
		margin-bottom: 0
	}
}


/* START Make sure media content vertical padding is consistent  */
.wp-block-media-text__content > :first-child
{
	margin-top: 0;
}

.wp-block-media-text__content > :last-child
{
	margin-bottom: 0;
}
/* END */
