.image-loader[data-image] {
  cursor: pointer;
}
.image-loader-overlay {
  background-color: rgba(0, 0, 0, 0.7);
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  z-index: 99999;
}
.image-loader-overlay .image-loader-popup {
  background-color: #ffffff;
  box-shadow: 0px 0px 30px 8px rgba(0, 0, 0, 0.5);
  -webkist-box-shadow: 0px 0px 30px 8px rgba(0, 0, 0, 0.5);
  max-height: 100vh;
  max-width: 100vw;
  min-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: end;
  justify-content: center;
  border-radius: 1em;
}
.image-loader-overlay .image-loader-popup .title {
  position: relative;
  width: 100%;
  flex-grow: 0;
  height: 4em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.image-loader-overlay .image-loader-popup .title .text {
  font-size: 1.4em;
  font-weight: bold;
  position: relative;
  top: 0.2em;
}
.image-loader-overlay .image-loader-popup .title .close {
  position: absolute;
  top: 1em;
  right: 1em;
  background-color: #414141;
  -webkit-mask-image: url("/images/pages/close.svg");
  mask-image: url("/images/pages/close.svg");
  mask-repeat: no-repeat;
  width: 2em;
  height: 2em;
  cursor: pointer;
}
.image-loader-overlay .image-loader-popup .image {
  width: 100%;
  flex-grow: 1;
  padding: 1em;
  max-width: 100vw;
  max-height: calc(100vh - 4em);
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-loader-overlay .image-loader-popup .image img {
  border: solid 1px #cccccc;
  max-height: calc(100vh - 5em);
  max-width: calc(100vw - 2em);
}
@media (max-width: 768px) {
  .image-loader-overlay .image-loader-popup .title {
    height: 3em;
  }
  .image-loader-overlay .image-loader-popup .title .text {
    font-size: 1.2em;
  }
  .image-loader-overlay .image-loader-popup .title .close {
    top: 0.5em;
    width: 2em;
    height: 2em;
  }
  .image-loader-overlay .image-loader-popup .image {
    padding: 0.5em;
  }
}
