/* Lightweight slider replacing Slider Revolution (see inc/bd-slider.php). Sizes and positions are set by js/bd-slider.js. */

.bd-slider-wrap {
	position: relative;
	width: 100%;
}

/* Full window width, like Slider Revolution's "fullwidth" layout; the script sets width, left and height. */
.bd-slider {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	visibility: hidden;
}

.bd-slider.is-ready {
	visibility: visible;
}

/* Until the script has laid it out, nothing inside may show (a child's visibility:visible would beat the parent's). */
.bd-slider:not(.is-ready) {
	opacity: 0;
}

.bd-slider:not(.is-ready) * {
	visibility: hidden !important;
}

/* Loading spinner until the slider is ready (Slider Revolution "spinner0"). */
.bd-loader {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 10000;
	width: 40px;
	height: 40px;
	margin: -20px 0 0 -20px;
	border-radius: 3px;
	background: #fff url(../bd-slider/loader.gif) no-repeat center center;
	box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
	animation: bd-rotateplane 1.2s infinite ease-in-out;
}

.bd-slider-wrap.is-ready .bd-loader {
	display: none;
}

@keyframes bd-rotateplane {
	0% { transform: perspective(120px) rotateX(0deg) rotateY(0deg); }
	50% { transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg); }
	100% { transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg); }
}

.bd-slide {
	position: absolute;
	inset: 0;
	visibility: hidden;
	opacity: 0;
	z-index: 10;
}

.bd-slide.is-active {
	visibility: visible;
	opacity: 1;
	z-index: 20;
}

/* The slide picture is drawn on this canvas; the <img> is only its source. */
.bd-bg {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	width: 100%;
	height: 100%;
}

.bd-src {
	display: none !important;
}

.bd-grid {
	position: absolute;
	top: 0;
}

.bd-pos {
	position: absolute;
	top: 0;
	left: 0;
}

.bd-anim {
	position: relative;
	will-change: transform, opacity;
}

.bd-layer {
	position: relative;
	display: block;
	box-sizing: border-box;
	margin: 0;
	white-space: normal;
	letter-spacing: normal;
	color: #fff;
}

a.bd-layer {
	text-decoration: none;
	cursor: pointer;
	outline: none;
	box-shadow: none;
}

.bd-type-image img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
}

/* The "Saznajte više" button hover of the library slider: 0.3 s, power1.inOut (measured on Slider Revolution). */
.bd-type-button {
	transition-property: border-color, border-width, border-radius, background-color, color;
	transition-duration: 0.3s;
	transition-timing-function: cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

.bd-type-button:hover {
	color: #fff;
	background-color: rgba(0, 0, 0, 0) !important;
	border-color: rgba(255, 255, 255, 0.75) !important;
	border-width: 1px !important;
	border-radius: 0 !important;
}

/* Logo on phones, as the child theme did for Slider Revolution (style.css "REV SLIDER CODE"). */
@media (max-width: 767px) {
	.bd-slider .bd-layer.rev_slider_logo {
		position: relative;
		top: -28px;
		z-index: 60;
	}

	.bd-slider .bd-layer.rev_slider_logo img {
		width: 30px;
		height: auto;
	}
}

@-moz-document url-prefix() {
	@media (max-width: 767px) {
		.bd-slider .bd-layer.rev_slider_logo {
			position: relative;
			top: 20px;
		}
	}
}

/* Arrows: Slider Revolution "uranus" navigation style. */
.bd-arrow {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1000;
	display: block;
	width: 50px;
	height: 50px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: rgba(10, 10, 10, 0);
	cursor: pointer;
}

.bd-arrow:hover,
.bd-arrow:focus {
	background: rgba(10, 10, 10, 0);
}

/* The glyph as the icon font drew it: 40px font, 50px line height, centred. */
.bd-arrow svg {
	position: absolute;
	top: 5px;
	left: 15.7px;
	width: 18.6px;
	height: 40px;
	fill: #fff;
	transition: all 0.3s;
}

.bd-arrow:hover svg {
	opacity: 0.75;
}

/* Bullets: Slider Revolution "uranus" navigation style. */
.bd-bullets {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1000;
	width: 75px;
	height: 15px;
}

.bd-bullet {
	position: absolute;
	top: 0;
	width: 15px;
	height: 15px;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: transparent;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0);
	transition: box-shadow 0.3s ease;
	cursor: pointer;
}

.bd-bullet:hover,
.bd-bullet:focus {
	background: transparent;
}

.bd-bullet.is-active,
.bd-bullet:hover {
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 1);
}

.bd-bullet-inner {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.3);
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.bd-bullet.is-active .bd-bullet-inner,
.bd-bullet:hover .bd-bullet-inner {
	transform: scale(0.4);
	background-color: rgba(255, 255, 255, 1);
}
