/* Custom refinements — RHold Labs */

/* Single-column homepage: About above the project carousel */
#sidebar {
	width: 100%;
	min-width: 0;
	max-width: 40em;
	margin: 0 auto 3em auto;
}

#intro {
	text-align: center;
}

/* Project carousel (homepage) */
#main.index-main {
	display: block !important;
	position: relative;
	border-top: solid 1px rgba(160, 160, 160, 0.3);
	padding-top: 3em;
}

.carousel-track {
	display: flex;
	gap: 2em;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding: 0.5em 0 1.5em 0;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.carousel-track::-webkit-scrollbar {
	height: 8px;
}

.carousel-track::-webkit-scrollbar-thumb {
	background: rgba(160, 160, 160, 0.4);
	border-radius: 4px;
}

.carousel-track > .carousel-slide {
	flex: 0 0 auto;
	width: min(380px, 80vw);
	margin: 0 !important;
	scroll-snap-align: start;
}

.carousel-track > .carousel-slide > a.image.featured {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.carousel-track > .carousel-slide > a.image.featured img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
}

.carousel-btn {
	position: absolute;
	top: 40%;
	z-index: 10;
	width: 2.75em;
	height: 2.75em;
	border-radius: 50%;
	border: solid 1px rgba(160, 160, 160, 0.3);
	background: #ffffff;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
	cursor: pointer;
	font-size: 1em;
	color: #3c3b3b;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s ease, box-shadow 0.2s ease;
}

.carousel-btn:hover {
	color: #2ebaae;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.carousel-prev {
	left: -1.375em;
}

.carousel-next {
	right: -1.375em;
}

@media screen and (max-width: 980px) {
	.carousel-btn {
		display: none;
	}
}

/* Consultation CTA (pricing page) */
.post .button.large {
	display: inline-block;
	margin-top: 1.5em;
	padding: 0 3.5em;
}
