/* Popup Overlay */
.angie-popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.75);
	z-index: 999999; /* Ensure it's above everything */
	display: flex;
	justify-content: center;
	align-items: center;
	opacity: 0;
	transition: opacity 0.3s ease-in-out;
}

/* Adjust for Admin Bar if logged in */
body.admin-bar .angie-popup-overlay {
	top: var(--wp-admin--admin-bar--height, 32px);
	height: calc(100% - var(--wp-admin--admin-bar--height, 32px));
}

@media screen and (max-width: 782px) {
	body.admin-bar .angie-popup-overlay {
		top: 46px;
		height: calc(100% - 46px);
	}
}

.angie-popup-overlay.show {
	opacity: 1;
}

/* Popup Container */
.angie-popup-container {
	background-color: transparent;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	max-width: 800px;
	width: 90%;
	position: relative;
	transform: translateY(-20px);
	transition: transform 0.3s ease-in-out;
}

.angie-popup-overlay.show .angie-popup-container {
	transform: translateY(0);
}

/* Close Button */
.angie-popup-close {
	position: absolute;
	top: -15px;
	right: -15px;
	background: rgba(0, 0, 0, 0.8);
	color: #fff;
	border: 2px solid #fff;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s, transform 0.2s;
}

.angie-popup-close:hover {
	background: #000;
	transform: scale(1.1);
}

/* Content Area */
.angie-popup-content {
	display: flex;
	justify-content: center;
	align-items: center;
}

/* Banner Image - Shown Fully */
.angie-popup-image {
	width: 100%;
	height: auto;
	max-height: 85vh; /* Keep within viewport */
	object-fit: contain; /* Ensures the whole image is visible */
	display: block;
	border-radius: 12px;
}
