.gc {
	--gc-accent: #f2224f;
	--gc-cols: var(--gc-cols-d, 5);
	--gc-gap: 20px;
	--gc-ratio: 2 / 3;
	--gc-radius: 6px;
	width: 100%;
	box-sizing: border-box;
}

.gc *,
.gc *::before,
.gc *::after {
	box-sizing: border-box;
}

/* Header: heading with underline on the left, arrows on the right */
.gc__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	margin: 0 0 24px;
}

.gc__title {
	flex: 0 1 66%;
	margin: 0;
	padding: 0 0 14px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	font-size: clamp(24px, 3vw, 34px);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: #3f3f3f;
}

.gc__title--empty {
	border: 0;
}

.gc__nav {
	display: flex;
	gap: 6px;
	margin-left: auto;
	flex: 0 0 auto;
}

.gc__btn {
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: var(--gc-accent);
	color: #fff;
	cursor: pointer;
	line-height: 1;
	box-shadow: none;
	transition: transform 0.15s ease, opacity 0.15s ease, filter 0.15s ease;
}

.gc__btn:hover:not(:disabled) {
	filter: brightness(1.08);
	transform: scale(1.05);
}

.gc__btn:focus-visible {
	outline: 3px solid rgba(0, 0, 0, 0.35);
	outline-offset: 2px;
}

.gc__btn:disabled {
	opacity: 0.35;
	cursor: default;
}

/* Track */
.gc__viewport {
	overflow: hidden;
}

.gc__track {
	display: flex;
	gap: var(--gc-gap);
	margin: -8px 0;
	padding: 8px 0;
	list-style: none;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.gc__track::-webkit-scrollbar {
	display: none;
}

.gc__track:focus-visible {
	outline: 2px solid var(--gc-accent);
	outline-offset: 2px;
}

.gc__slide {
	flex: 0 0 calc((100% - var(--gc-gap) * (var(--gc-cols) - 1)) / var(--gc-cols));
	margin: 0;
	padding: 0;
	list-style: none;
	scroll-snap-align: start;
}

.gc__link {
	display: block;
}

.gc__img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	aspect-ratio: var(--gc-ratio);
	object-fit: cover;
	border-radius: var(--gc-radius);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gc__slide:hover .gc__img {
	transform: translateY(-3px);
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

/* Nothing to scroll: hide arrows */
.gc--static .gc__nav {
	display: none;
}

/* Responsive */
@media (max-width: 1024px) {
	.gc {
		--gc-cols: 3;
		--gc-gap: 16px;
	}
}

@media (max-width: 600px) {
	.gc {
		--gc-cols: 2;
		--gc-gap: 12px;
	}
	.gc__btn {
		width: 44px;
		height: 44px;
	}
	.gc__title {
		flex-basis: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gc__track {
		scroll-behavior: auto;
	}
	.gc__img,
	.gc__btn {
		transition: none;
	}
}
