/* Illustration cutout widget (inc/elementor/widgets/class-illustration-cutout.php) */
.gg-cutout-wrap {
	display: flex;
	justify-content: center;
}
.gg-cutout {
	position: relative;
	width: 100%;
	aspect-ratio: var(--gg-ratio, 1);
}
.gg-cutout__shape {
	position: absolute;
	inset: 0 calc(-1 * var(--gg-pad-x, 0%));
	overflow: hidden;
	-webkit-mask: var(--gg-mask) center / contain no-repeat;
	mask: var(--gg-mask) center / contain no-repeat;
}
.gg-cutout__layer {
	position: absolute;
	left: 50%;
	top: var(--gg-layer-y, 50%);
	width: 20%;
	line-height: 0;
	color: var(--gg-layer-color, var(--gg-layer-default, currentColor));
	transform: translate(-50%, var(--gg-layer-ty, -50%)) rotate(var(--gg-layer-rotate, 0deg)) scaleX(var(--gg-layer-flip, 1));
	pointer-events: none;
}
/* Illustration "None": the background fills a plain rectangle. */
.gg-cutout--none {
	aspect-ratio: auto;
	height: 400px;
}
.gg-cutout--none .gg-cutout__shape {
	inset: 0;
	-webkit-mask: none;
	mask: none;
}
/* Stacking: background illustration, then the cutout, then the front one. */
.gg-cutout__back {
	z-index: 0;
	left: 50%;
	--gg-layer-y: 60%;
	width: 80%;
}
.gg-cutout__shape {
	z-index: 1;
}
.gg-cutout__front {
	z-index: 2;
	left: 70%;
	--gg-layer-y: 30%;
}
.gg-cutout__layer svg,
.gg-cutout__layer img {
	display: block;
	width: 100%;
	height: auto;
}
.gg-cutout__layer svg {
	overflow: visible;
}

/* Optional subtle animation of the front illustration. */
.gg-anim--sway svg {
	transform-origin: 50.5% 100%;
	animation: gg-anim-sway 4.6s ease-in-out infinite alternate;
}
.gg-anim--rustle svg {
	transform-origin: 50% 100%;
	animation: gg-anim-rustle 3.4s ease-in-out infinite alternate;
}
.gg-anim--flutter svg {
	animation: gg-anim-flap 0.24s ease-in-out infinite alternate, gg-anim-hover 7s ease-in-out infinite;
}
.gg-anim--spin .gg-anim-rotor {
	transform-box: view-box;
	transform-origin: var(--gg-hub, 50% 50%);
	animation: gg-anim-spin 9s linear infinite;
}
@keyframes gg-anim-sway {
	from { rotate: -1.6deg; }
	to { rotate: 1.6deg; }
}
@keyframes gg-anim-rustle {
	from { transform: skewX(-2deg); }
	to { transform: skewX(2deg); }
}
@keyframes gg-anim-flap {
	to { scale: 1 0.45; }
}
@keyframes gg-anim-hover {
	0%, 100% { translate: 0 0; }
	25% { translate: 30% -40%; }
	50% { translate: 55% 5%; }
	75% { translate: 20% 35%; }
}
@keyframes gg-anim-spin {
	to { rotate: 360deg; }
}
@media (prefers-reduced-motion: reduce) {
	.gg-anim svg,
	.gg-anim .gg-anim-rotor {
		animation: none;
	}
}
