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

.lib-title img {width: 50%;}
.lib-title {grid-column: auto / span 12;}

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

.shelf-items {
  display: flex;
  flex-direction: column;
  width: 200px;
  position: fixed;
  bottom: 0;
  right: 0px;
  z-index: -1;
}

.shelf-items img {
  width: 100%;
  padding: 0px 0px 15px 0px;
}

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

@media only screen and (max-width: 750px) {
  .shelf-container {width: 90lvw;}
  .book-box {grid-column: auto / span 12;}
  .box-photos {grid-column: auto / span 12;}
  .box-text {grid-column: auto / span 12; padding: 0px;}
  .lib-title img {width: 90%;}
  .shelf-items {flex-direction: row; width: 90vw; position: static; flex-wrap: wrap;}
}