.angie-image-accordion {
	display: flex;
	width: 100%;
	height: 400px; /* Default height, overriden by widget settings */
	overflow: hidden;
}

.angie-accordion-item {
	position: relative;
	flex: 1;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transition: flex 0.5s ease;
	cursor: pointer;
	overflow: hidden;
	display: flex;
	align-items: flex-end;
	text-decoration: none;
}

.angie-accordion-item:hover,
.angie-accordion-item.active {
	flex: 3;
}

/* Overlay */
.angie-accordion-item::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.3); /* Default, overriden by widget settings */
	transition: background-color 0.3s ease;
	z-index: 1;
}

.angie-accordion-content {
	position: relative;
	z-index: 2;
	padding: 20px;
	width: 100%;
	background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
	transform: translateY(20px);
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.angie-accordion-item.active .angie-accordion-content,
.angie-accordion-item:hover .angie-accordion-content {
	transform: translateY(0);
}

.angie-accordion-title {
	margin: 0 0 10px;
	font-size: 1.5rem;
	font-weight: 700;
	color: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.angie-accordion-desc {
	font-size: 1rem;
	color: #fff;
	opacity: 0;
	max-height: 0;
	transition: opacity 0.5s ease, max-height 0.5s ease;
	overflow: hidden;
}

.angie-accordion-item.active .angie-accordion-desc,
.angie-accordion-item:hover .angie-accordion-desc {
	opacity: 1;
	max-height: 200px; /* Adjust as needed */
}

/* Mobile Responsive */
@media (max-width: 767px) {
	.angie-image-accordion {
		flex-direction: column;
		height: auto;
	}
	
	.angie-accordion-item {
		width: 100%;
		height: 100px; /* Collapsed height on mobile */
		flex: none;
	}
	
	.angie-accordion-item.active {
		height: 300px; /* Expanded height on mobile */
		flex: none;
	}
}
