.elkid-photo-viewer {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, .82);
}
.elkid-photo-viewer[hidden] { display: none; }
.elkid-photo-viewer img {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 48px);
  object-fit: contain;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .35);
}
.elkid-photo-viewer button {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 50%;
  color: #fff;
  background: rgba(0,0,0,.35);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
@media (max-width: 767px) {
  .elkid-photo-viewer { padding: 12px; }
  .elkid-photo-viewer img {
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }
}
