.popup {
  display: none;
  position: fixed;
  width: 100vw;
  height: 100vh;
  z-index: 997;
  left: 0;
  top: 0;
}

.popup__link-container {
  position: absolute;
  z-index: 999;
  width: 500px;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  right: 0;
  margin: 0 auto;
}

.popup__link a:hover {
  opacity: 1;
}

.popup__btn {
  position: absolute;
  top: -21px;
  right: -21px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.popup__btn::before, .popup__btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 23px;
  background: #000;
}

.popup__btn::before {
  transform: translate(-50%,-50%) rotate(45deg);
}

.popup__btn::after {
  transform: translate(-50%,-50%) rotate(-45deg);
}

.popup__bg {
  position: absolute;
  z-index: 998;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  cursor: pointer;
}

@media screen and (max-width: 560px) {
  .popup__link-container {
    width: 72%;
  }
  
  .popup__btn {
    position: absolute;
    top: max(calc(-28 / 560 * 100vw), -28px);
    right: max(calc(-28 / 560 * 100vw), -28px);
    width: min(calc(56 / 560 * 100vw), 56px);
    height: min(calc(56 / 560 * 100vw), 56px);
  }
  
  .popup__btn::before, .popup__btn::after {
    width: min(calc(3 / 560 * 100vw), 3px);
    height: min(calc(32 / 560 * 100vw), 32px);
  }
}