/* Avivson Lightbox */
.avl-zoom { cursor: zoom-in; }

.avl-overlay {
	position: fixed; inset: 0; z-index: 999999;
	display: none; align-items: center; justify-content: center;
	background: rgba(0, 0, 0, .92);
	-webkit-user-select: none; user-select: none;
	opacity: 0; transition: opacity .2s ease;
}
.avl-overlay.avl-open { display: flex; }
.avl-overlay.avl-visible { opacity: 1; }

.avl-stage {
	position: relative; display: flex; flex-direction: column; align-items: center;
	max-width: 92vw; max-height: 92vh;
}
.avl-img {
	display: block; max-width: 92vw; max-height: 84vh; width: auto; height: auto;
	box-shadow: 0 4px 30px rgba(0, 0, 0, .5);
	opacity: 0; transition: opacity .2s ease;
}
.avl-img.avl-loaded { opacity: 1; }

.avl-caption {
	color: #eee; font: 15px/1.4 sans-serif; text-align: center;
	margin-top: 12px; max-width: 80vw;
}
.avl-caption:empty { display: none; }

.avl-counter {
	position: fixed; top: 16px; left: 20px;
	color: #bbb; font: 14px/1 sans-serif;
}

.avl-btn {
	position: fixed; border: 0; margin: 0; padding: 0; cursor: pointer;
	background: rgba(255, 255, 255, .08); color: #fff;
	width: 48px; height: 48px; border-radius: 50%;
	font: 28px/48px sans-serif; text-align: center;
	transition: background .15s ease;
}
.avl-btn:hover, .avl-btn:focus-visible { background: rgba(255, 255, 255, .22); outline: none; }
.avl-close { top: 12px; right: 12px; }
.avl-prev  { left: 12px;  top: 50%; transform: translateY(-50%); }
.avl-next  { right: 12px; top: 50%; transform: translateY(-50%); }
.avl-single .avl-prev, .avl-single .avl-next, .avl-single .avl-counter { display: none; }

.avl-spinner {
	position: absolute; top: 50%; left: 50%;
	width: 40px; height: 40px; margin: -20px 0 0 -20px;
	border: 3px solid rgba(255, 255, 255, .25); border-top-color: #fff; border-radius: 50%;
	animation: avl-spin .8s linear infinite;
}
.avl-loaded-state .avl-spinner { display: none; }
@keyframes avl-spin { to { transform: rotate(360deg); } }

html.avl-lock, html.avl-lock body { overflow: hidden; }

@media (max-width: 600px) {
	.avl-prev, .avl-next { display: none; } /* swipe instead */
}
