.vlb-lightbox[hidden]{display:none !important}
.vlb-lightbox{
	position:fixed;
	inset:0;
	z-index:100000;
	direction:rtl;
}
.vlb-lightbox__backdrop{
	display:flex;
	align-items:center;
	justify-content:center;
	min-height:100%;
	padding:20px;
	background:rgba(15,23,42,.72);
	animation:vlb-fade .2s ease-out;
}
.vlb-lightbox__dialog{
	position:relative;
	width:min(100%,620px);
	max-height:calc(100vh - 40px);
	overflow:auto;
	padding:30px 24px 24px;
	background:#fff;
	border:1px solid rgba(255,255,255,.8);
	border-radius:20px;
	box-shadow:0 24px 70px rgba(0,0,0,.28);
	color:#1f2937;
	animation:vlb-rise .22s ease-out;
}
.vlb-lightbox__close{
	position:absolute;
	text-decoration:none;
	top:10px;
	left:12px;
	width:36px;
	height:36px;
	display:inline-flex;
	align-items:center;
	justify-content:center;
	border:1px solid #e5e7eb;
	border-radius:10px;
	background:#f8fafc;
	color:#374151;
	font-size:24px;
	line-height:1;
	cursor:pointer;
}
.vlb-lightbox__close:hover{background:#eef2ff;color:#0b5cff}
.vlb-lightbox__media{margin:0 0 16px;text-align:center}
.vlb-lightbox__media[hidden]{display:none}
.vlb-lightbox__media img{display:block;width:100%;max-height:300px;object-fit:contain;border-radius:14px}
.vlb-lightbox__title{margin:0 0 12px;color:#111827;font-size:1.25rem;line-height:1.8}
.vlb-lightbox__title[hidden]{display:none}
.vlb-lightbox__content{font-size:1rem;line-height:2;color:#374151}
.vlb-lightbox__content p:last-child{margin-bottom:0}
.vlb-lightbox__content img{max-width:100%;height:auto}
.vlb-lightbox__content a{color:#0b5cff;text-decoration:underline}
.vlb-lightbox__news[hidden]{display:none}
.vlb-lightbox__continue{
	display:block;
	width:100%;
	margin-top:20px;
	padding:11px 16px;
	border:0;
	border-radius:12px;
	background:#0b5cff;
	color:#fff;
	font:inherit;
	text-align:center;
	text-decoration:none;
	box-sizing:border-box;
	cursor:pointer;
}
.vlb-lightbox__continue:hover,.vlb-lightbox__continue:focus{color:#fff;text-decoration:none}
.vlb-lightbox__close:focus-visible,.vlb-lightbox__continue:focus-visible{outline:2px solid #0b5cff;outline-offset:2px}
.vlb-lightbox__continue:hover{background:#1037b3}

/* لیست اخبار */
.vlb-news{margin:0;padding:0;list-style:none;display:grid;gap:10px}
.vlb-news__item{margin:0}
.vlb-news__link{
	display:flex;
	align-items:center;
	gap:12px;
	padding:8px;
	border:1px solid #eef2f7;
	border-radius:14px;
	background:#fbfcfe;
	color:#111827;
	text-decoration:none;
	transition:background .15s ease,border-color .15s ease;
}
.vlb-news__link:hover{background:#eef4ff;border-color:#c7d7fe}
.vlb-news__thumb{flex:0 0 auto;width:72px;height:72px;border-radius:12px;overflow:hidden;background:#eef2f7}
.vlb-news__thumb img{width:100%;height:100%;object-fit:cover;display:block}
.vlb-news__body{display:flex;flex-direction:column;gap:4px;min-width:0}
.vlb-news__title{font-size:.98rem;line-height:1.9;font-weight:600;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.vlb-news__date{font-size:.8rem;color:#6b7280}
.vlb-news__item--no-thumb .vlb-news__link{padding:12px}
.vlb-lightbox--news .vlb-lightbox__title{
	padding-bottom:10px;
	border-bottom:2px solid #eef2f7;
}
.vlb-lightbox--nopopup .vlb-lightbox__continue{
	background:#f1f5f9;
	color:#475569;
}
.vlb-lightbox--nopopup .vlb-lightbox__continue:hover{background:#e2e8f0;color:#1f2937}

html.vlb-lightbox-open,body.vlb-lightbox-open{overflow:hidden}
@keyframes vlb-fade{from{opacity:0}to{opacity:1}}
@keyframes vlb-rise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:600px){
	.vlb-lightbox__backdrop{padding:12px}
	.vlb-lightbox__dialog{max-height:calc(100vh - 24px);padding:28px 16px 16px;border-radius:16px}
	.vlb-lightbox__title{font-size:1.1rem}
	.vlb-news__thumb{width:60px;height:60px}
}
@media(prefers-reduced-motion:reduce){
	.vlb-lightbox__backdrop,.vlb-lightbox__dialog{animation:none}
}

/* حالت «کلیک اول» */
.vlb-lightbox--firstclick.vlb-lightbox--armed.vlb-lightbox--ads .vlb-lightbox__dialog{cursor:pointer}
.vlb-lightbox--firstclick.vlb-lightbox--armed .vlb-lightbox__continue{background:#0a8f4f}
.vlb-lightbox--firstclick.vlb-lightbox--armed .vlb-lightbox__continue:hover{background:#07713e}
