/* ==========================================
	PSS Gallery Lightbox
========================================== */

.pss-cs-gallery__carousel .pss-cs-gallery__img {
	cursor: zoom-in;
}

.pss-lightbox {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.92);
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.pss-lightbox.is-open {
	display: flex;
	opacity: 1;
}

body.pss-lightbox-open {
	overflow: hidden;
}

.pss-lightbox__stage {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.pss-lightbox__img {
	max-width: 90vw;
	max-height: 90vh;
	-o-object-fit: contain;
	object-fit: contain;
	cursor: zoom-in;
	transition: transform 0.15s ease-out;
	touch-action: none;
	-webkit-user-select: none;
	user-select: none;
	-webkit-user-drag: none;
}

.pss-lightbox.is-zoomed .pss-lightbox__img {
	cursor: grab;
	transition: none;
}

.pss-lightbox__close,
.pss-lightbox__prev,
.pss-lightbox__next {
	position: absolute;
	background: rgba(255, 255, 255, 0.1);
	border: none;
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: background 0.2s ease;
	padding: 0;
	z-index: 2;
}

.pss-lightbox__close:hover,
.pss-lightbox__prev:hover,
.pss-lightbox__next:hover {
	background: rgba(255, 255, 255, 0.25);
}

.pss-lightbox__close {
	top: 20px;
	right: 20px;
	width: 44px;
	height: 44px;
	font-size: 28px;
	line-height: 1;
}

.pss-lightbox__prev,
.pss-lightbox__next {
	top: 50%;
	transform: translateY(-50%);
	width: 50px;
	height: 50px;
	font-size: 20px;
}

.pss-lightbox__prev {
	left: 20px;
}

.pss-lightbox__next {
	right: 20px;
}

.pss-lightbox:not(.has-multiple) .pss-lightbox__prev,
.pss-lightbox:not(.has-multiple) .pss-lightbox__next {
	display: none;
}

.pss-lightbox__hint {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	color: rgba(255, 255, 255, 0.65);
	font-size: 13px;
	letter-spacing: 0.02em;
	pointer-events: none;
}

@media (max-width: 600px) {
	.pss-lightbox__prev,
	.pss-lightbox__next {
		width: 40px;
		height: 40px;
		font-size: 16px;
	}

	.pss-lightbox__hint {
		display: none;
	}
}
