/* RCH Plastic Surgery - before & after gallery.
   Arrows and dots sit in a bar under the photos, so nothing covers the results. */

.ba-gallery {
	max-width: 1240px;
	margin: 30px auto 50px;
	padding: 0 20px;
	box-sizing: border-box;
}
.ba-gallery *,
.ba-gallery *::before,
.ba-gallery *::after { box-sizing: border-box; }

.ba-intro {
	max-width: 800px;
	margin: 0 auto 30px;
	text-align: center;
	color: #666;
	font-size: 16px;
	line-height: 1.6;
}

.ba-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
	gap: 30px;
}

.ba-case {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 10px rgba(0,0,0,0.10);
	transition: box-shadow 0.3s ease;
}
.ba-case:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.16); }

/* BEFORE / AFTER labels in their own band above the photos */
.ba-labels {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2px;
	background: #000;
}
.ba-labels span {
	padding: 9px 0;
	text-align: center;
	color: #ba8942;
	font-family: 'Montserrat', Arial, sans-serif;
	font-weight: bold;
	font-size: 12px;
	letter-spacing: 2px;
}

/* Photos: identical black panels, prepared at matched magnification by the build */
.ba-viewer { background: #000; touch-action: pan-y; }
.ba-slide {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2px;
	background: #2a2a2a;
}
.ba-slide[hidden] { display: none; }
.ba-slide.is-active { animation: baFade 0.35s ease; }
@keyframes baFade { from { opacity: 0.25; } to { opacity: 1; } }

.ba-photo {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: var(--ba-ratio, 0.8);
	background: #000;
	overflow: hidden;
	cursor: zoom-in;
}
.ba-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Control bar under the photos */
.ba-controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 10px;
	background: #111;
}
.ba-arrow {
	flex: 0 0 auto;
	width: 40px;
	height: 36px;
	border: 1px solid #ba8942;
	border-radius: 4px;
	background: transparent;
	color: #ba8942;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	transition: all 0.25s ease;
}
.ba-arrow:hover,
.ba-arrow:focus-visible {
	background: #ba8942;
	color: #000;
	outline: none;
}
.ba-status {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	min-width: 0;
}
.ba-view-name {
	color: #fff;
	font-size: 12px;
	letter-spacing: 1px;
	text-transform: uppercase;
	white-space: nowrap;
}
.ba-dots { display: flex; gap: 8px; }
.ba-dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(255,255,255,0.4);
	cursor: pointer;
	transition: all 0.25s ease;
}
.ba-dot.is-active { background: #ba8942; transform: scale(1.25); }

/* Case text (matches the existing facelift page) */
.ba-case .case-info { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.ba-case .case-info h3 { font-size: 18px; margin: 0 0 12px; color: #000; }
.ba-case .case-details { font-size: 14px; color: #666; line-height: 1.6; margin-bottom: 15px; }
.ba-case .case-details p { margin: 0 0 4px; }
.ba-case .case-details strong { color: #000; }
.ba-case .case-actions { display: flex; gap: 10px; margin-top: auto; }
.ba-case .case-btn {
	flex: 1;
	padding: 10px 16px;
	text-align: center;
	text-decoration: none;
	border-radius: 4px;
	font-size: 13px;
	font-weight: bold;
	transition: all 0.3s ease;
}
.ba-case .case-btn.learn-more { background-color: #ba8942; color: #000; }
.ba-case .case-btn.learn-more:hover { background-color: #f0c847; }
.ba-case .case-btn.schedule { background-color: #000; color: #ba8942; }
.ba-case .case-btn.schedule:hover { background-color: #1a1a1a; }

.ba-disclaimer {
	margin: 30px 0 0;
	text-align: center;
	color: #666;
	font-size: 14px;
}

/* Call to action band (same look as the facelift page) */
.ba-gallery .cta-buttons {
	text-align: center;
	margin: 40px auto 0;
	padding: 40px 20px;
	background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
	border-radius: 8px;
}
.ba-gallery .cta-buttons h2 { color: #ba8942; font-size: 28px; margin: 0 0 30px; }
.ba-gallery .cta-button-group { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.ba-gallery .cta-btn {
	display: inline-block;
	padding: 16px 32px;
	background-color: #ba8942;
	color: #000;
	text-decoration: none;
	border-radius: 6px;
	font-weight: bold;
	font-size: 16px;
	transition: all 0.3s ease;
	box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}
.ba-gallery .cta-btn:hover { background-color: #f0c847; transform: translateY(-2px); }
.ba-gallery .cta-btn.secondary { background-color: transparent; color: #ba8942; border: 2px solid #ba8942; }
.ba-gallery .cta-btn.secondary:hover { background-color: #ba8942; color: #000; }

@media (max-width: 768px) {
	.ba-gallery { padding: 0 16px; margin-top: 20px; }
	.ba-grid { grid-template-columns: 1fr; gap: 24px; }
	.ba-gallery .cta-button-group { flex-direction: column; }
	.ba-gallery .cta-buttons { padding: 30px 15px; }
	.ba-gallery .cta-buttons h2 { font-size: 22px; }
}
@media (max-width: 400px) {
	.ba-case .case-actions { flex-direction: column; }
}
