.kpc-popup {
  position: fixed;
  z-index: 999999;
  inset: 0;
  display: none;
  width: 100vw;
  height: 100vh;
  padding: 24px 90px;
  align-items: center;
  justify-content: center;
  background: #000000b0;
}

.kpc-popup.is-open { display: flex; }

.kpc-dialog {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.kpc-image {
  display: block;
  width: auto;
  height: 80vh;
  max-width: calc(100vw - 180px);
  object-fit: contain;
  opacity: 1;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, .28));
  transition: opacity 180ms ease;
}

.kpc-image.is-changing { opacity: 0; }

.kpc-close,
.kpc-arrow {
  position: absolute;
  z-index: 2;
  display: grid;
  padding: 0;
  color: #fff;
  background: none;
  border: 0;
  outline: none;
  place-items: center;
  cursor: pointer;
  box-shadow: none;
}

.kpc-close {
  top: 0;
  right: 0;
  width: 72px;
  height: 72px;
  padding-bottom: 7px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 120px;
  font-weight: 700;
  line-height: 1;
}

.kpc-arrow {
  top: 50%;
  width: 80px;
  height: auto;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 200px;
  line-height: 1;
  transform: translateY(-50%);
}

.kpc-arrow-prev { left: 0; }
.kpc-arrow-next { right: 0; }

.kpc-close:hover,
.kpc-close:focus,
.kpc-arrow:hover,
.kpc-arrow:focus {
  color: #fff;
  background: none;
  border: 0;
  outline: none;
  box-shadow: none;
}

.kpc-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.kpc-popup-open { overflow: hidden; }

@media (max-width: 767px) {
  .kpc-popup { padding: 68px 5vw 24px; }

  .kpc-image {
    width: 90vw;
    height: auto;
    max-width: 90vw;
    max-height: 78vh;
  }

  .kpc-close {
    top: -54px;
    right: 0;
    width: 56px;
    height: 56px;
    padding-bottom: 6px;
    font-size: 48px;
  }

  .kpc-arrow {
    width: 60px;
    height: 84px;
    color: #fff;
    background: none;
    border: 0;
    font-size: 70px;
  }

  .kpc-arrow-prev { left: 4px; }
  .kpc-arrow-next { right: 4px; }
}
