/* ============================================================
   SSE Social Slider
   ============================================================ */

.sse-social-slider {
	position: relative;
	padding: 0 44px;
	box-sizing: border-box;
}

/* --- Track --- */
.sse-slider-track-wrapper {
	overflow: hidden;
}

.sse-slider-track {
	display: flex;
	transition: transform 0.4s ease;
	will-change: transform;
}

/* --- Slides --- */
.sse-slide {
	flex: 0 0 calc(100% / 3);
	padding: 0 10px;
	box-sizing: border-box;
}

.sse-slide-inner {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	/* Let the embed content define its own height */
}

/* Ensure iframes / blockquotes don't overflow the slide */
.sse-slide-inner iframe,
.sse-slide-inner blockquote {
	max-width: 100% !important;
}

/* --- Navigation Buttons --- */
.sse-slider-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	border: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 26px;
	line-height: 36px;
	text-align: center;
	padding: 0;
	z-index: 10;
	transition: background 0.2s;
}

.sse-slider-btn:hover {
	background: rgba(0, 0, 0, 0.8);
}

.sse-slider-btn:disabled {
	opacity: 0.25;
	cursor: default;
	pointer-events: none;
}

.sse-slider-prev {
	left: 0;
}

.sse-slider-next {
	right: 0;
}

/* --- Dot Indicators --- */
.sse-slider-dots {
	text-align: center;
	margin-top: 14px;
}

.sse-slider-dot {
	display: inline-block;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #ccc;
	margin: 0 4px;
	cursor: pointer;
	transition: background 0.2s;
}

.sse-slider-dot.active {
	background: #444;
}

/* ============================================================
   SSE Social Feed  ([sse_social_feed])
   ============================================================ */

/* --- Grid --- */
.sse-social-feed .sse-feed-grid {
	display: grid;
	gap: 20px;
	margin-bottom: 28px;
}

.sse-feed-columns-1 .sse-feed-grid { grid-template-columns: 1fr; }
.sse-feed-columns-2 .sse-feed-grid { grid-template-columns: repeat(2, 1fr); }
.sse-feed-columns-3 .sse-feed-grid { grid-template-columns: repeat(3, 1fr); }
.sse-feed-columns-4 .sse-feed-grid { grid-template-columns: repeat(4, 1fr); }

.sse-feed-item-inner {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
}

.sse-feed-item-inner iframe,
.sse-feed-item-inner blockquote {
	max-width: 100% !important;
}

/* --- Pagination --- */
.sse-feed-pagination {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}

.sse-page-btn,
.sse-page-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	background: #fff;
	color: #2271b1;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: background 0.15s, color 0.15s;
}

.sse-page-btn:hover,
.sse-page-num:hover {
	background: #f0f6fc;
	border-color: #2271b1;
	color: #135e96;
}

.sse-page-num.sse-page-active {
	background: #2271b1;
	border-color: #2271b1;
	color: #fff;
	cursor: default;
	pointer-events: none;
}

.sse-page-ellipsis {
	display: inline-flex;
	align-items: center;
	height: 36px;
	padding: 0 4px;
	color: #646970;
	font-size: 14px;
}

.sse-feed-count {
	font-size: 13px;
	color: #646970;
	margin: 0;
}

/* --- Responsive --- */
@media (max-width: 900px) {
	.sse-feed-columns-4 .sse-feed-grid { grid-template-columns: repeat(2, 1fr); }
	.sse-feed-columns-3 .sse-feed-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
	.sse-feed-columns-2 .sse-feed-grid,
	.sse-feed-columns-3 .sse-feed-grid,
	.sse-feed-columns-4 .sse-feed-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SSE Social Sections  ([sse_social_sections])
   ============================================================ */

.sse-social-sections {
	display: flex;
	flex-direction: column;
	gap: 48px;
}

.sse-social-section {
	/* individual platform block */
}

.sse-section-title {
	margin: 0 0 16px;
	font-size: 1.4em;
	font-weight: 700;
	padding-bottom: 8px;
	border-bottom: 3px solid currentColor;
}

/* Platform accent colours for the title underline */
.sse-section-title--facebook  { color: #1877F2; }
.sse-section-title--instagram { color: #E1306C; }
.sse-section-title--tiktok    { color: #000000; }

/* --- Responsive: 1 column on mobile --- */
@media (max-width: 767px) {
	.sse-social-slider {
		padding: 0 36px;
	}

	.sse-slide {
		flex: 0 0 100%;
	}
}
