.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  background-color: #0007;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);    
  width: 100%;
  height: 100%;
}

.modal-content {
  width: 80vw;
  height: 80vh;
  position: relative;
  
  top: 50%;
  left: 50%;
  text-align: center;
  transform: translate(-50%, -50%);
  
  z-index: 200;
}
.modal-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.modalnav{
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  font-size: 2em;
  z-index: 300;
}
.modalnav .modalprev{
  position: absolute;
  left: 1em;
  top: 0;
  transform: translateY(-50%);
  cursor: pointer;
  transition: all ease-out 0.20s;
  color: #ffffff;
  background-color: #00000077;
  display: block;
  height: 1.4em;
  width: 1.4em;
  line-height: 1.4em;
  text-align: center;
  border-radius: 1.4em;
  font-size: 1em;
}
.modalnav .modalnext{
  position: absolute;
  right: 1em;
  top: 0;
  transform: translateY(-50%);
  cursor: pointer;
  transition: all ease-out 0.20s;
  color: #ffffff;
  background-color: #00000077;
  display: block;
  height: 1.4em;
  width: 1.4em;
  line-height: 1.4em;
  text-align: center;
  border-radius: 1.4em;
  font-size: 1em;
}
.modalnav .modalnext:hover,
.modalnav .modalprev:hover{
  background-color: #000000ff;
}
.book-list-item{
  display: inline-block;
}


article {
  position: relative;
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
}

.thumbnail {
  width: 100px;
  height: 100px;
  cursor: pointer;
}

.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2; /* Prioridad visual mayor que el article */
  /*background-color: #fff;*/
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.modal-content {
  max-width: 80vw;
  max-height: 80vh;
}

.close {
  position: absolute;
  top: 15px;
  right: 15px;
  color: #000;
  font-size: 20px;
  cursor: pointer;
}