/* V3 Social Feed. Override with your theme by targeting .v3sf classes or the custom properties below. */
.v3sf {
	--v3sf-gap: 12px;
	--v3sf-radius: 8px;
	--v3sf-accent: #1877f2;
	--v3sf-text: inherit;
	--v3sf-muted: rgba(0, 0, 0, 0.6);
	--v3sf-card-bg: transparent;
	--v3sf-cols: 3;
	--v3sf-cols-m: 2;
	position: relative;
	color: var(--v3sf-text);
	font-size: 15px;
	line-height: 1.5;
}
.v3sf--instagram { --v3sf-accent: #d62976; }
.v3sf--youtube { --v3sf-accent: #ff0000; }

.v3sf *, .v3sf *::before, .v3sf *::after { box-sizing: border-box; }

.v3sf__sr {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Header */
.v3sf__header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}
.v3sf__avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.v3sf__identity { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.v3sf__name { font-weight: 700; font-size: 1.05em; }
.v3sf__username { color: var(--v3sf-muted); font-size: 0.9em; }
.v3sf__follow {
	display: inline-block;
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--v3sf-accent);
	color: #fff !important;
	font-weight: 600;
	font-size: 0.9em;
	text-decoration: none !important;
	white-space: nowrap;
}
.v3sf__follow:hover, .v3sf__follow:focus-visible { filter: brightness(1.1); }

/* Items */
.v3sf__items { display: grid; gap: var(--v3sf-gap); margin: 0; padding: 0; }
.v3sf__item {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: var(--v3sf-card-bg);
	border-radius: var(--v3sf-radius);
	overflow: hidden;
}
.v3sf__media { position: relative; display: block; overflow: hidden; border-radius: var(--v3sf-radius); }
.v3sf__media img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	transition: transform 0.3s ease;
}
.v3sf--hover-zoom .v3sf__media:hover img, .v3sf--hover-zoom .v3sf__media:focus-visible img { transform: scale(1.06); }

/* Image shape */
.v3sf--aspect-portrait .v3sf__media img { aspect-ratio: 4 / 5; }
.v3sf--aspect-landscape .v3sf__media img,
.v3sf--youtube.v3sf--aspect-square .v3sf__media img { aspect-ratio: 16 / 9; }
.v3sf--aspect-original .v3sf__media img { aspect-ratio: auto; height: auto; }

/* Caption overlay on hover */
.v3sf__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	padding: 14px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.1) 70%);
	color: #fff;
	font-size: 0.9em;
	line-height: 1.4;
	opacity: 0;
	transition: opacity 0.2s ease;
	overflow: hidden;
}
.v3sf__media:hover .v3sf__overlay, .v3sf__media:focus-visible .v3sf__overlay { opacity: 1; }
@media (hover: none) { .v3sf__overlay { display: none; } }

.v3sf__badge {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 26px;
	height: 26px;
	background: rgba(0, 0, 0, 0.55) center / 14px no-repeat;
	border-radius: 50%;
}
.v3sf__badge--video { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M4 2.5v11l9-5.5z'/%3E%3C/svg%3E"); }
.v3sf__badge--album { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M4 1h11v11h-2V3H4zM1 4h10v11H1z'/%3E%3C/svg%3E"); }
.v3sf--youtube .v3sf__badge--video { top: 50%; left: 50%; right: auto; width: 56px; height: 40px; margin: -20px 0 0 -28px; border-radius: 10px; background-color: rgba(255, 0, 0, 0.9); background-size: 20px; }

.v3sf__body { padding: 8px 2px 0; display: flex; flex-direction: column; gap: 4px; }
.v3sf__text { margin: 0; overflow-wrap: anywhere; }
.v3sf__date { color: var(--v3sf-muted) !important; font-size: 0.85em; text-decoration: none !important; }
.v3sf__item--noimage .v3sf__body {
	padding: 16px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: var(--v3sf-radius);
	height: 100%;
}

/* Grid */
.v3sf--grid .v3sf__items { grid-template-columns: repeat(var(--v3sf-cols-m), minmax(0, 1fr)); }
@media (min-width: 768px) {
	.v3sf--grid .v3sf__items { grid-template-columns: repeat(var(--v3sf-cols), minmax(0, 1fr)); }
}

/* Masonry (CSS columns: keeps natural image heights) */
.v3sf--masonry .v3sf__items { display: block; columns: var(--v3sf-cols-m); column-gap: var(--v3sf-gap); }
.v3sf--masonry .v3sf__item { break-inside: avoid; margin-bottom: var(--v3sf-gap); }
.v3sf--masonry .v3sf__media img { aspect-ratio: auto; height: auto; }
.v3sf--carousel .v3sf__nav button, .v3sf__nav button { font-family: inherit; }
@media (min-width: 768px) {
	.v3sf--masonry .v3sf__items { columns: var(--v3sf-cols); }
}

/* List */
.v3sf--list .v3sf__items { grid-template-columns: 1fr; gap: 24px; }
.v3sf--list .v3sf__item { flex-direction: row; gap: 16px; align-items: flex-start; }
.v3sf--list .v3sf__media { flex: 0 0 min(40%, 280px); }
.v3sf--list .v3sf__body { flex: 1; padding-top: 0; }
@media (max-width: 600px) {
	.v3sf--list .v3sf__item { flex-direction: column; }
	.v3sf--list .v3sf__media { flex-basis: auto; width: 100%; }
}

/* Carousel (native scroll-snap; JS only adds the arrow buttons) */
.v3sf--carousel .v3sf__viewport {
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.v3sf--carousel .v3sf__viewport::-webkit-scrollbar { display: none; }
.v3sf--carousel .v3sf__items {
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--v3sf-cols-m) - 1) * var(--v3sf-gap)) / var(--v3sf-cols-m));
}
@media (min-width: 768px) {
	.v3sf--carousel .v3sf__items { grid-auto-columns: calc((100% - (var(--v3sf-cols) - 1) * var(--v3sf-gap)) / var(--v3sf-cols)); }
}
.v3sf--carousel .v3sf__item { scroll-snap-align: start; }
.v3sf__nav { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.v3sf__nav button {
	width: 40px;
	height: 40px;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 50%;
	background: #fff;
	color: #111;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}
.v3sf__nav button:disabled { opacity: 0.35; cursor: default; }

/* Combined feeds: one follow button per account, a small platform mark per post. */
.v3sf__follows { display: flex; flex-wrap: wrap; gap: 8px; }
.v3sf__follow--instagram { --v3sf-accent: #d62976; background: #d62976; }
.v3sf__follow--facebook { background: #1877f2; }
.v3sf__follow--youtube { background: #ff0000; }
.v3sf__source {
	position: absolute;
	left: 8px;
	bottom: 8px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55) center / 12px no-repeat;
}
.v3sf__source--instagram { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' fill-rule='evenodd' d='M12 7a5 5 0 1 0 0 10 5 5 0 0 0 0-10zm0 8.2a3.2 3.2 0 1 1 0-6.4 3.2 3.2 0 0 1 0 6.4zM17.3 5.5a1.2 1.2 0 1 0 0 2.4 1.2 1.2 0 0 0 0-2.4zM12 2c-2.7 0-3 0-4.1.1C4.3 2.3 2.3 4.3 2.1 7.9 2 9 2 9.3 2 12s0 3 .1 4.1c.2 3.6 2.2 5.6 5.8 5.8 1.1.1 1.4.1 4.1.1s3 0 4.1-.1c3.6-.2 5.6-2.2 5.8-5.8.1-1.1.1-1.4.1-4.1s0-3-.1-4.1c-.2-3.6-2.2-5.6-5.8-5.8C15 2 14.7 2 12 2z'/%3E%3C/svg%3E"); }
.v3sf__source--facebook { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M14 8V6c0-.9.2-1.4 1.6-1.4H17V1.2C16.7 1.1 15.7 1 14.6 1 12.2 1 10.5 2.5 10.5 5.2V8H8v3.6h2.5V23H14V11.6h2.8L17.2 8z'/%3E%3C/svg%3E"); }
.v3sf__source--youtube { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 7.5v9l7.5-4.5z'/%3E%3C/svg%3E"); }
.v3sf__textlink { display: block; color: inherit !important; text-decoration: none !important; }
.v3sf__textlink:hover .v3sf__text { text-decoration: underline; }

/* ---------- Load more ---------- */
.v3sf [hidden] { display: none !important; }
.v3sf__loadmore-wrap { display: flex; justify-content: center; padding: 16px 0 4px; }
.v3sf__loadmore {
	min-height: 42px;
	padding: 0 24px;
	border: 1px solid var(--v3sf-accent);
	border-radius: 999px;
	background: transparent;
	color: var(--v3sf-accent);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.v3sf__loadmore:hover, .v3sf__loadmore:focus-visible { background: var(--v3sf-accent); color: #fff; }

/* ---------- Scroll box (any layout) ---------- */
.v3sf__viewport--box { overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; scrollbar-width: thin; }
.v3sf__viewport--box:focus-visible { outline: 2px solid var(--v3sf-accent); outline-offset: 2px; }

/* ---------- Timeline (like a Facebook page) ---------- */
.v3sf--timeline .v3sf__items { display: block; }
.v3sf__post { padding: 14px 0 16px; border-bottom: 1px solid rgba(0, 0, 0, 0.1); border-radius: 0; background: none; }
.v3sf__post:first-child { padding-top: 4px; }
.v3sf__post:last-child { border-bottom: 0; }
.v3sf__post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.v3sf__post-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.v3sf__post-name { display: block; font-weight: 700; color: inherit !important; text-decoration: none !important; line-height: 1.3; }
.v3sf__post-name:hover { text-decoration: underline !important; }
.v3sf__post-when { display: block; font-size: 0.8em; color: var(--v3sf-muted) !important; text-decoration: none !important; }
.v3sf__post-text p { margin: 0 0 10px; overflow-wrap: anywhere; }
.v3sf__post-text a { color: var(--v3sf-accent); }
.v3sf__more { padding: 0; border: 0; background: none; color: var(--v3sf-muted); font: inherit; font-weight: 600; cursor: pointer; }
.v3sf__more:hover { text-decoration: underline; }
.v3sf__post-media { position: relative; display: block; margin: 4px 0 0; border-radius: var(--v3sf-radius); overflow: hidden; }
.v3sf__post-media img { display: block; width: 100%; height: auto; max-height: 640px; object-fit: cover; }
.v3sf__badge--center { top: 50%; left: 50%; right: auto; width: 54px; height: 54px; margin: -27px 0 0 -27px; background-size: 22px; }
.v3sf__post-album { display: flex; flex-direction: column; gap: 3px; margin-top: 4px; border-radius: var(--v3sf-radius); overflow: hidden; }
.v3sf__post-lead { display: block; }
.v3sf__post-lead img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; }
.v3sf__post-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.v3sf__post-album--1 .v3sf__post-thumbs { grid-template-columns: 1fr; }
.v3sf__post-album--1 .v3sf__post-thumb img { aspect-ratio: 16 / 9; }
.v3sf__post-album--2 .v3sf__post-thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.v3sf__post-thumb { position: relative; display: block; }
.v3sf__post-thumb img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.v3sf__post-more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.45); color: #fff; font-size: 1.4em; font-weight: 700; }
.v3sf__post-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-top: 10px; font-size: 0.85em; color: var(--v3sf-muted); }
.v3sf__counts { display: inline-flex; gap: 12px; }
.v3sf__count { display: inline-flex; align-items: center; gap: 4px; }
.v3sf__count::before { content: ""; width: 15px; height: 15px; background: currentColor; -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; opacity: 0.8; }
.v3sf__count--likes::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 21h4V9H2v12zm20-11a2 2 0 0 0-2-2h-6.3l1-4.6v-.3c0-.4-.2-.8-.4-1.1L13.2 1 6.6 7.6c-.4.4-.6.9-.6 1.4v10a2 2 0 0 0 2 2h9c.8 0 1.5-.5 1.8-1.2l3-7.1c.1-.2.2-.5.2-.7v-2z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 21h4V9H2v12zm20-11a2 2 0 0 0-2-2h-6.3l1-4.6v-.3c0-.4-.2-.8-.4-1.1L13.2 1 6.6 7.6c-.4.4-.6.9-.6 1.4v10a2 2 0 0 0 2 2h9c.8 0 1.5-.5 1.8-1.2l3-7.1c.1-.2.2-.5.2-.7v-2z'/%3E%3C/svg%3E"); }
.v3sf__count--comments::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 4H3a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h4v4l5-4h9a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 4H3a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h4v4l5-4h9a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1z'/%3E%3C/svg%3E"); }
.v3sf__count--shares::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 5v4C7 10 4 15 3 20c2.5-3.5 6-5.1 11-5.1V19l7-7-7-7z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 5v4C7 10 4 15 3 20c2.5-3.5 6-5.1 11-5.1V19l7-7-7-7z'/%3E%3C/svg%3E"); }
.v3sf__post-links a, .v3sf__share { color: var(--v3sf-accent) !important; text-decoration: none !important; }
.v3sf__post-links a:hover, .v3sf__share:hover { text-decoration: underline !important; }
.v3sf__share { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }

/* ---------- Post popup ---------- */
html.v3sf-lb-open { overflow: hidden; }
.v3sf-lb {
	--lb-ink: #1d1f23;
	--lb-muted: #646970;
	--lb-line: #e8e8e4;
	--lb-arrow-size: 48px;
	--lb-arrow-color: #1d1f23;
	--lb-arrow-bg: rgba(255, 255, 255, 0.9);
	/* Always leave room beside the popup for the arrows. */
	width: min(1040px, calc(100vw - 2 * (var(--lb-arrow-size) + 28px)));
	max-width: none;
	height: min(680px, calc(100vh - 80px));
	max-height: none;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	overflow: visible;
	color: var(--lb-ink);
	font-size: 15px;
	line-height: 1.5;
}
.v3sf-lb::backdrop { background: rgba(10, 10, 12, 0.82); }
.v3sf-lb * { box-sizing: border-box; }
.v3sf-lb button { font: inherit; }
.v3sf-lb__panel {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	height: 100%;
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
/* ---- Video mode (YouTube): the video fills the popup; details on request ---- */
.v3sf-lb__details { display: none; }
.v3sf-lb--video {
	--lb-video-w: min(1280px, calc(100vw - 2 * (var(--lb-arrow-size) + 28px)), calc((100vh - 150px) * 16 / 9));
	width: var(--lb-video-w);
	height: fit-content; /* "auto" would stretch a modal dialog to the full screen height. */
}
.v3sf-lb--video .v3sf-lb__panel { grid-template-columns: minmax(0, 1fr); height: auto; background: #000; }
.v3sf-lb--video .v3sf-lb__media { aspect-ratio: 16 / 9; }
.v3sf-lb--video .v3sf-lb__embed { width: 100%; height: 100%; max-height: none; aspect-ratio: auto; }
.v3sf-lb--video .v3sf-lb__info { display: none; }
.v3sf-lb--video.v3sf-lb--details { width: min(calc(var(--lb-video-w) + 340px), calc(100vw - 2 * (var(--lb-arrow-size) + 28px))); }
.v3sf-lb--video.v3sf-lb--details .v3sf-lb__panel { grid-template-columns: minmax(0, 1fr) 340px; }
/* contain: size keeps long descriptions from stretching the popup; they scroll instead. */
.v3sf-lb--video.v3sf-lb--details .v3sf-lb__info { display: flex; contain: size; overflow-y: auto; background: #fff; }
.v3sf-lb--video .v3sf-lb__author { padding-right: 0; }

/* Close and Details sit above the video so they never cover the player's controls. */
.v3sf-lb--video .v3sf-lb__close,
.v3sf-lb--video .v3sf-lb__details {
	position: absolute;
	top: -48px;
	height: 38px;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
}
.v3sf-lb--video .v3sf-lb__close { right: 0; width: 38px; }
.v3sf-lb--video .v3sf-lb__close:hover, .v3sf-lb--video .v3sf-lb__details:hover { background: rgba(255, 255, 255, 0.26); }
.v3sf-lb--video .v3sf-lb__details {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	right: 48px;
	padding: 0 14px 0 11px;
	border: 0;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}
.v3sf-lb--video .v3sf-lb__details svg { width: 18px; height: 18px; }
.v3sf-lb--video.v3sf-lb--details .v3sf-lb__details { background: #fff; color: #1d1f23; }
.v3sf-lb--nomedia .v3sf-lb__panel { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
.v3sf-lb--nomedia .v3sf-lb__media { display: none; }

.v3sf-lb__media { position: relative; background: #0d0e10; min-height: 0; display: flex; align-items: center; justify-content: center; }
.v3sf-lb__stage { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.v3sf-lb__img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
video.v3sf-lb__img { width: 100%; height: 100%; background: #000; }
.v3sf-lb__embed { width: 100%; aspect-ratio: 16 / 9; height: auto; max-height: 100%; border: 0; background: #000; }
.v3sf-lb__fallback { position: relative; display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; text-decoration: none; }
.v3sf-lb__play {
	position: absolute;
	padding: 10px 18px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	font-weight: 600;
}

.v3sf-lb__slide, .v3sf-lb__nav, .v3sf-lb__close {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	cursor: pointer;
	line-height: 1;
}
.v3sf-lb__slide {
	--lb-slide-size: max(30px, calc(var(--lb-arrow-size) * 0.72));
	position: absolute;
	top: 50%;
	width: var(--lb-slide-size);
	height: var(--lb-slide-size);
	margin-top: calc(var(--lb-slide-size) / -2);
	border-radius: 50%;
	background: var(--lb-arrow-bg);
	color: var(--lb-arrow-color);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.v3sf-lb__slide--prev { left: 12px; }
.v3sf-lb__slide--next { right: 12px; }
.v3sf-lb__dots {
	position: absolute;
	bottom: 14px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 6px;
	padding: 6px 8px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.35);
}
.v3sf-lb__dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.55); cursor: pointer; }
.v3sf-lb__dot.is-active { background: #fff; }

.v3sf-lb__nav {
	position: absolute;
	top: 50%;
	width: var(--lb-arrow-size);
	height: var(--lb-arrow-size);
	margin-top: calc(var(--lb-arrow-size) / -2);
	border-radius: 50%;
	background: var(--lb-arrow-bg);
	color: var(--lb-arrow-color);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
	transition: transform 0.15s ease, filter 0.15s ease;
}
.v3sf-lb__nav:hover, .v3sf-lb__slide:hover { transform: scale(1.06); filter: brightness(1.05); }
.v3sf-lb__nav--prev { left: calc(-1 * (var(--lb-arrow-size) + 14px)); }
.v3sf-lb__nav--next { right: calc(-1 * (var(--lb-arrow-size) + 14px)); }
.v3sf-lb__nav svg, .v3sf-lb__slide svg { width: 46%; height: 46%; display: block; }

/* Arrow shapes (per feed). */
.v3sf-lb[data-arrows="rounded"] .v3sf-lb__nav, .v3sf-lb[data-arrows="rounded"] .v3sf-lb__slide { border-radius: 25%; }
.v3sf-lb[data-arrows="square"] .v3sf-lb__nav, .v3sf-lb[data-arrows="square"] .v3sf-lb__slide { border-radius: 0; }
.v3sf-lb[data-arrows="plain"] .v3sf-lb__nav, .v3sf-lb[data-arrows="plain"] .v3sf-lb__slide { background: transparent; box-shadow: none; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6)); }
.v3sf-lb[data-arrows="plain"] .v3sf-lb__nav svg, .v3sf-lb[data-arrows="plain"] .v3sf-lb__slide svg { width: 80%; height: 80%; }
.v3sf-lb__close {
	position: absolute;
	top: 10px;
	right: 12px;
	z-index: 2;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.06);
	color: var(--lb-ink);
	font-size: 24px;
}
.v3sf-lb__close:hover { background: rgba(0, 0, 0, 0.12); }
.v3sf-lb [hidden] { display: none !important; }
.v3sf-lb button:focus-visible, .v3sf-lb a:focus-visible { outline: 2px solid #2271b1; outline-offset: 2px; }

.v3sf-lb__info { display: flex; flex-direction: column; min-height: 0; padding: 22px 24px 18px; }
.v3sf-lb__author { display: flex; align-items: center; gap: 10px; padding-right: 36px; margin-bottom: 14px; }
.v3sf-lb__avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; }
.v3sf-lb__avatar--initials { display: flex; align-items: center; justify-content: center; background: #e6efc4; color: #2c3a10; font-size: 13px; font-weight: 700; }
.v3sf-lb__who { color: var(--lb-ink) !important; text-decoration: none !important; min-width: 0; overflow-wrap: anywhere; }
.v3sf-lb__who:hover strong { text-decoration: underline; }
.v3sf-lb__platform { width: 16px; height: 16px; flex: none; background: center / contain no-repeat; opacity: 0.6; }
.v3sf-lb__platform--instagram { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231d1f23' fill-rule='evenodd' d='M12 7a5 5 0 1 0 0 10 5 5 0 0 0 0-10zm0 8.2a3.2 3.2 0 1 1 0-6.4 3.2 3.2 0 0 1 0 6.4zM17.3 5.5a1.2 1.2 0 1 0 0 2.4 1.2 1.2 0 0 0 0-2.4zM12 2c-2.7 0-3 0-4.1.1C4.3 2.3 2.3 4.3 2.1 7.9 2 9 2 9.3 2 12s0 3 .1 4.1c.2 3.6 2.2 5.6 5.8 5.8 1.1.1 1.4.1 4.1.1s3 0 4.1-.1c3.6-.2 5.6-2.2 5.8-5.8.1-1.1.1-1.4.1-4.1s0-3-.1-4.1c-.2-3.6-2.2-5.6-5.8-5.8C15 2 14.7 2 12 2z'/%3E%3C/svg%3E"); }
.v3sf-lb__platform--facebook { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231d1f23' d='M14 8V6c0-.9.2-1.4 1.6-1.4H17V1.2C16.7 1.1 15.7 1 14.6 1 12.2 1 10.5 2.5 10.5 5.2V8H8v3.6h2.5V23H14V11.6h2.8L17.2 8z'/%3E%3C/svg%3E"); }
.v3sf-lb__platform--youtube { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231d1f23' d='M21.6 7.2a2.5 2.5 0 0 0-1.8-1.8C18.2 5 12 5 12 5s-6.2 0-7.8.4a2.5 2.5 0 0 0-1.8 1.8C2 8.8 2 12 2 12s0 3.2.4 4.8a2.5 2.5 0 0 0 1.8 1.8C5.8 19 12 19 12 19s6.2 0 7.8-.4a2.5 2.5 0 0 0 1.8-1.8c.4-1.6.4-4.8.4-4.8s0-3.2-.4-4.8zM10 15V9l5.2 3z'/%3E%3C/svg%3E"); }
.v3sf-lb__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; margin-right: -8px; padding-right: 8px; }
.v3sf-lb__title { margin: 0 0 10px; font-size: 17px; line-height: 1.35; }
.v3sf-lb__text { white-space: pre-line; overflow-wrap: anywhere; color: #3a3e45; }
.v3sf-lb__text a { color: #0b5cad; text-decoration: none; }
.v3sf-lb__text a:hover { text-decoration: underline; }
.v3sf-lb__meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--lb-line); color: var(--lb-muted); font-size: 13px; }
.v3sf-lb__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.v3sf-lb__action {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0 14px;
	border: 1px solid #d5d5cf;
	border-radius: 999px;
	background: #fff;
	color: var(--lb-ink) !important;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
	cursor: pointer;
}
.v3sf-lb__action:hover { background: #f4f4f1; }
.v3sf-lb__hide { align-self: flex-start; margin-top: 12px; padding: 0; border: 0; background: none; color: #8a2424; font-size: 13px; cursor: pointer; text-decoration: underline; }

@media (max-width: 860px) {
	.v3sf-lb {
		width: 100vw;
		height: 100vh;
		height: 100dvh;
		max-width: 100vw;
		max-height: 100dvh;
		margin: 0;
		border-radius: 0;
	}
	.v3sf-lb__panel, .v3sf-lb--video .v3sf-lb__panel, .v3sf-lb--video.v3sf-lb--details .v3sf-lb__panel {
		grid-template-columns: 1fr;
		grid-template-rows: auto minmax(0, 1fr);
		border-radius: 0;
	}
	.v3sf-lb__media { max-height: 58vh; min-height: 240px; }
	.v3sf-lb__img { max-height: 58vh; }
	.v3sf-lb__nav { display: none; }
	.v3sf-lb__close { position: fixed; top: 10px; right: 10px; background: rgba(0, 0, 0, 0.55); color: #fff; }
	.v3sf-lb__info { padding: 16px 16px 20px; }
	.v3sf-lb__author { padding-right: 0; }

	/* Phones: video across the top, details below it when opened. */
	.v3sf-lb--video, .v3sf-lb--video.v3sf-lb--details { width: 100vw; height: 100vh; height: 100dvh; }
	.v3sf-lb--video .v3sf-lb__panel { height: 100%; grid-template-rows: auto; align-content: center; }
	/* With details open: room above the video for the buttons, info scrolls below. */
	.v3sf-lb--video.v3sf-lb--details .v3sf-lb__panel { align-content: start; grid-template-rows: auto minmax(0, 1fr); padding-top: 58px; }
	.v3sf-lb--video .v3sf-lb__media { min-height: 0; max-height: none; }
	.v3sf-lb--video.v3sf-lb--details .v3sf-lb__info { contain: none; }
	.v3sf-lb--video .v3sf-lb__close, .v3sf-lb--video .v3sf-lb__details { position: fixed; top: 10px; z-index: 3; background: rgba(255, 255, 255, 0.18); }
	.v3sf-lb--video .v3sf-lb__close { right: 10px; }
	.v3sf-lb--video .v3sf-lb__details { right: 56px; }
}

@media (prefers-reduced-motion: reduce) {
	.v3sf__media img { transition: none; }
	.v3sf--carousel .v3sf__viewport { scroll-behavior: auto; }
}

/* ---------- Theme-proofing ----------
 * Page builders (Salient/WPBakery, Divi, Elementor themes...) style every
 * image and link in page content ("width: 100%", margins, borders,
 * underlines). These rules keep the feed and popup looking the same on any
 * theme. The doubled class wins over typical builder selectors; !important is
 * kept to the few properties that break layout when overridden.
 */
.v3sf.v3sf img, .v3sf-lb.v3sf-lb img {
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	box-shadow: none !important;
	vertical-align: top;
}
.v3sf.v3sf a, .v3sf-lb.v3sf-lb a { border-bottom: 0 !important; box-shadow: none !important; }
.v3sf.v3sf .v3sf__post-name, .v3sf.v3sf .v3sf__post-when, .v3sf.v3sf .v3sf__media, .v3sf.v3sf .v3sf__post-media,
.v3sf.v3sf .v3sf__post-album, .v3sf.v3sf .v3sf__follow, .v3sf.v3sf .v3sf__date, .v3sf.v3sf .v3sf__textlink { text-decoration: none !important; }
.v3sf.v3sf p { margin-top: 0; }
.v3sf.v3sf .v3sf__post-text p { margin: 0 0 10px !important; }

/* Profile pictures: fixed circles. */
.v3sf.v3sf .v3sf__post-avatar { width: 40px !important; height: 40px !important; min-width: 40px; max-width: 40px !important; }
.v3sf.v3sf .v3sf__avatar { width: 56px !important; height: 56px !important; min-width: 56px; max-width: 56px !important; }
.v3sf-lb.v3sf-lb .v3sf-lb__avatar { width: 38px !important; height: 38px !important; min-width: 38px; max-width: 38px !important; }
.v3sf.v3sf .v3sf__post-avatar, .v3sf.v3sf .v3sf__avatar, .v3sf-lb.v3sf-lb .v3sf-lb__avatar { display: block !important; border-radius: 50% !important; object-fit: cover !important; }

/* Post images: block-level, cropped where the layout says so. */
.v3sf.v3sf .v3sf__media img, .v3sf.v3sf .v3sf__post-media img, .v3sf.v3sf .v3sf__post-lead img, .v3sf.v3sf .v3sf__post-thumb img {
	display: block !important;
	width: 100% !important;
	object-fit: cover !important;
}
.v3sf.v3sf .v3sf__post-thumb img { height: auto !important; aspect-ratio: 1 / 1 !important; }
.v3sf.v3sf .v3sf__post-album--1 .v3sf__post-thumb img { aspect-ratio: 16 / 9 !important; }
.v3sf.v3sf .v3sf__media, .v3sf.v3sf .v3sf__post-media, .v3sf.v3sf .v3sf__post-lead, .v3sf.v3sf .v3sf__post-thumb { line-height: 0; }
.v3sf.v3sf .v3sf__post-more, .v3sf.v3sf .v3sf__overlay { line-height: 1.3; }
.v3sf.v3sf a:focus:not(:focus-visible) { outline: none; }
