.fs-image-viewer {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: 96vw;
  max-width: none;
  height: 94dvh;
  max-height: none;
  margin: auto;
  padding: 12px;
  border: 1px solid #766653;
  border-radius: 12px;
  background: #121b24;
  color: #f4e9d8;
  font-family: inherit;
  direction: rtl;
}
.fs-image-viewer[open] { display: flex; flex-direction: column; gap: 10px; }
.fs-image-viewer::backdrop { background: #000d; }
.fs-image-viewer-bar { display: flex; flex-wrap: wrap; gap: 8px; flex-shrink: 0; }
.fs-image-viewer-bar button {
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #a59076;
  border-radius: 8px;
  background: #263746;
  color: #fff2dc;
  cursor: pointer;
}
.fs-image-viewer-bar button:focus-visible { outline: 3px solid #ff9a58; outline-offset: 2px; }
.fs-image-viewer-bar [hidden] { display: none; }
.fs-image-viewer-stage { flex: 1; min-height: 0; position: relative; overflow: hidden; }
.fs-image-viewer-stage img {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: none;
  max-height: none;
  object-fit: contain;
}
.fs-image-viewer-caption { margin: 0; text-align: center; font-size: 16px; line-height: 1.5; flex-shrink: 0; }
