/**
 * Decorative Media — positioning layer for section / row / column.
 */

.has-uncode-child-deco {
	position: relative;
}

.has-uncode-child-deco-clip {
	overflow: clip;
}

.uncode-child-deco {
	position: absolute;
	display: block;
	width: var(--deco-size, 200px);
	height: auto;
	max-width: none;
	margin: 0;
	padding: 0;
	pointer-events: none;
	line-height: 0;
	z-index: var(--deco-z, 0);
	transform: translate(var(--deco-tx, 0%), var(--deco-ty, 0%));
	will-change: transform;
}

.uncode-child-deco.is-fixed {
	position: fixed;
}

/* Anchors — X */
.uncode-child-deco.anchor-x-left {
	left: 0;
	right: auto;
}

.uncode-child-deco.anchor-x-center {
	left: 50%;
	right: auto;
}

.uncode-child-deco.anchor-x-right {
	left: auto;
	right: 0;
}

/* Anchors — Y */
.uncode-child-deco.anchor-y-top {
	top: 0;
	bottom: auto;
}

.uncode-child-deco.anchor-y-center {
	top: 50%;
	bottom: auto;
}

.uncode-child-deco.anchor-y-bottom {
	top: auto;
	bottom: 0;
}

/*
 * Center anchors bake a -50% baseline into the same translate vars
 * (set as inline --deco-tx / --deco-ty from PHP).
 */

.uncode-child-deco__parallax {
	display: block;
	width: 100%;
	height: auto;
	line-height: 0;
	/* Rellax writes transform here — keep positioning on .uncode-child-deco. */
}

.uncode-child-deco img,
.uncode-child-deco > svg,
.uncode-child-deco__parallax > svg {
	display: block;
	width: 100%;
	height: auto;
	max-width: none;
}

.uncode-child-deco.has-color > svg,
.uncode-child-deco.has-color .uncode-child-deco__parallax > svg {
	color: inherit;
}

/* Visibility (Uncode-style breakpoints) */
@media (min-width: 960px) {
	.uncode-child-deco.desktop-hidden {
		display: none !important;
	}
}

@media (min-width: 570px) and (max-width: 959px) {
	.uncode-child-deco.tablet-hidden {
		display: none !important;
	}
}

@media (max-width: 569px) {
	.uncode-child-deco.mobile-hidden {
		display: none !important;
	}
}
