img.zoomable { cursor: zoom-in; max-width: 100%; height: auto; }

#zoom-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(47, 72, 88, .95);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  cursor: zoom-out;
}
#zoom-overlay.open { display: block; }
#zoom-overlay img {
  max-width: none;
  height: auto;
  background: #fff;
  display: block;
  margin: 0 auto 1rem;  
}

#zoom-overlay .zoom-caption {
  position: sticky;     
  left: 0;
  box-sizing: border-box;
  width: 100vw;
  padding: 1rem 1.5rem;
  color: #fff;
  font-size: .95rem;
  line-height: 1.4;
  text-align: center;
}
#zoom-overlay .zoom-caption:empty { display: none; }
