/* SlimGlass action popup
-------------------------------------------------------------- */
html.so-action-popup-open,
html.so-action-popup-open body {
	overflow: hidden;
}

.so-action-popup[hidden] {
	display: none;
}

.so-action-popup {
	position: fixed;
	inset: 0;
	z-index: 999999;
	box-sizing: border-box;
	display: grid;
	place-items: center;
	padding: clamp(18px, 4vw, 48px);
	background: rgba(8, 24, 39, 0.76);
	-webkit-backdrop-filter: blur(5px);
	backdrop-filter: blur(5px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 220ms ease, visibility 220ms ease;
}

.so-action-popup.is-visible {
	opacity: 1;
	visibility: visible;
}

.so-action-popup__dialog {
	position: relative;
	width: min(760px, calc(100vw - 36px));
	max-height: calc(100vh - 36px);
	border-radius: clamp(18px, 2.5vw, 30px);
	background: #e1f0fa;
	box-shadow: 0 30px 80px rgba(8, 24, 39, 0.34);
	transform: translateY(18px) scale(0.97);
	overflow: visible;
	transition: transform 240ms ease;
}

.so-action-popup.is-visible .so-action-popup__dialog {
	transform: translateY(0) scale(1);
}

.so-action-popup__link {
	display: block;
	border-radius: inherit;
	overflow: hidden;
	line-height: 0;
	outline-offset: 5px;
}

.so-action-popup__image {
	display: block;
	width: 100%;
	height: auto;
	max-height: calc(100vh - 36px);
	object-fit: contain;
}

.so-action-popup__close {
	position: absolute;
	top: -16px;
	right: -16px;
	z-index: 2;
	width: 48px;
	height: 48px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 8px 25px rgba(8, 24, 39, 0.24);
	cursor: pointer;
	transition: transform 180ms ease, background-color 180ms ease;
}

.so-action-popup__close:hover {
	background: #e1f0fa;
	transform: scale(1.06);
}

.so-action-popup__close:focus-visible {
	outline: 3px solid #2a8fce;
	outline-offset: 3px;
}

.so-action-popup__close::before,
.so-action-popup__close::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 21px;
	height: 2px;
	border-radius: 2px;
	background: #102941;
}

.so-action-popup__close::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.so-action-popup__close::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.so-action-popup__sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

@media screen and (max-width: 600px) {
	.so-action-popup {
		padding: 16px;
	}

	.so-action-popup__dialog {
		width: min(100%, 520px);
		max-height: calc(100vh - 32px);
		border-radius: 18px;
	}

	.so-action-popup__image {
		max-height: calc(100vh - 32px);
	}

	.so-action-popup__close {
		top: -11px;
		right: -8px;
		width: 44px;
		height: 44px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.so-action-popup,
	.so-action-popup__dialog,
	.so-action-popup__close {
		transition: none;
	}
}
