.footer-invitation {
	padding: calc(var(--wp--custom--wave--height) + var(--wp--preset--spacing--section)) var(--wp--preset--spacing--gutter);
	background: linear-gradient(rgb(14 57 100 / 48%), rgb(14 57 100 / 48%)), url('../images/pristav.webp') center / cover no-repeat, var(--wp--preset--color--navy);
	mask: linear-gradient(#000 0 0), url('../images/wave.svg') top / 100% var(--wp--custom--wave--height) no-repeat;
	mask-composite: exclude;

	& + .wp-block-group.is-style-footer { margin-top: 0; }
}

.wp-block-group.footer-invitation-content {
	h2 { text-wrap: balance; }
	.wp-block-buttons { flex-shrink: 0; }

	@media (width < 1020px) {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--wp--preset--spacing--heading);
	}
}

.is-style-footer {
	.footer-layout {
		display: flex;
		flex-wrap: wrap;
		margin-left: auto;
		margin-right: auto;
		gap: var(--wp--preset--spacing--columns);
		align-items: flex-start;

		> * { min-width: 0; }
		> :nth-child(1) { flex: 1 1 260px; }
		> :nth-child(2) { flex: 1 1 220px; }
		> :nth-child(3) { flex: 1 1 180px; }
		> :nth-child(4) { flex: 1 1 200px; }
	}

	.footer-contact a { overflow-wrap: anywhere; }
	.wp-block-navigation {
		font-size: inherit;

		a {
			color: inherit;

			&:hover { color: var(--wp--preset--color--azure); }
		}
	}

	.footer-map {
		position: relative;
		height: 160px;
		overflow: hidden;
		border-radius: var(--wp--custom--radius--card);
		background: var(--wp--preset--color--canvas);

		iframe {
			display: block;
			width: 100%;
			height: 100%;
			border: 0;
		}

		> a {
			position: absolute;
			bottom: 10px;
			left: 10px;
			max-width: calc(100% - 40px);
			border-radius: 999px;
			padding: 5px 10px;
			background: var(--wp--preset--color--white);
			color: var(--wp--preset--color--navy);
			font-size: var(--wp--preset--font-size--caption);
			font-weight: bold;
			line-height: 1.6;
			text-decoration: none;
		}
	}
}
