/*
 * Home page slider. Replaces Master Slider (slider #1, "Home Page Slider")
 * with the same look: fullscreen fade, top time bar, light-skin-1 arrows.
 * Behaviour lives in js/home-slider.js.
 */
.home-slider {
	position: relative;
	width: 100%;
	height: 100vh; /* JS sets the exact window.innerHeight, like Master Slider's fullscreen layout */
}

.home-slider__view {
	position: relative;
	overflow: hidden;
	width: 100%;
	height: 100%;
	touch-action: pan-y;
	cursor: url(../img/slider/grab.png), move;
	-webkit-user-select: none;
	user-select: none;
}
.home-slider__view.is-grabbing {
	cursor: url(../img/slider/grabbing.png), move;
}

.home-slider__slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	visibility: hidden;
}
.home-slider__slide.is-current {
	opacity: 1;
	visibility: visible;
}

.home-slider__bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	will-change: transform;
}
.home-slider__bg img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center center;
	-webkit-user-drag: none;
	pointer-events: none;
}

/* 3px line timer across the top, rgba(255,255,255,.5) */
.home-slider__timer {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
}
.home-slider__timebar {
	width: 0;
	height: 3px;
	background-color: rgba(255, 255, 255, 0.5);
	transition: width 120ms linear;
}

/* Arrows: Master Slider "ms-skin-default" sprite */
.home-slider__nav {
	position: absolute;
	top: 50%;
	left: 30px;
	z-index: 110;
	width: 30px;
	height: 40px;
	margin: -20px 0 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: url(../img/slider/light-skin-1.png) -89px -26px;
	cursor: pointer;
	opacity: 0;
	display: none;
	transition: opacity 400ms ease;
}
.home-slider__nav--next {
	left: auto;
	right: 30px;
	background-position: -89px -103px;
}
.home-slider__nav:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

@media only screen and (-webkit-min-device-pixel-ratio: 2),
	only screen and (min-resolution: 192dpi),
	only screen and (min-resolution: 2dppx) {
	.home-slider__nav {
		background-image: url(../img/slider/light-skin-1-retina.png);
		background-size: 152px 225px;
	}
}
