/* Lightweight Image Gallery — Salient child theme element */

.salient-lig {
	position: relative;
	width: 100%;
	height: 100% !important;
	overflow: hidden;
	border-radius: 6px;
	background: #111;
	margin: 0px !important;
}

.salient-lig__viewport {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.salient-lig__track {
	position: relative;
	height: 100%;
	width: 100%;
}

/* Slides are stacked on top of each other and crossfade between each other. */
.salient-lig__slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transition: opacity 1s ease, visibility 1s ease;
	will-change: opacity;
}

.salient-lig__slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
}

.salient-lig__img {
	position: absolute;
	inset: 0;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
}

.salient-lig--fit-contain .salient-lig__img {
	background-size: contain;
}

/* Parallax needs some vertical overflow room so the image can move
   without exposing an edge. */
.salient-lig--parallax .salient-lig__img {
	top: -12%;
	bottom: -12%;
	height: auto;
	will-change: transform;
}

/* Arrows */
.salient-lig__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.35);
	color: #fff;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.25s ease, background 0.25s ease;
}

.salient-lig:hover .salient-lig__arrow,
.salient-lig__arrow:focus-visible {
	opacity: 1;
}

.salient-lig__arrow:hover {
	background: rgba(0, 0, 0, 0.6);
}

.salient-lig__arrow--prev { left: 16px; }
.salient-lig__arrow--next { right: 16px; }

/* Dots */
.salient-lig__dots {
	position: absolute;
	bottom: 16px;
	left: 0;
	right: 0;
	z-index: 3;
	display: flex;
	gap: 8px;
	justify-content: center;
}

.salient-lig__dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	transition: background 0.25s ease, transform 0.25s ease;
}

.salient-lig__dot:hover {
	background: rgba(255, 255, 255, 0.8);
}

.salient-lig__dot.is-active {
	background: #fff;
	transform: scale(1.25);
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
	.salient-lig__track { transition: none; }
	.salient-lig--parallax .salient-lig__img { transform: none !important; }
}
