.fspf-feed {
	--fspf-gap: 8px;
	--fspf-cols: 3;
	max-width: 100%;
	margin: 0 auto 1.5em;
	font-family: inherit;
	color: inherit;
}

.fspf-feed__error,
.fspf-feed__empty {
	margin: 0 0 12px;
	padding: 12px 14px;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	grid-column: 1 / -1;
}

.fspf-feed--masonry .fspf-feed__empty,
.fspf-feed--wall .fspf-feed__empty {
	column-span: all;
	display: block;
}

.fspf-feed--carousel .fspf-feed__empty,
.fspf-feed--stories .fspf-feed__empty {
	flex: 0 0 100%;
}

.fspf-header {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 16px;
}

.fspf-header__avatar img {
	display: block;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
}

.fspf-header__meta {
	flex: 1;
	min-width: 0;
}

.fspf-header__name {
	font-weight: 600;
	line-height: 1.3;
}

.fspf-header__handle,
.fspf-header__count {
	font-size: 0.875em;
	opacity: 0.75;
}

.fspf-header__follow {
	display: inline-block;
	padding: 8px 14px;
	border-radius: 4px;
	background: #1d2327;
	color: #fff;
	text-decoration: none;
	font-size: 0.875em;
	font-weight: 600;
}

.fspf-header__follow:hover,
.fspf-header__follow:focus {
	color: #fff;
	opacity: 0.9;
}

.fspf-feed__grid {
	display: grid;
	grid-template-columns: repeat(var(--fspf-cols), minmax(0, 1fr));
	gap: var(--fspf-gap);
}

.fspf-item {
	margin: 0;
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f0f0f1;
}

.fspf-item__open {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	text-decoration: none;
	color: inherit;
}

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

.fspf-item__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 0.8em;
	padding: 8px;
	text-align: center;
}

.fspf-item__platform {
	position: absolute;
	left: 8px;
	bottom: 8px;
	padding: 2px 6px;
	font-size: 10px;
	line-height: 1.4;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff;
	background: rgba(0, 0, 0, 0.55);
	border-radius: 3px;
}

.fspf-item__badge {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 18px;
	height: 18px;
	background: rgba(0, 0, 0, 0.55);
	border-radius: 3px;
}

.fspf-item__badge--video::after {
	content: "";
	position: absolute;
	left: 6px;
	top: 4px;
	border-style: solid;
	border-width: 5px 0 5px 8px;
	border-color: transparent transparent transparent #fff;
}

.fspf-item__badge--album::before,
.fspf-item__badge--album::after {
	content: "";
	position: absolute;
	border: 1.5px solid #fff;
	width: 8px;
	height: 8px;
}

.fspf-item__badge--album::before {
	top: 3px;
	right: 3px;
}

.fspf-item__badge--album::after {
	top: 6px;
	right: 6px;
}

.fspf-feed__more {
	margin: 16px 0 0;
	text-align: center;
}

.fspf-load-more {
	padding: 8px 18px;
	border: 1px solid #1d2327;
	background: #fff;
	cursor: pointer;
	font: inherit;
}

.fspf-load-more:disabled {
	opacity: 0.6;
	cursor: wait;
}

.fspf-lightbox[hidden] {
	display: none;
}

.fspf-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.fspf-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.75);
}

.fspf-lightbox__dialog {
	position: relative;
	z-index: 1;
	max-width: 720px;
	width: 100%;
	max-height: 90vh;
	overflow: auto;
	background: #fff;
	color: #1d2327;
}

.fspf-lightbox__close {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	border: 0;
	background: #1d2327;
	color: #fff;
	padding: 6px 10px;
	cursor: pointer;
}

.fspf-lightbox__media img,
.fspf-lightbox__media video {
	display: block;
	width: 100%;
	height: auto;
	max-height: 70vh;
	object-fit: contain;
	background: #111;
}

.fspf-lightbox__meta {
	padding: 16px;
}

.fspf-lightbox__caption {
	margin: 0 0 8px;
	white-space: pre-wrap;
}

.fspf-feed--preview {
	font-size: 13px;
}

.fspf-feed--preview .fspf-header__avatar img {
	width: 40px;
	height: 40px;
}

.fspf-feed__viewport {
	overflow: hidden;
}

.fspf-feed--stories .fspf-feed__viewport {
	overflow-x: auto;
	overflow-y: hidden;
}

.fspf-feed--masonry .fspf-feed__grid {
	display: block;
	column-count: var(--fspf-cols);
	column-gap: var(--fspf-gap);
}

.fspf-feed--masonry .fspf-item {
	aspect-ratio: auto;
	break-inside: avoid;
	margin-bottom: var(--fspf-gap);
}

.fspf-feed--masonry .fspf-item img {
	height: auto;
}

.fspf-feed--masonry .fspf-item__open {
	height: auto;
}

.fspf-feed--carousel .fspf-feed__grid {
	display: flex;
	gap: var(--fspf-gap);
	transition: transform 0.25s ease;
}

.fspf-feed--carousel .fspf-item {
	flex: 0 0 calc((100% - (var(--fspf-cols) - 1) * var(--fspf-gap)) / var(--fspf-cols));
}

.fspf-carousel-nav {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin: 12px 0 0;
}

.fspf-carousel-prev,
.fspf-carousel-next {
	padding: 6px 12px;
	border: 1px solid #1d2327;
	background: #fff;
	cursor: pointer;
	font: inherit;
}

.fspf-feed--highlight .fspf-item:first-child {
	grid-column: span 2;
	grid-row: span 2;
}

.fspf-feed--stories .fspf-feed__grid {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	padding: 4px 0 12px;
}

.fspf-feed--stories .fspf-item {
	flex: 0 0 88px;
	width: 88px;
	height: 88px;
	aspect-ratio: auto;
	overflow: visible;
	background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
	padding: 3px;
	border-radius: 50%;
}

.fspf-feed--stories .fspf-item.is-seen {
	background: #c3c4c7;
}

.fspf-feed--stories .fspf-item__open {
	border-radius: 50%;
	overflow: hidden;
	background: #111;
}

.fspf-feed--stories .fspf-item img {
	border-radius: 50%;
}

.fspf-feed--stories .fspf-item__platform,
.fspf-feed--stories .fspf-item__meta,
.fspf-feed--stories .fspf-item__hide {
	display: none;
}

.fspf-stories {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.fspf-stories[hidden] {
	display: none;
}

.fspf-stories__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.92);
}

.fspf-stories__frame {
	position: relative;
	z-index: 1;
	width: min(420px, 100vw);
	height: min(740px, 100vh);
	background: #111;
	border-radius: 12px;
	overflow: hidden;
}

.fspf-stories__progress {
	position: absolute;
	top: 10px;
	left: 10px;
	right: 10px;
	z-index: 3;
	display: flex;
	gap: 4px;
}

.fspf-stories__bar {
	flex: 1;
	height: 3px;
	background: rgba(255, 255, 255, 0.28);
	border-radius: 2px;
	overflow: hidden;
}

.fspf-stories__bar span {
	display: block;
	height: 100%;
	width: 0;
	background: #fff;
}

.fspf-stories__bar.is-done span {
	width: 100%;
}

.fspf-stories__bar.is-active span {
	animation: fspfStoryFill 5s linear forwards;
}

.fspf-stories.is-paused .fspf-stories__bar.is-active span {
	animation-play-state: paused;
}

@keyframes fspfStoryFill {
	from {
		width: 0;
	}
	to {
		width: 100%;
	}
}

.fspf-stories__close {
	position: absolute;
	top: 22px;
	right: 10px;
	z-index: 3;
	border: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
	font: inherit;
}

.fspf-stories__media {
	position: absolute;
	inset: 0;
}

.fspf-stories__media img,
.fspf-stories__media video,
.fspf-stories__media iframe {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border: 0;
	display: block;
}

.fspf-stories__hit {
	position: absolute;
	top: 48px;
	bottom: 56px;
	width: 32%;
	z-index: 2;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.fspf-stories__hit--prev {
	left: 0;
}

.fspf-stories__hit--next {
	right: 0;
	width: 68%;
}

.fspf-stories__caption {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 16px;
	z-index: 3;
	margin: 0;
	color: #fff;
	font-size: 14px;
	line-height: 1.4;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
	pointer-events: none;
}

.fspf-item__meta {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 28px 8px 8px;
	color: #fff;
	font-size: 12px;
	line-height: 1.35;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
	pointer-events: none;
}

.fspf-feed--masonry .fspf-item__meta {
	position: static;
	padding: 8px;
	color: inherit;
	background: #fff;
}

.fspf-item__caption {
	display: block;
}

.fspf-item__likes {
	display: inline-block;
	margin-top: 4px;
	font-weight: 600;
}

.fspf-item__likes::before {
	content: "♥ ";
}

.fspf-item__hide {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 2;
	padding: 2px 6px;
	border: 0;
	background: #1d2327;
	color: #fff;
	font-size: 11px;
	cursor: pointer;
}

.fspf-item__badge--shop {
	top: auto;
	right: 8px;
	bottom: 8px;
	left: auto;
	border-radius: 50%;
}

.fspf-item__badge--shop::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 5px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #fff;
}

.fspf-lightbox__stage {
	position: relative;
}

.fspf-lightbox__pins {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.fspf-pin {
	position: absolute;
	width: 18px;
	height: 18px;
	margin: -9px 0 0 -9px;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #1d2327;
	cursor: pointer;
	pointer-events: auto;
}

.fspf-lightbox__slide-prev,
.fspf-lightbox__slide-next {
	position: absolute;
	top: 50%;
	z-index: 2;
	transform: translateY(-50%);
	padding: 6px 10px;
	border: 0;
	background: #1d2327;
	color: #fff;
	cursor: pointer;
}

.fspf-lightbox__slide-prev {
	left: 8px;
}

.fspf-lightbox__slide-next {
	right: 8px;
}

.fspf-lightbox__shop {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-top: 12px;
	padding: 12px;
	border: 1px solid #dcdcde;
}

.fspf-lightbox__shop[hidden] {
	display: none;
}

.fspf-lightbox__shop img {
	width: 64px;
	height: 64px;
	object-fit: cover;
}

.fspf-lightbox__price {
	display: block;
	margin: 4px 0;
}

.fspf-lightbox__buy {
	display: inline-block;
	padding: 6px 12px;
	background: #1d2327;
	color: #fff;
	text-decoration: none;
	font-size: 13px;
}

.fspf-lightbox__buy:hover,
.fspf-lightbox__buy:focus {
	color: #fff;
	opacity: 0.9;
}

.fspf-product-gallery {
	margin: 2em 0;
}

.fspf-product-gallery__title {
	margin: 0 0 12px;
	font-size: 1.25em;
}

.fspf-product-gallery__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 8px;
}

.fspf-product-gallery__item {
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f0f0f1;
}

.fspf-product-gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fspf-lightbox__media iframe {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
	background: #111;
}

.fspf-item--text {
	aspect-ratio: auto;
}

.fspf-item__text {
	display: block;
	padding: 14px 12px 36px;
	font-size: 0.9em;
	line-height: 1.4;
	white-space: pre-wrap;
	text-align: left;
}

.fspf-feed--wall .fspf-feed__grid {
	display: block;
	column-count: var(--fspf-cols);
	column-gap: var(--fspf-gap);
}

.fspf-feed--wall .fspf-item {
	aspect-ratio: auto;
	break-inside: avoid;
	margin-bottom: var(--fspf-gap);
	background: #fff;
	border: 1px solid #dcdcde;
}

.fspf-feed--wall .fspf-item img {
	height: auto;
}

.fspf-feed--wall .fspf-item__open {
	height: auto;
}

.fspf-feed--wall .fspf-item__platform {
	position: static;
	display: inline-block;
	margin: 8px 10px 0;
}

.fspf-feed--wall .fspf-item__meta {
	position: static;
	padding: 8px 10px 10px;
	color: inherit;
	background: transparent;
}

.fspf-feed--wall .fspf-item__text {
	padding-bottom: 12px;
}

@media (max-width: 782px) {
	.fspf-feed {
		--fspf-cols: 2;
	}

	.fspf-product-gallery__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 480px) {
	.fspf-feed {
		--fspf-cols: 1;
	}

	.fspf-feed--highlight .fspf-item:first-child {
		grid-column: auto;
		grid-row: auto;
	}

	.fspf-header {
		flex-wrap: wrap;
	}
}
