.pw-lightbox-image {
	cursor: zoom-in;
}

html.pw-lightbox-open,
html.pw-lightbox-open body {
	overflow: hidden;
}

.pw-lightbox[hidden] {
	display: none !important;
}

.pw-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	padding: 56px 72px;
	background: rgba(0, 0, 0, 0.92);
	color: #fff;
}

.pw-lightbox__stage {
	display: flex;
	max-width: 100%;
	max-height: 100%;
	align-items: center;
	flex-direction: column;
	justify-content: center;
}

.pw-lightbox__image {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: calc(100vh - 150px);
	object-fit: contain;
	box-shadow: 0 12px 42px rgba(0, 0, 0, 0.4);
}

.pw-lightbox__caption {
	max-width: 900px;
	margin-top: 14px;
	font-size: 15px;
	line-height: 1.5;
	text-align: center;
}

.pw-lightbox button {
	position: absolute;
	margin: 0;
	border: 0;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	cursor: pointer;
	font-family: Arial, sans-serif;
	line-height: 1;
	transition: background-color 0.2s ease;
}

.pw-lightbox button:hover,
.pw-lightbox button:focus-visible {
	background: rgba(255, 255, 255, 0.28);
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.pw-lightbox__close {
	top: 14px;
	right: 18px;
	width: 44px;
	height: 44px;
	font-size: 36px;
}

.pw-lightbox__nav {
	top: 50%;
	width: 48px;
	height: 64px;
	transform: translateY(-50%);
	font-size: 48px;
}

.pw-lightbox__prev { left: 14px; }
.pw-lightbox__next { right: 14px; }

.pw-lightbox__counter {
	position: absolute;
	top: 23px;
	left: 50%;
	font: 14px/1.4 Arial, sans-serif;
	transform: translateX(-50%);
}

@media (max-width: 600px) {
	.pw-lightbox { padding: 54px 12px 70px; }
	.pw-lightbox__image { max-height: calc(100vh - 160px); }
	.pw-lightbox__nav { top: auto; bottom: 10px; width: 54px; height: 48px; transform: none; }
	.pw-lightbox__prev { left: calc(50% - 62px); }
	.pw-lightbox__next { right: calc(50% - 62px); }
}

@media (prefers-reduced-motion: reduce) {
	.pw-lightbox button { transition: none; }
}
