.ssf-feed {
	display: grid;
	grid-template-columns: repeat(var(--ssf-columns, 3), 1fr);
	gap: 12px;
}

.ssf-item {
	display: block;
	position: relative;
	text-decoration: none;
	color: inherit;
	background: #f5f5f5;
	border-radius: 6px;
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease;
}

.ssf-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}

.ssf-media {
	position: relative;
	width: 100%;
	aspect-ratio: var(--ssf-ratio, 1 / 1);
	overflow: hidden;
}

.ssf-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ssf-badge {
	position: absolute;
	top: 8px;
	right: 8px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	padding: 4px 6px;
	border-radius: 4px;
	color: #fff;
}

.ssf-badge-instagram { background: #e1306c; }
.ssf-badge-facebook  { background: #1877f2; }

.ssf-video-icon {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	color: #fff;
	text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
	pointer-events: none;
}

.ssf-caption {
	padding: 8px 10px;
	font-size: 13px;
	line-height: 1.4;
	color: #333;
}

.ssf-empty {
	display: block;
	padding: 24px;
	text-align: center;
	color: #888;
	background: #fafafa;
	border: 1px dashed #ddd;
	border-radius: 6px;
}

/* 內嵌影片 / Reels */
.ssf-video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	background: #000;
}

.ssf-caption-link {
	display: block;
	text-decoration: none;
	color: #333;
}

.ssf-caption-link:hover {
	text-decoration: underline;
}

