/* Simple Lightbox Styles */
.lightbox {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 999999;
	display: none;
	opacity: 0;
	transform: scale(0.95);
	transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
				transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	overflow: hidden; /* Prevent scrolling within lightbox */
}

/* Prevent layout shift when scrollbar disappears */
body.lightbox-open {
	/* padding-right: 8px; */
}

.lightbox--active {
	opacity: 1;
	transform: scale(1);
}

.lightbox__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0);
	cursor: pointer;
	transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox--active .lightbox__overlay {
	background: rgba(0, 0, 0, 0.9);
}

.lightbox__content {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s, 
				transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.lightbox--active .lightbox__content {
	opacity: 1;
	transform: translateY(0);
}

.lightbox__container {
	position: relative;
	max-width: 90%;
	max-height: 80%;
	margin: 0 auto;
}

.lightbox__close {
	position: absolute;
	top: 20px;
	right: 20px;
	background: var(--wp--preset--color--accent-1);
	color: white;
	border: none;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	cursor: pointer;
	z-index: 10;
	transition: background 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}