/*! RTL build of lightbox.css — generated by .claude/rtl-flip.php */
/* Screenshot lightbox — overlay viewer for .app-screens galleries.
   Loaded only on single APK post pages. */

.lb-link {
	display: block;
	cursor: zoom-in;
	color: inherit;
	text-decoration: none;
}

.lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .92);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s ease;
	-webkit-tap-highlight-color: transparent;
}
.lightbox.is-open {
	opacity: 1;
	pointer-events: auto;
}

.lightbox-figure {
	margin: 0;
	max-width: 92vw;
	max-height: 88vh;
	display: flex;
	align-items: center;
	justify-content: center;
}
.lightbox-img {
	display: block;
	max-width: 92vw;
	max-height: 88vh;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
	user-select: none;
	-webkit-user-drag: none;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
	position: absolute;
	width: 44px;
	height: 44px;
	background: rgba(255, 255, 255, .12);
	border: 0;
	cursor: pointer;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: background .15s ease, transform .15s ease;
	padding: 0;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
	background: rgba(255, 255, 255, .25);
}
.lightbox-close:active,
.lightbox-prev:active,
.lightbox-next:active {
	transform: scale(.94);
}
.lightbox-close:focus-visible,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.lightbox-close { top: 16px; left: 16px; }
.lightbox-close::before,
.lightbox-close::after {
	content: "";
	position: absolute;
	width: 20px;
	height: 2px;
	background: #fff;
	border-radius: 1px;
}
.lightbox-close::before { transform: rotate(45deg); }
.lightbox-close::after  { transform: rotate(-45deg); }

.lightbox-prev,
.lightbox-next {
	top: 50%;
	transform: translateY(-50%);
}
.lightbox-prev:active,
.lightbox-next:active { transform: translateY(-50%) scale(.94); }

.lightbox-prev { right: 16px; }
.lightbox-next { left: 16px; }

.lightbox-prev::before,
.lightbox-next::before {
	content: "";
	display: block;
	width: 12px;
	height: 12px;
	border-top: 2px solid #fff;
	border-left: 2px solid #fff;
}
.lightbox-prev::before { transform: rotate(-135deg); margin-right: 4px; }
.lightbox-next::before { transform: rotate(45deg);   margin-left: 4px; }

.lightbox-counter {
	position: absolute;
	bottom: 18px;
	right: 50%;
	transform: translateX(50%);
	color: rgba(255, 255, 255, .7);
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	pointer-events: none;
	user-select: none;
}

@media (max-width: 600px) {
	.lightbox-prev,
	.lightbox-next {
		width: 40px;
		height: 40px;
	}
	.lightbox-prev { right: 8px; }
	.lightbox-next { left: 8px; }
	.lightbox-img,
	.lightbox-figure {
		max-width: 96vw;
		max-height: 80vh;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lightbox,
	.lightbox-close,
	.lightbox-prev,
	.lightbox-next {
		transition: none;
	}
}

body.lb-open {
	overflow: hidden;
}
