/* Part 145b — the picture viewer of articles and news (zoom145.js). */
.sd145-zoomable{ cursor: zoom-in; }
.sd145-zoomable:focus-visible{ outline: 3px solid var(--sd-teal-400, #2aa198); outline-offset: 3px; }

.sd145-viewer{
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  background: rgba(10, 18, 16, .95);
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
.sd145-viewer.is-open{ display: block; }

.sd145-stage{
  position: absolute;
  inset: 56px 12px 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.sd145-pic{
  display: block;
  max-width: none;
  max-height: none;
  background: #fff;
  border-radius: 6px;
  transform-origin: center center;
  cursor: zoom-in;
  touch-action: none;
  will-change: transform;
}
.sd145-viewer.is-zoomed .sd145-pic{ cursor: grab; }
.sd145-viewer.is-zoomed .sd145-pic:active{ cursor: grabbing; }

.sd145-bar{
  position: absolute;
  top: 10px;
  inset-inline-start: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sd145-btn,
.sd145-nav{
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font: 400 22px/40px Tahoma, Arial, sans-serif;
  text-align: center;
  cursor: pointer;
}
.sd145-btn:hover,
.sd145-nav:hover{ background: rgba(255, 255, 255, .3); }
.sd145-btn:focus-visible,
.sd145-nav:focus-visible{ outline: 2px solid #fff; outline-offset: 2px; }
.sd145-count{ color: #fff; font-size: 14px; margin-inline-start: 6px; }

.sd145-nav{
  position: absolute;
  top: 50%;
  margin-top: -22px;
  display: none;
  font-size: 30px;
  line-height: 38px;
}
.sd145-viewer.is-many .sd145-nav{ display: block; }
/* the arrows sit OVER the picture, which is often white: a dark disc keeps them visible */
.sd145-nav{ background: rgba(10, 18, 16, .72); border: 1px solid rgba(255, 255, 255, .55); }
.sd145-nav:hover{ background: rgba(10, 18, 16, .9); }
.sd145-next{ left: 12px; }   /* RTL: the next picture is to the left */
.sd145-prev{ right: 12px; }

.sd145-cap{
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 10px 16px 16px;
  color: #e8efed;
  font-size: 13.5px;
  line-height: 1.8;
  text-align: center;
}

@media (max-width: 640px){
  .sd145-stage{ inset: 56px 0 72px; }
  .sd145-nav{ top: auto; bottom: 12px; margin-top: 0; }
  .sd145-cap{ padding-inline: 60px; }
}
