.hb-book-gallery {
  position: sticky;
  top: 100px;
  align-self: start;
}
.hb-book-gallery__main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hb-book-gallery__cover {
  position: relative;
  aspect-ratio: 2 / 3;
  background: var(--hb-paper-2);
  box-shadow: var(--hb-shadow-book);
}
.hb-book-gallery__cover::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 10px;
  background: linear-gradient(90deg, rgba(255,255,255,.18), rgba(0,0,0,.22));
  z-index: 2; pointer-events: none;
}
.hb-book-gallery__cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hb-book-gallery__tag {
  position: absolute;
  top: -16px; right: -16px;
  background: var(--hb-orange-500);
  color: #fff;
  padding: 8px 16px;
  font-family: var(--hb-font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  transform: rotate(4deg);
  z-index: 5;
  box-shadow: 0 8px 20px rgba(245,130,32,.4);
}
.hb-book-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 90px));
  gap: 10px;
}
.hb-book-gallery__thumb {
  aspect-ratio: 2 / 3;
  background: var(--hb-paper-2);
  cursor: pointer;
  border: 2px solid transparent;
  padding: 0;
  overflow: hidden;
  transition: border-color .15s;
}
.hb-book-gallery__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hb-book-gallery__thumb.is-active,
.hb-book-gallery__thumb:hover {
  border-color: var(--hb-orange-500);
}

@media (max-width: 1024px) {
  .hb-book-gallery { position: static; }
}
