.jr-beauty-vibes {
  --jr-vibes-bg-start: #f8f4f0;
  --jr-vibes-bg-end: #eee4da;
  --jr-vibes-ink: #2e2e2e;
  --jr-vibes-gold: #aa7d42;
  --jr-vibes-gap: 6px;
  --jr-vibes-height: 330px;
  width: 100%;
  overflow: hidden;
  padding-top: 64px;
  background: linear-gradient(180deg, var(--jr-vibes-bg-start), var(--jr-vibes-bg-end));
  color: var(--jr-vibes-ink);
}

.jr-beauty-vibes *,
.jr-beauty-vibes *::before,
.jr-beauty-vibes *::after {
  box-sizing: border-box;
}

.jr-home .jr-beauty-vibes__title {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 20px 28px;
  color: var(--jr-vibes-ink);
  font-family: var(--jr-home-heading-font, Georgia, "Times New Roman", serif);
  font-size: var(--jr-home-heading-size, 34px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.02em;
  text-align: center;
}

.jr-beauty-vibes__viewport {
  width: 100%;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
}

.jr-beauty-vibes__track {
  display: flex;
  width: max-content;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.jr-beauty-vibes__group {
  display: flex;
  flex: 0 0 auto;
  gap: var(--jr-vibes-gap);
  padding-right: var(--jr-vibes-gap);
}

.jr-beauty-vibes__item {
  position: relative;
  height: var(--jr-vibes-height);
  flex: 0 0 auto;
  margin: 0;
  overflow: hidden;
  background: #e5dbd2;
}

.jr-beauty-vibes__item::after {
  position: absolute;
  inset: 0;
  content: "";
  border: 1px solid rgba(170, 125, 66, .12);
  box-shadow: inset 0 0 40px rgba(46, 46, 46, .035);
  pointer-events: none;
}

.jr-beauty-vibes__item img {
  display: block;
  width: auto;
  height: 100%;
  max-width: none;
  object-fit: cover;
  pointer-events: none;
  transition: transform 700ms cubic-bezier(.2, .72, .24, 1), filter 350ms ease;
  -webkit-user-drag: none;
}

.jr-beauty-vibes__item:hover img {
  filter: saturate(1.04) contrast(1.02);
  transform: scale(1.025);
}

@media (max-width: 989px) {
  .jr-beauty-vibes {
    --jr-vibes-height: 280px;
    padding-top: 52px;
  }
}

@media (max-width: 599px) {
  .jr-beauty-vibes {
    --jr-vibes-gap: 3px;
    --jr-vibes-height: 230px;
    padding-top: 42px;
  }

  .jr-home .jr-beauty-vibes__title {
    margin-bottom: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jr-beauty-vibes__viewport {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .jr-beauty-vibes__viewport::-webkit-scrollbar {
    display: none;
  }

  .jr-beauty-vibes__track {
    transform: none !important;
    will-change: auto;
  }

  .jr-beauty-vibes__item img {
    transition: none;
  }
}
