.block-flag-header {
	background: var(--wp--preset--color--nonary);
	min-height: 477px;
	display: grid;
	padding-inline: 16px;
}

.has-background.alignfull + .block-flag-header.alignfull,
.block-flag-header.alignfull + .alignfull.has-background {
	margin-top: calc( -1 * var(--wp--custom--layout--block-gap-large));
}

.block-flag-header > * {
	grid-area: 1 / 1 / 2 / 2;
}

.block-flag-header__image,
.block-flag-header.alignfull .block-flag-header__image {
	width: 100%;
	height: 413px;
	object-fit: cover;
	position: relative;
	z-index: 1;
	margin-inline: -16px;
	width: calc( 100% + 32px );
	max-width: calc( 100% + 32px );
}

.editor-styles-wrapper .block-flag-header__image {
	max-width: calc( 100% + 32px ) !important;
	height: 413px !important;
}

.block-flag-header__content {
	background: var(--wp--preset--color--background);
	position: relative;
	z-index: 2;
	text-align: center;
	max-width: 768px;
	width: fit-content;
	padding: 0 96px 16px 96px;
	margin: 100px auto 0;
}
@media only screen and (max-width: 599px) {
	.block-flag-header__content {
		padding: 0 32px 16px 32px;
	}
}

.block-flag-header__content > * {
	max-width: 576px;
	margin-inline: auto;
}

.block-flag-header .is-flag {
	background: var(--wp--preset--color--foreground);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--wp--custom--typography--interface--font-family);
	font-size: var(--wp--preset--font-size--tiny);
	font-weight: 700;
	letter-spacing: var(--wp--custom--typography--interface--letter-spacing);
	line-height: var(--wp--custom--typography--interface--line-height);
	text-transform: uppercase;
	text-align: center;
	z-index: 9;
	width: 134px;
	height: 100px;
	position: relative;
	margin: 0 auto 16px;
}

.block-flag-header .is-flag::after {
	content: '';
	display: block;
	width: 0px;
	height: 0px;
	border-style: solid;
	border-width: 0 67px 27px 67px;
	border-color: transparent transparent var(--wp--preset--color--foreground) transparent;
	transform: rotate(180deg);
	position: absolute;
	bottom: -27px;
	left: 0;
}
