/* ── Faded Carousel v1.0.5 ───────────────────────────────────────────── */

.fc-wrapper {
	width: 100% !important;
	position: relative;
	overflow: visible !important;   /* allow arrows to sit outside bounds */
	-webkit-user-select: none;
	user-select: none;
	box-sizing: border-box;
}

.fc-stage-wrap {
	position: relative !important;
	width: 100% !important;
	padding: 16px 0 !important;
	overflow: visible !important;   /* don't clip the protruding arrows */
	box-sizing: border-box;
}

.fc-stage {
	position: relative !important;
	width: 100% !important;
	height: 320px !important;       /* default; overridden by JS */
	overflow: visible !important;
	box-sizing: border-box;
}

/* ── Slide cards ─────────────────────────────────────────────────── */
.fc-slide {
	position: absolute !important;
	top: 0 !important;
	height: 100% !important;
	border-radius: 16px;
	overflow: hidden !important;
	background-color: #cccccc;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	transition:
		left    0.5s cubic-bezier(0.4, 0, 0.2, 1),
		width   0.5s cubic-bezier(0.4, 0, 0.2, 1),
		height  0.5s cubic-bezier(0.4, 0, 0.2, 1),
		top     0.5s cubic-bezier(0.4, 0, 0.2, 1),
		opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
	cursor: pointer;
	box-sizing: border-box;
}

/*
 * Five visible positions span 0%–100% of the container:
 *   pos 0  far-left  : left=1%,  width=18%
 *   pos 1  mid-left  : left=13%, width=24%
 *   pos 2  centre    : left=32%, width=36%
 *   pos 3  mid-right : left=63%, width=24%
 *   pos 4  far-right : left=81%, width=18%
 * Heights + top-offsets are applied by JS for the size-per-tier effect.
 */
.fc-slide[data-pos="2"] { left: 32% !important; width: 36% !important; z-index: 5 !important; opacity: 1    !important; }
.fc-slide[data-pos="1"] { left: 13% !important; width: 24% !important; z-index: 4 !important; opacity: 0.5  !important; }
.fc-slide[data-pos="3"] { left: 63% !important; width: 24% !important; z-index: 4 !important; opacity: 0.5  !important; }
.fc-slide[data-pos="0"] { left:  1% !important; width: 18% !important; z-index: 3 !important; opacity: 0.25 !important; }
.fc-slide[data-pos="4"] { left: 81% !important; width: 18% !important; z-index: 3 !important; opacity: 0.25 !important; }
.fc-slide[data-pos="hidden-left"]  { left: -22% !important; width: 18% !important; z-index: 2 !important; opacity: 0 !important; pointer-events: none !important; }
.fc-slide[data-pos="hidden-right"] { left: 104% !important; width: 18% !important; z-index: 2 !important; opacity: 0 !important; pointer-events: none !important; }

/* ── Navigation buttons ───────────────────────────────────────────── */
/*
 * The far slides span:
 *   left:  1% → 19%   (centre of outer half ≈  5%)
 *   right: 1% → 19%   (centre of outer half ≈  5%)
 *
 * We want the button centre to sit at the midpoint of the outer
 * portion of the far slide — roughly 5% in from each edge.
 * Using calc(5% - 22px) places the button centre at ~5%.
 */
.fc-btn {
	position: absolute !important;
	top: calc(16px + 160px) !important; /* updated by JS to match stage height */
	transform: translateY(-50%) !important;
	z-index: 20 !important;
	width: 44px !important;
	height: 44px !important;
	border-radius: 50% !important;
	background-color: #8B1A1A !important;
	border: none !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
	transition: background-color 0.2s ease;
	padding: 0 !important;
	flex-shrink: 0;
}
.fc-btn:hover {
	background-color: #6b1212 !important;
	transform: translateY(-50%) scale(1.08) !important;
}
.fc-btn:active {
	transform: translateY(-50%) scale(0.95) !important;
}

/*
 * Far slides: left=1%, width=18% → outer edge at 1%, inner edge at 19%
 * Midpoint of outer half of far slide ≈ 1% + (18%/4) = ~5.5%
 * Button is 44px wide; to centre it at 5.5%: left = calc(5.5% - 22px)
 */
.fc-btn-prev {
	left: -10px !important;
}
.fc-btn-next {
	right: -10px !important;
}

.fc-btn svg {
	display: block;
	pointer-events: none;
}

/* ── Caption ─────────────────────────────────────────────────────── */
.fc-caption {
	text-align: center;
	margin-top: 20px;
	min-height: 52px;
	transition: opacity 0.3s ease;
}
.fc-caption.is-fading {
	opacity: 0;
}
.fc-caption-title {
	font-weight: 700;
	font-size: 16px;
	line-height: 1.4;
	color: #1a1a1a;
}
.fc-caption-desc {
	font-size: 14px;
	line-height: 1.5;
	color: #555555;
	margin-top: 4px;
}

	.fc-slide[data-pos="1"] { left: -4% !important; width: 30% !important; opacity: 0.5  !important; }
	.fc-slide[data-pos="3"] { left: 74% !important; width: 30% !important; opacity: 0.5  !important; }
	.fc-slide[data-pos="0"] { opacity: 0 !important; pointer-events: none !important; }
	.fc-slide[data-pos="4"] { opacity: 0 !important; pointer-events: none !important; }
	.fc-btn-prev { left: 4px !important; }
	.fc-btn-next { right: 4px !important; }
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ─────────────────────────────────────────────────────────────────
   ≥1024px   Desktop:       5-up  (default styles above)
   768–1023  Tablet:        3-up  (show centre + mid, hide far)
   480–767   Large mobile:  3-up  (tighter, arrows inside)
   <480      Mobile:        1-up  (centre only, full-width)
═══════════════════════════════════════════════════════════════════ */

/* ── Tablet: 768px – 1023px ──────────────────────────────────────
   Show 3 slides. Centre is wider, mid slides peek from each side.
   Far slides hidden. Arrows tucked just inside the container.      */
@media (max-width: 1023px) {
	/* Centre */
	.fc-slide[data-pos="2"] { left: 20% !important; width: 60% !important; }
	/* Mid left — peeks from left edge */
	.fc-slide[data-pos="1"] { left: 2%  !important; width: 22% !important; opacity: 0.5 !important; }
	/* Mid right — peeks from right edge */
	.fc-slide[data-pos="3"] { left: 76% !important; width: 22% !important; opacity: 0.5 !important; }
	/* Far slides hidden */
	.fc-slide[data-pos="0"] { left: -25% !important; opacity: 0 !important; pointer-events: none !important; }
	.fc-slide[data-pos="4"] { left: 105% !important; opacity: 0 !important; pointer-events: none !important; }
	/* Arrows sit just inside the container edge */
	.fc-btn-prev { left: 6px !important; }
	.fc-btn-next { right: 6px !important; }
}

/* ── Large phone: 480px – 767px ─────────────────────────────────
   Still 3-up but stage is shorter. Mid slides are thinner slivers
   to hint there's more content without cluttering the small screen. */
@media (max-width: 767px) {
	/* Centre fills most of the width */
	.fc-slide[data-pos="2"] { left: 12% !important; width: 76% !important; }
	/* Mid slides: thin slivers at each edge */
	.fc-slide[data-pos="1"] { left: 0%  !important; width: 14% !important; opacity: 0.4 !important; }
	.fc-slide[data-pos="3"] { left: 86% !important; width: 14% !important; opacity: 0.4 !important; }
	/* Far slides fully off-screen */
	.fc-slide[data-pos="0"] { left: -20% !important; opacity: 0 !important; pointer-events: none !important; }
	.fc-slide[data-pos="4"] { left: 106% !important; opacity: 0 !important; pointer-events: none !important; }
	/* Arrows overlap the sliver slides */
	.fc-btn-prev { left: 0px !important; }
	.fc-btn-next { right: 0px !important; }
	/* Slightly smaller buttons */
	.fc-btn { width: 38px !important; height: 38px !important; }
}

/* ── Mobile: < 480px ─────────────────────────────────────────────
   Single slide fills full width. No side slides visible at all.
   Arrows sit just inside the left/right edges, vertically centred.
   Caption text slightly smaller.                                    */
@media (max-width: 479px) {
	/* Centre: full width */
	.fc-slide[data-pos="2"] { left: 0% !important; width: 100% !important; border-radius: 8px !important; }
	/* All other slides hidden */
	.fc-slide[data-pos="1"],
	.fc-slide[data-pos="3"] { opacity: 0 !important; pointer-events: none !important; }
	.fc-slide[data-pos="0"] { left: -110% !important; opacity: 0 !important; pointer-events: none !important; }
	.fc-slide[data-pos="4"] { left:  110% !important; opacity: 0 !important; pointer-events: none !important; }
	.fc-slide[data-pos="hidden-left"]  { left: -110% !important; }
	.fc-slide[data-pos="hidden-right"] { left:  110% !important; }
	/* Arrows sit inside the image edges */
	.fc-btn-prev { left: 10px !important; }
	.fc-btn-next { right: 10px !important; }
	.fc-btn { width: 36px !important; height: 36px !important; }
	/* Tighter caption */
	.fc-caption-title { font-size: 15px; }
	.fc-caption-desc  { font-size: 13px; }
}
