/* FW Image Slider — front end */
.fwis {
	--fwis-h: var(--fwis-h-d, auto);
	position: relative;
	width: 100%;
	overflow: hidden;
	line-height: 0;
	outline: none;
}
.fwis:focus-visible { box-shadow: inset 0 0 0 3px #2271b1; }

.fwis-breakout {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
}

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

.fwis-track {
	display: flex;
	touch-action: pan-y;
	-webkit-user-select: none;
	user-select: none;
	transition: transform var(--fwis-speed, 600ms) cubic-bezier(.22, .8, .24, 1);
	will-change: transform;
}
.fwis.is-dragging .fwis-track { cursor: grabbing; }

.fwis-slide { flex: 0 0 100%; min-width: 0; position: relative; }
.fwis-slide a,
.fwis-slide picture { display: block; }
.fwis-slide img {
	display: block;
	width: 100% !important;
	max-width: none !important;
	height: var(--fwis-h) !important;
	object-fit: cover;
	object-position: center;
	margin: 0 !important;
	-webkit-user-drag: none;
}

/* Fade effect */
.fwis-fade .fwis-track { display: grid; transform: none !important; }
.fwis-fade .fwis-slide {
	grid-area: 1 / 1;
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--fwis-speed, 600ms) ease, visibility 0s linear var(--fwis-speed, 600ms);
}
.fwis-fade .fwis-slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
	transition: opacity var(--fwis-speed, 600ms) ease;
}

/* Arrows */
.fwis .fwis-arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .35);
	color: #fff;
	box-shadow: none;
	cursor: pointer;
	transform: translateY(-50%);
	transition: background-color .2s ease, opacity .2s ease;
}
.fwis .fwis-arrow:hover { background: rgba(0, 0, 0, .6); }
.fwis .fwis-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.fwis .fwis-arrow:disabled { opacity: .3; cursor: default; }
.fwis .fwis-arrow svg { width: 20px; height: 20px; }
.fwis .fwis-prev { left: 16px; }
.fwis .fwis-next { right: 16px; }

/* Dots */
.fwis .fwis-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 16px;
	z-index: 3;
	display: flex;
	justify-content: center;
	gap: 8px;
}
.fwis .fwis-dot {
	width: 10px;
	height: 10px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: rgba(255, 255, 255, .55);
	box-shadow: 0 0 2px rgba(0, 0, 0, .35);
	cursor: pointer;
	transition: width .3s ease, background-color .3s ease;
}
.fwis .fwis-dot.is-active { width: 26px; background: #fff; }
.fwis .fwis-dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Device controls */
@media (min-width: 1025px) {
	.fwis.fwis-hide-d { display: none !important; }
	.fwis.fwis-noarrows-d .fwis-arrow,
	.fwis.fwis-nodots-d .fwis-dots { display: none; }
}
@media (min-width: 768px) and (max-width: 1024px) {
	.fwis { --fwis-h: var(--fwis-h-t, auto); }
	.fwis.fwis-hide-t { display: none !important; }
	.fwis.fwis-noarrows-t .fwis-arrow,
	.fwis.fwis-nodots-t .fwis-dots { display: none; }
}
@media (max-width: 767px) {
	.fwis { --fwis-h: var(--fwis-h-m, auto); }
	.fwis.fwis-hide-m { display: none !important; }
	.fwis.fwis-noarrows-m .fwis-arrow,
	.fwis.fwis-nodots-m .fwis-dots { display: none; }
	.fwis .fwis-arrow { width: 36px; height: 36px; }
	.fwis .fwis-arrow svg { width: 16px; height: 16px; }
	.fwis .fwis-prev { left: 8px; }
	.fwis .fwis-next { right: 8px; }
	.fwis .fwis-dots { bottom: 10px; gap: 6px; }
	.fwis .fwis-dot { width: 8px; height: 8px; }
	.fwis .fwis-dot.is-active { width: 20px; }
}

@media (prefers-reduced-motion: reduce) {
	.fwis-track,
	.fwis-fade .fwis-slide { transition-duration: 1ms !important; }
}
