/* Botones de navegación (galeria, book) */
.nav-button {
  position: absolute;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 20;
}

.nav-button.up-button {
  top: -60px;
  left: 50%;
  transform: translate(-50%, 0);
}

.nav-button.left-button {
  top: 50%;
  left: -140px;
  transform: translateY(-50%);
}

.nav-button.right-button {
  top: 50%;
  right: -140px;
  transform: translateY(-50%);
}

/* Book: up button más arriba que en galería */
.book-image-container .nav-button.up-button {
  top: -80px;
}

.button-img {
  width: calc(32px * 2);
  image-rendering: pixelated;
}

.nav-button.up-button:hover .button-img {
  content: url('../widgets/upHoverNormalButton.png');
}

.nav-button.left-button:hover .button-img {
  content: url('../widgets/leftHoverNormalButton.png');
}

.nav-button.right-button:hover .button-img {
  content: url('../widgets/rightHoverNormalButton.png');
}

/* Modal de imagen */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-modal[hidden] {
  display: none !important;
}

.modal-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 0;
}

.modal-image {
  max-width: 90vw;
  max-height: 90vh;
  z-index: 1;
  image-rendering: pixelated;
  border: 4px solid white;
  background-color: black;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
  cursor: zoom-out;
}

/* Card base (index2) */
.card {
  background-color: #1a1a1a;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 10px #000;
}
