/* 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);
  gap: 1rem;
}

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

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

 /* Image Grid Section */
 .image-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* 6 vertical columns */
  gap: 8rem;
  padding: 150px 15px;
}

.image-grid img {
  width: 50%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Popup viewer for enlarged image */
.popup-viewer {
  position: fixed;
  bottom: 1rem;
  right: 1rem; /* changed from left to right */
  max-width: 50vw;
  max-height: 70vh;
  z-index: 9999;
  display: none;
  cursor: pointer;
}

.popup-viewer img {
  width: 100%;
  height: auto;
  display: block;
}

.popup-container {
  position: fixed;
  bottom: 5px;
  right: 10px;
  max-width: 50vw;
  max-height: 70vh;
  z-index: 9999;
  display: none;
  padding: 0;              /* remove padding */
  border: none;            /* remove border */
  background: none;        /* remove background */
  box-shadow: none;        /* remove shadow */
}

.popup-container img {
  max-width: 100%;
  max-height: 80%;
  display: block;
  margin-bottom: 0.5rem;
}

.popup-caption {
  position: absolute;
  bottom: 0rem;
  left: 0rem;
  color: white;
  font-size: small;
  background-color: black;
  z-index: 1;
  pointer-events: none; /* makes sure clicks go to the image */
}

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

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

.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;
}

.number{
  grid-column: 1 / 2; /* Starts at column 2, ends before 7 */
  grid-row: 2;
  margin-top: 40px;
  text-align: left;
  padding-left: 15px;
}

.artworks {
  grid-column: 2 / 7; /* Starts at column 2, ends before 7 */
  grid-row: 2;
  margin-top: 40px;
  text-align: left;
  padding-left: 15px;
}

.artwork-item {
  display: inline;
  cursor: pointer;
}

#hover-preview {
  display: none;
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 999;
  pointer-events: none;
}

#hover-preview img {
  max-width: 800px;
  max-height: 700px;
}


.artwork-item:hover {
  background-color: black;
  color: white;
}