/* bastinaobjave.com: image carousel that replaces Slider Revolution (2026-11-18). See inc/bd-carousel.php. */

/* Height = width x grid height / grid width of the responsive level (levels 1240/1024/778/480 like Slider Revolution). */
.bd-car {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: var(--bdc-r0);
	background: var(--bdc-bg, transparent);
	visibility: hidden;
	overflow: hidden;
}
@media (max-width: 1023.98px) {
	.bd-car { aspect-ratio: var(--bdc-r1, var(--bdc-r0)); }
}
@media (max-width: 777.98px) {
	.bd-car { aspect-ratio: var(--bdc-r2, var(--bdc-r0)); }
}
@media (max-width: 479.98px) {
	.bd-car { aspect-ratio: var(--bdc-r3, var(--bdc-r0)); }
}
.bd-car.is-ready { visibility: visible; }

.bd-car-wrap {
	position: absolute;
	inset: 0;
	overflow: hidden;
}
.bd-car-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	visibility: hidden;
}
.bd-car.is-ready .bd-car-slide { visibility: visible; }
.bd-car-fit {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	transform-origin: 0 0;
}
.bd-car-fit img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	user-select: none;
	-webkit-user-drag: none;
}

.bd-car--swipe .bd-car-wrap { cursor: grab; touch-action: pan-y; }
.bd-car--swipe.is-dragging .bd-car-wrap { cursor: grabbing; }

/* Bullets: Slider Revolution's "hermes" style as it was set up here (16 px, white ring, 5 px apart, 50 px from the bottom). */
.bd-car-bullets {
	position: absolute;
	left: 50%;
	bottom: 50px;
	z-index: 1000;
	display: flex;
	gap: 5px;
	transform: translateX(-50%);
	line-height: 0;
}
.bd-car .bd-car-bullet {
	position: relative;
	overflow: hidden;
	width: 16px;
	height: 16px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: rgba(0, 0, 0, 0);
	box-shadow: inset 0 0 0 2px #fff;
	transition: background 0.3s;
	cursor: pointer;
	font-size: 0;
}
.bd-car .bd-car-bullet:hover,
.bd-car .bd-car-bullet:focus {
	background-color: rgba(0, 0, 0, 0.21);
}
.bd-car .bd-car-bullet:focus:not(:focus-visible) { outline: none; }
.bd-car .bd-car-bullet::after {
	content: " ";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 0;
	background-color: #fff;
	box-shadow: 0 0 1px #fff;
	transition: height 0.3s;
}
.bd-car .bd-car-bullet.is-active::after { height: 100%; }

/* Progress bar along the top edge. */
.bd-car-progress {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 200;
	width: 100%;
	height: 5px;
	pointer-events: none;
}
.bd-car-progress-bar {
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.15);
	transform: scaleX(0);
	transform-origin: 0 0;
}
