.sfsgs-feed {
	box-sizing: border-box;
	width: 100%;
	margin: 24px 0;
}

.sfsgs-feed *,
.sfsgs-feed *::before,
.sfsgs-feed *::after {
	box-sizing: border-box;
}

.sfsgs-empty,
.sfsgs-no-results {
	padding: 18px;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	background: #fafafa;
	color: #444;
}

.sfsgs-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 20px;
}

.sfsgs-filter-button {
	appearance: none;
	border: 0;
	border-radius: 999px;
	padding: 9px 16px;
	background: var(--sfsgs-filter-bg-color);
	color: var(--sfsgs-filter-text-color);
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.sfsgs-filter-button:hover,
.sfsgs-filter-button:focus {
	opacity: 0.85;
	transform: translateY(-1px);
}

.sfsgs-filter-button.is-active {
	background: var(--sfsgs-filter-active-bg-color);
	color: var(--sfsgs-filter-active-text-color);
}

.sfsgs-grid {
	display: grid;
	grid-template-columns: repeat(var(--sfsgs-columns), minmax(0, 1fr));
	gap: 22px;
	width: 100%;
}

.sfsgs-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: var(--sfsgs-card-border-width) solid var(--sfsgs-card-border-color);
	border-radius: 16px;
	background: #ffffff;
	min-width: 0;
}

.sfsgs-card[hidden] {
	display: none !important;
}

.sfsgs-image-link {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: #f3f3f3;
}

.sfsgs-image-link img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.sfsgs-image-link:hover img {
	transform: scale(1.04);
}

.sfsgs-card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: var(--sfsgs-card-padding);
}

.sfsgs-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
	font-size: 12px;
	color: #777777;
}

.sfsgs-network {
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.sfsgs-title {
	margin: 0 0 10px;
	font-size: 20px;
	line-height: 1.25;
	color: var(--sfsgs-title-color);
}

.sfsgs-title a {
	color: inherit;
	text-decoration: none;
}

.sfsgs-title a:hover {
	text-decoration: underline;
}

.sfsgs-text {
	margin: 0 0 18px;
	color: var(--sfsgs-text-color);
	font-size: 15px;
	line-height: 1.6;
}

.sfsgs-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
}

.sfsgs-read-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 9px 14px;
	border: var(--sfsgs-button-border-width) solid var(--sfsgs-button-border-color);
	border-radius: 999px;
	background: var(--sfsgs-button-bg-color);
	color: var(--sfsgs-button-text-color);
	font-size: var(--sfsgs-button-font-size);
	font-weight: 600;
	text-decoration: none;
	line-height: 1;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.sfsgs-read-more:hover,
.sfsgs-read-more:focus {
	opacity: 0.86;
	transform: translateY(-1px);
	color: var(--sfsgs-button-text-color);
}

.sfsgs-share {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
}

.sfsgs-share-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #f2f2f2;
	color: #111111;
	font-size: 11px;
	font-weight: 700;
	text-decoration: none;
	text-transform: uppercase;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.sfsgs-share-button:hover,
.sfsgs-share-button:focus {
	opacity: 0.8;
	transform: translateY(-1px);
	color: #111111;
}

.sfsgs-pagination,
.sfsgs-slider-dots {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 22px;
}

.sfsgs-page-button,
.sfsgs-slider-dot {
	appearance: none;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
}

.sfsgs-page-button {
	min-width: 34px;
	height: 34px;
	padding: 0 10px;
	background: var(--sfsgs-filter-bg-color);
	color: var(--sfsgs-filter-text-color);
	font-size: 14px;
}

.sfsgs-page-button.is-active {
	background: var(--sfsgs-filter-active-bg-color);
	color: var(--sfsgs-filter-active-text-color);
}

.sfsgs-slider-shell {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
}

.sfsgs-slider-viewport {
	overflow: hidden;
	width: 100%;
}

.sfsgs-slider-track {
	grid-template-columns: repeat(var(--sfsgs-columns), minmax(0, 1fr));
}

.sfsgs-slider-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--sfsgs-slider-arrow-size);
	height: var(--sfsgs-slider-arrow-size);
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--sfsgs-slider-arrow-color);
	font-size: var(--sfsgs-slider-arrow-size);
	line-height: 1;
	cursor: pointer;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.sfsgs-slider-arrow:hover,
.sfsgs-slider-arrow:focus {
	opacity: 0.75;
	transform: scale(1.05);
}

.sfsgs-slider-arrow[disabled] {
	opacity: 0.35;
	cursor: not-allowed;
	transform: none;
}

.sfsgs-slider-dot {
	width: 10px;
	height: 10px;
	padding: 0;
	background: var(--sfsgs-slider-dot-color);
}

.sfsgs-slider-dot.is-active {
	background: var(--sfsgs-slider-dot-active-color);
}

@media (max-width: 1024px) {
	.sfsgs-grid,
	.sfsgs-slider-track {
		grid-template-columns: repeat(min(var(--sfsgs-columns), 2), minmax(0, 1fr));
	}
}

@media (max-width: 680px) {
	.sfsgs-grid,
	.sfsgs-slider-track {
		grid-template-columns: 1fr;
	}

	.sfsgs-slider-shell {
		grid-template-columns: 1fr;
	}

	.sfsgs-slider-arrow {
		display: none;
	}

	.sfsgs-card-footer {
		align-items: flex-start;
		flex-direction: column;
	}
}