.img-modal {
  position: fixed;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: var(--background-color);
  display: flex;
  flex-direction: column;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
}

.img-modal .img-view {
  position: absolute;
  top: 50%;
  left: 30%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 500px;
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
}

.img-modal-name {
  position: absolute;
  left: 60%;
  top: calc(50% - 230px);
  width: max-content;
  height: max-content;
}

.img-modal-name .modal-name {
  position: relative;
  top: -20px;
  text-align: left;
}

.img-modal-name .modal-name-revealer {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
}

.img-modal-name .modal-name-revealer:after {
  content: "";
  position: absolute;
  top: -21px;
  left: 0;
  width: 105%;
  height: 105%;
  background: var(--background-color);
  border: var(--border);
}

.img-modal-description {
  position: absolute;
  left: 60%;
  top: calc(50% - 208px);
  width: max-content;
  height: auto;
  max-width: 300px;
  border: var(--border);
}

.img-modal-description .modal-description {
  position: relative;
  top: -20px;
  line-height: 1.1;
  white-space: normal;
  word-wrap: break-word;
  text-align: left;
  max-width: 500px;
}

.modal-description {
  opacity: 0;
}

.external-close-btn {
  position: fixed;
  left: 60%;
  top: 1.0em;
  z-index: 50;
  cursor: pointer;
  pointer-events: none;
  opacity: 0;
}

.close-text {
  position: relative;
  top: -20px;
  pointer-events: auto;
}

.close-revealer {
  position: absolute;
  top: -20px;
  left: 0;
  width: 105%;
  height: 105%;
  background: var(--background-color);
  border: var(--border);
}

.img-modal .next-btn {
  position: absolute;
  left: 60%;
  bottom: 3em;
  width: max-content;
  height: max-content;
  cursor: pointer;
  pointer-events: auto;
  z-index: 10;
}

.img-modal .next-btn .btn {
  position: relative;
  top: -20px;

}

.img-modal .next-btn .btn-revealer {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
}

.img-modal .next-btn .btn-revealer:after {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  width: 105%;
  height: 105%;
  background: #fff;
  border: var(--border);
}