.bobovr-gallery-trigger { cursor: zoom-in; }
.bobovr-gallery-trigger:focus-visible { outline: 3px solid #1686ee; outline-offset: 3px; }
html.bobovr-gallery-open { overflow: hidden; }
.bobovr-lightbox {
  color: #fff; background: #17191e; border: 0; border-radius: 14px;
  padding: 12px; width: min(1100px, calc(100vw - 24px)); max-width: none;
  height: min(850px, calc(100dvh - 24px)); max-height: none;
  box-sizing: border-box; overflow: hidden; margin: auto;
}
.bobovr-lightbox::backdrop { background: rgba(10, 12, 17, .86); }
.bobovr-lightbox[open] { display: grid; grid-template-rows: 48px minmax(0,1fr); gap: 8px; }
.bobovr-lightbox-bar { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 0 12px; }
.bobovr-lightbox-counter { font-size: 16px; font-weight: 600; }
.bobovr-lightbox-body { display: grid; grid-template-columns: 48px minmax(0,1fr) 48px; align-items: center; gap: 8px; min-height: 0; }
.bobovr-lightbox-stage { width: 100%; height: 100%; min-width: 0; min-height: 0; display: grid; place-items: center; overflow: hidden; touch-action: pan-y; }
.bobovr-lightbox-stage img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; background: #fff; border-radius: 6px; }
.bobovr-lightbox button { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; color: #fff; background: #353942; border: 1px solid #555b66; border-radius: 50%; font: 32px/1 system-ui,sans-serif; cursor: pointer; }
.bobovr-lightbox button[hidden] { visibility: hidden; pointer-events: none; }
.bobovr-lightbox button:hover { background: #505663; }
.bobovr-lightbox button:focus-visible { outline: 3px solid #71b7ff; outline-offset: 2px; }
@media (max-width: 600px) {
  .bobovr-lightbox { width: calc(100vw - 12px); height: calc(100dvh - 12px); padding: 8px; }
  .bobovr-lightbox-body { grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0,1fr) 52px; gap: 6px; }
  .bobovr-lightbox-stage { grid-row: 1; grid-column: 1 / -1; }
  .bobovr-lightbox-prev { grid-column: 1; grid-row: 2; justify-self: end; }
  .bobovr-lightbox-next { grid-column: 2; grid-row: 2; justify-self: start; }
}
@media (min-width: 601px) {
  .bobovr-lightbox-prev { grid-column: 1; grid-row: 1; }
  .bobovr-lightbox-stage { grid-column: 2; grid-row: 1; }
  .bobovr-lightbox-next { grid-column: 3; grid-row: 1; }
}
.bobovr-lightbox-stage { position: relative; }
.bobovr-lightbox-stage img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; background: transparent; }
.bobovr-lightbox-stage img[src^="data:image/svg+xml"] { background: #fff; }
