.srlf-carousel {
	--srlf-gap: 12px;
	--srlf-visible: 4;
	--srlf-arrow-color: #1a1a1a;
	--srlf-arrow-hover-color: #000000;
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 0.5rem 0.75rem;
	width: 100%;
	margin: 2rem 0;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.srlf-carousel__viewport {
	min-width: 0;
	overflow: hidden;
	container-type: inline-size;
	container-name: srlf-carousel;
}

.srlf-carousel__track {
	display: flex;
	gap: var(--srlf-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding: 2px 0;
}

.srlf-carousel__track::-webkit-scrollbar {
	display: none;
}

.srlf-tile {
	--srlf-tile-size: calc((100cqw - ((var(--srlf-visible) - 1) * var(--srlf-gap))) / var(--srlf-visible));
	position: relative;
	flex: 0 0 var(--srlf-tile-size);
	width: var(--srlf-tile-size);
	aspect-ratio: 1 / 1;
	overflow: hidden;
	scroll-snap-align: start;
	background-color: #d7dde3;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
}

.srlf-tile--has-image {
	background-image: var(--srlf-tile-image) !important;
	background-repeat: no-repeat !important;
	background-position: center center !important;
	background-size: cover !important;
}

.srlf-tile__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	padding: 1rem;
	background: rgba(255, 255, 255, 0.88);
	color: #2f2f2f;
	text-align: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.srlf-tile:hover .srlf-tile__overlay,
.srlf-tile:focus-within .srlf-tile__overlay,
.srlf-tile--no-image .srlf-tile__overlay {
	opacity: 1;
	pointer-events: auto;
}

.srlf-tile__date {
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.2;
	text-transform: lowercase;
}

.srlf-tile__text {
	margin: 0;
	max-width: 18ch;
	font-size: 0.82rem;
	font-style: italic;
	line-height: 1.35;
}

.srlf-tile__button {
	display: inline-block;
	margin-top: 0.15rem;
	padding: 0.45rem 0.9rem;
	border-radius: 2px;
	background: #4a4a4a;
	color: #fff !important;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1;
	text-decoration: none !important;
	text-transform: uppercase;
}

.srlf-tile__button:hover,
.srlf-tile__button:focus {
	background: #2f2f2f;
}

.srlf-carousel__nav,
.srlf-carousel__nav:hover,
.srlf-carousel__nav:focus,
.srlf-carousel__nav:active,
.srlf-carousel__nav:focus-visible {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 0 !important;
	border-radius: 0;
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
	outline: none;
	color: var(--srlf-arrow-color);
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
	text-decoration: none;
}

.srlf-carousel__nav:disabled {
	opacity: 0.25;
	cursor: default;
}

.srlf-carousel__nav:not(:disabled):hover,
.srlf-carousel__nav:not(:disabled):focus,
.srlf-carousel__nav:not(:disabled):active,
.srlf-carousel__nav:not(:disabled):focus-visible {
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
	color: var(--srlf-arrow-hover-color);
}

.srlf-carousel__source {
	grid-column: 1 / -1;
	justify-self: end;
	margin: 0.15rem 2.5rem 0 0;
	color: #8a8a8a;
	font-size: 0.8rem;
	font-style: italic;
}

.srlf-empty {
	padding: 1rem;
	border: 1px solid #d9e2ec;
	border-radius: 8px;
	background: #f8fafc;
	color: #52616f;
}

@media (max-width: 900px) {
	.srlf-carousel {
		--srlf-visible: 3;
	}
}

@media (max-width: 640px) {
	.srlf-carousel {
		--srlf-visible: 1;
		--srlf-gap: 0px;
		grid-template-columns: 2rem minmax(0, 1fr) 2rem;
		gap: 0.35rem 0.25rem;
	}

	.srlf-tile {
		--srlf-tile-size: min(100cqw, 22rem);
		flex: 0 0 100%;
		width: 100%;
		max-width: 100%;
		aspect-ratio: 1 / 1;
		min-height: 16rem;
	}

	.srlf-carousel__viewport {
		width: 100%;
	}

	.srlf-carousel__source {
		margin-right: 2rem;
	}

	.srlf-tile__overlay {
		opacity: 1;
		pointer-events: auto;
		background: rgba(255, 255, 255, 0.82);
	}

	.srlf-tile__date {
		font-size: 1rem;
	}

	.srlf-tile__text {
		max-width: 22ch;
		font-size: 0.9rem;
	}

	.srlf-tile__button {
		font-size: 0.8rem;
		padding: 0.55rem 1rem;
	}
}

@supports not (width: 1cqw) {
	.srlf-tile {
		flex: 0 0 calc((100% - 36px) / 4);
		width: calc((100% - 36px) / 4);
	}

	@media (max-width: 640px) {
		.srlf-tile {
			flex: 0 0 100%;
			width: 100%;
		}
	}
}
