/*--------------------------------------------------------------
Home page — About section product slideshow
Replaces the single static factory-floor photo with a slow,
subtle crossfade through product shots. Loaded only on the
front page (see functions.php).
--------------------------------------------------------------*/

.binbay-about-slideshow {
	position: relative;
	aspect-ratio: 4 / 5;
}

/*
 * The image column sits in a 2-col grid with the text column, using the
 * theme's "items-center" utility. That grid previously centered fine
 * because the old static photo happened to be tall enough to roughly
 * match the text column's height. The slideshow's fixed 4:5 box is
 * shorter, so "items-center" now visibly centers it lower than the
 * "WHY CHOOSE BIN BAY" label at the top of the text column. Top-align
 * just this row instead — ID selector scopes it to the About section
 * only, so nothing else on the page is affected.
 */
#about .grid.items-center {
	align-items: start;
}

.binbay-about-slideshow .binbay-about-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transform: scale(1.015);
	transition: opacity 2.4s ease-in-out, transform 6s ease-in-out;
	will-change: opacity, transform;
}

.binbay-about-slideshow .binbay-about-slide.is-active {
	opacity: 1;
	transform: scale(1);
	z-index: 1;
}

/* Darkening gradient behind the caption, for legibility over any photo */
.binbay-about-slideshow .binbay-about-slide::after {
	content: '';
	position: absolute;
	inset: auto 0 0 0;
	height: 40%;
	background: linear-gradient(to top, rgba(10, 10, 10, 0.55), transparent);
	pointer-events: none;
}

.binbay-about-slide-caption {
	position: absolute;
	left: 20px;
	bottom: 44px;
	z-index: 2;
	color: #ffffff;
	font-weight: 600;
	font-size: 15px;
	letter-spacing: 0.02em;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

/* Dot indicators */
.binbay-about-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 18px;
	z-index: 2;
	display: flex;
	justify-content: center;
	gap: 8px;
}

.binbay-about-dot {
	width: 7px;
	height: 7px;
	border-radius: 999px;
	border: none;
	background: rgba(255, 255, 255, 0.55);
	cursor: pointer;
	padding: 0;
	transition: background 0.5s ease, transform 0.5s ease;
}

.binbay-about-dot.is-active {
	background: #ffffff;
	transform: scale(1.35);
}

.binbay-about-dot:hover {
	background: rgba(255, 255, 255, 0.85);
}

@media (prefers-reduced-motion: reduce) {
	.binbay-about-slideshow .binbay-about-slide {
		transition: opacity 0.4s ease;
		transform: none;
	}
}