/*!
 * factoHR LinkedIn Feed – styles.
 *
 * The markup uses factohr.com's own classes: card, avatar avatar-sm, btn btn-primary btn-hover1,
 * btn-main + new-btn (Load More), normal-link, testimonial-nav-btn, vp-bigplay (video play button),
 * CareerLoader (video loader), heading-4/5,
 * font-12…16, font-medium/semibold/bold. This file adds only the layout and colours of the plugin's
 * own parts (flf-*). Fonts are the website's (--Font-Face-* of factohr.com, else the page's font).
 * Classes a page does not have come from flf-feed-fallback.css (flf-nods / flf-no-newbtn).
 */

.flf-feed,
.flf-modal,
.flf-toast {
	--flf-accent: var(--flf-brand-accent, var(--primary-blue-500, #0649ED));
	--flf-accent-hover: var(--flf-brand-accent-dark, var(--primary-blue-600, #0632DA));
	--flf-accent-50: var(--primary-blue-50, #EBF3FE);
	--flf-linkedin: #0A66C2;
	--flf-heading: var(--heading-color, #222);
	--flf-body: var(--body-color, #333);
	--flf-muted: var(--gray-500, #6B7280);
	--flf-muted-dark: var(--gray-600, #4B5563);
	--flf-gray-50: var(--gray-50, #F9FAFB);
	--flf-gray-100: var(--gray-100, #F3F4F6);
	--flf-gray-200: var(--gray-200, #E5E7EB);
	--flf-gray-300: var(--gray-300, #D1D5DB);
	--flf-gray-900: var(--gray-900, #111827);
	--flf-radius: var(--flf-brand-radius, var(--border-radius-md, 15px));
	--flf-gap: 24px;
	--flf-pad: 20px;
	font-family: var(--Font-Face-Regular); /* Not set on the page: the page's own font. */
}
/* Full width even when the shortcode sits straight inside a Bootstrap .row (a flex row) without a column. */
.flf-feed { position: relative; display: block; width: 100%; max-width: 100%; flex: 0 0 100%; min-width: 0; color: var(--flf-body); }
.flf-feed *, .flf-modal *, .flf-feed ::before, .flf-modal ::before, .flf-feed ::after, .flf-modal ::after { box-sizing: border-box; }
/* The hidden attribute must win over display rules from the theme and from this file. */
.flf-feed [hidden], .flf-modal [hidden] { display: none !important; }
.flf-feed img, .flf-modal img { max-width: 100%; }
.flf-feed svg, .flf-modal svg, .flf-toast svg { display: inline-block; width: 1em; height: 1em; flex-shrink: 0; vertical-align: middle; }
/* Links as on factohr.com: no underline, also on hover. */
.flf-feed a, .flf-modal a, .flf-feed a:hover, .flf-modal a:hover, .flf-feed a:focus, .flf-modal a:focus { text-decoration: none; }
.flf-feed :focus-visible, .flf-modal :focus-visible { outline: 2px solid var(--flf-accent); outline-offset: 2px; }
.flf-sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.flf-feed .btn, .flf-modal .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.flf-feed .btn svg, .flf-modal .btn svg { width: 18px; height: 18px; }
.flf-feed .btn:disabled, .flf-modal .btn:disabled { opacity: .45; cursor: default; }
.flf-feed .flf-btn-sm, .flf-modal .flf-btn-sm { min-height: 36px; padding: 6px 14px; font-size: 13px; line-height: 20px; }

/* ---------- Company header: like the top of a LinkedIn page ---------- */
.flf-header { display: flex; flex-direction: column; margin: 0 0 32px; overflow: hidden; container-type: inline-size; }
.flf-cover {
	position: relative; height: 180px; height: clamp(96px, 16vw, 260px); height: clamp(96px, calc(100cqw / var(--flf-cover-ar, 6)), 260px);
	background:
		radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .18) 0 18%, transparent 19%),
		linear-gradient(120deg, #0649ED 0%, #0E209D 55%, #3B0F86 100%);
}
.flf-cover img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.flf-header-body { padding: 0 24px 24px; }
.flf-header-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.flf-logo-link { flex-shrink: 0; margin-top: -52px; position: relative; z-index: 1; line-height: 0; }
.flf-logo {
	width: 104px; height: 104px; object-fit: contain; background: #fff;
	border: 4px solid #fff; border-radius: var(--flf-radius); box-shadow: 0 0 10px rgba(0, 0, 0, .1);
}
.flf-logo.flf-initial { display: flex; align-items: center; justify-content: center; font-size: 40px; color: var(--flf-accent); background: var(--flf-accent-50); }
.flf-header-actions { padding-top: 16px; }
.flf-header-info { margin-top: 12px; min-width: 0; }
.flf-feed .flf-company { display: inline; color: var(--flf-heading); }
.flf-feed .flf-company:hover { color: var(--flf-accent); }
.flf-feed .flf-verified { width: 20px; height: 20px; margin: -4px 0 0 6px; color: var(--flf-accent); }
.flf-tagline { display: block; margin-top: 2px; color: var(--flf-body); }
.flf-followers { display: block; margin-top: 4px; color: var(--flf-muted); }
.flf-header-compact .flf-header-body { padding: 16px 20px; }
.flf-header-compact .flf-header-top { align-items: center; }
.flf-header-compact .flf-logo-link { margin-top: 0; }
.flf-header-compact .flf-logo { width: 56px; height: 56px; border-width: 1px; border-color: var(--flf-gray-200); box-shadow: none; }
.flf-header-compact .flf-header-info { margin: 0 auto 0 0; flex: 1 1 auto; }
.flf-header-compact .flf-header-actions { padding-top: 0; }

/* ---------- Grid ---------- */
.flf-masonry { display: flex; align-items: flex-start; gap: var(--flf-gap); }
.flf-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--flf-gap); }
.flf-offscreen { position: absolute; left: -10000px; top: 0; visibility: hidden; pointer-events: none; }

/* ---------- Post card (factohr.com's card) ---------- */
.flf-post { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; container-type: inline-size; transition: transform .2s ease; }
.flf-post.is-clickable { cursor: pointer; }
.flf-post.is-clickable:hover { transform: translateY(-3px); }
.flf-post.is-new { animation: flf-in .35s ease both; }
@keyframes flf-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.flf-context { display: flex; align-items: center; gap: 10px; padding: 10px var(--flf-pad); border-bottom: 1px solid var(--flf-gray-100); color: var(--flf-muted-dark); }
.flf-context span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flf-context svg { font-size: 16px; }
/* Post header: logo · name over "followers • time" · LinkedIn logo, all on one centre line. */
.flf-post-head { display: flex; align-items: center; gap: 12px; padding: 16px var(--flf-pad) 0; }
/* Logo size (logo_size): factohr.com's avatar (32px), avatar-sm (40px), avatar-md (50px), spaced like its lists. */
.flf-logo-small .flf-post-head { gap: 10px; }
.flf-logo-large .flf-post-head { gap: 14px; }
.flf-feed.flf-logo-small .avatar.flf-initial { font-size: 14px; }
.flf-feed.flf-logo-large .avatar.flf-initial { font-size: 18px; }
.flf-logo-small .flf-sk.flf-sk-avatar { width: 32px; height: 32px; }
.flf-logo-large .flf-sk.flf-sk-avatar { width: 50px; height: 50px; }
.flf-feed .avatar, .flf-modal .avatar { flex-shrink: 0; object-fit: cover; border: 1px solid var(--flf-gray-200); }
.flf-feed .avatar.flf-square, .flf-modal .avatar.flf-square { border-radius: 8px; }
.flf-feed .avatar.flf-initial, .flf-modal .avatar.flf-initial { font-size: 16px; color: var(--flf-accent); background: var(--flf-accent-50); }
.flf-avatar-link { flex-shrink: 0; line-height: 0; }
.flf-who { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.flf-feed .flf-author, .flf-modal .flf-author { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--flf-heading); }
.flf-feed a.flf-author:hover, .flf-modal a.flf-author:hover { color: var(--flf-accent); }
.flf-meta { display: flex; align-items: center; gap: 4px; min-width: 0; margin-top: 1px; white-space: nowrap; color: var(--flf-muted); }
.flf-meta > * { flex-shrink: 0; }
.flf-meta > .flf-headline { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.flf-feed .flf-li-link, .flf-modal .flf-li-link { flex-shrink: 0; display: inline-flex; align-self: center; font-size: 20px; line-height: 1; transition: opacity .15s; }
.flf-feed .flf-li-link svg, .flf-modal .flf-li-link svg { border-radius: 4px; }
.flf-feed .flf-li-link:hover, .flf-modal .flf-li-link:hover { opacity: .85; }

/* Text: a few lines, then "…more" */
.flf-post-text { position: relative; padding: 12px var(--flf-pad) 0; }
.flf-text, .flf-modal-text { overflow-wrap: anywhere; color: var(--flf-body); }
.flf-post-text.is-clamped .flf-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--flf-lines, 4); overflow: hidden; }
.flf-feed .flf-more {
	position: absolute; right: var(--flf-pad); bottom: 0; padding: 0 0 0 36px; margin: 0; border: 0; cursor: pointer; color: var(--flf-muted-dark);
	background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0, #fff 30px);
}
.flf-feed .flf-more:hover { color: var(--flf-accent); }
.flf-feed .flf-less { display: block; margin: 6px 0 0; cursor: pointer; }
.flf-feed .flf-less:hover { color: var(--flf-accent-hover); }
.flf-feed a.flf-hashtag, .flf-modal a.flf-hashtag, .flf-feed a.flf-mention, .flf-modal a.flf-mention, .flf-feed a.flf-link, .flf-modal a.flf-link {
	font-family: var(--Font-Face-SemiBold); color: var(--flf-accent);
}
.flf-feed a.flf-hashtag:hover, .flf-modal a.flf-hashtag:hover, .flf-feed a.flf-mention:hover, .flf-modal a.flf-mention:hover, .flf-feed a.flf-link:hover, .flf-modal a.flf-link:hover { color: var(--flf-accent-hover); }

/* Media */
.flf-media { margin-top: 12px; }
.flf-collage { display: grid; gap: 2px; background: #fff; }
.flf-tile { position: relative; min-height: 0; min-width: 0; overflow: hidden; aspect-ratio: 1; background: var(--flf-gray-100); cursor: zoom-in; }
.flf-tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.flf-post:hover .flf-tile img { transform: scale(1.02); }
/* The photo's own proportions (from its width and height): one photo, and the first row of a grid. */
.flf-collage-1 .flf-tile, .flf-collage-2 .flf-tile, .flf-collage-3 .flf-tile:first-child,
.flf-collage-4 .flf-tile:first-child, .flf-collage-5 .flf-tile:nth-child(-n+2) { aspect-ratio: var(--flf-ar, 1.333); }
.flf-collage-1.is-natural .flf-tile { aspect-ratio: auto; }
.flf-collage-1.is-natural .flf-tile img { height: auto; }
.flf-collage-2, .flf-collage-3 { grid-template-columns: 1fr 1fr; }
.flf-collage-3 .flf-tile:first-child, .flf-collage-4 .flf-tile:first-child { grid-column: 1 / -1; }
.flf-collage-4 { grid-template-columns: repeat(3, 1fr); }
.flf-collage-5 { grid-template-columns: repeat(6, 1fr); }
.flf-collage-5 .flf-tile:nth-child(-n+2) { grid-column: span 3; }
.flf-collage-5 .flf-tile:nth-child(n+3) { grid-column: span 2; }
.flf-tile-more { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center; background: rgba(17, 24, 39, .55); color: #fff; font-size: 26px; }

/* Document: swipe through the pages right in the card */
.flf-doc { position: relative; background: var(--flf-gray-100); }
.flf-doc-bar { display: flex; align-items: center; gap: 10px; padding: 10px var(--flf-pad); background: #fff; border-top: 1px solid var(--flf-gray-100); color: var(--flf-muted); }
.flf-doc-bar svg { font-size: 16px; }
.flf-doc-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--flf-heading); }
.flf-doc-pages { flex-shrink: 0; }
.flf-doc-stage { position: relative; aspect-ratio: var(--flf-ar, .8); }
.flf-track {
	position: relative; display: flex; height: 100%;
	overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
	scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.flf-track::-webkit-scrollbar { display: none; }
.flf-track > * { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.flf-doc-page { display: flex; align-items: center; justify-content: center; height: 100%; cursor: zoom-in; }
.flf-doc-page img { display: block; width: 100%; height: 100%; object-fit: contain; }
.flf-count { position: absolute; left: 12px; bottom: 12px; z-index: 2; padding: 0 10px; border-radius: 999px; background: rgba(17, 24, 39, .72); color: #fff; }
.flf-progress { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 3px; background: rgba(0, 0, 0, .06); }
.flf-progress span { display: block; height: 100%; background: var(--flf-accent); transition: width .25s ease; }

/* Arrows over photos and pages: a round white disc like factohr.com's play button. */
.flf-feed .flf-arrow, .flf-modal .flf-arrow {
	position: absolute; top: 50%; z-index: 2; display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; margin-top: -20px; padding: 0; border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .9); color: var(--flf-accent); cursor: pointer;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .18); transition: opacity .2s, background-color .2s, transform .2s;
}
.flf-feed .flf-arrow svg, .flf-modal .flf-arrow svg { width: 22px; height: 22px; }
.flf-feed .flf-arrow:hover, .flf-modal .flf-arrow:hover { background: #fff; transform: scale(1.08); }
.flf-feed .flf-arrow:disabled, .flf-modal .flf-arrow:disabled { opacity: 0; pointer-events: none; }
.flf-arrow.flf-prev { left: 12px; }
.flf-arrow.flf-next { right: 12px; }
.flf-feed .flf-doc .flf-arrow { opacity: 0; pointer-events: none; }
.flf-feed .flf-doc:hover .flf-arrow:not(:disabled), .flf-feed .flf-doc:focus-within .flf-arrow:not(:disabled) { opacity: 1; pointer-events: auto; }
@media (hover: none) { .flf-feed .flf-doc .flf-arrow:not(:disabled) { opacity: 1; pointer-events: auto; } }

/* Video: factohr.com's video play button (vp-bigplay, as in the "Why factoHR" video): white disc,
   orange play mark. */
.flf-video-thumb { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: var(--flf-ar, 1.778); background: #000; overflow: hidden; cursor: pointer; }
.flf-video-thumb > img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.flf-video-thumb::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .35) 100%); pointer-events: none; }
.flf-feed .vp-bigplay, .flf-modal .vp-bigplay {
	position: absolute; top: 50%; left: 50%; z-index: 1; transform: translate(-50%, -50%); width: 56px; height: 56px;
	display: flex; align-items: center; justify-content: center; border-radius: 999px; background: rgba(255, 255, 255, .75);
	transition: transform .2s, background-color .2s;
}
.flf-feed .vp-bigplay svg, .flf-modal .vp-bigplay svg { width: 18px; height: 21px; margin-left: 4px; }
.flf-video-thumb:hover .vp-bigplay, .flf-player:hover .vp-bigplay, .flf-watch:hover .vp-bigplay { background: #fff; transform: translate(-50%, -50%) scale(1.08); }
.flf-duration { position: absolute; right: 12px; bottom: 12px; z-index: 1; padding: 0 8px; border-radius: 6px; background: rgba(17, 24, 39, .75); color: #fff; }
.flf-video-thumb.is-video-ready { cursor: default; }
.flf-video-thumb.is-video-ready::after { display: none; }
.flf-video { display: block; width: 100%; height: 100%; background: #000; object-fit: contain; }
/* factohr.com's loader (CareerLoader, from /career/'s career-post-loader) over a video that is starting or waiting for data. */
.flf-video-wait { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 2; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.flf-loading { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 200px; }
.flf-video-error { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; text-align: center; color: #fff; background: rgba(11, 15, 20, .88); }
.flf-video-error p { margin: 0; }

/* Browsers without aspect-ratio (Firefox < 89, Safari < 15, Chrome < 88): the same proportions
   with the padding technique, the content laid over it. */
@supports not (aspect-ratio: 1 / 1) {
	.flf-tile, .flf-doc-stage, .flf-video-thumb, .flf-article-img { position: relative; height: 0; padding-bottom: 100%; }
	.flf-collage-1 .flf-tile, .flf-collage-2 .flf-tile, .flf-collage-3 .flf-tile:first-child,
	.flf-collage-4 .flf-tile:first-child, .flf-collage-5 .flf-tile:nth-child(-n+2) { padding-bottom: calc(100% / var(--flf-ar, 1.333)); }
	.flf-collage-1.is-natural .flf-tile { height: auto; padding-bottom: 0; }
	.flf-doc-stage { padding-bottom: calc(100% / var(--flf-ar, .8)); }
	.flf-video-thumb { padding-bottom: calc(100% / var(--flf-ar, 1.778)); }
	.flf-article-img { padding-bottom: 52.36%; }
	.flf-tile img, .flf-article-img img, .flf-doc-stage > .flf-track, .flf-video-thumb > .flf-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
	.flf-collage-1.is-natural .flf-tile img { position: static; height: auto; }
}

/* Shared article / link */
.flf-feed .flf-article, .flf-modal .flf-article { display: block; background: var(--flf-gray-50); border-top: 1px solid var(--flf-gray-100); border-bottom: 1px solid var(--flf-gray-100); }
.flf-feed .flf-article:hover, .flf-modal .flf-article:hover { background: var(--flf-accent-50); }
.flf-article-img { display: block; aspect-ratio: 1.91 / 1; overflow: hidden; background: var(--flf-gray-100); }
.flf-article-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.flf-article-text { display: flex; flex-direction: column; gap: 2px; padding: 10px var(--flf-pad) 12px; }
.flf-article-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: var(--flf-heading); }
.flf-article-sub { color: var(--flf-muted-dark); }
.flf-article-meta { color: var(--flf-muted); }
.flf-modal .flf-article { margin-top: 16px; border: 1px solid var(--flf-gray-200); border-radius: 10px; overflow: hidden; }

/* One line: reactions + count · comments · reposts · Send */
.flf-social { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding: 10px var(--flf-pad) 12px; min-height: 46px; color: var(--flf-muted); }
.flf-reactions { display: flex; align-items: center; gap: 6px; }
.flf-react-icons { display: inline-flex; }
.flf-react { display: inline-flex; width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.flf-react + .flf-react { margin-left: -4px; }
.flf-react svg { width: 18px !important; height: 18px !important; }
.flf-social-right { display: flex; align-items: center; gap: 10px; min-width: 0; }
.flf-counts { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flf-feed .flf-send, .flf-modal .flf-send {
	display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
	width: 36px; height: 36px; padding: 0; margin: 0 -8px 0 0; border: 0; border-radius: 50%;
	background: transparent; color: var(--flf-muted-dark); font-size: 20px; cursor: pointer; transition: background-color .15s, color .15s;
}
.flf-feed .flf-send:hover, .flf-modal .flf-send:hover { background: var(--flf-accent-50); color: var(--flf-accent); }
.flf-post > .flf-post-text:last-child, .flf-post > .flf-post-head:last-child { padding-bottom: 16px; }
@container (max-width: 300px) { .flf-post-head, .flf-post-text, .flf-social, .flf-context, .flf-doc-bar, .flf-article-text { --flf-pad: 14px; } }

/* ---------- Loading skeleton ---------- */
.flf-skeleton { display: grid; gap: var(--flf-gap); grid-template-columns: repeat(var(--flf-cols-sm, 1), minmax(0, 1fr)); align-items: start; }
@media (min-width: 768px) { .flf-skeleton { grid-template-columns: repeat(var(--flf-cols-md, 2), minmax(0, 1fr)); } }
@media (min-width: 992px) { .flf-skeleton { grid-template-columns: repeat(var(--flf-cols-lg, 3), minmax(0, 1fr)); } }
.flf-sk-post { padding-bottom: 16px; overflow: hidden; }
.flf-sk-body { padding: 16px var(--flf-pad) 4px; }
.flf-sk { display: block; height: 12px; margin-bottom: 10px; background: linear-gradient(90deg, #EEF0F3 0%, #F7F8FA 40%, #EEF0F3 80%); background-size: 200% 100%; animation: flf-shimmer 1.3s linear infinite; border-radius: 6px; }
.flf-sk-lines { flex: 1; display: flex; flex-direction: column; gap: 8px; padding-top: 6px; }
.flf-sk-lines .flf-sk { margin-bottom: 0; }
.flf-sk.flf-sk-avatar { width: 40px; height: 40px; margin: 0; border-radius: 50%; flex-shrink: 0; }
.flf-sk.flf-sk-media { height: 220px; margin: 8px 0 0; border-radius: 0; }
.flf-w-35 { width: 35%; } .flf-w-60 { width: 60%; } .flf-w-70 { width: 70%; }
@keyframes flf-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.flf-spinner { display: inline-block; width: 36px; height: 36px; border: 3px solid var(--flf-accent-50); border-top-color: var(--flf-accent); border-radius: 50%; animation: flf-spin .8s linear infinite; }
.flf-spinner-sm { width: 16px; height: 16px; border-width: 2px; border-color: currentColor; border-top-color: transparent; }
@keyframes flf-spin { to { transform: rotate(360deg); } }

/* ---------- Empty / error, Load More ---------- */
.flf-message { max-width: 560px; margin: 8px auto 24px; padding: 40px 24px; text-align: center; background: var(--flf-gray-50); border-radius: var(--flf-radius); }
.flf-message-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: 14px; border-radius: 50%; font-size: 26px; background: var(--flf-accent-50); color: var(--flf-accent); }
.flf-message.is-error { background: #FFF4EF; }
.flf-message.is-error .flf-message-icon { background: #FFE5D8; color: #E9360B; }
.flf-message-text { margin: 0 0 18px; color: var(--flf-body); }
.flf-message:not(.is-error) .flf-message-text { margin-bottom: 0; }
.flf-footer { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 32px; }
.flf-footer:empty { display: none; }
.flf-footer .btn-main { width: 100%; }
/* factohr.com's new-btn is written for links: the same look on a <button>. */
.flf-footer .new-btn { border: 0; line-height: 1.5; cursor: pointer; }
.flf-footer .new-btn:disabled { cursor: progress; }
.flf-footer .new-btn .flf-spinner { margin-left: 10px; }
.flf-load-error { margin: 0; color: #C92A08; }
.flf-noscript { margin: 16px 0; text-align: center; }

/* ---------- Slider ---------- */
.flf-slider { position: relative; --flf-n: var(--flf-cols-sm, 1); }
@media (min-width: 768px) { .flf-slider { --flf-n: var(--flf-cols-md, 2); } }
@media (min-width: 992px) { .flf-slider { --flf-n: var(--flf-cols-lg, 3); } }
.flf-slider-track {
	display: flex; gap: var(--flf-gap); align-items: stretch; margin: -12px -8px 0; padding: 12px 8px 16px; scroll-padding: 0 8px;
	overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
}
.flf-slider-track::-webkit-scrollbar { display: none; }
.flf-slide { flex: 0 0 calc((100% - (var(--flf-n) - 1) * var(--flf-gap)) / var(--flf-n)); min-width: 0; display: flex; scroll-snap-align: start; }
.flf-slide > .flf-post { width: 100%; }
.flf-slider-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 12px; }
.flf-slider-nav .testimonial-nav-btn { padding: 0; cursor: pointer; }
.flf-slider-nav .testimonial-nav-btn svg { width: 20px; height: 20px; }
.flf-dots { display: flex; align-items: center; gap: 8px; }
.flf-feed .flf-dot { width: 8px; height: 8px; padding: 0; margin: 0; border: 0; border-radius: 999px; background: var(--flf-gray-300); cursor: pointer; transition: width .2s, background-color .2s; }
.flf-feed .flf-dot.is-active { width: 24px; background: var(--flf-accent); }

/* ---------- Popup (factohr.com modal: white 15px card, round close button on the corner) ---------- */
html.flf-modal-open, html.flf-modal-open body { overflow: hidden !important; }
.flf-modal[hidden] { display: none !important; }
.flf-modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 32px 96px; color: var(--flf-body); }
.flf-backdrop { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .2s ease; }
.flf-modal.is-open .flf-backdrop { opacity: 1; }
.flf-dialog:focus { outline: none; }
.flf-dialog:focus-visible { outline: none; }
.flf-dialog { position: relative; z-index: 1; display: flex; width: 100%; max-width: 1180px; height: 88vh; max-height: 800px; outline: none; opacity: 0; transform: scale(.94); transition: opacity .2s ease, transform .25s ease; }
.flf-modal.is-open .flf-dialog { opacity: 1; transform: none; }
.flf-scroller { width: 100%; height: 100%; }
.flf-slot { display: flex; justify-content: center; width: 100%; height: 100%; }
.flf-modal .flf-frame { flex-direction: row; width: 100%; height: 100%; overflow: hidden; }
.flf-modal .flf-close {
	position: absolute; top: -14px; right: -14px; z-index: 6; display: inline-flex; align-items: center; justify-content: center;
	width: 36px; height: 36px; padding: 0; margin: 0; border: 0; border-radius: 50%; background: #fff; color: #111; font-size: 20px; cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .25); transition: transform .15s, color .15s;
}
.flf-modal .flf-close:hover { color: var(--flf-accent); transform: scale(1.06); }
.flf-modal.is-busy { cursor: progress; }
.flf-modal-media { position: relative; display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; background: var(--flf-gray-100); }
.flf-modal-media.is-video { background: #000; }
.flf-toolbar { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 16px 10px 20px; background: #fff; border-bottom: 1px solid var(--flf-gray-200); color: var(--flf-heading); }
.flf-toolbar svg { font-size: 18px; }
.flf-toolbar-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flf-counter { flex-shrink: 0; white-space: nowrap; color: var(--flf-muted); }
.flf-toolbar .btn { flex-shrink: 0; }
.flf-stage { position: relative; flex: 1 1 auto; min-height: 0; }
.flf-modal-slide { display: flex; align-items: center; justify-content: center; height: 100%; padding: 20px; }
.flf-modal-slide img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 4px; box-shadow: 0 1px 6px rgba(0, 0, 0, .08); }
.flf-stage .flf-arrow.flf-prev { left: 16px; }
.flf-stage .flf-arrow.flf-next { right: 16px; }
.flf-player { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: #000; cursor: pointer; }
.flf-player > img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: contain; }
.flf-player.is-video-ready { cursor: default; }
.flf-watch { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; width: 100%; height: 100%; color: #fff; }
.flf-watch img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: contain; opacity: .5; }
.flf-watch-text { position: absolute; top: calc(50% + 44px); left: 0; right: 0; z-index: 1; text-align: center; }
.flf-modal a.flf-watch:hover { color: #fff; }
.flf-side { display: flex; flex-direction: column; flex: 0 0 420px; min-width: 0; min-height: 0; max-width: 420px; background: #fff; border-left: 1px solid var(--flf-gray-200); }
.flf-modal-head { flex-shrink: 0; border-bottom: 1px solid var(--flf-gray-100); }
.flf-modal-head .flf-post-head { padding: 18px 56px 14px 24px; }
.flf-modal-head .flf-context { padding: 10px 56px 10px 24px; }
.flf-modal-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 16px 24px 20px; overscroll-behavior: contain; }
.flf-modal-foot { flex-shrink: 0; border-top: 1px solid var(--flf-gray-100); }
.flf-modal-foot .flf-social { padding: 8px 24px; }
.flf-cta { padding: 0 24px 20px; }
.flf-cta .btn { width: 100%; }
.flf-pager { display: none; gap: 10px; }
.flf-modal .flf-modal-nav {
	position: absolute; top: 50%; z-index: 2; margin-top: -24px; display: inline-flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--flf-accent); font-size: 28px; cursor: pointer;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .25); transition: transform .15s, opacity .15s;
}
.flf-modal .flf-modal-nav:hover { transform: scale(1.06); }
.flf-modal .flf-modal-nav:disabled { opacity: .35; cursor: default; transform: none; }
.flf-modal-nav.flf-prev { left: 24px; }
.flf-modal-nav.flf-next { right: 24px; }
.flf-modal.is-single .flf-modal-nav { display: none; }
.flf-modal.is-single { padding-left: 32px; padding-right: 32px; }
.flf-dialog.is-text-only { max-width: 680px; height: auto; max-height: 88vh; }
.flf-dialog.is-text-only .flf-scroller, .flf-dialog.is-text-only .flf-slot, .flf-dialog.is-text-only .flf-frame { height: auto; max-height: 88vh; }
.flf-frame.is-text-only .flf-side { flex: 1 1 auto; max-width: none; border-left: 0; }

/* Continuous scrolling through every post: one post per screen, the next one a scroll away. */
.flf-modal.is-continuous .flf-scroller { display: flex; gap: 16px; overflow: auto; overscroll-behavior: contain; scrollbar-width: none; }
.flf-modal.is-continuous .flf-scroller::-webkit-scrollbar { display: none; }
.flf-modal.is-vertical .flf-scroller { flex-direction: column; scroll-snap-type: y mandatory; }
.flf-modal.is-horizontal .flf-scroller { flex-direction: row; scroll-snap-type: x mandatory; }
.flf-modal.is-continuous .flf-slot { flex: 0 0 100%; min-width: 0; min-height: 0; overflow: hidden; scroll-snap-align: start; scroll-snap-stop: always; }
.flf-modal.is-continuous .flf-frame.is-text-only { max-width: 680px; }
.flf-modal.is-vertical .flf-modal-scroll { overscroll-behavior: auto; } /* At the end of the text, scrolling goes on to the next post. */
.flf-modal.is-horizontal .flf-track { overscroll-behavior-x: auto; } /* After the last photo, swiping goes on to the next post. */
.flf-modal.is-vertical .flf-modal-nav { left: auto; right: 24px; }
.flf-modal.is-vertical .flf-modal-nav.flf-prev { margin-top: -56px; }
.flf-modal.is-vertical .flf-modal-nav.flf-next { margin-top: 8px; }
.flf-modal.is-vertical .flf-modal-nav svg { transform: rotate(90deg); }

/* Toast ("Link copied") */
.flf-toast {
	position: fixed; left: 50%; bottom: 28px; z-index: 100001; transform: translate(-50%, 12px); display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
	border-radius: 10px; background: var(--flf-gray-900); color: #fff; font-size: 14px; line-height: 20px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.flf-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive (factohr.com breakpoints: 1199 / 991 / 767 / 575) ---------- */
@media (max-width: 1199.98px) {
	.flf-modal { padding: 28px 80px; }
	.flf-side { flex-basis: 380px; max-width: 380px; }
}
@media (max-width: 991.98px) {
	.flf-modal, .flf-modal.is-single { padding: 24px; }
	.flf-dialog { height: 92vh; height: 92dvh; max-height: 900px; max-width: 760px; }
	.flf-modal .flf-frame { flex-direction: column; }
	.flf-modal-media { flex: 0 0 auto; height: 52%; }
	.flf-modal-media.is-tall { height: 58%; }
	.flf-toolbar { min-height: 48px; padding: 8px 56px 8px 16px; }
	.flf-side { flex: 1 1 auto; max-width: none; border-left: 0; border-top: 1px solid var(--flf-gray-200); }
	.flf-modal .flf-modal-nav { display: none; }
	.flf-pager { display: flex; padding: 0 24px 16px; }
	.flf-pager .btn { flex: 1 1 0; }
	.flf-cta { padding-bottom: 12px; }
	.flf-modal .flf-close { top: 10px; right: 10px; }
	.flf-modal-head .flf-post-head { padding-right: 24px; }
	.flf-dialog.is-text-only .flf-modal-head .flf-post-head, .flf-frame.is-text-only .flf-modal-head .flf-post-head { padding-right: 56px; }
}
@media (max-width: 767.98px) {
	.flf-feed, .flf-modal { --flf-gap: 16px; }
	.flf-header { margin-bottom: 24px; }
	.flf-header-body { padding: 0 16px 16px; }
	.flf-logo-link { margin-top: -40px; }
	.flf-logo { width: 80px; height: 80px; }
	/* Phones: logo, then name / tagline / followers, then a full-width Follow button. */
	.flf-header:not(.flf-header-compact) .flf-header-body { display: flex; flex-direction: column; align-items: flex-start; }
	.flf-header:not(.flf-header-compact) .flf-header-top { display: contents !important; }
	.flf-header:not(.flf-header-compact) .flf-header-info { order: 1; }
	.flf-header:not(.flf-header-compact) .flf-header-actions { order: 2; width: 100%; padding-top: 16px; }
	.flf-header:not(.flf-header-compact) .flf-header-actions .btn { width: 100%; }
	.flf-header-compact .flf-header-top { flex-wrap: wrap; }
	.flf-footer { margin-top: 24px; }
	.flf-modal, .flf-modal.is-single { padding: 0; align-items: flex-end; }
	.flf-dialog, .flf-dialog.is-text-only { width: 100%; max-width: none; height: 94vh; height: 94dvh; max-height: none; transform: translateY(40px); }
	.flf-dialog.is-text-only .flf-scroller, .flf-dialog.is-text-only .flf-slot, .flf-dialog.is-text-only .flf-frame { height: 100%; max-height: none; }
	.flf-modal .flf-frame.card { border-radius: 20px 20px 0 0; }
	.flf-modal.is-continuous .flf-frame.is-text-only { max-width: none; }
	.flf-frame::before { content: ""; position: absolute; top: 6px; left: 50%; z-index: 5; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--flf-gray-300); }
	.flf-modal-media { height: 46%; }
	.flf-modal-media.is-tall { height: 50%; }
	.flf-modal-slide { padding: 12px; }
	.flf-toolbar { min-height: 44px; padding-top: 14px; }
	.flf-toolbar .btn span { display: none; }
	.flf-modal .flf-toolbar .btn { padding: 6px 10px; }
	.flf-modal .flf-stage .flf-arrow { width: 36px; height: 36px; margin-top: -18px; }
	.flf-stage .flf-arrow.flf-prev { left: 8px; }
	.flf-stage .flf-arrow.flf-next { right: 8px; }
	.flf-modal-head .flf-post-head { padding: 14px 16px 12px; }
	.flf-modal-head .flf-context { padding: 10px 56px 10px 16px; }
	.flf-modal-scroll { padding: 14px 16px 16px; }
	.flf-modal-foot .flf-social { padding: 6px 16px; }
	.flf-cta { padding: 0 16px 12px; }
	.flf-pager { padding: 0 16px calc(12px + env(safe-area-inset-bottom)); }
	.flf-cta:last-child { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
	.flf-modal .flf-close { width: 40px; height: 40px; }
	.flf-toast { bottom: calc(20px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
	.flf-post, .flf-post.is-new, .flf-dialog, .flf-backdrop, .flf-sk, .vp-bigplay, .flf-arrow, .flf-tile img, .flf-toast { animation: none !important; transition: none !important; }
	.flf-modal.is-continuous .flf-scroller { scroll-behavior: auto; }
}
