.silo-popup {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	z-index: 10001;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.silo-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.72);
}

.silo-popup__dialog {
	position: relative;
	width: min(100%, 42rem);
	max-height: calc(100vh - 4rem);
	overflow: auto;
	background: var(--light);
	color: var(--dark);
	box-shadow: var(--box-shadow);
}

.silo-popup__link,
.silo-popup__picture,
.silo-popup__image {
	display: block;
	width: 100%;
}

.silo-popup__link {
	position: relative;
}

.silo-popup__image {
	height: auto;
}

.silo-popup__cta {
	position: absolute;
	bottom: 2rem;
	left: 50%;
	display: inline-block;
	padding: 1rem 2rem;
	border-radius: 2rem;
	background: var(--red);
	color: var(--light);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1;
	text-align: center;
	white-space: nowrap;
	transform: translateX(-50%);
}

@media screen and (any-pointer: fine) {

	.silo-popup__link:hover {
		text-decoration: none;
	}

	.silo-popup__link:hover .silo-popup__cta {
		background: var(--grey);
	}
}

.silo-popup__hero--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 18rem;
	background: var(--grey-light);
	color: var(--grey);
	font-size: 1rem;
	font-weight: 600;
	text-transform: uppercase;
}

.silo-popup__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	background: var(--light);
	box-shadow: var(--box-shadow);
	z-index: 1;
}

.silo-popup__close:before,
.silo-popup__close:after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 1.5rem;
	height: 3px;
	background: var(--dark);
	transform-origin: center;
}

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

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

.silo-popup__close:hover {
	background: var(--light);
}

body.silo-popup-open {
	overflow: hidden;
}

@media screen and (max-width: 40rem) {

	.silo-popup {
		padding: 1rem;
	}

	.silo-popup__dialog {
		max-height: calc(100vh - 2rem);
	}

	.silo-popup__cta {
		bottom: 2.5rem;
		padding: 0.75rem 1.5rem;
		font-size: 0.875rem;
	}
}
