/* Project gallery viewer (pkc-lightbox.js). */
.pkc-gallery--project .pkc-gallery__item a { display: block; cursor: zoom-in; }
.pkc-gallery--project .pkc-gallery__item a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
html.pkc-lightbox-open, html.pkc-lightbox-open body { overflow: hidden; }

.pkc-lightbox {
	position: fixed; inset: 0; z-index: 100000;
	display: flex; align-items: center; justify-content: center;
	background: rgba(14, 13, 12, 0.94);
	padding: 56px 72px;
}
.pkc-lightbox[hidden] { display: none; }
.pkc-lightbox__figure {
	margin: 0; height: 100%; width: 100%;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
}
.pkc-lightbox__img {
	max-width: 100%; max-height: calc(100% - 48px); width: auto; height: auto;
	object-fit: contain; border-radius: 4px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.pkc-lightbox__cap { color: #e9e4dc; font-size: 14px; line-height: 1.4; text-align: center; max-width: 720px; }
.pkc-lightbox__count { color: #a8a096; margin-right: 6px; font-variant-numeric: tabular-nums; }

.pkc-lightbox button {
	position: absolute; border: 0; background: rgba(255, 255, 255, 0.08); color: #fff;
	width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
	font-size: 30px; line-height: 1; display: flex; align-items: center; justify-content: center;
	transition: background 0.15s;
}
.pkc-lightbox button:hover, .pkc-lightbox button:focus-visible { background: rgba(255, 255, 255, 0.2); outline: none; }
.pkc-lightbox button:focus-visible { box-shadow: 0 0 0 2px #fff; }
.pkc-lightbox__close { top: 12px; right: 12px; }
.pkc-lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.pkc-lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
.pkc-lightbox--single .pkc-lightbox__nav, .pkc-lightbox--single .pkc-lightbox__count { display: none; }

@media (max-width: 640px) {
	.pkc-lightbox { padding: 56px 8px 20px; }
	.pkc-lightbox__nav { top: auto; bottom: 14px; transform: none; width: 44px; height: 44px; }
	.pkc-lightbox__img { max-height: calc(100% - 96px); }
	.pkc-lightbox__figure { padding-bottom: 52px; }
}
