/* ============================================
   News Gallery Pro — استایل گالری عکس و ویدیو
   ============================================ */

.ngp-photo-gallery,
.ngp-video-gallery {
	margin: 32px 0;
	direction: rtl;
	font-family: inherit;
}

.ngp-photo-gallery__header,
.ngp-video-gallery__header {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 14px;
	color: #1a1a1a;
	border-right: 4px solid #d32f2f;
	padding-right: 10px;
}

/* --- گالری عکس --- */

.ngp-photo-gallery__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 8px;
}

.ngp-photo-gallery__grid a {
	display: block;
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	aspect-ratio: 1 / 1;
	background: #eee;
}

.ngp-photo-gallery__grid img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .35s ease;
}

.ngp-photo-gallery__grid a:hover img {
	transform: scale(1.08);
}

/* --- گالری ویدیو --- */

.ngp-video-gallery__list {
	display: grid;
	gap: 20px;
}

.ngp-video-item {
	position: relative;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 14px rgba(0,0,0,.12);
}

.ngp-video-item--embed {
	aspect-ratio: 16 / 9;
}

.ngp-video-item--embed iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

.ngp-video-item video {
	width: 100%;
	display: block;
}

/* --- برچسب گالری (در صورت فعال بودن) --- */

.ngp-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 5;
	background: rgba(211, 47, 47, .92);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 20px;
	display: flex;
	align-items: center;
	gap: 4px;
	direction: rtl;
	pointer-events: none;
}

.ngp-badge--video {
	background: rgba(25, 30, 40, .85);
}

.ngp-icon-camera::before { content: "📷"; }
.ngp-icon-play::before { content: "▶"; }

/* --- دکمه دانلود ویدیو --- */

.ngp-download-wrap {
	display: flex;
	justify-content: center;
	margin-top: 14px;
}

.ngp-download-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 26px;
	background: linear-gradient(180deg, #2a2a2a 0%, #171717 100%);
	color: #fff !important;
	border-radius: 30px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
	direction: rtl;
	box-shadow: 0 3px 10px rgba(0,0,0,.25);
	border: 1px solid rgba(255,255,255,.08);
	transition: background .25s ease, transform .15s ease, box-shadow .25s ease;
}

.ngp-download-icon {
	flex-shrink: 0;
}

.ngp-download-btn:hover {
	background: linear-gradient(180deg, #d32f2f 0%, #a52323 100%);
	transform: translateY(-1px);
	box-shadow: 0 5px 14px rgba(211,47,47,.35);
}

.ngp-download-btn:active {
	transform: translateY(0);
}

@media (max-width: 480px) {
	.ngp-photo-gallery__grid {
		grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
	}
}
