.boxed-content .grid-container {
	position: relative;
	z-index: 0;
	border-radius: var(--wp--custom--border-radius--30);
}
.boxed-content__color {
	background: var(--boxed-content-bg-color, transparent);
	z-index: -1;
}
.boxed-content .grid-container:not(.has-color-bg) .boxed-content__color {
	display: none;
}
.boxed-content__color,
.boxed-content__bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border-radius: var(--wp--custom--border-radius--30);
}
.boxed-content__bg {
	background: var(--boxed-content-bg-image);
	z-index: 1;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}
.boxed-content .grid-container:not(.has-image-bg) .boxed-content__bg {
	display: none;
}
.boxed-content__img {
	position: relative;
	z-index: 2;
}
.boxed-content__img.has-overflow {
	overflow: visible;
	margin: clamp(-4.6875rem, -0.2068rem - 3.6765vw, -1.5625rem) 0;
	z-index: 0;
	max-height: 600px;
}
.boxed-content__img.has-overflow img {
	max-height: 510px;
	overflow: visible;
	position: absolute;
	bottom: 57px;
	right: 0;
}
.boxed-content__img img {
	padding-top: 1rem;
}
.boxed-content__img.is-square,
.boxed-content__img.is-circle {
	aspect-ratio: 1/1;
}
.boxed-content__img.is-portrait {
	aspect-ratio: 2/3;
}
.boxed-content__img.is-landscape {
	aspect-ratio: 16/9;
}
.boxed-content__img.is-circle img {
	border-radius: var(--wp--custom--border-radius--full);
}
.boxed-content .is-circle {
	border-radius: 100%;
}
.boxed-content .grid-x {
	position: relative;
	z-index: 2;
}
.boxed-content .has-light-text h2,
.boxed-content .has-light-text p {
	color: var(--wp--preset--color--white);
}
.boxed-content .has-dark-text h2,
.boxed-content .has-dark-text p {
	color: var(--wp--preset--color--black);
}
h2.has-large-title {
	font-size: var(--wp--preset--font-size--large-header);
	line-height: var(--wp--custom--line-height--large-header);
}
@media (max-width: 590px) {
	.boxed-content .grid-y {
		text-align: center;
	}
}
@media (max-width: 1020px) {
	.boxed-content .grid-container .boxed-content__bg {
		background-image: var(--boxed-content-mobile-image);
	}
}
