/* =============================================================
   BBS Hero Banner
   All sizing comes from CSS variables set inline by PHP, so the
   admin controls drive the layout directly.
   ============================================================= */

.bbs-hb {
	position: relative;
	width: 100%;
	max-width: var(--hb-w, 1500px);
	margin: 0 auto;
	padding: 0 var(--hb-g, 0px);
	box-sizing: border-box;
}

.bbs-hb__viewport {
	position: relative;
	overflow: hidden;
	border-radius: var(--hb-r, 14px);
	line-height: 0;
}

.bbs-hb__track {
	position: relative;
	width: 100%;
}

/* ── slides ──────────────────────────────────────────────── */

.bbs-hb__slide {
	display: none;
	width: 100%;
	text-decoration: none;
	animation: bbsHbFade .45s ease;
}

.bbs-hb__slide.is-active {
	display: block;
}

.bbs-hb__slide picture {
	display: block;
	width: 100%;
}

.bbs-hb__slide img {
	display: block;
	width: 100%;
	height: auto;
	user-select: none;
	-webkit-user-drag: none;
}

/* Fixed height: crop the image rather than squash it. */
.bbs-hb.has-h .bbs-hb__slide img {
	height: var(--hb-h);
	object-fit: cover;
	object-position: center;
}

@keyframes bbsHbFade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

/* ── arrows ──────────────────────────────────────────────── */

.bbs-hb__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: #1a1a2e;
	cursor: pointer;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .18);
	opacity: 0;
	transition: opacity .2s ease, background .2s ease;
}

.bbs-hb:hover .bbs-hb__arrow,
.bbs-hb__arrow:focus-visible {
	opacity: 1;
}

.bbs-hb__arrow:hover {
	background: #fff;
}

.bbs-hb__arrow svg {
	width: 20px;
	height: 20px;
}

.bbs-hb__arrow--prev { left: calc(var(--hb-g, 0px) + 16px); }
.bbs-hb__arrow--next { right: calc(var(--hb-g, 0px) + 16px); }

/* ── dots ────────────────────────────────────────────────── */

.bbs-hb__dots {
	position: absolute;
	bottom: 16px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 3;
	display: flex;
	gap: 9px;
	padding: 7px 12px;
	border-radius: 999px;
	background: rgba(0, 0, 0, .22);
	backdrop-filter: blur(4px);
}

.bbs-hb__dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .5);
	cursor: pointer;
	transition: background .2s ease, transform .2s ease;
}

.bbs-hb__dot.is-active {
	background: #fff;
	transform: scale(1.3);
}

/* ── mobile ──────────────────────────────────────────────── */

@media (max-width: 768px) {
	.bbs-hb {
		max-width: var(--hb-mw, 100%);
		padding: 0 var(--hb-mg, 0px);
	}

	.bbs-hb__viewport {
		border-radius: var(--hb-mr, 0px);
	}

	/* Mobile height wins over the desktop value */
	.bbs-hb.has-mh .bbs-hb__slide img {
		height: var(--hb-mh);
		object-fit: cover;
		object-position: center;
	}

	.bbs-hb__arrow {
		display: none;
	}

	.bbs-hb__dots {
		bottom: 12px;
		padding: 6px 10px;
		gap: 7px;
	}

	.bbs-hb__dot {
		width: 7px;
		height: 7px;
	}
}
