.ibe-flags {
	--ibe-flag-width: 180px;
	width: 100%;
}

.ibe-flags__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: clamp(18px, 3vw, 32px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.ibe-flags__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: min(var(--ibe-flag-width), 100%);
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

.ibe-flags__image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	margin: 0;
	border: 1px solid rgba(15, 23, 42, .12);
	border-radius: clamp(16px, 2vw, 24px);
	object-fit: cover;
	box-shadow: 0 16px 36px rgba(15, 23, 42, .22);
}

.ibe-flags__name {
	position: relative;
	z-index: 1;
	max-width: calc(100% - 20px);
	margin: -16px 10px 0;
	padding: 9px 17px;
	border: 1px solid rgba(199, 65, 0, .18);
	border-radius: 999px;
	background: rgba(255, 255, 255, .97);
	box-shadow: 0 8px 20px rgba(15, 23, 42, .14);
	color: #172033;
	font-size: clamp(.86rem, 1.4vw, 1rem);
	font-weight: 750;
	line-height: 1.2;
	text-align: center;
	overflow-wrap: anywhere;
}

@media (max-width: 520px) {
	.ibe-flags__list {
		gap: 16px;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.ibe-flags__image {
		transition: transform .2s ease, box-shadow .2s ease;
	}

	.ibe-flags__name {
		transition: transform .2s ease, box-shadow .2s ease;
	}

	.ibe-flags__item:hover .ibe-flags__image {
		transform: translateY(-5px) scale(1.025);
		box-shadow: 0 22px 44px rgba(15, 23, 42, .28);
	}

	.ibe-flags__item:hover .ibe-flags__name {
		transform: translateY(-3px);
		box-shadow: 0 11px 25px rgba(15, 23, 42, .18);
	}
}
