/* All selectors are scoped to the plugin; no SWELL internals are targeted. */
.lak-gfs {
	--lak-gfs-accent: var(--color_main, #155a70);
	--lak-gfs-gap: 24px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin: 40px 0;
	color: inherit;
	direction: ltr;
}

.lak-gfs,
.lak-gfs * { box-sizing: border-box; }

.lak-gfs .lak-gfs__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 44px;
	margin: 0 0 20px;
}

.lak-gfs .lak-gfs__heading {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	font: inherit;
	font-size: clamp(1.25rem, 2.5vw, 1.6rem);
	font-weight: 700;
	line-height: 1.5;
}

.lak-gfs .lak-gfs__heading::before,
.lak-gfs .lak-gfs__heading::after,
.lak-gfs .lak-gfs__title::before,
.lak-gfs .lak-gfs__title::after { display: none; }

.lak-gfs .lak-gfs__controls { display: flex; flex-shrink: 0; gap: 8px; }
.lak-gfs .lak-gfs__controls[hidden] { display: none; }

.lak-gfs .lak-gfs__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f0f4f6;
	box-shadow: none;
	color: #253b45;
	font: inherit;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	appearance: none;
}

.lak-gfs .lak-gfs__button[aria-disabled="true"] { opacity: 0.35; cursor: default; }
.lak-gfs .lak-gfs__button:not([aria-disabled="true"]):hover { background: #e3ebef; }

.lak-gfs .lak-gfs__track {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: 4px;
	scrollbar-width: thin;
	border-radius: 4px;
}

.lak-gfs .lak-gfs__list {
	display: flex;
	gap: var(--lak-gfs-gap);
	width: 100%;
	margin: 0;
	padding: 4px 4px 12px;
	list-style: none;
}

.lak-gfs .lak-gfs__item {
	flex: 0 0 calc((100% - 2 * var(--lak-gfs-gap)) / 3);
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	scroll-snap-align: start;
}

.lak-gfs .lak-gfs__item::before { display: none; }

.lak-gfs .lak-gfs__card {
	display: block;
	height: 100%;
	overflow: hidden;
	border: 0;
	border-radius: 10px;
	background: #fff;
	box-shadow: none;
	color: inherit;
	text-decoration: none;
}

.lak-gfs .lak-gfs__media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #f0f4f6;
}

.lak-gfs .lak-gfs__image {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	margin: 0;
	border: 0;
	border-radius: 0;
	object-fit: contain;
}

.lak-gfs .lak-gfs__placeholder { color: #61727a; font-size: 13px; font-weight: 600; letter-spacing: 0.15em; }
.lak-gfs .lak-gfs__body { padding: 20px 16px; }

.lak-gfs .lak-gfs__title {
	display: -webkit-box;
	min-height: 3.2em;
	max-height: 3.2em;
	overflow: hidden;
	margin: 0 0 12px;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	font: inherit;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.6;
	overflow-wrap: anywhere;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.lak-gfs .lak-gfs__card:hover .lak-gfs__title { color: var(--lak-gfs-accent); text-decoration: underline; text-underline-offset: 3px; }
.lak-gfs .lak-gfs__date { display: block; color: #657078; font-size: 0.8125rem; line-height: 1.5; }
.lak-gfs .lak-gfs__button:focus-visible,
.lak-gfs .lak-gfs__card:focus-visible,
.lak-gfs .lak-gfs__track:focus-visible { outline: 2px solid var(--lak-gfs-accent); outline-offset: 2px; }
.lak-gfs .lak-gfs__track:focus-visible { outline-offset: -2px; }

.lak-gfs .lak-gfs__sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	margin: -1px;
	padding: 0;
	border: 0;
	clip-path: inset(50%);
	white-space: nowrap;
}

@media (max-width: 1023px) {
	.lak-gfs .lak-gfs__item { flex-basis: calc((100% - var(--lak-gfs-gap)) / 2); }
}

@media (max-width: 639px) {
	.lak-gfs { --lak-gfs-gap: 16px; margin-block: 32px; }
	.lak-gfs .lak-gfs__item { flex-basis: 86%; }
	.lak-gfs .lak-gfs__body { padding: 16px 12px; }
}

.lak-gfs.lak-gfs--single .lak-gfs__item { flex-basis: min(100%, 360px); }

@media (prefers-reduced-motion: reduce) {
	.lak-gfs .lak-gfs__track { scroll-behavior: auto !important; }
}
