.rffi-fullscreen-image {
    position: absolute; /* Scrolls with page */
    top: 0;
    left: 0;
    width: 100%;
    height: 80vh; /* Full viewport height */
    background-size: cover;
    background-position: center center; /* Start at top */
    background-repeat: no-repeat;
    z-index: -1; /* Behind content */
    will-change: background-position; /* Optimize for background movement */
    /* Layer the gradient over the inline background-image */
    background-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.5) 0%,    /* 50% black at the top */
        rgba(0, 0, 0, 0) 200px    /* Fully transparent at 200px */
    ), var(--bg-image); /* Use a CSS variable for the inline image */
}
.home .rffi-fullscreen-image{
	height: 100vh; /* Full viewport height */
}

.rffi-background-overlay{
	pointer-events: none;
	width: 100%;
	height: 80vh;
	position: absolute;
	background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.5) 0%,    /* 50% black at the top */
        rgba(0, 0, 0, 0) 200px    /* Fully transparent at 200px */
       
    ); /* Gradient overlay */
}

.rffi-overlay {
   
    position: absolute;
    bottom: 340px;
    left: 35px;
    max-width: 100%;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    color: #ffffff;
    border-radius: 5px;
}
h3.rffi-heading {
    margin: 0 0 10px 0; /* Space below heading */
    font-size: 16px; /* Smaller than title */
    font-weight: 400; /* Lighter weight */
    line-height: 2.5em !important;
    text-transform: uppercase; /* Optional: for emphasis */
    color: #ffffff !important;
    border-bottom: 1px solid #fff;
    width: 100%;
    letter-spacing: .3em !important;
}

.rffi-title {
    margin: 0 0 10px 0;
    font-size: 24px;
    line-height: 1.2;
    color: #fff !important;
}

.rffi-excerpt {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
}

.rffi-fullscreen-image-placeholder {
    width: 100%;
    height: 200px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Ensure page has scrollable height */
body {
    min-height: 200vh; /* Allows scrolling */
}

/* Mobile Devices (max-width: 767px) */
@media screen and (max-width: 1024px) {
	
.rffi-overlay {
	left: 20px;
	margin-right: 20px;
	}
    
    
}