.lfcs{
	--lf-cols:4;--lf-gap:24px;--lf-blue:#01A2E7;--lf-border:#e5e7eb;
	--lf-card-w:calc((100cqw - (var(--lf-cols) - 1) * var(--lf-gap)) / var(--lf-cols));
	position:relative;width:100%;box-sizing:border-box;container-type:inline-size;
}
.lfcs__row{display:flex;align-items:stretch;gap:var(--lf-gap)}
.lfcs__scroll{position:relative;flex:1 1 0;min-width:0}
.lfcs *,.lfcs *::before,.lfcs *::after{box-sizing:border-box}

.lfcs__track{
	display:flex;gap:var(--lf-gap);
	overflow-x:auto;overflow-y:hidden;
	padding:14px 2px 26px;
	scroll-behavior:smooth;
	overscroll-behavior-x:contain;
	-webkit-overflow-scrolling:touch;
	scrollbar-width:none;
	cursor:grab;
}
.lfcs__track::-webkit-scrollbar{display:none}
.lfcs--scrollbar-thin .lfcs__track{scrollbar-width:thin;scrollbar-color:var(--lf-blue) transparent}
.lfcs--scrollbar-thin .lfcs__track::-webkit-scrollbar{display:block;height:6px}
.lfcs--scrollbar-thin .lfcs__track::-webkit-scrollbar-thumb{background:var(--lf-blue);border-radius:6px}
.lfcs--snap .lfcs__track{scroll-snap-type:x mandatory}
.lfcs--snap .lfcs__card{scroll-snap-align:start}
.lfcs__track.is-dragging{cursor:grabbing;scroll-snap-type:none;scroll-behavior:auto;user-select:none}
.lfcs__track.is-dragging .lfcs__card{pointer-events:none}
.lfcs__track:focus-visible{outline:2px solid var(--lf-blue);outline-offset:2px}

.lfcs__card{
	flex:0 0 var(--lf-card-w);
	min-width:0;display:flex;flex-direction:column;
	background:#f5f6fa;border:1px solid var(--lf-border);border-radius:28px;
	overflow:hidden;text-decoration:none;color:inherit;
	transition:transform .35s ease,box-shadow .35s ease,border-color .35s ease;
}
.lfcs__card:hover,.lfcs__card:focus-visible{
	border-color:color-mix(in srgb,var(--lf-blue) 35%,transparent);
	box-shadow:0 24px 48px -16px color-mix(in srgb,var(--lf-blue) 35%,transparent);
	outline:none;
}

.lfcs__media{display:block;width:100%;aspect-ratio:1/1;background:#f5f6fa;overflow:hidden;padding:var(--lf-img-pad,20px)}
.lfcs__media img{display:block;width:100%;height:100%;object-fit:contain;padding:0;margin:0;border-radius:var(--lf-img-radius,0);
	-webkit-user-drag:none;user-select:none}

.lfcs__foot{
	display:flex;align-items:center;justify-content:space-between;gap:12px;
	padding:20px 22px;border-top:1px solid var(--lf-border);
}
.lfcs__text{display:flex;flex-direction:column;gap:4px;min-width:0}
.lfcs__title{font-size:20px;font-weight:700;line-height:1.2;color:#0a0a0a;transition:color .3s ease;
	overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lfcs__count{font-size:15px;font-weight:400;line-height:1.2;color:#7b8190}

.lfcs__go{
	flex:0 0 auto;width:54px;height:54px;display:inline-flex;align-items:center;justify-content:center;
	border-radius:50%;background:#fff;border:1px solid var(--lf-border);color:#7b8190;
	transition:background-color .3s ease,color .3s ease,border-color .3s ease;
}
.lfcs__go svg{width:45%;height:45%}
.lfcs__card:hover .lfcs__title,.lfcs__card:focus-visible .lfcs__title{color:var(--lf-blue)}
.lfcs__card:hover .lfcs__go,.lfcs__card:focus-visible .lfcs__go{background:var(--lf-blue);border-color:var(--lf-blue);color:#fff}

.lfcs__nav{
	position:absolute;top:calc(50% - 6px);transform:translateY(-50%);z-index:3;
	width:48px;height:48px;padding:0;display:flex;align-items:center;justify-content:center;
	border:1px solid var(--lf-border);border-radius:50%;background:#fff;color:#0a0a0a;
	box-shadow:0 8px 24px rgba(0,0,0,.12);cursor:pointer;
	transition:opacity .25s ease,background-color .25s ease,color .25s ease;
}
.lfcs__nav--prev{left:-14px}
.lfcs__nav--next{right:-14px}
.lfcs__nav:hover{background:var(--lf-blue);border-color:var(--lf-blue);color:#fff}
.lfcs__nav:focus-visible{outline:2px solid var(--lf-blue);outline-offset:2px}
.lfcs__nav[disabled]{opacity:0;pointer-events:none}
.lfcs.is-static .lfcs__nav{display:none}
@media (hover:none){.lfcs__nav{display:none}}

@media (max-width:767px){
	.lfcs__foot{padding:14px 14px 14px 16px}
	.lfcs__title{font-size:16px}
	.lfcs__count{font-size:13px}
	.lfcs__go{width:40px;height:40px}
}
@media (prefers-reduced-motion:reduce){
	.lfcs__track{scroll-behavior:auto}
	.lfcs__card,.lfcs__go,.lfcs__title{transition:none}
}

/* ---- fixed "All" card ---- */
.lfcs__all{flex:0 0 auto;width:var(--lf-card-w);margin:14px 0 26px;align-self:stretch;scroll-snap-align:none}
.lfcs .lfcs__all .lfcs__media{position:relative;flex:1 1 auto;aspect-ratio:auto;min-height:0}
.lfcs .lfcs__all .lfcs__media img{position:absolute;inset:var(--lf-img-pad,20px);width:calc(100% - 2 * var(--lf-img-pad,20px));height:calc(100% - 2 * var(--lf-img-pad,20px))}
.lfcs--has-all .lfcs__nav--prev{left:calc(-24px - var(--lf-gap) / 2)}
.lfcs--has-all .lfcs__nav--next{right:-14px}
