.lp-modal {
  display: flex;
  opacity: 0;
  visibility: hidden;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.lp-modal .image-wrapper {
  position: relative;
  margin: 5vw;
}

.lp-modal a:hover {
  opacity: 1;
}

.lp-modal a img {
  max-width: 964px;
  border: 7px solid transparent;
}

.lp-modal a:hover img {
  opacity: 1;
  border-color: #ff7d35;
}

.lp-modal.is-show {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s;
}

.lp-modal .close-button {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 50px;
  height: 50px;
  background-color: #ddd;
  border-radius: 50%;
  text-align: center;
  line-height: 50px;
  color: #000;
  cursor: pointer;
}

.lp-modal .close-button::before,
.lp-modal .close-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 45px;
  background-color: #333;
}

.lp-modal .close-button:hover {
  background-color: #aaa;
  transition: background-color 0.5s;
}

.lp-modal .close-button::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.lp-modal .close-button::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

@media screen and (max-width: 767px) {
  .lp-modal .image-wrapper {
    margin: 2vw;
  }

  .lp-modal .close-button {
    top: -7px;
    right: -7px;
    width: 25px;
    height: 25px;
  }

  .lp-modal .close-button::before,
  .lp-modal .close-button::after {
    width: 2px;
    height: 22.5px;
  }
}
