
.booklist {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 10px;
}

div.gallery {
  border: 1px solid #ccc;
  margin: 10px;
  flex: 1 1 calc(25% - 20px);
  box-sizing: border-box;
}

div.gallery:hover {
  border: 1px solid #777;
}

div.gallery img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  height: auto;
}

div.desc {
  padding: 15px;
  text-align: center;
}

.desc-title {
  font-weight: bold;
  margin-bottom: 5px;
  color: #ec9b16;
}

.desc-text {
  margin-top: 5px;
  font-size: 16px;
}

.desc-date {
  margin-top: 5px;
  font-size: 12px;
}

@media only screen and (max-width: 1200px) {
  div.gallery {
    flex: 0 1 calc(33.333% - 20px);
  }
}

@media only screen and (max-width: 900px) {
  div.gallery  {
    flex: 0 1 calc(50% - 20px);
  }
}

@media only screen and (max-width: 600px) {
  div.gallery  {
    flex: 0 1 100%;
  }
}