/* fkm-magazine — استایل ویجت (بارگذاری فقط هنگام استفاده) */
.ymg-container {
	--_btn-bg: var(--ymg-btn-bg, #ededed);
	--_btn-color: var(--ymg-btn-color, #333);
	--_btn-hover-bg: var(--ymg-btn-hover-bg, #0b5844);
	--_btn-hover-color: var(--ymg-btn-hover-color, #ffffff);
	width: 100%;
	direction: rtl;
	color: #333;
}
.ymg-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 25px;
}
.ymg-section-title {
	font-size: 22px;
	font-weight: 900;
	color: #1a1a1a;
	margin: 0;
}
.ymg-all-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #2b1d5a;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: color 0.2s;
}
.ymg-all-link:hover { color: #0b5844; }
.ymg-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}
.ymg-card {
	display: flex;
	flex-direction: column;
	align-items: center;
}
.ymg-image-box {
	width: 100%;
	height: var(--ymg-img-h, 140px);
	border-radius: var(--ymg-img-radius, 16px);
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
	margin-bottom: 12px;
	background-color: #ddd;
	display: block;
}
.ymg-image-box img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}
.ymg-card:hover .ymg-image-box img {
	transform: scale(1.05);
}
.ymg-title {
	font-size: 11.5px;
	font-weight: 700;
	color: #222;
	text-align: center;
	line-height: 1.6;
	margin: 0 0 14px;
	min-height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
}
.ymg-title a {
	color: inherit;
	text-decoration: none;
}
.ymg-btn {
	width: 100px;
	background-color: var(--_btn-bg);
	color: var(--_btn-color);
	text-decoration: none;
	padding: 6px 0;
	border-radius: 14px;
	font-size: 11.5px;
	font-weight: 700;
	text-align: center;
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06), inset 0 1px 2px rgba(255, 255, 255, 0.9);
	transition: all 0.2s ease;
}
.ymg-btn:hover {
	background-color: var(--_btn-hover-bg);
	color: var(--_btn-hover-color);
	box-shadow: 0 4px 10px rgba(11, 88, 68, 0.3);
}
.ymg-empty {
	text-align: center;
	padding: 40px 20px;
	color: #666;
	font-size: 15px;
}
@media (max-width: 900px) {
	.ymg-grid { gap: 25px; }
}
