/* index.html — "Recent Work" before/after carousel.
   Replaces the old long vertical stack of .before-after pairs with a
   horizontally-scrolling, arrow-controlled row — same pattern already
   proven on projects.html's case-study carousel. Reuses .before-after /
   .before-after__pair / .before-after__shot as-is from style.css. */

/* Lives inside the section's own .container, which already sets the
   1440px/120px width and centering — this wrapper just needs room for
   its arrow buttons to sit inside that same aligned edge. */
.home-recent-carousel { position: relative; width: 100%; }

.home-recent-track {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0 60px 4px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.home-recent-track::-webkit-scrollbar { display: none; }
.home-recent-track .before-after { flex: 0 0 auto; scroll-snap-align: start; }

.home-recent-arrow {
  position: absolute;
  top: 150px;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 8px 20px rgba(41,31,20,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-primary);
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.home-recent-arrow:hover { background: var(--brand-copper-tint); }
.home-recent-arrow:disabled { opacity: 0.35; cursor: default; }
.home-recent-arrow:disabled:hover { background: var(--bg-surface); }
.home-recent-arrow--prev { left: 8px; }
.home-recent-arrow--next { right: 8px; }

.home-recent__footer { display: flex; align-items: center; justify-content: center; gap: 8px; }

@media (max-width: 767px) {
  .home-recent-carousel { display: none; }
}

