.profile-hero--carousel::before {
  display: none;
}

.profile-hero--carousel::after {
  background:
    linear-gradient(90deg, rgba(0,0,0,.58) 0%, rgba(0,0,0,.08) 52%, rgba(0,0,0,.12) 100%),
    linear-gradient(0deg, rgba(8,8,8,.68) 0%, transparent 42%);
}

.profile-hero--carousel .profile-hero__content {
  position: relative;
  z-index: 2;
  text-shadow: 0 3px 24px rgba(0,0,0,.75);
}

.profile-carousel {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.profile-carousel__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 1s ease, transform 7s ease;
}

.profile-carousel__slide.is-current {
  opacity: 1;
  transform: scale(1);
}

.profile-carousel__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.1) brightness(1.08);
}

.profile-carousel__controls {
  position: absolute;
  z-index: 4;
  right: 4vw;
  bottom: 3.6rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.profile-carousel__controls button {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 50%;
  background: rgba(0,0,0,.32);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 180ms ease, color 180ms ease;
}

.profile-carousel__controls button:hover,
.profile-carousel__controls button:focus-visible {
  background: #fff;
  color: #080808;
}

.profile-carousel__dots {
  display: flex;
  gap: .38rem;
}

.profile-carousel__dots span {
  width: 1.55rem;
  height: 2px;
  background: rgba(255,255,255,.34);
  transition: background 250ms ease;
}

.profile-carousel__dots span.is-current {
  background: #fff;
}

.profile-carousel__credit {
  position: absolute;
  right: 4vw;
  bottom: 1.35rem;
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

@media (max-width: 680px) {
  .profile-carousel__controls {
    left: 4vw;
    right: auto;
    bottom: 1.8rem;
  }

  .profile-carousel__credit {
    display: none;
  }

  .profile-carousel__dots span {
    width: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-carousel__slide {
    transform: none;
    transition: opacity .01ms linear;
  }
}
