/**
 * GPR-Press Gallery Lightbox Styles
 */

/* Overlay */
.gprp-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.gprp-lightbox--open {
	visibility: visible;
	opacity: 1;
}

/* Backdrop */
.gprp-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.92);
}

/* Image container */
.gprp-lightbox__content {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 90vw;
	max-height: 90vh;
	z-index: 1;
}

.gprp-lightbox__img {
	max-width: 90vw;
	max-height: 85vh;
	object-fit: contain;
	opacity: 0;
	transition: opacity 0.25s ease;
	-webkit-user-select: none;
	user-select: none;
}

.gprp-lightbox__img--visible {
	opacity: 1;
}

/* Close button */
.gprp-lightbox__close {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 2;
	width: 44px;
	height: 44px;
	border: none;
	background: none;
	color: #fff;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
	opacity: 0.7;
	transition: opacity 0.2s ease;
}

.gprp-lightbox__close:hover {
	opacity: 1;
}

/* Prev / Next buttons */
.gprp-lightbox__prev,
.gprp-lightbox__next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 48px;
	height: 48px;
	border: none;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	font-size: 28px;
	line-height: 1;
	border-radius: 50%;
	cursor: pointer;
	opacity: 0.7;
	transition: opacity 0.2s ease, background 0.2s ease;
}

.gprp-lightbox__prev:hover,
.gprp-lightbox__next:hover {
	opacity: 1;
	background: rgba(255, 255, 255, 0.2);
}

.gprp-lightbox__prev {
	left: 16px;
}

.gprp-lightbox__next {
	right: 16px;
}

/* Counter */
.gprp-lightbox__counter {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	color: rgba(255, 255, 255, 0.7);
	font-size: 14px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Mobile adjustments */
@media (max-width: 480px) {
	.gprp-lightbox__prev,
	.gprp-lightbox__next {
		width: 36px;
		height: 36px;
		font-size: 22px;
	}

	.gprp-lightbox__prev {
		left: 8px;
	}

	.gprp-lightbox__next {
		right: 8px;
	}

	.gprp-lightbox__close {
		top: 8px;
		right: 8px;
	}
}
