.scrollable-tabs-2 {
  --_left-mask-position: 10%;
  --_right-mask-position: 90%;

  display: grid;
  grid-template-areas: "stack";
  margin-bottom: 3.125rem;
  transition: transform 0.5s ease;

  > * {
    grid-area: stack;
  }

  .arrow {
    align-self: center;
    z-index: 1;
    padding: 0.5rem;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border: none;
    border-radius: 50%;
    background-color: transparent;
    background-color: hsl(from var(--text-clr-700) h s l / 0.5);
    color: var(--secondary-clr);
    color: var(--white-clr);

    &:hover {
      background-color: hsl(from var(--text-clr-700) h s l);
    }

    &[data-active="false"] {
      display: none;
    }
  }

  .arrow-left {
    justify-self: start;
  }

  .arrow-right {
    justify-self: end;
  }

  &:has(.arrow-left[data-active="false"]) .tabs {
    --_left-mask-position: 0%;
  }

  &:has(.arrow-right[data-active="false"]) .tabs {
    --_right-mask-position: 100%;
  }

  .tabs {
    font-family: "Inter", sans-serif;
    display: flex;
    gap: 1.25rem;
    overflow-x: scroll;
    overscroll-behavior: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-behavior: smooth;
    mask-image: linear-gradient(
      to right,
      transparent,
      rgb(0, 0, 0) var(--_left-mask-position) var(--_right-mask-position),
      transparent
    );

    &::-webkit-scrollbar {
      display: none;
    }
  }

  .tab {
    flex-shrink: 0;

    cursor: pointer;
    padding: 0.5rem 1.875rem;
    /* font-size: 0.875rem; */
    font-weight: var(--fw-500);
    border: 1px solid var(--border-clr-900);
    border-radius: 100vw;
    background-color: var(--white-clr);
    color: var(--text-clr);

    &:hover {
      border-color: var(--secondary-clr);
    }

    &.tab-active {
      background-color: var(--secondary-clr-900);
      color: var(--white-clr);
    }
  }
}
