.acw {
	--acw-active-width: 55%;
	--acw-inactive-width: 24%;
	--acw-gap: 16px;
	--acw-height: 480px;
	--acw-radius: 0px;
	--acw-duration: 750ms;
	--acw-inactive-opacity: 1;
	--acw-line-color: #dcdcdc;
	--acw-line-fill: #3f4448;
	--acw-line-width: 90px;
	--acw-ease: cubic-bezier(0.65, 0, 0.35, 1);
	--acw-inset: 54px;

	position: relative;
	width: 100%;
	overflow: visible;
	padding-left: var(--acw-inset);
	box-sizing: border-box;
}

/* ---------------- Track / slides ---------------- */

.acw__viewport {
	width: 100%;
	overflow: hidden;
	cursor: grab;
	touch-action: pan-y;
}

.acw__viewport.is-dragging {
	cursor: grabbing;
}

.acw__track {
	display: flex;
	align-items: stretch;
	gap: var(--acw-gap);
	will-change: transform;
	transition: transform var(--acw-duration) var(--acw-ease);
}

.acw__track.no-transition {
	transition: none;
}

.acw__slide {
	position: relative;
	display: block;
	flex: 0 0 var(--acw-inactive-width);
	height: var(--acw-height);
	overflow: hidden;
	border-radius: var(--acw-radius);
	opacity: var(--acw-inactive-opacity);
	transition: flex-basis var(--acw-duration) var(--acw-ease), opacity var(--acw-duration) var(--acw-ease);
}

.acw__slide.is-active {
	flex-basis: var(--acw-active-width);
	opacity: 1;
}

.acw__track.no-transition .acw__slide {
	transition: none;
}

.acw__imgwrap {
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.acw__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	user-select: none;
	pointer-events: auto;
}

.acw__img {
	cursor: zoom-in;
}

/* ---------------- Captions (mirrors the track widths/offset) ---------------- */

.acw__captions {
	display: flex;
	align-items: flex-start;
	gap: var(--acw-gap);
	margin-top: 24px;
	will-change: transform;
	transition: transform var(--acw-duration) var(--acw-ease);
}

.acw__captions.no-transition {
	transition: none;
}

.acw__caption {
	position: relative;
	flex: 0 0 var(--acw-inactive-width);
	opacity: 1;
	transition: flex-basis var(--acw-duration) var(--acw-ease), opacity var(--acw-duration) var(--acw-ease);
}

.acw__captions.no-transition .acw__caption {
	transition: none;
}

.acw__caption.is-active {
	flex-basis: var(--acw-active-width);
	opacity: 1;
}

.acw__title {
	margin: 0 0 6px;
	font-size: 22px;
	font-weight: 500;
	line-height: 1.25;
}

.acw__desc {
	position: absolute;
	top: 100%;
	left: 0;
	margin: 8px 0 0;
	font-size: 14px;
	line-height: 1.55;
	max-width: 46ch;
	opacity: 0;
	pointer-events: none;
	transition: opacity calc(var(--acw-duration) * 0.6) var(--acw-ease);
}

.acw__caption.is-active .acw__desc {
	opacity: 1;
	pointer-events: auto;
	transition-delay: calc(var(--acw-duration) * 0.15);
}

/* ---------------- Navigation ---------------- */

.acw__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	bottom: -140px;
  	user-select: none;
  	position: absolute;
  	right: 10%;
}

.acw__navbtn {
	background: none !important;
	border: 0;
	padding: 0;
	margin: 0;
	cursor: pointer !important;
	font-size: 14px;
	letter-spacing: 0.04em;
	text-transform: lowercase;
	color: inherit !important;
	transition: opacity 200ms ease;
}

.acw__navbtn:hover {
	opacity: 0.6;
}

.acw__navbtn:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.acw__line {
	position: relative;
	width: var(--acw-line-width);
	height: 1px;
	background: var(--acw-line-color);
	overflow: hidden;
}

.acw__linefill {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 0%;
	background: var(--acw-line-fill);
	transition: width var(--acw-duration) var(--acw-ease);
}


/* ---------------- lightbox ---------------- */


.acw__lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 450ms var(--acw-ease), visibility 0s linear 450ms;
}

.acw__lightbox.is-open {
	opacity: 1;
	visibility: visible;
	transition: opacity 450ms var(--acw-ease), visibility 0s linear 0s;
}

.acw__lightbox-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 10, 10, 0.55);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}

.acw__lightbox-stage {
	position: relative;
	max-width: 92vw;
	max-height: 88vh;
	transform: scale(0.92);
	opacity: 0;
	transition: transform 450ms var(--acw-ease), opacity 450ms var(--acw-ease);
}

.acw__lightbox.is-open .acw__lightbox-stage {
	transform: scale(1);
	opacity: 1;
}

.acw__lightbox-img {
	display: block;
	max-width: 92vw;
	max-height: 88vh;
	width: auto;
	height: auto;
	border-radius: 4px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.acw__lightbox-close {
	position: absolute;
	top: 24px;
	right: 32px;
	background: none;
	border: 0;
	color: #fff;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
	opacity: 0.8;
	transition: opacity 200ms ease;
}

.acw__lightbox-close:hover {
	opacity: 1;
	background: none !important;
}

body.acw-lightbox-open {
	overflow: hidden;
}

.acw__zoom {
	position: absolute;
	bottom: 20px;
	right: 20px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #004370 !important;
	border: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0;
	transform: scale(0.8);
	pointer-events: none;
	transition: opacity 300ms ease, transform 300ms ease, background 200ms ease;
	z-index: 2;
}

.acw__slide.is-active .acw__zoom {
	opacity: 1;
	transform: scale(1);
	pointer-events: auto;
	transition-delay: calc(var(--acw-duration) * 0.25);
}

.acw__zoom:hover {
	background: #fff;
}

.acw__zoom-icon {
	font-size: 22px;
	line-height: 1;
	color: #fff;
	font-weight: 300;
}

/* ---------------- Small screens ---------------- */

@media (max-width: 767px) {
	.acw {
		--acw-inset: 20px;
	}

	.acw__captions {
		transform: none !important;
		display: block;
	}

	.acw__caption {
		display: none;
		flex: none;
	}

	.acw__caption.is-active {
		display: block;
		width: 100%;
	}

	.acw__desc {
		position: static;
		opacity: 1;
		margin-top: 8px;
		max-width: none;
	}

	.acw__nav {
		position: static;
		justify-content: center;
		margin-top: 64px;
	}
}
