/* Popups (replaces Elementor Pro popups). Look matches the original Live Artists popup. */
.tyalgum-popup {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.5);
}

.tyalgum-popup.is-open {
	display: flex;
	animation: tyalgum-popup-fade 0.4s ease both;
}

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

.tyalgum-popup.is-open[hidden] {
	display: flex;
}

.tyalgum-popup__dialog {
	position: relative;
	width: min(635px, 92vw);
	max-height: 90vh;
	overflow-y: auto;
	background: #fff;
	box-shadow: 2px 8px 23px 3px rgba(0, 0, 0, 0.2);
	outline: 0;
}

.tyalgum-popup__close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #333;
	cursor: pointer;
}

.tyalgum-popup__close:hover,
.tyalgum-popup__close:focus {
	background: transparent;
	color: #000;
}

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

@media (max-width: 767px) {
	.tyalgum-popup__dialog {
		width: 100vw;
		max-height: 90vh;
	}
}

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

@media (prefers-reduced-motion: reduce) {
	.tyalgum-popup.is-open {
		animation: none;
	}
}
