.tp-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.65);
	padding: 20px;
}

.tp-overlay.tp-open {
	display: flex;
}

.tp-popup {
	position: relative;
	width: min(560px, 92vw);
	aspect-ratio: 4 / 5;
	max-height: 86vh;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
	overflow: hidden;
	animation: tp-pop-in 0.35s ease-out;
}

.tp-overlay[data-fit="contain"] .tp-popup {
	background-size: contain;
	background-color: #000;
}

.tp-layout-fullscreen .tp-popup {
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	aspect-ratio: auto;
	border-radius: 0;
}

@keyframes tp-pop-in {
	from {
		opacity: 0;
		transform: scale(0.92) translateY(14px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

/* Dark gradient so text stays readable over any background image */
.tp-popup::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0) 70%);
}

.tp-close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
}

.tp-close:hover,
.tp-close:focus-visible {
	background: rgba(0, 0, 0, 0.8);
}

.tp-content {
	position: absolute;
	inset: auto 0 0 0;
	z-index: 1;
	padding: 28px;
	text-align: center;
}

.tp-heading {
	margin: 0 0 8px;
	color: #fff;
	font-size: clamp(1.5rem, 4vw, 2.1rem);
	font-weight: 700;
	line-height: 1.2;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.tp-subheading {
	margin: 0 0 16px;
	color: rgba(255, 255, 255, 0.9);
	font-size: 1rem;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.tp-cta {
	display: inline-block;
	background: #d4a017;
	color: #fff;
	padding: 14px 40px;
	border-radius: 999px;
	font-size: 1.1rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-decoration: none;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
	transition: background 0.2s ease, transform 0.2s ease;
}

.tp-cta:hover,
.tp-cta:focus-visible {
	background: #e6b125;
	color: #fff;
	transform: translateY(-2px);
}

@media (max-width: 480px) {
	.tp-layout-card .tp-popup {
		width: 94vw;
		max-height: 80vh;
	}

	.tp-content {
		padding: 20px;
	}

	.tp-cta {
		width: 100%;
	}
}
