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

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

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

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

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

.block-cookbook .block-cookbook__image {
	margin-left: auto;
	margin-right: auto;
}

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

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

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

	.block-cookbook__content .wp-block-buttons {
		justify-content: center;
	}

	.block-cookbook .block-cookbook__inner,
	.editor-styles-wrapper .block-cookbook .block-cookbook__inner {
		display: grid;
	}

}

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

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

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

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

	.block-cookbook__image figure,
	.block-cookbook__image img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	/*.block-cookbook__image > figure:not(.is-selected) > .components-resizable-box__container {
		height: 100% !important;
	}*/

	.block-cookbook__content {
		/*padding: var(--wp--custom--layout--block-gap-large);*/
	}


}

.block-area-sidebar .block-cookbook .block-cookbook__inner {
	display: block;
}

.block-area-sidebar .block-cookbook.has-background,
.block-area-sidebar .editor-styles-wrapper .has-background[data-type="cwp/cookbook"] {
	padding: 0;
}

.block-area-sidebar .block-cookbook .block-cookbook__content {
	padding: 16px;
}

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