/* Banner slider on the www.widad.edu.my landing page (root default1.php).
   homepage.js sizes .container-template; each banner fills it. The pictures
   themselves are set per slide by default1.php. */

.landing-slider {
	position: relative;
}

/* The dots sit in the white strip under the banner: artwork often has
   text along its bottom edge. */
.landing-slider.is-rotating {
	margin-bottom: 30px;
}

.landing-slide {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	display: block;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity .8s ease, visibility 0s linear .8s;
}

.landing-slide.is-active {
	z-index: 1;
	opacity: 1;
	visibility: visible;
	transition: opacity .8s ease;
}

/* Controls: only rendered when there are two or more banners. */
.landing-slider button {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.landing-slider button:focus {
	outline: none;
}

.landing-slider button:focus-visible {
	outline: 2px solid #7b650c;
	outline-offset: 1px;
}

.landing-slider-controls {
	position: absolute;
	top: 100%;
	right: 0;
	left: 0;
	z-index: 2;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 30px;
}

.landing-dot,
.landing-pause {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
}

.landing-dot::before {
	content: "";
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #d8cba3;
	transition: background-color .2s ease, transform .2s ease;
}

.landing-dot:hover::before {
	background: #b39a4f;
}

.landing-dot[aria-current="true"]::before {
	background: #7b650c;
	transform: scale(1.2);
}

/* Pause shows two bars; once pressed, a play triangle. */
.landing-pause {
	margin-left: 4px;
}

.landing-pause::before {
	content: "";
	width: 8px;
	height: 10px;
	border-right: 3px solid #7b650c;
	border-left: 3px solid #7b650c;
	box-sizing: border-box;
}

.landing-pause[aria-pressed="true"]::before {
	width: 0;
	height: 0;
	border-top: 6px solid transparent;
	border-right: 0;
	border-bottom: 6px solid transparent;
	border-left: 10px solid #7b650c;
}

.landing-arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	width: 44px;
	height: 44px;
	margin-top: -22px;
	border-radius: 50%;
	opacity: 0;
	transition: opacity .2s ease, background-color .2s ease;
}

.landing-slider .landing-arrow {
	background: rgba(0, 0, 0, .35);
}

.landing-slider .landing-arrow:hover {
	background: rgba(0, 0, 0, .55);
}

.landing-arrow::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 12px;
	border-top: 2px solid #fff;
	border-left: 2px solid #fff;
}

.landing-slider .landing-arrow:focus-visible {
	outline-color: #fff;
}

.landing-prev {
	left: 16px;
}

.landing-prev::before {
	transform: translate(-30%, -50%) rotate(-45deg);
}

.landing-next {
	right: 16px;
}

.landing-next::before {
	transform: translate(-70%, -50%) rotate(135deg);
}

/* Arrows appear on hover or keyboard focus; touch screens swipe instead. */
.landing-slider:hover .landing-arrow,
.landing-arrow:focus-visible {
	opacity: 1;
}

@media (hover: none) {
	.landing-arrow {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.landing-slide,
	.landing-slide.is-active {
		transition: none;
	}
}
