/* -------------------------------------------------------------
   RFI Carousel – fixed height + variable width + overlay arrows
------------------------------------------------------------- */

/* Wrapper around arrows + track */
.rfi-carousel-wrapper {
	display: block;
	position: relative;        /* so navs can be absolutely positioned */
	padding: 0.5rem 0;
}

/* Horizontal track */
.rfi-carousel-track {
	display: flex;
	gap: 15px;
	overflow: hidden;
	scroll-behavior: smooth;
	align-items: center;       /* centers variable-height children */
	width: 100%;               /* full width */
}

/* Each item auto-sizes based on its image width */
.rfi-carousel-item {
	flex: 0 0 auto;
	text-decoration: none;
	overflow: hidden;
	display: block;
	position: relative;
}
.rfi-carousel-item:hover .rfi-carousel-img:after{
	content:'';
	background: rgba(0,0,0,.2);
	position: absolute;
	top:0;right:0;left:0;bottom:0;
}

/* Image wrapper: fixed height, width adjusts automatically */
.rfi-carousel-img {
	position: relative;
	height: 220px;             /* ← Set desired carousel height */
	overflow: hidden;
	display: inline-block;
}

/* Image maintains ratio by controlling height only */
.rfi-carousel-img img {
	height: 100%;
	width: auto;
	display: block;
	object-fit: cover;         /* keeps good cropping on landscape shots */
}

/* Navigation arrows – now overlayed on top of track */
.rfi-carousel-nav,
.rfi-carousel-nav:focus {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	border: none;
	background: #000000;
	width: 35px;
	height: 35px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
	z-index: 5;
	padding:11px !important;
}

/* left/right placement */
.rfi-carousel-prev {
	left: -20px;                   /* hug left edge */
}

.rfi-carousel-next {
	right: -20px;                  /* hug right edge */
}

.rfi-carousel-nav svg {
	width: 35px;
	height: 35px;
	display: block;
}

.rfi-carousel-nav:hover {
	transform: translateY(-50%) translateY(-1px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
	background: rgba(0,0,0,.7);
}

.rfi-carousel-nav:active {
	transform: translateY(-50%);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	background: rgba(0,0,0,.7);
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.rfi-carousel-prev {
		left: -10px;                   /* hug left edge */
	}
	
	.rfi-carousel-next {
		right: -10px;                  /* hug right edge */
	}
}
