.f4shn-home-popup {
	position: fixed;
	inset: 0;
	z-index: 100050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 28px 20px;
	box-sizing: border-box;
}

.f4shn-home-popup[hidden] {
	display: none !important;
}

.f4shn-home-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(12, 12, 12, 0.68);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.f4shn-home-popup__dialog {
	position: relative;
	z-index: 1;
	width: max-content;
	max-width: min(920px, calc(100vw - 40px));
	line-height: 0;
	animation: f4shn-popup-in 0.22s ease;
}

.f4shn-home-popup__close {
	--f4shn-popup-close: 36px;
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	box-sizing: border-box;
	width: var(--f4shn-popup-close) !important;
	height: var(--f4shn-popup-close) !important;
	min-width: var(--f4shn-popup-close) !important;
	min-height: var(--f4shn-popup-close) !important;
	max-width: var(--f4shn-popup-close) !important;
	max-height: var(--f4shn-popup-close) !important;
	aspect-ratio: 1;
	padding: 0 !important;
	margin: 0;
	border: 0 !important;
	border-radius: 50% !important;
	background: #fff !important;
	color: #111;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
	cursor: pointer;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	line-height: 0 !important;
	appearance: none;
	-webkit-appearance: none;
}

.f4shn-home-popup__close svg {
	width: 13px;
	height: 13px;
	display: block;
	flex: 0 0 auto;
}

.f4shn-home-popup__media {
	display: block;
	overflow: hidden;
	border-radius: 8px;
	background: transparent;
	line-height: 0;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

.f4shn-home-popup__img {
	width: auto;
	height: auto;
	max-width: min(920px, calc(100vw - 40px));
	max-height: calc(100vh - 56px);
	object-fit: contain;
	display: none;
	vertical-align: top;
}

.f4shn-home-popup__img--desktop {
	display: block;
}

.f4shn-home-popup__img--mobile {
	display: none;
}

html.f4shn-home-popup-open,
html.f4shn-home-popup-open body {
	overflow: hidden;
}

@keyframes f4shn-popup-in {
	from {
		opacity: 0;
		transform: translateY(10px) scale(0.985);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 767px) {
	.f4shn-home-popup {
		padding: 18px 12px;
	}

	.f4shn-home-popup__dialog,
	.f4shn-home-popup__img {
		max-width: calc(100vw - 24px);
	}

	.f4shn-home-popup__img {
		max-height: calc(100vh - 36px);
	}

	.f4shn-home-popup__close {
		--f4shn-popup-close: 32px;
		top: 8px;
		right: 8px;
	}

	.f4shn-home-popup__img--desktop {
		display: none;
	}

	.f4shn-home-popup__img--mobile {
		display: block;
	}
}
