#library .collectionImageFrame { aspect-ratio: 6 / 5; }
#library .collectionImageFrame > img { width: 100%; height: 100%; object-fit: contain; }
.libraryZoomTrigger { cursor: zoom-in; }
.libraryZoomTrigger:focus-visible { outline: 3px solid #633bac; outline-offset: 2px; }
.libraryZoomTrigger::after {
  content: ''; position: absolute; right: 10px; bottom: 10px;
  width: 34px; height: 34px; border-radius: 50%; pointer-events: none;
  background: #272020d9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M14 4h6v6m0-6-7 7M10 20H4v-6m0 6 7-7'/%3E%3C/svg%3E") center / 20px no-repeat;
  box-shadow: 0 1px 6px #0004;
}
dialog.libraryZoom {
  position: fixed; inset: 0; width: 100%; height: 100%;
  max-width: none; max-height: none; box-sizing: border-box;
  padding: 0; margin: 0; border: 0; overflow: hidden; background: transparent;
  overscroll-behavior: contain; color: white;
}
dialog.libraryZoom::backdrop { background: rgb(20 17 17 / 81%); }
.libraryZoomImage {
  position: absolute; display: block; max-width: none; max-height: none;
  object-fit: contain; border-radius: 8px; box-shadow: 0 12px 48px #0006;
  transform-origin: top left; cursor: zoom-out;
}
.libraryZoomClose {
  position: absolute; width: 44px; height: 44px; z-index: 1;
  display: grid; place-items: center; border: 1px solid #fff9; border-radius: 50%;
  padding: 0; background: #302c2b; color: white; cursor: pointer;
}
.libraryZoomClose svg { width: 20px; height: 20px; }
.libraryZoomClose:focus-visible { outline: 3px solid white; outline-offset: 2px; }
html:has(dialog.libraryZoom[open]) { overflow: hidden; }
