.image-modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
  z-index: 99999;
}

.image-modal-overlay.is-open {
  display: flex;
}

.image-modal-box {
  position: relative;
  background: #fff;
  padding: 20px;
  max-width: 90vw;
  max-height: 90vh;
}

.image-modal-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(90vh - 40px);
}

.image-modal-close {
  position: absolute;
  top: 4px;
  right: 8px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.image-thumb {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  cursor: pointer;
}

body.image-modal-open {
  overflow: hidden;
}

.js-open-image-modal {
  cursor: pointer;
}