/* MH Insta-Feed – übernimmt Schrift und Farben des Themes */
.mhif {
	--mhif-gap: 8px;
	--mhif-radius: 8px;
	margin: 0 0 24px;
}

.mhif-grid {
	display: grid;
	gap: var(--mhif-gap);
	grid-template-columns: repeat(var(--mhif-cols, 3), minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.mhif-has-text { --mhif-gap: 24px 16px; }

.mhif-cols-1 { --mhif-cols: 1; }
.mhif-cols-2 { --mhif-cols: 2; }
.mhif-cols-3 { --mhif-cols: 3; }
.mhif-cols-4 { --mhif-cols: 4; }
.mhif-cols-5 { --mhif-cols: 5; }
.mhif-cols-6 { --mhif-cols: 6; }

@media (max-width: 600px) {
	.mhif-mcols-1 { --mhif-cols: 1; }
	.mhif-mcols-2 { --mhif-cols: 2; }
	.mhif-mcols-3 { --mhif-cols: 3; --mhif-gap: 4px; }
}

.mhif-item { margin: 0; padding: 0; min-width: 0; }
.mhif-item::before, .mhif-item::marker { content: none; }

.mhif-link {
	color: inherit;
	display: block;
	text-decoration: none;
	border-radius: var(--mhif-radius);
}

.mhif-link:focus-visible,
.mhif-follow-link:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 3px;
}

.mhif-media {
	aspect-ratio: 1 / 1;
	background: rgb(127 127 127 / .12);
	border-radius: var(--mhif-radius);
	display: block;
	overflow: hidden;
	position: relative;
}

.mhif-hoch .mhif-media { aspect-ratio: 4 / 5; }

.mhif-media img {
	display: block;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform 200ms ease-out;
	width: 100%;
}

@media (hover: hover) {
	.mhif-link:hover img { transform: scale(1.03); }
	.mhif-link:hover .mhif-caption { text-decoration: underline; }
}

.mhif-badge {
	color: #fff;
	filter: drop-shadow(0 1px 2px rgb(0 0 0 / .45));
	line-height: 0;
	position: absolute;
	right: 8px;
	top: 8px;
}

.mhif-body { display: block; padding-top: 8px; }

.mhif-date {
	display: block;
	font-size: .8125rem;
	opacity: .75;
	margin-bottom: 4px;
}

.mhif-caption {
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	display: -webkit-box;
	font-size: .9375rem;
	line-height: 1.5;
	overflow: hidden;
}

.mhif-follow { margin: 16px 0 0; text-align: center; }

.mhif-follow-link {
	align-items: center;
	color: inherit;
	display: inline-flex;
	font-weight: 600;
	gap: 8px;
	min-height: 44px;
	max-width: 100%;
	padding: 8px 12px;
	text-align: left;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.mhif-follow-link svg { flex-shrink: 0; }

.mhif-sr {
	border: 0;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.mhif-admin-hint {
	background: #fff8e5;
	border: 1px solid #dba617;
	border-radius: 8px;
	color: #1d1b20;
	padding: 12px 16px;
}

@media (prefers-reduced-motion: reduce) {
	.mhif-media img { transition: none; }
	.mhif-link:hover img { transform: none; }
}
