/* Lightbox overlay */
.lightbox {
	position: fixed; inset: 0;
	background: rgba(0, 0, 0, 0.88);
	display: none;
	z-index: 9999;
	align-items: center; justify-content: center;
	padding: 5vh 6vw;
	cursor: zoom-out;
}
.lightbox.is-open { display: flex; }

.lightbox__stage {
	margin: 0;
	max-width: 100%; max-height: 100%;
	display: flex; flex-direction: column; align-items: center;
	cursor: default;
}
.lightbox__img {
	max-width: 100%;
	max-height: 85vh;
	display: block;
	object-fit: contain;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.lightbox__caption {
	color: rgba(255, 255, 255, 0.82);
	font-size: 14px;
	margin-top: 14px;
	text-align: center;
	max-width: 640px;
}
.lightbox__counter {
	position: absolute;
	top: 24px; left: 24px;
	color: rgba(255, 255, 255, 0.7);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.04em;
}

/* Buttons */
.lightbox__btn {
	position: absolute;
	background: rgba(255, 255, 255, 0.08);
	border: 0;
	color: #fff;
	padding: 12px;
	cursor: pointer;
	transition: background 0.15s;
	display: grid; place-items: center;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.18); }
.lightbox__btn--close { top: 20px; right: 20px; }
.lightbox__btn--prev  { left: 20px;  top: 50%; transform: translateY(-50%); }
.lightbox__btn--next  { right: 20px; top: 50%; transform: translateY(-50%); }

@media (max-width: 720px) {
	.lightbox { padding: 4vh 4vw; }
	.lightbox__btn--prev  { left: 10px; }
	.lightbox__btn--next  { right: 10px; }
	.lightbox__btn--close { top: 14px; right: 14px; padding: 10px; }
	.lightbox__counter    { top: 16px; left: 16px; }
}

/* Thumbnail hint cursor on gallery items */
.gallery a.gallery__item { cursor: zoom-in; display: block; }
