/* Simple Post Carousel — original styles, self-contained engine. */

.spc-wrapper {
	position: relative;
	max-width: 100%;
	margin: 2rem 0;
	box-sizing: border-box;
}

.spc-wrapper * ,
.spc-wrapper *::before,
.spc-wrapper *::after {
	box-sizing: inherit;
}

.spc-heading {
	font-size: 1.6rem;
	font-weight: 600;
	margin: 0 0 1.25rem;
	text-align: center;
	text-transform: initial !important;
}

/* ---------- Shared carousel shell ---------- */

.spc-carousel {
	position: relative;
	overflow: hidden;
}

.spc-style-card .spc-carousel {
	padding: 0 2.5rem 2.5rem;
}

.spc-track {
	display: flex;
	align-items: stretch;
	will-change: transform;
	transition: transform 0.45s ease;
}

.spc-style-card .spc-track {
	gap: 0; /* gap handled per-slide via calc() width, see JS */
}

.spc-slide {
	flex-shrink: 0;
	position: relative;width: calc( 100% / var( --spc-columns-mobile, 1 ) );
}

@media (min-width: 600px) {
	.spc-slide {
		width: calc( 100% / var( --spc-columns-tablet, 2 ) );
	}
}

@media (min-width: 1024px) {
	.spc-slide {
		width: calc( 100% / var( --spc-columns, 4 ) );
	}
}

.spc-style-card .spc-slide {
	margin-right: 20px;
}

.spc-style-card .spc-slide:last-child {
	margin-right: 0;
}

/* Nav arrows (shared) */
.spc-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 2.25rem;
	height: 2.25rem;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-left: 40px;
	margin-right: 40px;
	background: #fff;
	border: none;
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	cursor: pointer;
	z-index: 5;
	font-size: 0.9rem;
	color: #1a1a1a;
	user-select: none;
	transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
	padding: 0;
}

.spc-nav:hover {
	background: #1a1a1a;
	color: #fff;
}

.spc-nav.is-disabled {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}

.spc-style-card .spc-prev {
	left: -0.25rem;
}

.spc-style-card .spc-next {
	right: -0.25rem;
}

/* Dots (shared) */
.spc-dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
	margin-top: 1rem;
}

.spc-dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: #c9c9c9;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.spc-dot:hover {
	background: #9a9a9a;
}

.spc-dot.is-active {
	background: #1a1a1a;
	transform: scale(1.2);
}

/* ---------- Card style (horizontal: image 1/3 left, content 2/3 right) ---------- */

/* One full-width slide at a time, sliding via translateX — same mechanism
   and timing as the gallery style's hero stage transition. */
.spc-style-card .spc-carousel {
	--spc-columns: 1;
}

.spc-style-card .spc-track {
	transition: transform 0.5s ease;

}

.spc-style-card .spc-slide {
	margin-right: 0;
}

.spc-card {
	display: flex;
	max-width: 1080px;
	width: 90%;
	margin-left: auto;
	margin-right: auto;
	flex-direction: column;
	height: 100%;
	background: #272d2d;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.spc-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.spc-style-card .spc-card {
	flex-direction: row;
}

.spc-style-card .spc-card:hover {
	transform: none;
}

.spc-card-hz-link {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	width: 100%;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.spc-card-media {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.spc-card-media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	transition: transform 0.35s ease;
}

.spc-card:hover .spc-card-media img {
	transform: scale(1.01);
}

.spc-card-media-placeholder {
	width: 100%;
	height: 100%;
}

/* Image column: fixed 1/3 width, stretched to the row's full height. */
.spc-style-card .spc-card-media {
	flex: 0 0 33.3333%;
	max-width: 33.3333%;
	aspect-ratio: auto;
	align-self: stretch;
}

.spc-card-body {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	margin-top: 26px;
	flex: 1;
	padding: 1.1rem 3rem 1.3rem;
}

.spc-card-title {
	font-size: 30px;
	font-weight: bold;
	line-height: 220%;
	color: #fff;
	margin: 0 0 0.5rem;
	text-transform: initial !important;
}

.spc-card-title a {
	color: #1a1a1a;
	text-decoration: none;
}

.spc-card-title a:hover {
	text-decoration: underline;
}

.spc-card-excerpt {
	font-size: 1rem;
	line-height: 1.4;
	color: #fff;
	width: 95%;
	margin: 0 0 1rem;
	flex: 1;
}

.spc-card-button {
	visibility: hidden;
	display: inline-block;
	align-self: flex-start;
	padding: 0.55rem 1.1rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: #fff;
	background: #1a1a1a;
	border-radius: 6px;
	text-decoration: none;
	transition: background 0.2s ease;
}

.spc-card-button:hover {
	background: #d4a017; /* Amber accent — tweak to your brand color. */
	color: #1a1a1a;
}

/* Text column: 2/3 width, vertically centered next to the image. */
.spc-style-card .spc-card-body {
	flex: 1 1 66.6667%;
	max-width: 66.6667%;
}

.spc-style-card .spc-card-title a {
	color: inherit;
}

.spc-style-card .spc-card-excerpt {
	flex: 0 1 auto;
}

.spc-style-card .spc-card-button {
	pointer-events: none; /* the whole card is already the click target */
}

@media (max-width: 782px) {
	.spc-style-card .spc-carousel {
		padding: 0 2rem 2.25rem;
	}
	.spc-nav {
		width: 1.9rem;
		height: 1.9rem;
	}
	.spc-card-hz-link {
		flex-direction: column;
	}
	.spc-style-card .spc-card-media,
	.spc-style-card .spc-card-body {
		flex: 1 1 auto;
		width: 90%;
		max-width: 100%;
	}
	.spc-style-card .spc-card-media {
		aspect-ratio: 16 / 9;
		object-fit: contain;
	}
}

/* ---------- Hero style (full-bleed feature slider) ---------- */

.spc-style-hero .spc-carousel {
	width: 100%;
}

.spc-style-hero .spc-slide {
	width: 100%;
}

.spc-hero-slide {
	position: relative;
	width: 100%;
	height: 500px;
	background-size: cover;
	background-position: center;
	background-color: #2a2a2a;
	display: flex;
	align-items: center;
	justify-content: center;
}

.spc-hero-slide::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.55) 100%);
}

.spc-hero-overlay {
	position: relative;
	z-index: 2;
	text-align: center;
	color: #fff;
	padding: 0 1.5rem;
}

.spc-hero-title {
	font-size: 2.50rem;
	font-weight: 600;
	margin: 0 0 1.5rem;
	text-transform: initial !important;
	color: #fff;
}

.spc-hero-button {
	display: inline-block;
	padding: 4px 12px 5px 12px;
	border: 2px solid #e4572e;
	border-radius: 999px;
	color: #e4572e;
	text-decoration: none;
	font-weight: 600;
	letter-spacing: 0.02em;
	transition: background 0.2s ease, color 0.2s ease;
}

.spc-hero-button:hover {
	background: #e4572e;
	border: 2px solid #e4572e;
	color: #fff;
}

.spc-style-hero .spc-prev {
	left: 1.25rem;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	backdrop-filter: blur(2px);
}

.spc-style-hero .spc-next {
	right: 1.25rem;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	backdrop-filter: blur(2px);
}

.spc-style-hero .spc-nav:hover {
	background: rgba(255, 255, 255, 0.35);
}

.spc-style-hero .spc-dots {
	position: absolute;
	bottom: 1.25rem;
	left: 0;
	right: 0;
	z-index: 3;
	margin-top: 0;
}

.spc-style-hero .spc-dot {
	background: rgba(255, 255, 255, 0.5);
}

.spc-style-hero .spc-dot.is-active {
	background: #fff;
}

@media (max-width: 782px) {
	.spc-hero-slide {
		height: 420px;
	}
	.spc-hero-title {
		font-size: 1.75rem;
	}
}

/* ---------- Thumb style (decorative image-only preview strip) ---------- */

.spc-style-thumb .spc-carousel {
	padding: 0;
}

.spc-style-thumb .spc-slide {
	margin-right: 4px;
}

.spc-style-thumb .spc-slide:last-child {
	margin-right: 0;
}

.spc-style-thumb .spc-card {
	border-radius: 0;
	box-shadow: none;
}

.spc-style-thumb .spc-card:hover {
	transform: none;
	box-shadow: none;
}

.spc-style-thumb .spc-card-media {
	aspect-ratio: 12 / 5;
}

.spc-style-thumb .spc-card-media img {
	filter: brightness(0.8);
	transition: filter 0.25s ease, transform 0.35s ease;
}

.spc-style-thumb .spc-card:hover .spc-card-media img {
	filter: brightness(1);
	transform: scale(1.04);
}

/* ---------- Gallery style (synced hero + thumbnail strip) ---------- */

.spc-style-gallery {
	margin: 0;
}

.spc-gallery {
	display: flex;
	flex-direction: column;
	--spc-gap: 8px;
}

/* Hero stage: a horizontal sliding track, same mechanism as the thumb strip */
.spc-hero {
	position: relative;
	width: 100%;
	height: 640px;
	overflow: hidden;
	background: #2a2a2a;
}

.spc-hero-stage {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.spc-hero-track {
	display: flex;
	width: 100%;
	height: 100%;
	will-change: transform;
	transition: transform 0.5s ease;
}

.spc-hero-item {
	flex: 0 0 100%;
	width: 100%;
	height: 100%;
	position: relative;
	background-size: cover;
	background-position: center;
	background-color: #2a2a2a;
	display: flex;
	align-items: center;
	justify-content: center;
}

.spc-hero-item::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.55) 100%);
}

.spc-hero-overlay {
	position: relative;
	z-index: 2;
	text-align: center;
	color: #fff;
	padding: 0 1.5rem;
}

.spc-hero-title {
	font-size: 2.50rem;
	font-weight: 600;
	margin: 0 0 1.5rem;
	text-transform: initial !important;
	color: #fff;
}

.spc-hero-button {
	display: inline-block;
	padding: 4px 12px 5px 12px;
	border: 2px solid #e4572e;
	border-radius: 999px;
	color: #e4572e;
	text-decoration: none;
	font-weight: 600;
	letter-spacing: 0.02em;
	transition: background 0.2s ease, color 0.2s ease;
}

.spc-hero-button:hover {
	background: #e4572e;
	border: 2px solid #e4572e;
	color: #fff;
}

.spc-hero .spc-prev {
	left: 1.25rem;
	background: rgba(255, 255, 255, 0.4);
	color: #fff;
	backdrop-filter: blur(2px);
}

.spc-hero .spc-next {
	right: 1.25rem;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	backdrop-filter: blur(2px);
}

.spc-hero .spc-nav:hover {
	background: rgba(255, 255, 255, 0.35);
}

.spc-hero .spc-dots {
	position: absolute;
	bottom: 1.25rem;
	left: 0;
	right: 0;
	z-index: 3;
	margin-top: 0;
}

.spc-hero .spc-dot {
	background: rgba(255, 255, 255, 0.5);
}

.spc-hero .spc-dot.is-active {
	background: #fff;
}

/* Thumbnail strip — same --spc-gap value used above the strip and between its items */
.spc-thumbs {
	position: relative;
	width: 100%;
	overflow: hidden;
	margin-top: var(--spc-gap, 20px);
}

.spc-thumbs-track {
	display: flex;
	will-change: transform;
	transition: transform 0.45s ease;
	cursor: grab;
	touch-action: pan-y;
	user-select: none;
}

.spc-thumbs-track:active {
	cursor: grabbing;
}

.spc-thumb-item img {
	pointer-events: none; /* let drags pass through to the track, not the <img> */
}

.spc-thumb-item {
	flex-shrink: 0;
	width: calc( 100% / var( --spc-columns-mobile, 2 ) );
	margin-right: var(--spc-gap, 20px);
	cursor: pointer;
	position: relative;
	opacity: 0.7;
	transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 600px) {
	.spc-thumb-item {
		width: calc( 100% / var( --spc-columns-tablet, 3 ) );
	}
}

@media (min-width: 1024px) {
	.spc-thumb-item {
		width: calc( 100% / var( --spc-columns, 5 ) );
	}
}

.spc-thumb-item:last-child {
	margin-right: 0;
}

.spc-thumb-item img {
	width: 100%;
	height: 100%;
	aspect-ratio: 12 / 5;
	object-fit: cover;
	display: block;
}

.spc-thumb-item:hover {
	opacity: 0.9;
}

.spc-thumb-item.is-active {
	opacity: 1;
	box-shadow: inset 0 0 0 3px #e8a13a;
}

@media (max-width: 782px) {
	.spc-hero {
		height: 420px;
	}
	.spc-hero-title {
		font-size: 1.75rem;
	}
}

