/*!
 * iView Slider v3 - base styles
 * Functional layout only. Skins add the look (see demo/assets/skins).
 */

/* The slider root */
.iview {
	position: relative;
	touch-action: pan-y pinch-zoom;
	-webkit-tap-highlight-color: transparent;
}

.iview:focus-visible {
	outline: 2px solid #4c9ffe;
	outline-offset: 2px;
}

/* The stage that holds the slides (scaled in responsive mode) */
.iviewSlider {
	position: relative;
	overflow: hidden;
	-webkit-user-select: none;
	user-select: none;
}

.iview-slide {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
}

.iview-slide-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	-webkit-user-drag: none;
}

/* A whole-slide link (data-iview-link) */
.iview-link {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

/* The timer in the slider */
.iview-timer {
	position: absolute;
	z-index: 100;
	border-radius: 5px;
	cursor: pointer;
	box-sizing: content-box;
	transition: opacity 0.4s;
}

.iview-timer svg {
	display: block;
}

.iview-timer-bar {
	float: left;
	border-radius: 3px;
}

/* The preloader */
.iview-preloader {
	position: absolute;
	z-index: 1000;
	top: 50%;
	left: 50%;
	width: 100px;
	height: 3px;
	padding: 1px;
	border: #000 1px solid;
	border-radius: 3px;
	transform: translate(-50%, -50%);
}

.iview-preloader div {
	float: left;
	width: 0;
	height: 3px;
	border-radius: 2px;
	background: #000;
	transition: width 0.3s;
}

/* The strips and blocks used by transitions */
.iview-strip,
.iview-block {
	display: block;
	position: absolute;
	z-index: 5;
	pointer-events: none;
}

/* Direction nav (previous / next) */
.iview-directionNav {
	opacity: var(--iview-direction-nav-opacity, 0.6);
	transition: opacity 0.3s;
}

.iview-hover .iview-directionNav,
.iview:focus-within .iview-directionNav {
	opacity: 1;
}

.iview-directionNav a {
	position: absolute;
	top: 45%;
	z-index: 9;
	cursor: pointer;
}

/* Skins often hide the button text with `text-indent: -9999px`. In a
   right-to-left page that text would make the page scroll sideways. */
.iview-directionNav a,
.iview-controlNav a {
	overflow: hidden;
}

.iview-prevNav {
	left: 0;
}

.iview-nextNav {
	right: 0;
}

/* Control nav (1, 2, 3 ... or thumbnails) */
.iview-controlNav {
	position: absolute;
	z-index: 9;
	opacity: var(--iview-control-nav-opacity, 0.6);
	transition: opacity 0.3s;
}

.iview-hover .iview-controlNav,
.iview:focus-within .iview-controlNav {
	opacity: 1;
}

.iview-controlNav a {
	z-index: 9;
	cursor: pointer;
}

.iview-controlNav a.active {
	font-weight: bold;
}

.iview-controlNav .iview-items ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.iview-controlNav .iview-items ul li {
	display: inline;
	position: relative;
}

.iview-disabled {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}

/* The thumbnail tooltip over the control nav */
.iview-tooltip {
	position: absolute;
	z-index: 100;
	pointer-events: none;
}

.iview-tooltip .holder {
	overflow: hidden;
}

/* Captions */
.iview-caption {
	position: absolute;
	z-index: 4;
	overflow: hidden;
	cursor: default;
}

/* Video slides */
.iview-video {
	cursor: pointer;
}

.iview-video-show {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 101;
	width: 100%;
	height: 100%;
	background: #000;
	cursor: default;
}

.iview-video-show .iview-video-container {
	position: relative;
	width: 100%;
	height: 100%;
}

.iview-video-show .iview-video-container > iframe,
.iview-video-show .iview-video-container > video {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.iview-video-show .iview-video-container a.iview-video-close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 1;
	width: 20px;
	height: 20px;
	overflow: hidden;
	border-radius: 15px;
	background: #222;
	color: #fff;
	font-size: 22px;
	font-weight: bold;
	line-height: 29px;
	text-align: center;
	cursor: pointer;
}

.iview-video-show .iview-video-container a.iview-video-close:hover {
	background: #444;
}

.iview-rtl .iview-video-show .iview-video-container a.iview-video-close {
	right: auto;
	left: 10px;
}

/* Keyboard focus for the generated controls */
.iview [role='button']:focus-visible,
.iview-video:focus-visible {
	outline: 2px solid #4c9ffe;
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.iview-timer,
	.iview-directionNav,
	.iview-controlNav,
	.iview-preloader div {
		transition: none;
	}
}
