/*
Skin Name: Nivo Slider BPage Theme
Description: Тема по дизайна bpage-home-v3 (заоблен слайдер, точки долу вляво, стрелки долу вдясно). Базирана на light.
Supports Thumbs: true
*/

.theme-bpage {
	--radius: 24px;
	--ink: #1f1f1f;
	--ease: 220ms cubic-bezier(.2, .7, .2, 1);
	--edge: clamp(1rem, 3vw, 2rem);
	--edge-b: clamp(.75rem, 2.5vw, 1.75rem);
}
.theme-bpage.slider-wrapper {
	overflow: hidden;
	isolation: isolate;
	border-radius: var(--radius);
	background: #f5f5f5;
}
.theme-bpage .nivoSlider {
	position: relative;
	margin: 0;
	overflow: hidden;
	background: #f5f5f5 url(loading.gif) no-repeat 50% 50%;
}
.theme-bpage .nivoSlider img {
	position: absolute;
	top: 0;
	left: 0;
	display: none;
}
.theme-bpage .nivoSlider a {
	display: block;
	border: 0;
}

/* Точки: долу вляво, бели; активната е удължена */
.theme-bpage .nivo-controlNav {
	position: absolute;
	left: var(--edge);
	bottom: var(--edge-b);
	z-index: 10;
	display: flex;
	gap: .25rem;
	padding: 0;
}
.theme-bpage .nivo-controlNav a {
	display: flex;
	align-items: center;
	height: 28px;
	padding: 0 4px;
	text-indent: -9999px;
	overflow: hidden;
	cursor: pointer;
}
.theme-bpage .nivo-controlNav a::before {
	content: "";
	display: block;
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: #fff;
	opacity: .7;
	transition: width var(--ease), opacity var(--ease);
}
.theme-bpage .nivo-controlNav a:hover::before {
	opacity: 1;
}
.theme-bpage .nivo-controlNav a.active::before {
	width: 28px;
	opacity: 1;
}

/* Стрелки: долу вдясно, кръгли, полупрозрачни */
.theme-bpage .nivo-directionNav a {
	top: auto;
	bottom: var(--edge-b);
	z-index: 11;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 1px solid rgba(255, 255, 255, .5);
	border-radius: 50%;
	background: rgba(255, 255, 255, .25);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: #fff;
	font-size: 0;
	text-decoration: none;
	transition: background var(--ease), color var(--ease);
}
.theme-bpage .nivo-directionNav a::before {
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	font-size: 1rem;
}
.theme-bpage a.nivo-prevNav::before {
	content: "\f053";
}
.theme-bpage a.nivo-nextNav::before {
	content: "\f054";
}
.theme-bpage .nivo-directionNav a:hover {
	background: #fff;
	color: var(--ink);
}
.theme-bpage a.nivo-nextNav {
	left: auto;
	right: var(--edge);
}
.theme-bpage a.nivo-prevNav {
	left: auto;
	right: calc(var(--edge) + 56px);
}

.theme-bpage .nivo-caption {
	font-family: inherit;
}
.theme-bpage .nivo-caption a {
	color: #fff;
	border-bottom: 1px dotted #fff;
}

/* Миниатюри вместо точки */
.theme-bpage .nivo-controlNav.nivo-thumbs-enabled {
	position: static;
	flex-wrap: wrap;
	gap: .5rem;
	padding: .75rem;
	background: #fff;
}
.theme-bpage .nivo-controlNav.nivo-thumbs-enabled a {
	height: auto;
	padding: 0;
	text-indent: 0;
}
.theme-bpage .nivo-controlNav.nivo-thumbs-enabled a::before {
	display: none;
}
.theme-bpage .nivo-controlNav.nivo-thumbs-enabled img {
	display: block;
	width: 120px;
	height: auto;
	border-radius: 10px;
}

@media (max-width: 575.98px) {
	.theme-bpage {
		--radius: 16px;
	}
	.theme-bpage .nivo-directionNav {
		display: none;
	}
}
