body, html {
  margin: 0;
  height: 100%;
  overflow: hidden; /* Prevent body scroll */
  font-family: sans-serif;
}

#overlay {
  position: fixed;
  inset: 0;
  background: white;
  display: flex;
  align-items: flex-start;   /* top instead of center */
  justify-content: center;   /* still centered horizontally */
  cursor: pointer;
  z-index: 1000;
  overflow-y: auto; /* allow scrolling if image taller than screen */
}

.global-top-bar {
  border-bottom: 2px solid #bfc3f0; /* <-- updated from 1px to 2px */
}

.projects-wrapper {
  display: flex;
  flex-direction: row;
  height: 100vh;
  overflow-x: hidden; /* disable normal scroll */
}

/* Prevent image selection while dragging */
.projects-wrapper img {
  pointer-events: auto;  /* keep clickable */
  user-drag: none;       /* Safari */
  -webkit-user-drag: none; /* Chrome, Safari */
}

/* Prevent text selection while dragging */
.projects-wrapper,
.projects-wrapper * {
  user-select: none;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none;     /* IE/Edge */
}

/* Sticky project header */
.project-header {
  position: sticky;
  top: 0;
  background: #fff;
  padding: 10px;
  z-index: 5; /* stays above project content */
}

/* Sticky project header 
.project-header {
  position: sticky;
  top: 0;
  background: #fff;
  padding: 10px;
  border-bottom: 1px solid #bfc3f0;
  z-index: 5; 
} */

.project-header h2 {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 12px;    /* adjust as needed */
  font-weight: 300;   /* adjust as needed */
  text-transform: uppercase; /* optional */
  letter-spacing: 1px; /* optional */
  color: #6875e4;
  margin: 0; /* remove default h2 spacing */
  padding: 10px; /* optional: gives breathing room */
}

/* Scrollable content */
.project-body {
  padding: 10px;
  color: #6875e4;
}

.project-column {
  box-sizing: border-box;
  width: calc(100vw / 4.2);
  flex-shrink: 0;
  overflow-y: auto;
  border-right: 1px solid #bfc3f0;
  padding-left: 30px;
  display: flex;
  flex-direction: column;
}

/* Mobile: show 1.5 columns + allow native horizontal swipe */
@media (max-width: 767px) {
  .project-column {
    width: calc(100vw / 1.2);
  }
  .projects-wrapper {
    overflow-x: auto;  /* enable native swipe on phones */
    -webkit-overflow-scrolling: touch;
  }
}

.project-column img {
  max-width: 100%;   /* fits inside the column */
  height: auto;
  display: block;
  margin: 0 auto 10px;
}

/* Default: hide scrollbar */
.project-column::-webkit-scrollbar {
  width: 2px;            /* ultra-thin scrollbar */
  height: 2px;           /* for horizontal bars (if any) */
}

.project-column::-webkit-scrollbar-track {
  background: transparent; /* no track */
}

/* Thumb hidden by default */
.project-column::-webkit-scrollbar-thumb {
  background: transparent; /* hidden by default */
  border-radius: 1px;
}

/* On hover: show black scrollbar */
.project-column:hover::-webkit-scrollbar-thumb {
  background: #bfc3f0;        /* black when hovering */
}

/* Firefox support */
.project-column {
  scrollbar-width: thin;              /* thin scrollbar */
  scrollbar-color: transparent transparent;
}

.project-column:hover {
  scrollbar-color: #bfc3f0 transparent;  /* black on hover */
}

.arrow-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  opacity: 0;                /* hidden by default */
  transition: opacity 0.2s;
  pointer-events: none; /* this layer ignores mouse events */
}

.projects-wrapper:hover .arrow-nav,
.arrow-nav:hover {           /* stay visible when hovering arrows */
  opacity: 1;
}

.arrow {
  background: none;
  color: #6875e4;
  border: none;
  font-size: 52px;
  line-height: 1;
  cursor: pointer;
  padding: 0 5px;
  pointer-events: auto; /* re-enable pointer events for the buttons */
}
