.ghsa-slider {
	--ghsa-bg: #fff;
	--ghsa-gold: #c3912f;
	position: relative;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	touch-action: pan-y;
}

.ghsa-frame {
	position: relative;
	width: 100%;
	background: var(--ghsa-bg);
	transition: box-shadow 220ms ease;
}

.ghsa-has-shadow .ghsa-frame {
	box-shadow: 0 8px 12px -5px rgba(0, 0, 0, .38);
}

.ghsa-viewport {
	position: relative;
	width: 100%;
	height: auto;
	aspect-ratio: var(--ghsa-ratio, 1500 / 550);
	overflow: hidden;
	background: var(--ghsa-bg);
	transition: height 360ms cubic-bezier(.22, .61, .36, 1);
}

.ghsa-slide {
	position: absolute;
	inset: 0;
	z-index: 0;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translate3d(1.5%, 0, 0);
	transition: opacity 520ms ease, transform 620ms cubic-bezier(.22, .61, .36, 1), visibility 0s linear 620ms;
}

.ghsa-slide.is-active {
	z-index: 1;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translate3d(0, 0, 0);
	transition-delay: 0s;
}

.ghsa-link,
.ghsa-image {
	display: block;
	width: 100%;
	height: 100%;
}

.ghsa-image {
	max-width: none !important;
	max-height: none !important;
	margin: 0 !important;
	object-fit: contain !important;
	object-position: center;
}

.ghsa-arrow {
	position: absolute;
	top: 50%;
	z-index: 4;
	display: grid;
	place-items: center;
	width: clamp(30px, 3vw, 44px);
	height: clamp(70px, 9vw, 112px);
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: rgba(25, 25, 25, .44);
	box-shadow: none;
	color: #fff;
	cursor: pointer;
	transform: translateY(-50%);
	transition: background-color 180ms ease, opacity 220ms ease, visibility 0s linear 0s;
}

.ghsa-arrow span {
	font-family: Arial, sans-serif;
	font-size: clamp(28px, 3vw, 42px);
	font-weight: 300;
	line-height: 1;
}

.ghsa-arrow:hover,
.ghsa-arrow:focus-visible { background: rgba(25, 25, 25, .72); color: #fff; }
.ghsa-prev { left: 0; }
.ghsa-next { right: 0; }

.ghsa-thumbnails {
	position: absolute;
	left: 50%;
	bottom: clamp(12px, 2.4vw, 26px);
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	max-width: calc(100% - 6rem);
	transform: translateX(-50%);
	transition: opacity 220ms ease, visibility 0s linear 0s;
}

.ghsa-thumbnail {
	width: clamp(44px, 5.2vw, 62px);
	aspect-ratio: 1;
	margin: 0;
	padding: 2px;
	border: 2px solid rgba(255, 255, 255, .65);
	border-radius: 0;
	background: rgba(255, 255, 255, .65);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
	cursor: pointer;
	opacity: .78;
	overflow: hidden;
	transition: border-color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.ghsa-thumbnail img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0 !important;
	object-fit: cover;
}

.ghsa-thumbnail:hover,
.ghsa-thumbnail:focus-visible,
.ghsa-thumbnail.is-active {
	border-color: var(--ghsa-gold);
	opacity: 1;
	transform: translateY(-2px);
}

.ghsa-is-single .ghsa-frame { overflow: hidden; }

/* Pointer devices reveal navigation only when the advert is being explored. */
@media (hover: hover) and (pointer: fine) {
	.ghsa-slider .ghsa-arrow,
	.ghsa-slider .ghsa-thumbnails {
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: opacity 220ms ease, visibility 0s linear 220ms;
	}

	.ghsa-slider:hover .ghsa-arrow,
	.ghsa-slider:hover .ghsa-thumbnails,
	.ghsa-slider:focus .ghsa-arrow,
	.ghsa-slider:focus .ghsa-thumbnails,
	.ghsa-slider:focus-within .ghsa-arrow,
	.ghsa-slider:focus-within .ghsa-thumbnails {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transition: opacity 220ms ease, visibility 0s linear 0s;
	}
}

@media (max-width: 767px) {
	.ghsa-has-shadow .ghsa-frame { box-shadow: 0 6px 9px -5px rgba(0, 0, 0, .34); }
	.ghsa-arrow { width: 30px; height: 58px; }
	.ghsa-arrow span { font-size: 28px; }
	.ghsa-thumbnails { bottom: 7px; gap: 4px; max-width: calc(100% - 4.5rem); }
	.ghsa-thumbnail { width: 34px; padding: 1px; border-width: 1px; }
}

@media (prefers-reduced-motion: reduce) {
	.ghsa-viewport,
	.ghsa-slide,
	.ghsa-thumbnail { transition-duration: 1ms !important; }
}
