/* Insta Feed – Kartenlayout */

.wif-feed {
	max-width: 600px;
	margin: 1.5em auto;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* Umschalter Galerie <-> Reels */
.wif-viewswitch {
	display: flex;
	justify-content: center;
	gap: 4px;
	max-width: 600px;
	margin: 1.5em auto 0;
	padding: 4px;
	background: #efefef;
	border-radius: 999px;
	width: fit-content;
}

.wif-viewswitch-btn {
	display: inline-block;
	padding: 6px 20px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	color: #555;
	transition: background 0.15s ease, color 0.15s ease;
}

.wif-viewswitch-btn:hover {
	color: #262626;
}

.wif-viewswitch-btn.is-active {
	background: #fff;
	color: #0095f6;
	box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.12 );
}

/* Direkt nach dem Umschalter folgende Ansicht etwas näher heranrücken */
.wif-viewport > .wif-feed {
	margin-top: 1em;
}

.wif-access-banner {
	border: 1px solid #cfe2ff;
	background: #eef5ff;
	color: #274b8a;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 14px;
}

.wif-access-banner a {
	font-weight: 600;
}

.wif-card {
	border: 1px solid #dbdbdb;
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
}

.wif-card-media {
	background: #000;
	line-height: 0;
}

/* Download-Schutz Stufe 1 (Abschreckung) */
.wif-protected .wif-card-media {
	position: relative;
}

.wif-protected .wif-card-img {
	-webkit-user-drag: none;
	user-select: none;
	-webkit-touch-callout: none;
}

.wif-protected .wdg-guard {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: block;
}

.wif-card-img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 720px;
	object-fit: contain;
	background: #000;
}

.wif-card-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px 2px;
}

.wif-like-button {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 26px;
	line-height: 1;
	padding: 0;
	color: #262626;
}

.wif-like-button[disabled] {
	cursor: default;
	opacity: 0.6;
}

.wif-like-button.is-liked .wif-heart,
.wif-like-button[aria-pressed="true"] .wif-heart {
	color: #ed4956;
}

.wif-like-count {
	font-weight: 600;
	font-size: 14px;
}

.wif-card-caption {
	padding: 4px 14px 12px;
	font-size: 14px;
	color: #262626;
}

.wif-card-comments {
	padding: 0 14px 14px;
	font-size: 14px;
}

.wif-comments-placeholder {
	color: #8e8e8e;
	font-style: italic;
	margin: 0;
}

.wif-comments-toggle {
	background: none;
	border: none;
	padding: 4px 0;
	color: #8e8e8e;
	cursor: pointer;
	font-size: 13px;
}

.wif-comments-toggle:hover {
	color: #262626;
}

.wif-comments-list {
	list-style: none;
	margin: 0 0 8px;
	padding: 0;
}

.wif-comment {
	margin: 3px 0;
	line-height: 1.4;
}

.wif-comment-author {
	font-weight: 600;
}

.wif-comment-form {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: flex-start;
	border-top: 1px solid #efefef;
	padding-top: 10px;
}

.wif-comment-name {
	flex: 1 1 100%;
	padding: 6px 8px;
	border: 1px solid #dbdbdb;
	border-radius: 4px;
	font-size: 14px;
}

.wif-comment-form .wif-comment-text {
	flex: 1 1 auto;
	padding: 6px 8px;
	border: 1px solid #dbdbdb;
	border-radius: 4px;
	font-size: 14px;
	resize: vertical;
	font-family: inherit;
}

.wif-comment-submit {
	flex: 0 0 auto;
	background: #0095f6;
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 6px 14px;
	cursor: pointer;
	font-weight: 600;
}

.wif-comment-submit:disabled {
	opacity: 0.5;
	cursor: default;
}

.wif-comment-feedback {
	flex: 1 1 100%;
	color: #8a1f11;
	font-size: 12px;
	min-height: 1em;
}

.wif-comment-hint {
	border-top: 1px solid #efefef;
	padding-top: 10px;
	margin: 0;
	color: #8e8e8e;
}

.wif-flash {
	margin: 0 14px 10px;
	padding: 8px 10px;
	font-size: 13px;
	color: #8a1f11;
	background: #fbeaea;
	border: 1px solid #f3c6c6;
	border-radius: 4px;
}

.wif-feed-empty p,
.wif-feed-error p {
	text-align: center;
	color: #8e8e8e;
}

/* screen-reader-Text (falls Theme es nicht liefert) */
.wif-card .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}
