/* Group
--------------------------------------------- */

@media screen and (max-width: 600px) {
	.wp-block-group.is-position-sticky {
		position: static;
	}
}

.wp-block-group.is-sticky-page-nav .wp-block-navigation {
	row-gap: var(--wp--preset--spacing--12);
}

.wp-block-group.is-style-poly-mesh-bg {
	overflow: hidden;
	position: relative;
}

.wp-block-group.is-style-poly-mesh-bg > *:not(.wp-block-gtt-poly-mesh) {
	position: relative;
	z-index: 5;
}

.wp-block-group.is-style-poly-mesh-bg > .wp-block-gtt-poly-mesh {
	left: 0;
	position: absolute;
	right: 0;
}

/* Parallax Background */
.wp-block-group[class*="is-style-parallax-"] {
	overflow-y: visible;
	padding-bottom: var(--wp--preset--spacing--64) !important;
	padding-top: var(--wp--preset--spacing--64) !important;
	position: relative;
	z-index: 0;
}

.wp-block-group[class*="is-style-parallax-"]::before,
.wp-block-group[class*="is-style-parallax-"]::after {
	content: "";
	background-repeat: no-repeat;
	inset: 0;
	opacity: 0.5;
	pointer-events: none;
	position: absolute;
	z-index: -1;
}

@media screen and (max-width: 960px) {
	.wp-block-group[class*="is-style-parallax-"]::before,
	.wp-block-group[class*="is-style-parallax-"]::after {
		opacity: 0.25;
	}
}

.wp-block-group.is-style-parallax-tangerine::before {
	background-image: url("/wp-content/client-mu-plugins/gtt-blocks/assets/svg/parallax-bg/parallax-bg-left-tangerine.svg");
	background-position: center left -13px;
	background-size: 106px auto;
}

.wp-block-group.is-style-parallax-tangerine::after {
	background-image: url("/wp-content/client-mu-plugins/gtt-blocks/assets/svg/parallax-bg/parallax-bg-right-tangerine.svg");
	background-position: bottom right -97px;
	background-size: 288px auto;
}

.wp-block-group.is-style-parallax-malibu::before {
	background-image: url("/wp-content/client-mu-plugins/gtt-blocks/assets/svg/parallax-bg/parallax-bg-left-malibu.svg");
	background-position: center left -65px;
	background-size: 120px auto;
}

.wp-block-group.is-style-parallax-malibu::after {
	background-image: url("/wp-content/client-mu-plugins/gtt-blocks/assets/svg/parallax-bg/parallax-bg-right-malibu.svg");
	background-position: bottom -150px right -47px;
	background-size: 224px auto;
}

.wp-block-group.is-style-parallax-shocking::before {
	background-image: url("/wp-content/client-mu-plugins/gtt-blocks/assets/svg/parallax-bg/parallax-bg-left-shocking.svg");
	background-position: center left -60px;
	background-size: 120px auto;
}

.wp-block-group.is-style-parallax-shocking::after {
	background-image: url("/wp-content/client-mu-plugins/gtt-blocks/assets/svg/parallax-bg/parallax-bg-right-shocking.svg");
	background-position: center right -65px;
	background-size: 224px auto;
}

@supports (animation-timeline: scroll()) {
	.wp-block-group.is-style-parallax-tangerine:not(
			.block-editor-block-list__block
		)::before,
	.wp-block-group.is-style-parallax-malibu:not(.block-editor-block-list__block)::before,
	.wp-block-group.is-style-parallax-shocking:not(
			.block-editor-block-list__block
		)::before {
		animation: parallaxSlow ease-out both;
		animation-range: cover;
		animation-timeline: scroll(root);
	}

	.wp-block-group.is-style-parallax-tangerine:not(.block-editor-block-list__block)::after,
	.wp-block-group.is-style-parallax-malibu:not(.block-editor-block-list__block)::after,
	.wp-block-group.is-style-parallax-shocking:not(.block-editor-block-list__block)::after {
		animation: parallaxFast ease-out both;
		animation-range: cover;
		animation-timeline: scroll(root);
	}

	@keyframes parallaxSlow {
		from {
			transform: translateY(-25%);
		}
		to {
			transform: translateY(25%);
		}
	}

	@keyframes parallaxFast {
		from {
			transform: translateY(-35%);
		}
		to {
			transform: translateY(35%);
		}
	}
}
