.pear-popup-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);
	z-index: 999999;
	align-items: center;
	justify-content: center;
}

.pear-popup-container {
	position: relative;
	max-width: 90%;
	max-height: 90%;
	text-align: center;
}

.pear-popup-image {
	max-width: 100%;
	max-height: 80vh;
	height: auto;
	display: block;
	margin: 0 auto;
}

.pear-popup-desktop {
	max-width: 100%;
	max-height: 80vh;
	height: auto;
	display: block;
	margin: 0 auto;
}

.pear-popup-mobile {
	max-width: 100%;
	max-height: 80vh;
	height: auto;
	display: none;
	margin: 0 auto;
}

/* --- Slides ------------------------------------------------------------ */

.pear-popup-stage {
	position: relative;
}

.pear-popup-slide {
	display: none;
}

.pear-popup-slide.is-active {
	display: block;
	animation: pear-popup-fade 0.35s ease;
}

@keyframes pear-popup-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.pear-popup-slide.is-active {
		animation: none;
	}
}

/* --- Navigation arrows -------------------------------------------------- */

.pear-popup-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, 0.45);
	border: none;
	color: #fff;
	font-size: 32px;
	line-height: 1;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	cursor: pointer;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
	z-index: 2;
}

.pear-popup-nav:hover {
	background: rgba(0, 0, 0, 0.75);
}

.pear-popup-nav:disabled {
	opacity: 0.3;
	cursor: default;
}

.pear-popup-prev {
	left: -60px;
}

.pear-popup-next {
	right: -60px;
}

/* --- Dot indicators ----------------------------------------------------- */

.pear-popup-dots {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 14px;
}

.pear-popup-dot {
	width: 11px;
	height: 11px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.8);
	background: transparent;
	cursor: pointer;
	transition: background 0.2s ease;
}

.pear-popup-dot.is-active,
.pear-popup-dot:hover {
	background: #fff;
}

/* --- Close button ------------------------------------------------------- */

.pear-popup-close {
	position: absolute;
	top: -40px;
	right: 0;
	background: none;
	border: none;
	color: #fff;
	font-size: 36px;
	cursor: pointer;
	padding: 0;
	width: 40px;
	height: 40px;
	line-height: 1;
	z-index: 3;
}

.pear-popup-close:hover {
	color: #ccc;
}

.pear-popup-disable {
	display: block;
	margin-top: 15px;
	color: #fff;
	font-size: 14px;
	cursor: pointer;
}

.pear-popup-disable input {
	margin-right: 5px;
}

/* --- Mobile ------------------------------------------------------------- */

@media (max-width: 768px) {
	.pear-popup-desktop {
		display: none !important;
	}

	.pear-popup-mobile {
		display: block !important;
	}

	.pear-popup-close {
		top: -35px;
		font-size: 30px;
	}

	/* Not enough room beside the image, so overlay the arrows on it */
	.pear-popup-nav {
		width: 38px;
		height: 38px;
		font-size: 26px;
	}

	.pear-popup-prev {
		left: 6px;
	}

	.pear-popup-next {
		right: 6px;
	}
}

/* Narrow desktop windows: pull the arrows inside as well */
@media (min-width: 769px) and (max-width: 1100px) {
	.pear-popup-prev {
		left: 8px;
	}

	.pear-popup-next {
		right: 8px;
	}
}
