.pdf-library {
  background: transparent;
  text-align: left;
}

.pdf-embed-group + .pdf-embed-group {
  margin-top: 2rem;
}

.pdf-embed-group h3 {
  margin: 0 0 1rem;
}

.pdf-embed-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 10px;
}

.pdf-embed-book {
  display: flex;
  flex-direction: column;
  width: 150px;
  text-align: center;
  text-decoration: none;
}

.pdf-embed-cover {
  position: relative;
  display: block;
  width: 150px;
  aspect-ratio: 300 / 424;
  border-radius: 10px;
  background-color: #d1d5db;
}

.pdf-embed-cover img {
  position: absolute;
  inset: 0;
  width: 150px;
  height: auto;
  border-radius: 10px;
  transition: transform .3s ease;
}

.pdf-embed-cover.is-loaded {
  aspect-ratio: auto;
  background: transparent;
}

.pdf-embed-cover.is-loaded img {
  position: static;
  display: block;
}

.pdf-embed-cover.is-loaded .pdf-embed-placeholder {
  display: none;
}

.pdf-embed-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0.65;
}

.pdf-embed-title {
  min-height: 2.6em;
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.pdf-embed-cover img:hover {
  transform: scale(1.1);
}

.pdf-embed-book:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}
