/* =========================================================
   M38 - Social Feed (hone)
   Tokens: dunkel #303030 | gold #a5936f | weiss #fff
   Font: cresta | Font-Sizes in rem (Basis 20px), Spacing in px.
   Figma: m_social auf 00_Startseite — Titel links, Instagram-
   Handle rechts (gold), 4 Bilder 425x566 (Feed bricht bei
   grossen Viewports auf 1760px aus).
   Feed-Markup kommt vom Plugin (Smash Balloon Instagram Feed);
   die #sb_instagram-Overrides nach Konto-Anbindung feinjustieren.
   ========================================================= */

section.m38_social_feed {
	background: transparent;
	/* Vertikal-Abstand kommt aus dem Abstand-Klonfeld (data-innerer-abstand) */
}

/* ---------- Header: Titel links, Handle rechts ---------- */
section.m38_social_feed .m38_header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 44px;
}

section.m38_social_feed .m38_titel {
	margin: 0;
	line-height: 1;            /* 35px */
	font-weight: 500;
	letter-spacing: 0.875px;
	text-transform: uppercase;
	color: #fff;
}

section.m38_social_feed .m38_titel span {
	color: #a5936f;
	display: block;   /* goldene Phrase auf eigener Zeile (ersetzt frueheres <br>) */
}

section.m38_social_feed .m38_handle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;         /* 18px (Basis 20px) */
	letter-spacing: 0.45px;
	text-transform: none;
	text-decoration: none;
	color: #fff;
	white-space: nowrap;
}

section.m38_social_feed .m38_handle:hover {
	color: #a5936f;
}

section.m38_social_feed .m38_handle_icon {
	flex: 0 0 auto;
	color: #a5936f;
}

/* ---------- Redakteurs-Platzhalter (nur ohne Shortcode) ---------- */
section.m38_social_feed .m38_feed_placeholder {
	margin: 0;
	padding: 40px 30px;
	border: 1px dashed #6e6e6e;
	font-size: 0.9rem;
	color: #fff;
}

/* ---------- Feed (Smash Balloon) auf Figma-Optik trimmen ---------- */
section.m38_social_feed .m38_feed #sb_instagram {
	padding-bottom: 0 !important;
}

section.m38_social_feed .m38_feed #sb_instagram #sbi_images {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px !important;
	padding: 0 !important;
	float: none;
	width: 100% !important;
}

section.m38_social_feed .m38_feed #sb_instagram .sbi_item {
	float: none !important;
	width: auto !important;
	padding: 0 !important;
	margin: 0 !important;
}

section.m38_social_feed .m38_feed #sb_instagram .sbi_photo {
	height: auto !important;
	aspect-ratio: 425 / 566;
	padding-bottom: 0 !important;
	background-size: cover;
	background-position: center;
}

section.m38_social_feed .m38_feed #sb_instagram .sbi_photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* "Mehr laden"- und Follow-Button des Plugins ausblenden
   (Handle sitzt oben rechts, Figma zeigt nur die Bildreihe) */
section.m38_social_feed .m38_feed #sb_instagram #sbi_load {
	display: none;
}

/* Breiter Feed: ragt je 149px ueber den Container hinaus, nie naeher als 80px an den Rand */
@media (min-width: 1560px) {
	section.m38_social_feed .m38_feed {
		margin-left: clamp(-149px, calc(-50vw + 811px), 0px);
		margin-right: clamp(-149px, calc(-50vw + 811px), 0px);
	}
}

@media (min-width: 2200px) {
	section.m38_social_feed .m38_feed {
		margin-left: clamp(-149px, calc(-50vw + 920px), 0px);  /* Container 1680 */
		margin-right: clamp(-149px, calc(-50vw + 920px), 0px);
	}
}

@media (min-width: 2400px) {
	section.m38_social_feed .m38_feed {
		margin-left: clamp(-149px, calc(-50vw + 980px), 0px);  /* Container 1800 */
		margin-right: clamp(-149px, calc(-50vw + 980px), 0px);
	}
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
	section.m38_social_feed .m38_feed #sb_instagram #sbi_images {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 575px) {
	section.m38_social_feed .m38_header {
		flex-direction: column;
		align-items: flex-start;
	}

	section.m38_social_feed .m38_titel {
		line-height: 1.15;
	}
}

/* Kleine Phones: einspaltig, damit die Feed-Bilder nicht zu klein werden */
@media (max-width: 479px) {
	section.m38_social_feed .m38_feed #sb_instagram #sbi_images {
		grid-template-columns: 1fr;
	}
}
