/* Custom portfolio scrollbar — drawn as real page UI rather than native
   scrollbar styling so it remains visible and consistent in Safari/macOS. */

.custom-scrollbar-parent {
  position: relative;
}

.custom-scrollbar-target {
  scrollbar-width: none !important;
  -ms-overflow-style: none;
  overscroll-behavior: contain;
}

.custom-scrollbar-target::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Leave room for the graphic without crowding the content. */
.work-page.custom-scrollbar-target {
  padding-right: 20px;
}

.project-copy-scroll.custom-scrollbar-target {
  padding-right: 22px;
}

.custom-scrollbar {
  position: absolute;
  right: 0;
  width: 13px;
  min-height: 24px;
  box-sizing: border-box;
  border: 1px solid #777;
  border-radius: 0;
  background: #fff;
  z-index: 40;
  user-select: none;
  touch-action: none;
  overflow: hidden;
}

.custom-scrollbar[hidden] {
  display: none;
}

.custom-scrollbar__thumb {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  min-height: 32px;
  background: #777;
  border-radius: 0;
  cursor: grab;
}

.custom-scrollbar__thumb:active {
  cursor: grabbing;
}

@media (max-width: 700px) {
  .project-copy-scroll.custom-scrollbar-target {
    padding-right: 0;
  }

  .project-copy-pane > .custom-scrollbar {
    display: none;
  }
}
