/* federal-karacsonyi-popup */
.ft-xmas-popup {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.28s ease, visibility 0.28s ease;
}

.ft-xmas-popup.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.ft-xmas-popup.is-closing {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.ft-xmas-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.62);
	cursor: pointer;
}

.ft-xmas-popup__dialog {
	position: relative;
	z-index: 1;
	max-width: min(900px, calc(100vw - 32px));
	max-height: calc(100vh - 48px);
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.ft-xmas-popup__link {
	display: block;
	line-height: 0;
	text-decoration: none;
	color: inherit;
	outline: none;
}

.ft-xmas-popup__link:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 3px;
}

.ft-xmas-popup__img {
	display: block;
	width: 100%;
	height: auto;
	max-height: calc(100vh - 48px);
	object-fit: contain;
	vertical-align: middle;
}

.ft-xmas-popup__close {
	position: absolute;
	top: -12px;
	right: -12px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: #ffffff;
	color: #111111;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: transform 0.15s ease, background-color 0.15s ease;
}

.ft-xmas-popup__close:hover,
.ft-xmas-popup__close:focus-visible {
	background: #f3f3f3;
	transform: scale(1.06);
}

.ft-xmas-popup__close:focus-visible {
	outline: 2px solid #eb268f;
	outline-offset: 2px;
}

.ft-xmas-popup__close svg {
	display: block;
	width: 18px;
	height: 18px;
}

body.ft-xmas-popup-open {
	overflow: hidden;
}

@media (max-width: 767px) {
	.ft-xmas-popup {
		padding: 20px 12px;
	}

	.ft-xmas-popup__dialog {
		max-width: min(420px, calc(100vw - 24px));
		max-height: calc(100vh - 40px);
	}

	.ft-xmas-popup__img {
		max-height: calc(100vh - 40px);
	}

	.ft-xmas-popup__close {
		top: -10px;
		right: -6px;
		width: 44px;
		height: 44px;
	}
}
