/* Click-to-enlarge lightbox (see /js/image-zoom.js). */
.sbb-zoomable { cursor: zoom-in; }
.sbb-zoomable:focus-visible {
  outline: 3px solid var(--accent, #2563eb);
  outline-offset: 3px;
}

html.sbb-zoom-lock { overflow: hidden; }

dialog.sbb-zoom {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(8, 10, 16, 0.92);
  color: #f3f4f6;
  font-family: inherit;
  display: none;
  flex-direction: column;
}
dialog.sbb-zoom[open] { display: flex; }
dialog.sbb-zoom::backdrop { background: rgba(8, 10, 16, 0.92); }

.sbb-zoom__stage {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 16px 8px;
  overflow: auto;
}
.sbb-zoom__img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  cursor: zoom-in;
}
dialog.sbb-zoom.sbb-zoom--actual .sbb-zoom__stage {
  align-items: flex-start;
  justify-content: flex-start;
}
dialog.sbb-zoom.sbb-zoom--actual .sbb-zoom__img {
  max-width: none;
  max-height: none;
  cursor: zoom-out;
}

.sbb-zoom__caption {
  flex: 0 0 auto;
  margin: 0;
  padding: 10px 56px 16px;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: #d1d5db;
}
.sbb-zoom__caption[hidden] { display: none; }

.sbb-zoom__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.sbb-zoom__close:hover { background: rgba(255, 255, 255, 0.26); }
.sbb-zoom__close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

@media (max-width: 640px) {
  .sbb-zoom__stage { padding: 56px 8px 4px; }
  .sbb-zoom__caption { padding: 8px 16px 14px; }
}
