.page-gallery-thumb > img {
  display: block;
  max-width: calc(100% - 12px);
  max-height: calc(100% - 12px);
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(7,40,56,.16);
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.mrph-pages-library[data-mrph-instant-library="29"] {
  animation: mrph-pages-instant-enter .16s ease both;
}

.mrph-pages-library[data-mrph-instant-library="29"] .page-gallery-thumb:not([data-cached="1"]) {
  background:
    linear-gradient(110deg, transparent 20%, rgba(255,255,255,.72) 42%, transparent 64%) 0 0 / 220% 100%,
    linear-gradient(145deg, #e7f1f3, #f9fcfd);
  animation: mrph-pages-thumb-sheen 1.35s linear infinite;
}

.mrph-pages-library[data-mrph-instant-library="29"] .page-gallery-card > .primary.is-pending,
.mrph-pages-library[data-mrph-instant-library="29"] [data-open-page].is-pending {
  border-color: rgba(25,188,211,.55) !important;
  background: linear-gradient(135deg, rgba(89,220,234,.24), rgba(24,183,208,.18)) !important;
  color: #075b6e !important;
}

@keyframes mrph-pages-instant-enter {
  from { opacity: .72; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes mrph-pages-thumb-sheen {
  to { background-position: -220% 0, 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .mrph-pages-library[data-mrph-instant-library="29"],
  .mrph-pages-library[data-mrph-instant-library="29"] .page-gallery-thumb:not([data-cached="1"]) {
    animation: none !important;
  }
}
