.plas-home-popup {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
}

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

.plas-home-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.65);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.plas-home-popup__dialog {
	position: relative;
	z-index: 1;
	max-width: 90vw;
	max-height: 85vh;
	background: #fff;
	border-radius: 4px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
	overflow: hidden;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.plas-home-popup.is-visible .plas-home-popup__dialog {
	opacity: 1;
	transform: translateY(0);
}

.plas-home-popup.is-visible {
	opacity: 1;
	pointer-events: auto;
}

.plas-home-popup.is-visible .plas-home-popup__overlay {
	opacity: 1;
}

.plas-home-popup__close {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}

.plas-home-popup__close:hover,
.plas-home-popup__close:focus {
	background: rgba(0, 0, 0, 0.9);
	outline: none;
}

.plas-home-popup__link {
	display: block;
	line-height: 0;
}

.plas-home-popup__image {
	display: block;
	max-width: 90vw;
	max-height: 85vh;
	width: auto;
	height: auto;
}

body.plas-home-popup-open {
	overflow: hidden;
}

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

	.plas-home-popup__dialog,
	.plas-home-popup__image {
		max-width: 95vw;
		max-height: 80vh;
	}
}
