/** Scoped, dependency-free project image lightbox. */
.t0k-lightbox {
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.t0k-lightbox::backdrop {
	background: rgba(10, 18, 30, 0.9);
}

.t0k-lightbox__frame {
	position: relative;
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
	padding: clamp(1rem, 4vw, 3rem);
}

.t0k-lightbox__image {
	display: block;
	max-width: min(92vw, 90rem);
	max-height: 88vh;
	object-fit: contain;
	border-radius: 0.5rem;
	background: #101722;
}

.t0k-lightbox__close,
.t0k-lightbox__nav {
	position: absolute;
	z-index: 2;
	display: grid;
	width: 3rem;
	height: 3rem;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 999px;
	background: rgba(15, 24, 38, 0.78);
	color: #fff;
	font: inherit;
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
}

.t0k-lightbox__close {
	top: 1rem;
	right: 1rem;
}

.t0k-lightbox__nav {
	top: 50%;
	transform: translateY(-50%);
}

.t0k-lightbox__nav--prev { left: 1rem; }
.t0k-lightbox__nav--next { right: 1rem; }

.t0k-lightbox__close:focus-visible,
.t0k-lightbox__nav:focus-visible {
	outline: 0.2rem solid #fff;
	outline-offset: 0.15rem;
}

@media (max-width: 47.9375rem) {
	.t0k-lightbox__frame { padding: 0.75rem; }
	.t0k-lightbox__close,
	.t0k-lightbox__nav {
		width: 2.65rem;
		height: 2.65rem;
	}
	.t0k-lightbox__close { top: 0.65rem; right: 0.65rem; }
	.t0k-lightbox__nav--prev { left: 0.65rem; }
	.t0k-lightbox__nav--next { right: 0.65rem; }
}
