.image-modal {
  position: relative;
}
.image-modal .modal__open {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background: url("../../../../images/icons/search-white.svg") no-repeat center center/24px #9C5449;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font: 0/0 transparent;
  padding: 0;
  width: 48px;
  height: 48px;
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 10;
}
.image-modal .modal__open:hover, .image-modal .modal__open:focus {
  background-color: #E89B8E;
}

.image-modal__modal {
  block-size: 100vh;
  inline-size: 100vw;
  inset-block-start: 0;
  inset-inline-start: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  visibility: hidden;
  z-index: 300;
}
.image-modal__modal.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
.image-modal__modal .modal__overlay {
  background: rgba(0, 0, 0, 0.8);
  block-size: 100%;
}
.image-modal__modal .modal__wrapper {
  align-items: center;
  block-size: 100%;
  display: flex;
  justify-content: center;
  margin-inline: auto;
  padding: 0 32px;
}
@media (min-width: 62em) {
  .image-modal__modal .modal__wrapper {
    max-inline-size: 80vw;
    padding: 0;
  }
}
.image-modal__modal .modal__content {
  max-block-size: 80vh;
  max-inline-size: 100%;
}
.image-modal__modal .modal__content img {
  max-block-size: 80vh;
  inline-size: auto;
}
.image-modal__modal .modal__close {
  align-items: center;
  background: none;
  border: none;
  color: #fff;
  display: inline-flex;
  font-size: 0.7rem;
  gap: 8px;
  letter-spacing: 2px;
  padding: 12px;
  position: absolute;
  right: 12px;
  top: 12px;
  text-transform: uppercase;
}
@media (min-width: 75em) {
  .image-modal__modal .modal__close {
    right: 24px;
    top: 48px;
  }
}
.image-modal__modal .modal__close:after {
  background-color: #fff;
  content: "";
  display: block;
  height: 20px;
  -webkit-mask: url(../../../../images/icons/icon-clear.svg) no-repeat center;
          mask: url(../../../../images/icons/icon-clear.svg) no-repeat center;
  -webkit-mask-size: cover;
          mask-size: cover;
  width: 20px;
}