/**
 * [marsi_bejegyzesek] – replaces Elementor Pro's Posts widget, classic skin (step 22/4).
 * Values measured on the Pro widgets (2026-10-01).
 */
.marsi-posts {
	display: grid;
	grid-template-columns: repeat(var(--marsi-cols, 2), minmax(0, 1fr));
	column-gap: 30px;
	row-gap: 35px;
}

@media (max-width: 1024px) {
	.marsi-posts {
		grid-template-columns: repeat(var(--marsi-cols-t, 2), minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.marsi-posts {
		grid-template-columns: repeat(var(--marsi-cols-m, 1), minmax(0, 1fr));
	}
}

.marsi-post {
	display: flex;
	flex-direction: column;
}

.marsi-post__thumb {
	display: block;
	margin-bottom: var(--marsi-img-gap, 20px);
}

.marsi-post__ratio {
	position: relative;
	display: block;
	overflow: hidden;
	padding-bottom: 66%;
}

@media (max-width: 767px) {
	.marsi-post__ratio {
		padding-bottom: 50%;
	}
}

.marsi-post__ratio img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.marsi-post__title {
	margin: 0 0 5px;
	padding: 0;
	font-family: "Mohave", sans-serif;
	font-size: 22px;
	font-weight: 500;
	line-height: 1.2;
	text-transform: uppercase;
}

.marsi-post__title a {
	color: #000;
	text-decoration: none;
}

.marsi-post__meta {
	margin: 0 0 15px;
	font-family: "Mohave", sans-serif;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.3;
	color: #272727;
}

.marsi-post__excerpt {
	margin-bottom: 10px;
}

.marsi-post__excerpt p {
	margin: 0;
	font-family: "Mohave", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	color: #000;
}

.marsi-post__more {
	align-self: flex-start;
	font-family: "Mohave", sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	text-transform: uppercase;
	text-decoration: none;
	color: #bdaf82;
}

/* [marsi_tartalom]: Kit "text" typography, as Pro's Post Content widget applied it. */
.marsi-post-content {
	font-family: var(--e-global-typography-text-font-family), sans-serif;
	font-size: var(--e-global-typography-text-font-size);
	font-weight: var(--e-global-typography-text-font-weight);
	line-height: var(--e-global-typography-text-line-height);
	color: var(--e-global-color-text);
}

/* Block figures keep their 1em bottom margin, as inside Pro's Post Content widget. Elementor resets figure margins
 * in every widget except the text editor and Pro's post content (.elementor .elementor-widget:not(…):not(…) figure),
 * so this selector has to be stronger than that one. */
.elementor .elementor-widget.elementor-widget-shortcode .marsi-post-content figure {
	margin: 0 0 1em;
}
