.wp-block-coblocks-service {
	margin: 0 0 var(--coblocks-spacing--3, map-get($spacing, 3));
	max-width: 100%;

	@include break-small() {
		margin: 0;
	}

	&:last-child {
		margin-bottom: 0;
	}

	h2,
	h3,
	h4,
	h5,
	h6 {
		margin-bottom: 0.5em;
		margin-top: 0;
	}

	p {

		&:first-of-type {
			margin-top: 0;
		}

		&:last-of-type {
			margin-bottom: 0;
		}
	}

	.wp-block-buttons {
		margin: 0 0 1.5em;

		.wp-block-button {
			margin-bottom: 0;
			margin-top: 1.5em;
		}
	}

}

.wp-block-coblocks-service__figure {
	display: flex;
	margin: 0 0 1.5em;
	padding: calc(3 / 4 * 100%) 0 0;
	position: relative;
	width: 100%;

	.is-style-sixbynine & {
		padding-top: calc(9 / 16 * 100%);
	}

	.is-style-circle & {
		border-radius: 100%;
		padding-top: 100%;

		img {
			border-radius: 100%;
		}
	}

	.is-style-square & {
		padding-top: 100%;
	}

	img {
		height: 100%;
		object-fit: cover;
		position: absolute;
		top: 0;
		vertical-align: middle;
		width: 100%;
	}
}
