/* בתקשורת ובמדיה — כרטיסי כתבות
   מחלקות: mt-media-card / mt-media-photo-col / mt-media-photo
   תמונה ממורכזת עם שוליים פנימיים (לא צמודה לבורדר) */

/* —— מסגרת ירוקה לכרטיס —— */
.elementor-element.mt-media-card,
.e-con.mt-media-card,
.mt-media-card,
.elementor-3110 .e-con.e-child:has(> .e-con.e-child > .elementor-element.mt-media-photo):has(.elementor-widget-heading) {
	overflow: hidden !important;
	padding: 0 !important;
	--padding-top: 0px !important;
	--padding-right: 0px !important;
	--padding-bottom: 0px !important;
	--padding-left: 0px !important;
	border-style: solid !important;
	border-width: 2px !important;
	border-color: #537d33 !important;
	background-color: #ffffff !important;
	box-shadow: none !important;
}

/* —— עמודת תמונה — שוליים פנימיים + מירכוז —— */
.elementor-element.mt-media-photo-col,
.e-con.mt-media-photo-col,
.mt-media-photo-col,
.elementor-3110 .e-con.e-child:has(> .elementor-element.mt-media-photo) {
	display: flex !important;
	flex-direction: column !important;
	justify-content: center !important;
	align-items: center !important;
	align-self: center !important;
	flex: 0 0 300px !important;
	width: 300px !important;
	max-width: 300px !important;
	min-width: 300px !important;
	min-height: 240px !important;
	height: auto !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 16px !important;
	overflow: hidden !important;
	box-sizing: border-box !important;
	--width: 300px !important;
	--padding-top: 16px !important;
	--padding-right: 16px !important;
	--padding-bottom: 16px !important;
	--padding-left: 16px !important;
}

/* תיבת התמונה בתוך השוליים — גודל אחיד */
.elementor-element.mt-media-photo,
.elementor-element.mt-media-photo > .elementor-widget-container,
.mt-media-photo-col .elementor-widget-image,
.mt-media-photo-col .elementor-widget-container,
.mt-media-photo-col .elementor-image,
.mt-media-photo-col a,
.elementor-3110 .e-con.e-child:has(> .elementor-element.mt-media-photo) .elementor-widget-image,
.elementor-3110 .e-con.e-child:has(> .elementor-element.mt-media-photo) .elementor-widget-container,
.elementor-3110 .e-con.e-child:has(> .elementor-element.mt-media-photo) .elementor-image,
.elementor-3110 .e-con.e-child:has(> .elementor-element.mt-media-photo) a {
	margin: 0 auto !important;
	padding: 0 !important;
	display: block !important;
	width: 100% !important;
	max-width: 268px !important; /* 300 - 16*2 */
	height: 208px !important;    /* 240 - 16*2 */
	min-height: 208px !important;
	max-height: 208px !important;
	line-height: 0 !important;
	box-shadow: none !important;
	overflow: hidden !important;
}

/* התמונה — cover ממורכז */
.elementor-element.mt-media-photo img,
.mt-media-photo-col img,
.elementor-3110 .elementor-element.mt-media-photo img,
.elementor-3110 .e-con.e-child:has(> .elementor-element.mt-media-photo) img {
	display: block !important;
	width: 100% !important;
	max-width: none !important;
	height: 100% !important;
	min-height: 208px !important;
	max-height: 208px !important;
	object-fit: cover !important;
	object-position: center center !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	box-shadow: none !important;
}

.mt-media-card .elementor-heading-title,
.elementor-3110 .e-con.e-child:has(.mt-media-photo) .elementor-heading-title {
	margin: 0 !important;
}

/* —— מובייל —— */
@media (max-width: 767px) {
	.elementor-element.mt-media-photo-col,
	.e-con.mt-media-photo-col,
	.mt-media-photo-col,
	.elementor-3110 .e-con.e-child:has(> .elementor-element.mt-media-photo) {
		flex: 0 0 100% !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		min-height: 0 !important;
		height: auto !important;
		padding: 16px 16px 0 16px !important;
		--width: 100% !important;
		--padding-top: 16px !important;
		--padding-right: 16px !important;
		--padding-bottom: 0px !important;
		--padding-left: 16px !important;
	}

	.elementor-element.mt-media-photo,
	.elementor-element.mt-media-photo > .elementor-widget-container,
	.mt-media-photo-col .elementor-widget-image,
	.mt-media-photo-col .elementor-widget-container,
	.mt-media-photo-col .elementor-image,
	.mt-media-photo-col a,
	.elementor-3110 .e-con.e-child:has(> .elementor-element.mt-media-photo) .elementor-widget-image,
	.elementor-3110 .e-con.e-child:has(> .elementor-element.mt-media-photo) .elementor-widget-container,
	.elementor-3110 .e-con.e-child:has(> .elementor-element.mt-media-photo) a {
		width: 100% !important;
		max-width: 100% !important;
		height: 200px !important;
		min-height: 200px !important;
		max-height: 200px !important;
	}

	.elementor-element.mt-media-photo img,
	.mt-media-photo-col img,
	.elementor-3110 .elementor-element.mt-media-photo img,
	.elementor-3110 .e-con.e-child:has(> .elementor-element.mt-media-photo) img {
		height: 200px !important;
		min-height: 200px !important;
		max-height: 200px !important;
		object-fit: cover !important;
		object-position: center center !important;
	}
}
