/* Before/after photo gallery (windows page) */

.windows-showcase-home,
.affordable-remodeling-home {
	display: block;
	width: 100%;
	clear: both;
}

.windows-showcase-home {
	margin: 3em 0 0 0;
	padding-top: 2em;
	border-top: solid 2px rgba(144, 144, 144, 0.25);
}

/* Smaller carousel on homepage so slide controls stay on screen */
.windows-showcase-home .ba-gallery {
	margin-bottom: 1em;
}

.windows-showcase-home .ba-carousel {
	max-width: 960px;
	margin-left: auto;
	margin-right: auto;
}

.windows-showcase-home .ba-project__photo img {
	width: 100%;
	max-height: 320px;
	height: 320px;
	object-fit: cover;
	object-position: center center;
}

.windows-showcase-home .ba-carousel__controls {
	margin-top: 0.75em;
}

.windows-showcase-home .ba-carousel__dots {
	margin-top: 0.75em;
}

.affordable-remodeling-home {
	margin: 3em 0 0 0;
	padding-top: 2em;
	border-top: solid 2px rgba(144, 144, 144, 0.25);
}

.ba-gallery {
	margin: 0 0 2em 0;
}

.ba-gallery > h3 {
	margin-bottom: 0.35em;
}

.ba-gallery > .ba-gallery-intro {
	margin-bottom: 1.25em;
}

/* Carousel */

.ba-carousel {
	margin: 0;
}

.ba-carousel__viewport {
	position: relative;
	width: 100%;
}

.ba-carousel__slide {
	margin: 0;
}

.ba-carousel__slide[hidden] {
	display: none;
}

.ba-carousel__controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1em;
	margin-top: 1em;
}

.ba-carousel__meta {
	flex: 1;
	text-align: center;
	min-width: 0;
}

.ba-carousel__caption {
	margin: 0;
	font-size: 0.95em;
	font-weight: 700;
	color: #4d5968;
}

.ba-carousel__counter {
	margin: 0.25em 0 0 0;
	font-size: 0.85em;
	color: #5e6875;
}

.ba-carousel__btn {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75em;
	height: 2.75em;
	padding: 0;
	border: 2px solid rgba(144, 144, 144, 0.35);
	border-radius: 4px;
	background: #ffffff;
	color: #4d5968;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ba-carousel__btn:hover {
	border-color: #5f9dd2;
	color: #5f9dd2;
}

.ba-carousel__btn:focus {
	outline: 2px solid #5f9dd2;
	outline-offset: 2px;
}

.ba-carousel__dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5em;
	margin-top: 1em;
}

.ba-carousel__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(144, 144, 144, 0.45);
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.ba-carousel__dot:hover {
	background: rgba(95, 157, 210, 0.65);
}

.ba-carousel__dot.is-active {
	background: #5f9dd2;
	transform: scale(1.15);
}

.ba-carousel__dot:focus {
	outline: 2px solid #5f9dd2;
	outline-offset: 2px;
}

/* Project card (one per carousel slide) */

.ba-project {
	padding: 0;
	border: 1px solid rgba(144, 144, 144, 0.3);
	border-radius: 4px;
	overflow: hidden;
	background: #fafbfc;
}

.ba-project__title {
	margin: 0;
	padding: 0.65em 1em;
	font-size: 0.9em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #4d5968;
	background: rgba(144, 144, 144, 0.12);
	border-bottom: 1px solid rgba(144, 144, 144, 0.25);
}

.ba-project__pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
}

.ba-project__photo {
	position: relative;
	margin: 0;
	line-height: 0;
}

.ba-project__photo + .ba-project__photo {
	border-left: 1px solid rgba(144, 144, 144, 0.25);
}

.ba-project__photo img {
	display: block;
	width: 100%;
	height: auto;
	vertical-align: top;
}

.ba-project__label {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 1;
	padding: 0.35em 0.65em;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #ffffff;
	background: rgba(77, 89, 104, 0.88);
	border-radius: 3px;
	pointer-events: none;
}

@media screen and (max-width: 736px) {
	.ba-project__pair {
		grid-template-columns: 1fr;
	}

	.ba-project__photo + .ba-project__photo {
		border-left: none;
		border-top: 1px solid rgba(144, 144, 144, 0.25);
	}

	.windows-showcase-home .ba-carousel {
		max-width: 100%;
	}

	.windows-showcase-home .ba-project__photo img {
		max-height: 220px;
		height: 220px;
	}
}
