body {
  display: grid;
  justify-content: center;
  background-color: antiquewhite;
}

.lib-shelf {
  grid-column: auto / span 6;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 1fr auto;
  justify-items: stretch;
  justify-items: center;
  align-items: center;
  background-color: burlywood;
  border: solid saddlebrown 8px;
  margin: 10px;
  padding: 5px;
}

.lib-books {grid-column: auto / span 3; padding: 5px;}
.lib-books img {width: 100%;}
.lib-books img:hover {transform: scale(1.1); transition-duration: 0.7s;}


.shelf-container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  width: 60vw;
}

p {margin-top:0;} 
 
.book-box {
  grid-column: auto / span 6;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  background-color: burlywood;
  border: solid saddlebrown 6px;
  margin: 10px;
  padding: 15px;
}

.book-box:hover {transform: scale(1); transition-duration: 0.7s;}

.box-photos {grid-column: auto / span 4;}
.box-photos img {width: 100%;}
.box-text {
  grid-column: auto / span 8;
  text-align: justify;
  hyphens: auto;
  padding: 0px 0px 0px 15px;
    & p {margin: 0px 0px 10px 0px;}
}

@media only screen and (max-width: 1200px) {
  .book-box {grid-column: auto / span 12;}
}

@media only screen and (max-width: 750px) {
  .book-box {width: 90lvw;}
}