/* fkm-gallery — استایل ویجت (بارگذاری فقط هنگام استفاده) */
.ygl-section {
	--_frame-bg: var(--ygl-frame-bg, #ededed);
	--_dark: var(--ygl-sh-dark, #d1d1d1);
	--_light: var(--ygl-sh-light, #ffffff);
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	direction: rtl;
}
.ygl-title {
	font-weight: 900;
	color: #1a5e51;
	margin: 0 0 40px;
	width: 100%;
	text-align: center;
}
.ygl-container {
	display: flex;
	gap: 30px;
	justify-content: center;
	flex-wrap: wrap;
}
.ygl-card {
	background: var(--_frame-bg);
	padding: var(--ygl-frame-pad, 15px);
	border-radius: var(--ygl-frame-radius, 40px);
	box-shadow: 10px 10px 20px var(--_dark), -10px -10px 20px var(--_light);
}
.ygl-hover .ygl-card:hover {
	transform: translateY(-5px);
	box-shadow: 14px 14px 28px var(--_dark), -14px -14px 28px var(--_light);
}
.ygl-card .ygl-img-wrap {
	display: block;
	overflow: hidden;
	border-radius: calc(var(--ygl-frame-radius, 40px) - 10px);
}
.ygl-card img {
	width: var(--ygl-img-w, 400px);
	height: var(--ygl-img-h, 250px);
	max-width: 100%;
	object-fit: cover;
	border-radius: calc(var(--ygl-frame-radius, 40px) - 10px);
	display: block;
}
.ygl-hover .ygl-card:hover img { transform: scale(1.05); }
/* ── لایت‌باکس ── */
.ygl-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.82);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	padding: 24px;
	cursor: zoom-out;
}
.ygl-lightbox.ygl-open { display: flex; }
.ygl-lightbox img {
	max-width: min(1100px, 92vw);
	max-height: 88vh;
	border-radius: 16px;
	object-fit: contain;
}
@media (max-width: 600px) {
	.ygl-card img {
		width: 100%;
		height: auto;
		aspect-ratio: 16 / 10;
	}
}

/* حالت‌های داینامیک */
.ygl-hover .ygl-card,
.ygl-lb .ygl-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.ygl-lb .ygl-card { cursor: zoom-in; }
.ygl-hover .ygl-card img { transition: transform 0.4s ease; }
