/* Ethnic Hanger Video Carousel */

.evc-carousel {
	position: relative;
	margin: 24px 0;
	padding: 0 48px;
	box-sizing: border-box;
}

/* Center and cap width when maxwidth="..." is set */
.evc-carousel.evc-has-maxwidth {
	max-width: var(--evc-maxwidth, 100%);
	margin-left: auto;
	margin-right: auto;
}

.evc-carousel * {
	box-sizing: border-box;
}

.evc-viewport {
	overflow: hidden;
	width: 100%;
}

.evc-track {
	display: flex;
	transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
	will-change: transform;
}

.evc-slide {
	flex: 0 0 auto;
	width: 33.3333%;
	max-width: 33.3333%;
	padding: 0 calc(var(--evc-gap, 16px) / 2);
}

/* Sensible defaults before JS sizes the slides (and graceful fallback if JS fails) */
@media (max-width: 980px) {
	.evc-slide {
		width: 50%;
		max-width: 50%;
	}
}

@media (max-width: 600px) {
	.evc-slide {
		width: 100%;
		max-width: 100%;
	}
}

.evc-media {
	position: relative;
	width: 100%;
	aspect-ratio: var(--evc-ratio, 16 / 9);
	background: #000;
	border-radius: var(--evc-radius, 10px);
	overflow: hidden;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

/* When height="..." is set, use a fixed pixel height instead of an aspect ratio */
.evc-has-height .evc-media {
	aspect-ratio: auto;
	height: var(--evc-height, 360px);
}

/* Fallback for browsers without aspect-ratio support (ignored when a fixed height is set) */
@supports not (aspect-ratio: 16 / 9) {
	.evc-carousel:not(.evc-has-height) .evc-media {
		height: 0;
		padding-bottom: 56.25%;
	}
}

.evc-media .evc-video,
.evc-media iframe,
.evc-media .evc-poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
	display: block;
}

.evc-media .evc-video {
	background: #000;
}

/* Play button overlay for YouTube */
.evc-play {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	border: 0;
	background: rgba(0, 0, 0, 0.55);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s, transform 0.2s;
}

.evc-play:hover {
	background: #e60023;
	transform: scale(1.06);
}

.evc-play-icon {
	width: 0;
	height: 0;
	margin-left: 5px;
	border-style: solid;
	border-width: 13px 0 13px 22px;
	border-color: transparent transparent transparent #fff;
}

.evc-caption {
	margin-top: 10px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	text-align: center;
	color: inherit;
}

/* Navigation arrows */
.evc-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: #1a1a1a;
	color: #fff;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s, opacity 0.2s;
}

.evc-nav:hover {
	background: #e60023;
}

.evc-prev {
	left: 0;
}

.evc-next {
	right: 0;
}

.evc-nav[disabled] {
	opacity: 0.3;
	cursor: default;
}

/* Dots */
.evc-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 16px;
}

.evc-dots button {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #c9c9c9;
	cursor: pointer;
	transition: background 0.2s, transform 0.2s;
}

.evc-dots button.is-active {
	background: #e60023;
	transform: scale(1.25);
}

@media (max-width: 600px) {
	.evc-carousel {
		padding: 0 36px;
	}

	.evc-nav {
		width: 34px;
		height: 34px;
		font-size: 16px;
	}
}
