.eec-carousel-container {
	position: relative;
	max-width: 100%;
	margin: 0 auto;
	padding: 20px 0;
}

.eec-gallery-items {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-behavior: smooth;
	padding-bottom: 20px;
	/* Space for scrollbar or shadow */
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	/* Firefox */
}

.eec-gallery-items::-webkit-scrollbar {
	display: none;
	/* Chrome/Safari */
}

.eec-gallery-item {
	flex: 0 0 100%;
	/* Mobile: 1 item per row */
	max-width: 100%;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	text-align: center;
	transition: transform 0.3s ease;
}

@media (min-width: 768px) {
	.eec-gallery-item {
		/* 4 items per row. Gap is 20px. 
		   Formula: calc(25% - (gap * (items - 1)) / items)
		   calc(25% - (20px * 3) / 4) = calc(25% - 15px)
		*/
		flex: 0 0 calc(25% - 15px);
		max-width: calc(25% - 15px);
	}
}

.eec-gallery-item:hover {
	transform: translateY(-5px);
}

.eec-card-link {
	display: block;
	text-decoration: none;
	color: inherit;
	height: 100%;
}

.eec-gallery-image {
	position: relative;
	width: 100%;
	height: auto;
	/* Allow height to vary based on image */
	overflow: hidden;
	display: block;
	/* Reset flex */
}

.eec-gallery-image img {
	width: 100%;
	height: auto;
	display: block;
}

.eec-gallery-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: #663399;
	margin: 15px 0 5px;
	padding: 0 10px;
}

.eec-gallery-caption {
	font-size: 1rem;
	color: #333;
	margin: 0 0 20px;
	padding: 0 10px;
	line-height: 1.4;
}

.eec-pagination {
	display: flex;
	justify-content: center;
	gap: 15px;
	margin-top: 10px;
}

.eec-prev,
.eec-next {
	background: none;
	border: none;
	font-size: 1rem;
	color: #663399;
	cursor: pointer;
	text-decoration: underline;
	font-weight: bold;
}

.eec-prev:hover,
.eec-next:hover {
	color: #333;
}