/* ==========================================================
   Expand Carousel for Elementor
   Dizajn bazuar ne The Meat Co — expand-carousel-wrapper
   ========================================================== */

/* ---- Outer container ---- */
.ec-expand-carousel {
	overflow: hidden;
	position: relative;
	padding-bottom: 2rem;
}

/* ---- Navigation bar ---- */
.ec-carousel-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 50px;
	width: 100%;
	box-sizing: border-box;
	position: relative;
	z-index: 10;
	margin-bottom: 0;
}

.ec-carousel-nav--under {
	margin-top: 20px;
	margin-bottom: 0;
}

/* ---- Arrow buttons ---- */
.ec-carousel-nav-btn {
	width: 50px;
	height: 50px;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	position: relative;
}

.ec-carousel-nav-btn.ec-visible {
	opacity: 1;
	visibility: visible;
}

/* Chevron via pseudo-element */
.ec-carousel-nav-btn::before {
	content: '';
	display: block;
	width: 18px;
	height: 18px;
	border-top: 3px solid #fff;
	border-right: 3px solid #fff;
	transform: rotate(45deg);
	transition: transform 0.3s ease;
}

/* Left arrow points left */
.ec-carousel-left::before {
	transform: rotate(-135deg);
}

/* Hover scale */
.ec-carousel-nav-btn:hover {
	transform: scale(1.5);
}

/* ---- Wrapper (flex container for boxes) ---- */
.ec-expand-carousel-wrapper {
	overflow: visible;
	display: flex;
	justify-content: flex-start;
	min-width: fit-content;
	transition: margin-left 0.7s ease;
	margin-left: 0;
	will-change: margin-left;
}

/* ---- Individual box ---- */
.ec-box {
	height: 700px;         /* overridden by inline style */
	min-width: 185px;      /* overridden by inline style */
	max-width: 185px;      /* overridden by inline style */
	margin: 5px;           /* overridden by inline style */
	overflow: hidden;
	cursor: pointer;
	position: relative;
	flex-shrink: 0;
	will-change: min-width, max-width;
}

.ec-box img {
	object-fit: cover;
	width: 100%;
	height: 100%;
	max-width: none;
	display: block;
	pointer-events: none;
	user-select: none;
	transform-origin: center center;
	transition: transform 0.7s ease;
}

.ec-box.ec-active img {
	transform: scale(1.05);
}

/* ---- Link wrapper ---- */
.ec-box-link {
	display: block;
	width: 100%;
	height: 100%;
	position: absolute;
	inset: 0;
	z-index: 3;
	text-decoration: none;
}

/* ---- Text overlay ---- */
.ec-box-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 24px 20px;
	z-index: 2;
	transition: opacity 0.4s ease, background 0.4s ease;
	pointer-events: none;
}

.ec-box-text {
	display: flex;
	flex-direction: column;
	gap: 6px;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

.ec-box.ec-active .ec-box-text {
	opacity: 1;
	transform: translateY(0);
}

.ec-box-title {
	font-size: 1.1rem;
	font-weight: 600;
	line-height: 1.3;
	color: #fff;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.ec-box-subtitle {
	font-size: 0.85rem;
	font-weight: 400;
	color: #ccc;
	letter-spacing: 0.05em;
}

/* ---- Overlay only on active (controlled by inline style per instance) ---- */
.ec-box-overlay {
	transition: opacity 0.4s ease;
}

/* ---- Nav position: over — nav sits above wrapper ---- */
.ec-nav-over .ec-carousel-nav {
	margin-bottom: 15px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
	.ec-box {
		height: 400px !important;
	}
}

@media (max-width: 750px) {
	.ec-box {
		height: 240px !important;
	}

	.ec-carousel-nav {
		padding: 0 20px;
	}

	.ec-box-title {
		font-size: 0.85rem;
	}

	.ec-box-subtitle {
		font-size: 0.75rem;
	}
}

@media (max-width: 480px) {
	.ec-box {
		height: 200px !important;
	}
}
