.nb-pub { min-width: 0; width: 100%; }
.nb-pub, .nb-pub * { box-sizing: border-box; }
.nb-pub [hidden], .nb-pub .nb-pub__gallery { display: none !important; }
.nb-pub .nb-pub__track { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 16px; }
.nb-pub .nb-pub__card { flex-shrink: 0; scroll-snap-align: start; min-width: 0; }
.nb-pub__cover { aspect-ratio: 3 / 4; width: 100%; overflow: hidden; }
.nb-pub__cover a, .nb-pub__cover .elementor-widget-container { display: block; height: 100%; }
.nb-pub__cover img { display: block; width: 100%; height: 100%; object-fit: contain; margin: 0; }
.nb-pub__caption p { margin: 0; }
.elementor .nb-pub .nb-pub__caption a { color: inherit; text-decoration: none; }
.nb-pub__cover a:focus-visible, .nb-pub__caption a:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }
.nb-pub button { appearance: none; border: 1px solid currentColor; border-radius: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; padding: 8px 14px; min-height: 44px; }
.nb-pub button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.nb-pub button:disabled { opacity: .3; cursor: default; }
.nb-pub__navigation { display: flex; justify-content: flex-end; gap: 12px; margin-top: 16px; width: 100%; }
.nb-pub__dialog { position: fixed; inset: 0; margin: auto; width: min(1200px,96vw); max-width: 96vw; max-height: 96dvh; padding: 20px; border: 0; color: inherit; background: #e9e3dc; overflow: auto; }
.nb-pub__dialog::backdrop { background: rgba(0,0,0,.82); }
.nb-pub__dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.nb-pub__dialog .nb-pub__dialog-title { margin: 0; font: inherit; }
.nb-pub__stage { max-height: calc(96dvh - 160px); overflow: auto; text-align: center; }
.nb-pub__page { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(96dvh - 160px); object-fit: contain; margin: 0 auto; }
.nb-pub__dialog.is-zoomed .nb-pub__page { max-width: none; max-height: none; width: auto; }
.nb-pub__toolbar { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 12px; }
@media(max-width:767px) {
  .nb-pub__dialog { padding: 12px; }
  .nb-pub__toolbar { gap: 8px; flex-wrap: wrap; }
  .nb-pub__toolbar button { padding: 8px 12px; }
}
