.c-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 11111;
  background-color: hsla(0, 0%, 0%, .5);
  display: none !important;
}

.c-popup.active {
  display: block !important;
}

.c-popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  width: 35rem;
  max-width: calc(100% - 2rem);
  max-height: calc(100% - 4rem);
  overflow-x: hidden;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  background-color: hsl(0, 0%, 100%);
}

@media screen and (min-width: 32em) {
  .c-popup-content {
    max-width: calc(100% - 3rem);
    max-height: calc(100% - 5rem);
  }
}

.c-popup-close {
  position: absolute;
  top: 0;
  right: 0;
  padding: .5rem 1rem;
  background-color: hsla(0, 0%, 100%, .75);
  color: hsl(0, 0%, 20%);
}

.c-popup-close::before {
  content: "\0000D7";
  font-size: 2rem;
  line-height: 1;
  display: inline-block;
}

.c-popup-close:hover,
.c-popup-close:focus {
  background-color: hsl(0, 0%, 100%);
}

.c-popup-link img {
  cursor: pointer;
}
