/*
 * Banderitas: the hanging fiesta bunting printed by
 * inc/class-wowparadise-banderitas.php.
 */

.wpp-banderitas {
	height: 64px;
	background-image: url("../img/banderitas.svg");
	background-repeat: repeat-x;
	background-size: 320px 64px;
	pointer-events: none;
	transform-origin: top center;
}

/* Under the header: overlaps the content edge like bunting strung across a street */
.wpp-banderitas--header {
	position: relative;
	z-index: 10;
	margin-bottom: -40px;
	animation: wpp-sway 6s ease-in-out infinite;
}

/* Room for the header bunting to hang over the top of the page content */
.wpp-main {
	padding-top: 1.5rem;
}

/* Above the footer: sits on the footer's top edge, offset half a swag from the header string */
.wpp-banderitas--footer {
	position: relative;
	z-index: 1;
	margin-top: 2.5rem;
	margin-bottom: -6px;
	background-position: 160px 0;
}

/* Across the top of a dark homepage band (festivals) */
.wpp-banderitas--band {
	margin-top: calc(-1 * var(--wpp-section-space));
	margin-bottom: clamp(16px, 3vw, 32px);
	background-position: 80px 0;
	animation: wpp-sway 7s ease-in-out infinite;
}

@keyframes wpp-sway {
	0%, 100% { transform: rotate(0deg); }
	50% { transform: rotate(0.35deg) translateY(2px); }
}

@media (prefers-reduced-motion: reduce) {
	.wpp-banderitas--header,
	.wpp-banderitas--band {
		animation: none;
	}
}

@media (max-width: 719px) {
	.wpp-banderitas {
		height: 48px;
		background-size: 240px 48px;
	}

	.wpp-banderitas--header {
		margin-bottom: -28px;
	}
}
