.css-section {
	width: 100%;
}

/* Heading */
.css-heading {
	text-align: center;
	max-width: 720px;
	margin: 0 auto 40px;
}

.css-title {
	font-size: 40px;
	font-weight: 800;
	margin: 0 0 16px;
	line-height: 1.2;
}

.css-underline {
	width: 120px;
	height: 3px;
	margin: 0 auto 24px;
	border-radius: 2px;
}

.css-subtitle {
	font-size: 17px;
	line-height: 1.7;
	margin: 0;
}

/* Rows wrapper — stacks the two draggable rows */
.css-rows {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
}

/* One draggable row */
.css-slider {
	overflow-x: auto;
	overflow-y: hidden;
	width: 100%;
	cursor: grab;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.css-slider::-webkit-scrollbar {
	display: none;
}

.css-slider.css-dragging {
	cursor: grabbing;
	scroll-behavior: auto;
	user-select: none;
}

.css-track {
	--gsw-per-row: 4;
	--gsw-gap: 20px;
	display: flex;
	gap: var(--gsw-gap);
}

/* Card — sized so exactly --gsw-per-row cards fill one row; drag reveals
   any cards beyond that (flex items don't wrap, so extras overflow
   horizontally and the row above scrolls to reach them). */
.css-card {
	position: relative;
	display: block;
	flex: 0 0 calc( (100% - var(--gsw-gap) * (var(--gsw-per-row) - 1)) / var(--gsw-per-row) );
	width: calc( (100% - var(--gsw-gap) * (var(--gsw-per-row) - 1)) / var(--gsw-per-row) );
	height: 220px;
	overflow: hidden;
	border-radius: 4px;
	text-decoration: none;
	cursor: grab;
}

.css-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
	pointer-events: none;
	-webkit-user-drag: none;
}

.css-card:hover .css-card-img {
	transform: scale(1.06);
}

/* Caption panel — inset from the card edges, slides up from the bottom on hover */
.css-caption {
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: 10px;
	height: 55%;
	background-color: #ffffff;
	border: 1px solid #f43f5e;
	box-sizing: border-box;
	padding: 16px 18px;
	transform: translateY(100%);
	opacity: 0;
	transition: transform 0.35s ease, opacity 0.35s ease;
	overflow: hidden;
	pointer-events: none;
}

.css-card:hover .css-caption,
.css-card:focus .css-caption {
	transform: translateY(0);
	opacity: 1;
}

.css-caption-title {
	font-size: 17px;
	font-weight: 700;
	margin: 0 0 8px;
	line-height: 1.3;
}

.css-caption-desc {
	font-size: 13px;
	line-height: 1.6;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
