/* Full-resolution viewer used by every product overview and case study. */
.fs-viewer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  margin: 0;
  padding: 0;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  border: 0;
  background: #080e18;
  color: #eef4fa;
  font: 14px/1.4 Inter, Arial, sans-serif;
  overflow: hidden;
}
.fs-viewer::backdrop { background: rgba(2, 5, 11, .96); }
.fs-viewer[open] { display: flex; flex-direction: column; }
.fs-viewer *, .fs-viewer *::before, .fs-viewer *::after { box-sizing: border-box; }
.fs-viewer__toolbar {
  flex: 0 0 auto;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 10px 20px;
  background: #121d2c;
  border-bottom: 1px solid #344b60;
}
.fs-viewer__title { min-width: 100px; max-width: 280px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 600; color: #d9e5ef; }
.fs-viewer__toolbar-left, .fs-viewer__toolbar-right { display: flex; gap: 8px; align-items: center; }
.fs-viewer__toolbar-right { margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.fs-viewer__control, .fs-viewer__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid #425e76;
  border-radius: 7px;
  min-height: 38px;
  min-width: 38px;
  padding: 6px 10px;
  background: #1e3043;
  color: #edf4fa;
  font: 600 13px/1.15 Inter, Arial, sans-serif;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.fs-viewer__control:hover, .fs-viewer__link:hover { color: #fff; background: #35546d; border-color: #81b5d1; }
.fs-viewer__control:focus-visible, .fs-viewer__link:focus-visible { outline: 3px solid #81b5d1; outline-offset: 2px; }
.fs-viewer__control:disabled { opacity: .3; cursor: default; }
.fs-viewer__control--active { background: #31536f; border-color: #81b5d1; }
.fs-viewer__close { font-size: 22px; font-weight: 400; line-height: 1; }
.fs-viewer__viewport {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: #080e18;
  cursor: grab;
  scrollbar-color: #50697e #131e2c;
}
.fs-viewer__viewport.is-dragging { cursor: grabbing; }
.fs-viewer__viewport:focus-visible { outline: 3px solid #81b5d1; outline-offset: -4px; }
.fs-viewer__canvas {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 100%;
  min-height: 100%;
  width: max-content;
  height: max-content;
  padding: 0;
}
.fs-viewer__image {
  box-sizing: content-box;
  display: block;
  flex: 0 0 auto;
  width: auto;
  height: auto;
  max-width: none !important;
  max-height: none !important;
  min-width: 0;
  min-height: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  object-fit: fill;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.fs-viewer__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  gap: 12px;
  padding: 7px 20px;
  min-height: 34px;
  border-top: 1px solid #26384b;
  background: #121d2c;
  color: #a9bdce;
  font-size: 12px;
}
.fs-viewer__position { font-variant-numeric: tabular-nums; }
.fs-viewer__hint { text-align: right; }
.fs-viewer__status { color: #d2e5f5; }
body.fs-viewer-open { overflow: hidden; }
/* Interactive page previews have keyboard focus, without disturbing page layout. */
img.zoomable, img[data-full].fs-viewer-trigger { cursor: zoom-in; }
img.zoomable:focus-visible, img[data-full].fs-viewer-trigger:focus-visible { outline: 3px solid #81b5d1; outline-offset: 4px; }
@media (max-width: 760px) {
  .fs-viewer__toolbar { padding: 8px 10px; gap: 7px; flex-wrap: wrap; }
  .fs-viewer__title { flex: 1; max-width: none; }
  .fs-viewer__toolbar-right { gap: 5px; width: 100%; justify-content: center; margin: 0; }
  .fs-viewer__control, .fs-viewer__link { min-height: 36px; min-width: 36px; padding: 6px 7px; font-size: 12px; }
  .fs-viewer__footer { padding: 7px 10px; }
  .fs-viewer__hint { display: none; }
}
@media (prefers-reduced-motion: reduce) { .fs-viewer * { scroll-behavior: auto !important; } }
/* Keep toolbar controls steady as the live zoom percentage changes. */
.fs-viewer__control[data-fs-action="actual"] {
  min-width: 62px;
  font-variant-numeric: tabular-nums;
}
