/* widget: Content Reveal on Hover */

.fx_long_content_box {
	overflow: hidden;
}
.fx_long_content_box * {
	box-sizing: border-box;
}

.fx_long_content_box_holder {
	position: relative;
	text-align: left;
	overflow: hidden;
}

.fx_long_content_box_box {
	position: relative;
}

.fx_image_box {
	position: relative;
	background-size: cover !important;
	background-repeat: no-repeat !important;
	width: 100%;
	background-blend-mode: normal;
}

.fx_overlay {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	z-index: 2;
	transition: 0.5s;
	background-color: var(--e-global-color-overlay, rgba(0,0,0,0.5)); /* fallback color */
	opacity: var(--fx-overlay-opacity, 0.5); /* custom opacity variable if needed */
}

.fx_box_content {
	position: absolute;
	left: 0;
	bottom: 0;
	margin: 0;
	width: 100%;
	z-index: 3;
	overflow: hidden;
	display: flex;
	height: 100%;
	flex-direction: column;
	justify-content: flex-end;
	transition: 0.5s;
	transform: translateY(10px);
}

.fx_title {
	margin: 0;
	transition: 0.5s;
	color: var(--e-global-color-primary); /* use global primary color */
	font-family: var(--e-global-typography-primary-font-family);
	font-size: var(--e-global-typography-primary-font-size);
	font-weight: var(--e-global-typography-primary-font-weight);
	line-height: var(--e-global-typography-primary-line-height);
	letter-spacing: var(--e-global-typography-primary-letter-spacing);
}
.fx_long_content_box_holder:hover {
	cursor: pointer;
}

/* .fx_long_content_box_holder:hover .fx_box_content .fx_title {
	transform: translateY(-10px);
} */


.fx_overlay_link {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	justify-content: center;
	align-items: center;
}
.fx_overlay_link_btn{
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index : 10 ;
}

.fx_hidden_content {
	overflow: hidden;
	transform: scaleY(0);
	transform-origin: bottom;
	transition: 0.5s;
	max-height: 0;
	opacity: 0;
}
.fx_btn_wrapper .fx_btn {
	display: block;
	width: fit-content;
}

.fx_description,
.fx_description p {
	margin-block-end: 0.9rem;
}
.fx_description p:last-child {
	margin-block-end: 0;
}

.fx_long_content_box_holder:hover .fx_hidden_content {
	max-height: 100%;
	transform: scaleY(1);
	overflow: visible;
	opacity: 1;
}
.fx_title_above_image {
	display: flex;
	flex-direction: column;
	width: fit-content !important;
}

.fx_description {
	color: var(--e-global-color-text);
	font-family: var(--e-global-typography-text-font-family);
	font-size: var(--e-global-typography-text-font-size);
	font-weight: var(--e-global-typography-text-font-weight);
	line-height: var(--e-global-typography-text-line-height);
	letter-spacing: var(--e-global-typography-text-letter-spacing);
}

.fx_btn {
	text-decoration: none;
	display: inline-block;
	text-align: center;
	padding: 0.75em 1.5em;
	background-color: var(--e-global-color-accent);
	color: var(--e-global-color-button-text);
	font-family: var(--e-global-typography-accent-font-family);
	font-size: var(--e-global-typography-accent-font-size);
	font-weight: var(--e-global-typography-accent-font-weight);
	line-height: var(--e-global-typography-accent-line-height);
	letter-spacing: var(--e-global-typography-accent-letter-spacing);
	border-radius: var(--e-global-radius-button);
	transition: 0.5s;
}

.fx_btn:hover {
	background-color: var(--e-global-color-accent-hover, #222);
	color: var(--e-global-color-button-text-hover, #fff);
}
