html.case-image-open { overflow: hidden; padding-inline-end: var(--image-viewer-scrollbar, 0px); }
.image-viewer {
  position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh;
  max-width: none; max-height: none; margin: 0; padding: 72px 48px 32px;
  border: 0; background: #101218; color: white;
}
.image-viewer::backdrop { background: rgb(0 0 0 / 85%); }
.image-viewer-figure { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 16px; width: 100%; height: 100%; margin: 0; }
.image-viewer-stage { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 0; }
.image-viewer-image { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; }
.image-viewer-caption { text-align: center; font: 400 16px/1.4 var(--font-family-body); color: #ecf0f7; }
.image-viewer-close, .image-viewer-zoom {
  position: absolute; top: 16px; min-width: 44px; min-height: 44px;
  border: 1px solid #727782; border-radius: 8px; padding: 8px 16px;
  background: #252a33; color: white; cursor: pointer; font: 600 16px/1.4 var(--font-family-body);
}
.image-viewer-close { right: 24px; font-size: 28px; line-height: 1; }
.image-viewer-zoom { left: 24px; }
.image-viewer :is(button, img):focus-visible { outline: 3px solid #b4ccef; outline-offset: 4px; }
.image-viewer.is-zoomed .image-viewer-stage { display: block; overflow: auto; overscroll-behavior: contain; }
.image-viewer.is-zoomed .image-viewer-image { max-width: none; max-height: none; margin: 0 auto; cursor: zoom-out; }
@media (max-width: 700px) { .image-viewer { padding: 72px 12px 20px; } }
