.block-about {
	--cwp-image: 356px;
	min-height: var(--cwp-image);
	position: relative;
	align-items: center;
}

.block-about.cwp-large,
.block-about.cwp-large.has-background {
	padding: var(--wp--custom--layout--block-gap);
}

.editor-styles-wrapper .wp-block-cwp-about.has-background {
	padding: 0;
}

.block-about p.is-style-heading,
.editor-styles-wrapper .block-about p.is-style-heading {
	line-height: var(--wp--custom--line-height--small);
	text-transform: uppercase;
}

.block-about .block-about__inner,
.editor-styles-wrapper .block-about .block-about__inner {
	gap: var(--wp--custom--layout--block-gap);
}

.block-about__content {
	flex-basis: 0;
	flex-grow: 1;
}

.block-about .block-about__image {
	max-width: 300px;
	margin-left: auto;
	margin-right: auto;
}

@media only screen and (max-width: 760px) {

	:is(.entry-content, .block-area) > .block-about {
		margin-left: calc( -1 * var(--wp--custom--layout--padding) );
		margin-right: calc( -1 * var(--wp--custom--layout--padding) );
	}

	.block-about {
		text-align: center;
	}

	.block-about .block-about__inner,
	.editor-styles-wrapper .block-about .block-about__inner {
		display: grid;
	}

	.block-about__content .wp-block-buttons,
	.block-about__content .social-links {
		justify-content: center;
	}

}

@media only screen and (min-width: 760px) {

	.block-about.cwp-large,
	.block-about.cwp-large.has-background {
		padding: var(--wp--custom--layout--block-gap-large);
	}

	.block-about .block-about__inner,
	.editor-styles-wrapper .block-about .block-about__inner {
		gap: var(--wp--custom--layout--block-gap-large);
	}

	.block-about__image {
		align-self: center;
		width: var(--cwp-image);
		height: auto;
	}

	.block-about__image figure:not(.is-resized),
	.block-about__image figure:not(.is-resized) img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}


}

.block-area-sidebar .block-about .block-about__inner {
	display: block;
}

.block-area-sidebar .editor-styles-wrapper .has-background[data-type="cwp/about"] {
	padding: 0;
}
	
.block-area-sidebar .block-about.cwp-large,
.block-area-sidebar .block-about.cwp-large.has-background {
	padding: var(--wp--custom--layout--block-gap);
}

.block-area-sidebar .block-about .block-about__content {
	padding-top: 16px;
}

.block-area-sidebar .block-about__image {
	position: relative;
	width: 100%;
}
