.jb-igs {
	--jb-igs-main-height: 520px;
	--jb-igs-transition-speed: 400ms;
	--jb-igs-thumb-height: 95px;
	--jb-igs-thumb-top-gap: 22px;
	--jb-igs-thumb-gap: 9px;
	--jb-igs-thumb-fit: cover;
	--jb-igs-thumb-opacity: 1;
	--jb-igs-thumb-active-opacity: 1;
	--jb-igs-thumb-active-border-width: 2px;
	--jb-igs-thumb-active-border-colour: #29493b;
	--jb-igs-arrow-width: 56px;
	--jb-igs-arrow-height: 148px;
	--jb-igs-arrow-offset: 0px;
	--jb-igs-arrow-icon-size: 34px;
	position: relative;
	width: 100%;
	max-width: 100%;
	outline: none;
}

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

.jb-igs__stage {
	position: relative;
	width: 100%;
	height: var(--jb-igs-main-height);
	overflow: hidden;
	isolation: isolate;
	background: #eee;
	touch-action: pan-y;
	user-select: none;
}

.jb-igs__slides,
.jb-igs__slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.jb-igs__slide {
	z-index: 0;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition:
		opacity var(--jb-igs-transition-speed) ease,
		visibility 0s linear var(--jb-igs-transition-speed);
}

.jb-igs__slide.is-active {
	z-index: 1;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition-delay: 0s;
}

.jb-igs__image {
	position: absolute !important;
	inset: 0;
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0 !important;
	object-fit: cover;
	object-position: center center;
}

.jb-igs__arrow {
	position: absolute;
	top: 50%;
	z-index: 4;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--jb-igs-arrow-width);
	height: var(--jb-igs-arrow-height);
	padding: 0;
	border: none !important;
	border-width: 0 !important;
	border-style: none !important;
	border-color: transparent !important;
	border-radius: 0;
	color: #29493b;
	background: rgba(255, 255, 255, 0.88);
	box-shadow: none !important;
	transform: translateY(-50%);
	cursor: pointer;
	pointer-events: auto !important;
	transition: color 180ms ease, background-color 180ms ease, opacity 180ms ease;
	-webkit-appearance: none;
	appearance: none;
}

.jb-igs__arrow--previous {
	left: var(--jb-igs-arrow-offset);
}

.jb-igs__arrow--next {
	right: var(--jb-igs-arrow-offset);
}

.jb-igs__arrow svg {
	display: block;
	width: var(--jb-igs-arrow-icon-size);
	height: var(--jb-igs-arrow-icon-size);
	fill: none;
	stroke: currentColor;
	stroke-width: 1.45;
	stroke-linecap: round;
	stroke-linejoin: round;
	pointer-events: none;
}

.jb-igs__arrow:hover,
.jb-igs__arrow:focus,
.jb-igs__arrow:active {
	border: none !important;
	box-shadow: none !important;
}

.jb-igs__arrow:hover {
	color: #fff;
	background: #29493b;
}

.jb-igs__arrow:disabled {
	opacity: 0.35;
	cursor: default;
}

.jb-igs__arrow:focus-visible,
.jb-igs__thumbnail:focus-visible,
.jb-igs:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.jb-igs__thumbnail-viewport {
	width: 100%;
	margin-top: var(--jb-igs-thumb-top-gap);
	overflow-x: auto;
	overflow-y: hidden;
	scroll-behavior: smooth;
	scrollbar-width: none;
	overscroll-behavior-inline: contain;
}

.jb-igs__thumbnail-viewport::-webkit-scrollbar {
	display: none;
}

.jb-igs__thumbnail-track {
	display: flex;
	align-items: stretch;
	gap: var(--jb-igs-thumb-gap);
	width: max-content;
	min-width: 100%;
}

.jb-igs__thumbnail {
	position: relative;
	display: block;
	flex: 0 0 auto;
	height: var(--jb-igs-thumb-height);
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 0 !important;
	border-radius: 0;
	opacity: var(--jb-igs-thumb-opacity);
	background: transparent !important;
	box-shadow: none !important;
	line-height: 0;
	font-size: 0;
	cursor: pointer;
	scroll-snap-align: start;
	transition: opacity 180ms ease;
	-webkit-appearance: none;
	appearance: none;
}

.jb-igs__thumbnail::after {
	content: "";
	position: absolute;
	inset: 0;
	border: var(--jb-igs-thumb-active-border-width) solid transparent;
	border-radius: inherit;
	pointer-events: none;
	transition: border-color 180ms ease;
}

.jb-igs__thumbnail:hover,
.jb-igs__thumbnail.is-active {
	opacity: var(--jb-igs-thumb-active-opacity);
	background: transparent !important;
}

.jb-igs__thumbnail.is-active::after {
	border-color: var(--jb-igs-thumb-active-border-colour);
}

.jb-igs__thumbnail img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	vertical-align: top;
	object-fit: var(--jb-igs-thumb-fit);
	object-position: center;
}

.jb-igs.is-dragging .jb-igs__stage {
	cursor: grabbing;
}

.jb-igs.is-single .jb-igs__arrow,
.jb-igs.is-single .jb-igs__thumbnail-viewport {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	.jb-igs__slide,
	.jb-igs__arrow,
	.jb-igs__thumbnail,
	.jb-igs__thumbnail-viewport {
		transition: none !important;
		scroll-behavior: auto !important;
	}
}
