
#gallery-container {
  display: flex;
  width: 100%;
  height: 100vh;
}

/* Sidebar */
#thumbnail-sidebar {
  width: 25%;
  min-width: 200px;
  border-right: 2px solid var(--text-color);
  padding: 1rem;
  background: var(--bg-color);
  overflow-y: auto;
}

#thumbnail-sidebar img {
  width: 32%;
  margin-bottom: 1rem;
  border: 2px solid var(--text-color);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  image-rendering: pixelated;
}

#thumbnail-sidebar img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px var(--text-color);
}

/* Artwork display */
#artwork-display {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

#artwork-display img {
  max-width: 90%;
  max-height: 90%;
  border: 3px solid var(--text-color);
  box-shadow: 0 0 20px var(--text-color);
}

.placeholder {
  color: var(--text-color);
  text-align: center;
  font-size: 1.8rem;
  padding: 1rem;
}

/* Previous button */

.prev-button {
  position: relative;
  float: left;
}

.prev-button a {
  text-decoration: none;
  color: var(--text-color);
}

.prev-button a:hover {
  color: var(--bg-color);
}

/* ============================= */
/* Responsive Design Adjustments */
/* ============================= */

/* Tablets (stack layout) */
@media (max-width: 900px) {
  #gallery-container {
    flex-direction: column;
  }

  #thumbnail-sidebar {
    width: 100%;
    min-width: unset;
    border-right: none;
    border-bottom: 2px solid var(--text-color);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  #thumbnail-sidebar img {
    width: 30%;
    margin: 0.5rem;
  }

  #artwork-display {
    padding: 1rem;
    height: auto;
  }
}

/* Mobile (single column) */
@media (max-width: 600px) {
  #thumbnail-sidebar {
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  #thumbnail-sidebar img {
    width: 120px;
    flex-shrink: 0;
    margin: 0.5rem;
  }

  #artwork-display img {
    max-width: 100%;
    max-height: 70vh;
  }
}

/* Artwork display wrapper */
.artwork-container {
  text-align: center;
  max-width: 90%;
}

.artwork-container img {
  max-width: 100%;
  max-height: 70vh;
  border: 3px solid var(--text-color);
  box-shadow: 0 0 20px var(--text-color);
  margin-bottom: 1rem;
}

/* Caption styling */
.caption {
  color: var(--text-color);
  font-family: "Press Start 2P", monospace;
}

.caption h2 {
  font-size: 1rem;
  margin: 0.5rem 0;
  border-top: 1px solid var(--text-color);
  padding-top: 0.5rem;
}

.caption p {
  font-size: 0.8rem;
  line-height: 1.4;
  color: #eee;
}
