/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-size: small;
  line-height: 1;
  color: black;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  cursor: url('IMPORT/cursor.svg') 0 0, auto;
}

a, a:hover {
  cursor: url('IMPORT/hover-cursor.svg') 0 0, auto;
}

/* Layout wrapper */
.layout {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-areas: 
  "index project-name image-scroll image-scroll image-scroll image-scroll"
  "prev next image-scroll image-scroll image-scroll image-scroll";
  gap: 1rem;
  grid-template-rows: auto auto; /* allow a second row for navigation */
}

/* Sections */
.index {
  grid-area: index;
  grid-column: 1 / 2;
  grid-row: 1;
  padding: 10px 15px;
  
}

.project-name {
  grid-area: project-name;
  grid-column: 2 / 4;
  grid-row: 1;
  padding: 10px 15px;
}

.grid-image {
  width: 30%;
  height: auto;
  display: block;
  max-width: 100%;
}

.navigation-prev,
.navigation-next {
  position: absolute;
  top: 65vh; /* adjust as needed */
}

.navigation-prev {
  left: 0;
  padding: 15px;
}

.navigation-next {
  left: 16.66%; /* one column to the right (2/12 of width if 6 columns) */
  padding: 15px;
}

/* Scrollable image column: columns 4–6 */
.image-scroll {
  top: 0;
  position: sticky;  /* optional */
  grid-area: image-scroll;
  grid-column: 4 / 7;
  overflow-y: scroll;
  height: 100vh;
}

.image-scroll img {
  width: 100%;
  display: block;
}

/* Sticky footer */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 15px;
  font-size: x-small;
  text-align: right;
  color: white;
  z-index: 10;
}

/* Typography */
span {
  font-weight: bold;
  color: slategrey;
}

.highlight-link {
  text-decoration: none;
  color: black;
}

.highlight-link:hover {
  background-color: black;
  color: white;
}

.color-buttons {
  margin: 1px 0;
  display: flex;
  gap: 0rem;
}

.color-buttons button {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 0%;
  cursor: pointer;
}

.external-link {
  color: black;
  text-decoration: underline;
}

.external-link:hover {
  color: blue;
}
