/* WG Carousel for Elementor */

.wgc {
	--wgc-radius: 6px;
	--wgc-gap: 20px;
	--wgc-pv: var(--wgc-pv-d, 3);
	--wgc-speed: 600ms;
	--wgc-ease: cubic-bezier(.22, .61, .36, 1);
	--wgc-box-bg: #fff;
	--wgc-arrow-size: 46px;
	--wgc-arrow-color: #1d1d1d;
	--wgc-arrow-bg: rgba(255, 255, 255, .92);
	--wgc-dot: rgba(0, 0, 0, .22);
	--wgc-dot-active: #1d1d1d;
	position: relative;
	width: 100%;
}

.wgc *,
.wgc *::before,
.wgc *::after {
	box-sizing: border-box;
}

.wgc .wgc-stage {
	position: relative;
}

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

.wgc .wgc-track {
	display: flex;
	align-items: stretch;
	gap: var(--wgc-gap);
	transition: transform var(--wgc-speed) var(--wgc-ease);
	will-change: transform;
	touch-action: pan-y;
	cursor: grab;
}

.wgc .wgc-track.is-dragging {
	transition: none;
	cursor: grabbing;
}

.wgc .wgc-slide {
	flex: 0 0 auto;
	/* Fallback width before the script sizes the slides */
	width: calc((100% - (var(--wgc-pv) - 1) * var(--wgc-gap)) / var(--wgc-pv));
	min-width: 0;
}

/* ---------- Slide inner / link ---------- */

.wgc .wgc-inner,
.wgc a.wgc-inner:hover,
.wgc a.wgc-inner:focus,
.wgc a.wgc-inner:visited {
	display: block;
	position: relative;
	height: 100%;
	color: inherit;
	text-decoration: none;
	border-radius: var(--wgc-radius);
	-webkit-user-drag: none;
	user-select: none;
}

.wgc a.wgc-inner:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.wgc .wgc-media {
	position: relative;
	height: 460px;
	overflow: hidden;
	border-radius: var(--wgc-radius);
	background: #ece8e2;
}

.wgc .wgc-media img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	border-radius: 0;
	transition: transform 1.2s var(--wgc-ease);
	pointer-events: none;
}

.wgc--zoom .wgc-inner:hover .wgc-media img {
	transform: scale(1.06);
}

.wgc .wgc-shade {
	position: absolute;
	inset: 0;
	pointer-events: none;
	display: none;
}

/* ---------- Text ---------- */

.wgc .wgc-title {
	margin: 0 0 .3em;
	padding: 0;
	font-size: 1.5rem;
	line-height: 1.2;
	font-weight: 500;
	color: inherit;
}

.wgc .wgc-subtitle {
	margin: 0;
	font-size: .95rem;
	line-height: 1.5;
	color: inherit;
	opacity: .9;
}

.wgc .wgc-btn {
	display: inline-block;
	margin-top: 16px;
	padding: .7em 1.6em;
	border: 1px solid currentColor;
	font-size: .75rem;
	line-height: 1;
	letter-spacing: .14em;
	text-transform: uppercase;
	transition: background-color .3s, color .3s, border-color .3s;
}

/* ---------- Text-on-image layouts: overlay, centered, fade ---------- */

.wgc--overlay .wgc-shade,
.wgc--centered .wgc-shade,
.wgc--fade .wgc-shade {
	display: block;
	background: linear-gradient(to top, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, .15) 45%, rgba(0, 0, 0, 0) 70%);
}

.wgc--v-start.wgc--overlay .wgc-shade,
.wgc--v-start.wgc--centered .wgc-shade,
.wgc--v-start.wgc--fade .wgc-shade {
	background: linear-gradient(to bottom, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, .15) 45%, rgba(0, 0, 0, 0) 70%);
}

.wgc--v-center.wgc--overlay .wgc-shade,
.wgc--v-center.wgc--centered .wgc-shade,
.wgc--v-center.wgc--fade .wgc-shade {
	background: rgba(0, 0, 0, .32);
}

.wgc--overlay .wgc-content,
.wgc--centered .wgc-content,
.wgc--fade .wgc-content {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 28px;
	color: #fff;
	text-align: left;
}

.wgc--v-start .wgc-content {
	justify-content: flex-start;
}

.wgc--v-center .wgc-content {
	justify-content: center;
}

.wgc--overlay .wgc-title,
.wgc--centered .wgc-title,
.wgc--fade .wgc-title {
	color: #fff;
}

.wgc--overlay .wgc-subtitle,
.wgc--centered .wgc-subtitle,
.wgc--fade .wgc-subtitle {
	color: rgba(255, 255, 255, .9);
}

.wgc--overlay .wgc-inner:hover .wgc-btn,
.wgc--centered .wgc-inner:hover .wgc-btn,
.wgc--fade .wgc-inner:hover .wgc-btn {
	background-color: #fff;
	border-color: #fff;
	color: #1d1d1d;
}

/* Hero fade */
.wgc--fade .wgc-track {
	display: grid;
	transform: none !important;
	cursor: default;
}

.wgc--fade .wgc-slide {
	grid-area: 1 / 1;
	width: 100% !important;
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--wgc-speed) ease, visibility 0s linear var(--wgc-speed);
}

.wgc--fade .wgc-slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
	transition: opacity var(--wgc-speed) ease, visibility 0s;
}

.wgc--fade .wgc-media {
	height: 620px;
}

.wgc--fade .wgc-content {
	padding: clamp(28px, 6vw, 80px);
}

.wgc--fade .wgc-title {
	font-size: clamp(1.8rem, 4vw, 3.2rem);
	line-height: 1.1;
}

.wgc--fade .wgc-subtitle {
	font-size: clamp(1rem, 1.4vw, 1.2rem);
}

/* Centered / focus */
.wgc--centered .wgc-slide {
	transition: transform var(--wgc-speed) var(--wgc-ease), opacity var(--wgc-speed) var(--wgc-ease);
	transform: scale(.88);
	opacity: .5;
}

.wgc--centered .wgc-slide.is-active {
	transform: scale(1);
	opacity: 1;
}

.wgc--centered .wgc-slide .wgc-content {
	opacity: 0;
	transition: opacity calc(var(--wgc-speed) * .8) ease;
}

.wgc--centered .wgc-slide.is-active .wgc-content {
	opacity: 1;
}

.wgc--centered .wgc-title {
	font-size: 1.9rem;
}

/* ---------- Cards ---------- */

.wgc--card .wgc-inner {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--wgc-box-bg);
	box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 6px 20px rgba(0, 0, 0, .06);
}

.wgc--card .wgc-media {
	border-radius: 0;
	height: 300px;
}

.wgc--card .wgc-content {
	flex: 1 1 auto;
	padding: 20px 22px 24px;
	color: #222;
}

.wgc--card .wgc-title {
	font-size: 1.25rem;
	color: #1a1a1a;
}

.wgc--card .wgc-subtitle {
	color: #6b6b6b;
	opacity: 1;
}

.wgc--card .wgc-inner:hover .wgc-btn {
	background-color: #1a1a1a;
	border-color: #1a1a1a;
	color: #fff;
}

/* ---------- Minimal ---------- */

.wgc--minimal .wgc-media {
	height: 380px;
}

.wgc--minimal .wgc-content {
	padding: 16px 2px 0;
	color: #1a1a1a;
}

.wgc--minimal .wgc-title {
	font-size: 1.2rem;
	margin-bottom: .2em;
	color: #1a1a1a;
}

.wgc--minimal .wgc-subtitle {
	font-size: .75rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #8a8a8a;
	opacity: 1;
}

.wgc--minimal .wgc-btn {
	padding: 0 0 4px;
	border: 0;
	border-bottom: 1px solid currentColor;
}

/* ---------- Split ---------- */

.wgc--split {
	--wgc-box-bg: #f6f2ec;
}

.wgc--split .wgc-inner {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	overflow: hidden;
	background: var(--wgc-box-bg);
}

.wgc--split .wgc-media {
	border-radius: 0;
	height: 480px;
}

.wgc--split .wgc-content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(24px, 5vw, 64px);
	color: #222;
}

.wgc--split .wgc-title {
	font-size: clamp(1.6rem, 2.6vw, 2.4rem);
	line-height: 1.15;
	color: #1a1a1a;
}

.wgc--split .wgc-subtitle {
	font-size: 1rem;
	color: #5f5f5f;
	opacity: 1;
}

.wgc--split .wgc-inner:hover .wgc-btn {
	background-color: #1a1a1a;
	border-color: #1a1a1a;
	color: #fff;
}

.wgc--split-right .wgc-inner {
	grid-template-columns: 1fr 1.15fr;
}

.wgc--split-right .wgc-media,
.wgc--split-alternate .wgc-slide:nth-child(even) .wgc-media {
	order: 2;
}

.wgc--split-alternate .wgc-slide:nth-child(even) .wgc-inner {
	grid-template-columns: 1fr 1.15fr;
}

/* ---------- Arrows ---------- */

.wgc .wgc-arrow,
.wgc .wgc-arrow:hover,
.wgc .wgc-arrow:focus {
	position: absolute;
	top: var(--wgc-arrow-top, 50%);
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--wgc-arrow-size);
	height: var(--wgc-arrow-size);
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--wgc-arrow-bg);
	color: var(--wgc-arrow-color);
	box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
	transform: translateY(-50%);
	cursor: pointer;
	transition: opacity .25s, transform .25s;
	line-height: 1;
}

.wgc .wgc-arrow:hover {
	transform: translateY(-50%) scale(1.06);
}

.wgc .wgc-arrow:focus-visible {
	outline: 2px solid var(--wgc-arrow-color);
	outline-offset: 2px;
}

.wgc .wgc-arrow svg {
	width: 46%;
	height: 46%;
	display: block;
}

.wgc .wgc-next svg {
	transform: rotate(180deg);
}

.wgc .wgc-arrow[hidden] {
	display: none;
}

.wgc .wgc-arrow[disabled] {
	opacity: .3;
	cursor: default;
	pointer-events: none;
}

.wgc .wgc-prev {
	left: 16px;
}

.wgc .wgc-next {
	right: 16px;
}

/* Outside */
.wgc--arrows-outside .wgc-stage {
	padding: 0 calc(var(--wgc-arrow-size) + 16px);
}

.wgc--arrows-outside .wgc-prev {
	left: 0;
}

.wgc--arrows-outside .wgc-next {
	right: 0;
}

/* Below */
.wgc--arrows-below .wgc-stage {
	padding-bottom: calc(var(--wgc-arrow-size) + 22px);
}

.wgc.wgc--arrows-below .wgc-arrow {
	top: auto;
	bottom: 0;
	transform: none;
}

.wgc.wgc--arrows-below .wgc-arrow:hover {
	transform: scale(1.06);
}

.wgc--arrows-below .wgc-prev {
	left: auto;
	right: calc(var(--wgc-arrow-size) + 10px);
}

.wgc--arrows-below .wgc-next {
	right: 0;
}

.wgc.wgc--arrows-below .wgc-dots {
	position: absolute;
	left: 0;
	bottom: calc(var(--wgc-arrow-size) / 2);
	transform: translateY(50%);
	margin: 0;
	justify-content: flex-start;
}

/* ---------- Dots ---------- */

.wgc .wgc-dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin-top: 22px;
}

.wgc .wgc-dots[hidden] {
	display: none;
}

.wgc .wgc-dot,
.wgc .wgc-dot:hover,
.wgc .wgc-dot:focus {
	width: 8px;
	height: 8px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: var(--wgc-dot);
	cursor: pointer;
	transition: width .3s var(--wgc-ease), background-color .3s;
}

.wgc .wgc-dot.is-active {
	width: 26px;
	background: var(--wgc-dot-active);
}

.wgc .wgc-dot:focus-visible {
	outline: 2px solid var(--wgc-dot-active);
	outline-offset: 3px;
}

/* ---------- Responsive fallbacks (Elementor default breakpoints) ---------- */

@media (max-width: 1024px) {
	.wgc {
		--wgc-pv: var(--wgc-pv-t, var(--wgc-pv-d, 2));
	}
}

@media (max-width: 767px) {
	.wgc {
		--wgc-pv: var(--wgc-pv-m, 1);
		--wgc-arrow-size: 38px;
	}

	.wgc .wgc-prev {
		left: 10px;
	}

	.wgc .wgc-next {
		right: 10px;
	}

	.wgc--arrows-outside .wgc-stage {
		padding: 0;
	}

	.wgc--arrows-outside .wgc-prev {
		left: 6px;
	}

	.wgc--arrows-outside .wgc-next {
		right: 6px;
	}

	.wgc--overlay .wgc-content,
	.wgc--centered .wgc-content {
		padding: 20px;
	}

	.wgc .wgc-media {
		height: 360px;
	}

	.wgc--fade .wgc-media {
		height: 480px;
	}

	.wgc--card .wgc-media {
		height: 240px;
	}

	.wgc--minimal .wgc-media {
		height: 300px;
	}

	.wgc--split .wgc-inner,
	.wgc--split-right .wgc-inner,
	.wgc--split-alternate .wgc-slide:nth-child(even) .wgc-inner {
		grid-template-columns: 1fr;
	}

	.wgc--split .wgc-media,
	.wgc--split-right .wgc-media,
	.wgc--split-alternate .wgc-slide:nth-child(even) .wgc-media {
		order: 0;
		height: 280px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wgc {
		--wgc-speed: 1ms !important;
	}

	.wgc--zoom .wgc-inner:hover .wgc-media img {
		transform: none;
	}
}
