.home-gallery {
  position: relative;
  aspect-ratio: 16 / 8.25;
  overflow: hidden;
  border-radius: 8px;
  background: #24292a;
  color: white;
}
.home-gallery .r-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .65s ease;
}
.home-gallery .r-slide.is-active { opacity: 1; }
.home-gallery .r-slide:nth-child(2) { background-position: center 62%; }
.home-gallery .r-slide:nth-child(4) { background-position: center 63%; }
.home-gallery .r-hero-label {
  position: absolute;
  bottom: 54px;
  right: 12px;
  padding: 4px 8px;
  background: #0b171d99;
  font: 700 clamp(14px, 1.5vw, 22px)/1.2 Roboto, Arial, sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.home-gallery .r-slider-controls {
  position: absolute;
  right: 12px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 8px;
  border-radius: 24px;
  background: #0b171d75;
}
.home-gallery .r-slider-dots { display: flex; gap: 4px; }
.home-gallery button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.home-gallery .r-slider-dots span {
  width: 9px;
  height: 9px;
  border: 1px solid white;
  border-radius: 50%;
  background: #fff8;
  transition: width .2s;
}
.home-gallery [aria-pressed="true"] span { width: 24px; border-radius: 8px; background: white; }
.home-gallery .r-slider-pause { border: 1px solid #ffffff80; border-radius: 50%; color: white; background: #101a1c50; }
@media (max-width: 540px) { .home-gallery .r-slide { background-position: 60% center; } }
@media (prefers-reduced-motion: reduce) { .home-gallery .r-slide, .home-gallery .r-slider-dots span { transition: none; } }
