/* FeedKit – (C) 2026 Thrane.nu */
.fk {
	--fk-bg: #ffffff;
	--fk-card: #ffffff;
	--fk-text: #1c1e21;
	--fk-muted: #65676b;
	--fk-line: #e4e6eb;
	--fk-soft: #f0f2f5;
	--fk-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 4px 16px rgba(0, 0, 0, .06);
	--c: var(--fk-cols, 3);
	color: var(--fk-text);
	font-size: 15px;
	line-height: 1.45;
	position: relative;
}

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

@media (max-width: 991.98px) { .fk { --c: var(--fk-cols-t, 2); } }
@media (max-width: 575.98px) { .fk { --c: var(--fk-cols-m, 1); } }

/* Themes */
.fk--theme-dark {
	--fk-card: #242526;
	--fk-text: #e4e6eb;
	--fk-muted: #b0b3b8;
	--fk-line: #3a3b3c;
	--fk-soft: #3a3b3c;
	--fk-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .35);
}

@media (prefers-color-scheme: dark) {
	.fk--theme-auto {
		--fk-card: #242526;
		--fk-text: #e4e6eb;
		--fk-muted: #b0b3b8;
		--fk-line: #3a3b3c;
		--fk-soft: #3a3b3c;
		--fk-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .35);
	}
}

.fk--theme-minimal {
	--fk-card: transparent;
	--fk-shadow: none;
	--fk-line: transparent;
}

.fk--theme-minimal .fk-card { border: 0; }
.fk--theme-minimal .fk-body { padding-inline: 0; }

/* Header */
.fk-headers { display: grid; gap: var(--fk-gap, 16px); margin-bottom: var(--fk-gap, 16px); }

.fk-header {
	background: var(--fk-card);
	border: 1px solid var(--fk-line);
	border-radius: var(--fk-radius, 12px);
	overflow: hidden;
}

.fk--shadow .fk-header { box-shadow: var(--fk-shadow); }

.fk-header__cover { aspect-ratio: 820 / 240; overflow: hidden; background: var(--fk-soft); }
.fk-header__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.fk-header__bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.fk-header--cover .fk-header__avatar { margin-top: -36px; border: 3px solid var(--fk-card); width: 72px; height: 72px; }
.fk-header__avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; background: var(--fk-soft); }
.fk-header__info { min-width: 0; flex: 1; }
.fk-header__name { font-weight: 700; font-size: 1.1em; line-height: 1.2; }
.fk-header__meta { color: var(--fk-muted); font-size: .875em; }

.fk-header__follow,
.fk-more__btn {
	display: inline-block;
	background: var(--fk-accent, #1877f2);
	color: #fff !important;
	border: 0;
	border-radius: 999px;
	padding: .5em 1.1em;
	font: inherit;
	font-weight: 600;
	font-size: .9em;
	text-decoration: none !important;
	cursor: pointer;
	transition: filter .15s;
	flex: none;
}

.fk-header__follow:hover,
.fk-more__btn:hover { filter: brightness(1.08); }

/* Filter */
.fk-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--fk-gap, 16px); }

.fk-filter__btn {
	font: inherit;
	font-size: .875em;
	font-weight: 600;
	padding: .4em 1em;
	border-radius: 999px;
	border: 1px solid var(--fk-line);
	background: var(--fk-card);
	color: var(--fk-text);
	cursor: pointer;
}

.fk-filter__btn.is-active { background: var(--fk-accent, #1877f2); border-color: transparent; color: #fff; }

/* Layouts */
.fk-items { display: grid; gap: var(--fk-gap, 16px); grid-template-columns: repeat(var(--c), minmax(0, 1fr)); }
.fk--list .fk-items { grid-template-columns: minmax(0, 1fr); max-width: 680px; margin-inline: auto; }
.fk--masonry .fk-items { grid-auto-rows: 4px; align-items: start; }
.fk--masonry.is-ready .fk-items { row-gap: var(--fk-gap, 16px); }
.fk--masonry:not(.is-ready) .fk-items { grid-auto-rows: auto; }

.fk-viewport { position: relative; min-width: 0; }

/* Never let the module grow wider than its column (flex/grid parents default to min-width:auto). */
.fk { min-width: 0; max-width: 100%; }
.fk--carousel { width: 100%; contain: inline-size; }
.fk--carousel .fk-items { width: 100%; max-width: 100%; }
.fk-items, .fk-card { position: relative; }

.fk--carousel .fk-items {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding-bottom: 4px;
}

.fk--carousel .fk-items::-webkit-scrollbar { display: none; }

.fk--carousel .fk-card {
	flex: 0 0 calc((100% - (var(--c) - 1) * var(--fk-gap, 16px)) / var(--c));
	scroll-snap-align: start;
}

.fk-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 0;
	background: var(--fk-card);
	color: var(--fk-text);
	box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
	display: grid;
	place-items: center;
}

.fk-nav--prev { left: -12px; }
.fk-nav--next { right: -12px; }
.fk-nav[disabled] { opacity: 0; pointer-events: none; }

@media (max-width: 575.98px) {
	.fk-nav--prev { left: 4px; }
	.fk-nav--next { right: 4px; }
}

.fk-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.fk-dots button { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0; background: var(--fk-line); cursor: pointer; }
.fk-dots button.is-active { background: var(--fk-accent, #1877f2); width: 20px; border-radius: 4px; }

/* Card */
.fk-card {
	background: var(--fk-card);
	border: 1px solid var(--fk-line);
	border-radius: var(--fk-radius, 12px);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform .2s ease, box-shadow .2s ease;
	min-width: 0;
}

.fk--shadow .fk-card { box-shadow: var(--fk-shadow); }
.fk--hover-lift .fk-card:hover { transform: translateY(-3px); }
.fk--hover-zoom .fk-media img { transition: transform .35s ease; }
.fk--hover-zoom .fk-card:hover .fk-media img { transform: scale(1.05); }
.fk-card[hidden], .fk-card.is-filtered, .fk-card.is-more { display: none !important; }

.fk-media {
	display: block;
	position: relative;
	overflow: hidden;
	padding: 0;
	margin: 0;
	border: 0;
	width: 100%;
	background: var(--fk-soft);
	cursor: pointer;
}

.fk-media img { display: block; width: 100%; height: auto; }
.fk--ratio .fk-media img { aspect-ratio: var(--fk-ratio); object-fit: cover; height: auto; }
.fk--grid:not(.fk--ratio) .fk-media img,
.fk--carousel:not(.fk--ratio) .fk-media img { aspect-ratio: 1 / 1; object-fit: cover; }

.fk-media__badge {
	position: absolute;
	top: 10px;
	right: 10px;
	background: rgba(0, 0, 0, .6);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	border-radius: 999px;
	padding: 3px 8px;
}

.fk-media__badge--play { top: 50%; left: 50%; right: auto; transform: translate(-50%, -50%); width: 56px; height: 56px; padding: 0; }
.fk-media__badge--play::after {
	content: "";
	position: absolute;
	left: 22px;
	top: 17px;
	border-style: solid;
	border-width: 11px 0 11px 17px;
	border-color: transparent transparent transparent #fff;
}

.fk-body { padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.fk-meta { display: flex; align-items: center; gap: 10px; }
.fk-meta__avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; background: var(--fk-soft); }
.fk-meta__who { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.fk-meta__name { font-weight: 600; color: var(--fk-text) !important; text-decoration: none !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fk-meta__name:hover { text-decoration: underline !important; }
.fk-meta__date { color: var(--fk-muted); font-size: .8em; }
.fk-meta__net { margin-left: auto; color: var(--fk-muted); font-size: 1.05em; }
.fk-meta__pin { font-size: .9em; }

.fk-text { overflow-wrap: anywhere; white-space: normal; }
.fk-text a { color: var(--fk-accent, #1877f2); text-decoration: none; }
.fk-text a:hover { text-decoration: underline; }

.fk-text--clamp {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--fk-lines, 4);
	line-clamp: var(--fk-lines, 4);
	overflow: hidden;
}

.fk-text.is-open { display: block; -webkit-line-clamp: unset; line-clamp: none; }

.fk-readmore {
	align-self: flex-start;
	margin-top: -6px;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: .875em;
	font-weight: 600;
	color: var(--fk-muted);
	cursor: pointer;
}

.fk-readmore:hover { color: var(--fk-text); }

.fk-linkcard {
	display: flex;
	flex-direction: column;
	gap: 2px;
	background: var(--fk-soft);
	border-radius: calc(var(--fk-radius, 12px) / 1.5);
	padding: 10px 12px;
	text-decoration: none !important;
	color: var(--fk-text) !important;
}

.fk-linkcard__title { font-weight: 600; font-size: .925em; }
.fk-linkcard__host { color: var(--fk-muted); font-size: .8em; text-transform: lowercase; }

.fk-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px solid var(--fk-line);
	font-size: .85em;
	color: var(--fk-muted);
}

.fk-stats { display: flex; gap: 14px; }
.fk-stat { white-space: nowrap; }
.fk-viewon { color: var(--fk-accent, #1877f2) !important; font-weight: 600; text-decoration: none !important; white-space: nowrap; }
.fk-viewon:hover { text-decoration: underline !important; }

.fk-more { text-align: center; margin-top: calc(var(--fk-gap, 16px) * 1.25); }
.fk-more[hidden] { display: none; }

.fk-empty { color: #65676b; font-style: italic; }

/* Lightbox */
.fk-lb {
	position: fixed;
	inset: 0;
	margin: auto;
	height: fit-content;
	border: 0;
	padding: 0;
	background: transparent;
	max-width: min(1100px, 96vw);
	width: 100%;
	max-height: 94vh;
	color: var(--fk-text, #1c1e21);
}

.fk-lb::backdrop { background: rgba(0, 0, 0, .86); }

.fk-lb__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	background: var(--fk-card, #fff);
	border-radius: 12px;
	overflow: hidden;
	max-height: 94vh;
}

.fk-lb__inner.no-media { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin-inline: auto; }

.fk-lb__stage { position: relative; background: #000; display: grid; place-items: center; min-height: 300px; }
.fk-lb__stage img, .fk-lb__stage video { max-width: 100%; max-height: 94vh; display: block; object-fit: contain; }

.fk-lb__side { padding: 18px; overflow-y: auto; max-height: 94vh; display: flex; flex-direction: column; gap: 12px; }
.fk-lb__side .fk-text { display: block; -webkit-line-clamp: unset; }
.fk-lb__side .fk-readmore { display: none; }

.fk-lb__close {
	position: fixed;
	top: 14px;
	right: 16px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 0;
	background: rgba(255, 255, 255, .15);
	color: #fff;
	font-size: 26px;
	cursor: pointer;
	z-index: 3;
}

.fk-lb__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 0;
	background: rgba(255, 255, 255, .85);
	color: #111;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.fk-lb__arrow--prev { left: 10px; }
.fk-lb__arrow--next { right: 10px; }
.fk-lb__count { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 12px; background: rgba(0, 0, 0, .55); padding: 2px 10px; border-radius: 999px; }
.fk-lb__playlink { position: absolute; inset: 0; display: grid; place-items: center; }

@media (max-width: 767.98px) {
	.fk-lb__inner { grid-template-columns: minmax(0, 1fr); overflow-y: auto; }
	.fk-lb__stage img, .fk-lb__stage video { max-height: 60vh; }
	.fk-lb__side { max-height: none; }
}

@media (prefers-reduced-motion: reduce) {
	.fk-card, .fk-media img, .fk--carousel .fk-items { transition: none !important; scroll-behavior: auto; }
}

.fk .visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
}
.fk-media--static { cursor: default; }

/* Marquee (endless smooth scroll) */
.fk--marquee .fk-items { display: block; overflow: hidden; scroll-snap-type: none; }
.fk--marquee .fk-track { display: flex; gap: var(--fk-gap, 16px); will-change: transform; padding-bottom: 4px; }
.fk--carousel.fk--marquee .fk-card { flex: 0 0 var(--fk-card-w, calc((100% - (var(--c) - 1) * var(--fk-gap, 16px)) / var(--c))); scroll-snap-align: none; }
.fk--marquee .fk-dots { display: none; }

/* Reviews */
.fk { --fk-star: #f5b301; }
.fk-stars { display: inline-flex; gap: 1px; font-size: 1.1em; line-height: 1; letter-spacing: 0; }
.fk-stars--sm { font-size: .95em; vertical-align: -1px; margin: 0 .25em; }
.fk-star { color: var(--fk-line); }
.fk-star.is-on { color: var(--fk-star); }
.fk-meta__avatar--initials { display: grid; place-items: center; font-weight: 700; font-size: .95em; color: #fff; background: var(--fk-accent, #1877f2); }
.fk-reply { background: var(--fk-soft); border-radius: calc(var(--fk-radius, 12px) / 1.5); padding: 10px 12px; font-size: .9em; display: flex; flex-direction: column; gap: 4px; }
.fk-reply__by { font-size: .9em; }
.fk-reply__text { -webkit-line-clamp: var(--fk-lines, 3); line-clamp: var(--fk-lines, 3); display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.fk-foot--review { justify-content: flex-end; }
.fk-header__rating { white-space: nowrap; }

/* Articles */
.fk-title { margin: 0; font-size: 1.08em; line-height: 1.3; font-weight: 700; }
.fk-title a { color: var(--fk-text) !important; text-decoration: none !important; }
.fk-title a:hover { color: var(--fk-accent, #1877f2) !important; }
.fk-card--article .fk-foot, .fk-card[data-network="folder"] .fk-foot { justify-content: flex-end; }

/* Network icon on the image */
.fk-netbadge {
	position: absolute;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: calc(var(--fk-badge-size, 18px) * 1.9);
	height: calc(var(--fk-badge-size, 18px) * 1.9);
	font-size: var(--fk-badge-size, 18px);
	line-height: 1;
	color: var(--fk-badge-color, #fff);
	background: var(--fk-badge-bg, rgba(0, 0, 0, .45));
	pointer-events: none;
	transition: opacity .2s ease, transform .2s ease;
}
.fk-netbadge img { width: var(--fk-badge-size, 18px); height: var(--fk-badge-size, 18px); object-fit: contain; display: block; }
.fk--badge-shape-circle .fk-netbadge { border-radius: 50%; }
.fk--badge-shape-rounded .fk-netbadge { border-radius: calc(var(--fk-badge-size, 18px) * .45); }
.fk--badge-shape-none .fk-netbadge { background: none; width: auto; height: auto; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45)); }
.fk--badge-tl .fk-netbadge { top: var(--fk-badge-offset, 10px); left: var(--fk-badge-offset, 10px); }
.fk--badge-tr .fk-netbadge { top: var(--fk-badge-offset, 10px); right: var(--fk-badge-offset, 10px); }
.fk--badge-bl .fk-netbadge { bottom: var(--fk-badge-offset, 10px); left: var(--fk-badge-offset, 10px); }
.fk--badge-br .fk-netbadge { bottom: var(--fk-badge-offset, 10px); right: var(--fk-badge-offset, 10px); }
/* The album counter moves aside when the icon takes its corner. */
.fk--badge-tr .fk-media__badge--count { right: auto; left: 10px; }
.fk--badge-color-brand .fk-card[data-network="facebook"] .fk-netbadge { color: #1877f2; }
.fk--badge-color-brand .fk-card[data-network="instagram"] .fk-netbadge { color: #e1306c; }
.fk--badge-color-brand .fk-card[data-network="google"] .fk-netbadge { color: #4285f4; }
.fk--badge-color-brand .fk-card[data-network="joomla"] .fk-netbadge,
.fk--badge-color-brand .fk-card[data-network="folder"] .fk-netbadge { color: var(--fk-accent, #1877f2); }
.fk--badge-hover .fk-netbadge { opacity: 0; transform: scale(.85); }
.fk--badge-hover .fk-card:hover .fk-netbadge,
.fk--badge-hover .fk-card:focus-within .fk-netbadge { opacity: 1; transform: none; }
/* Touch screens have no hover: show the icon all the time. */
@media (hover: none) { .fk--badge-hover .fk-netbadge { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fk-netbadge { transition: none; } }

.fk-netbadge svg { width: var(--fk-badge-size, 18px); height: var(--fk-badge-size, 18px); display: block; }

/* Lightbox without side panel: the image gets the full width. */
.fk-lb__inner.no-side { grid-template-columns: minmax(0, 1fr); }
.fk-lb__inner.no-side .fk-lb__side { display: none; }
.fk-lb__side .fk-foot--lb { margin-top: auto; justify-content: flex-end; }

/* Gap 0: images sit edge to edge – no card border or shadow between them. */
.fk--gap0 .fk-card { border: 0; box-shadow: none; }
.fk--gap0.fk--carousel .fk-items { padding-bottom: 0; }
.fk--gap0 .fk-filter, .fk--gap0 .fk-headers { margin-bottom: 12px; }
