.kcat-main-img {
  cursor: zoom-in;
}
#lightboxImage {
  touch-action: none;
}
.kcat-main-img:focus-visible {
  outline: 2px solid #9a43aa;
  outline-offset: 3px;
}
.kcat-lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}
.kcat-lightbox::backdrop {
  background: rgba(12, 10, 14, 0.92);
  backdrop-filter: blur(6px) saturate(94%);
  -webkit-backdrop-filter: blur(6px) saturate(94%);
}
.kcat-lightbox-in {
  position: relative;
  width: 100%;
  height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px 76px 56px;
}
.kcat-lightbox img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: calc(100dvh - 80px);
  object-fit: contain;
  border-radius: 10px;
  cursor: default;
}
.kcat-lightbox-close,
.kcat-lightbox-nav {
  position: fixed;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(26, 20, 29, 0.18);
  color: #fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    transform 0.16s ease;
}
.kcat-lightbox-close:hover,
.kcat-lightbox-nav:hover {
  background: rgba(26, 20, 29, 0.4);
  border-color: rgba(255, 255, 255, 0.62);
}
.kcat-lightbox-close {
  top: 18px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 25px;
  font-weight: 300;
  line-height: 1;
}
.kcat-lightbox-nav {
  top: 50%;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  border-radius: 50%;
  font-size: 34px;
  font-weight: 200;
  line-height: 1;
}
.kcat-lightbox-prev {
  left: 18px;
}
.kcat-lightbox-next {
  right: 18px;
}
.kcat-lightbox-nav[hidden] {
  display: none;
}
.kcat-lightbox button svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.kcat-lightbox button:focus-visible {
  outline: 2px solid white;
  outline-offset: 4px;
}
.kcat-lightbox-count {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  min-width: 54px;
  text-align: center;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(26, 20, 29, 0.16);
  color: rgba(255, 255, 255, 0.92);
  font:
    500 11px Inter,
    Arial,
    sans-serif;
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
}
.kcat-lightbox-count:empty {
  display: none;
}
.kcat-lightbox-title {
  position: absolute;
  top: 18px;
  left: 24px;
  right: 84px;
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  text-shadow: 0 1px 8px #000;
}
@media (max-width: 760px) {
  .kcat-lightbox-in {
    padding: 64px 8px 72px;
  }
  .kcat-lightbox img {
    max-width: 100%;
    height: calc(100dvh - 136px);
    border-radius: 8px;
  }
  .kcat-lightbox-close {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    font-size: 23px;
  }
  .kcat-lightbox-nav {
    top: auto;
    bottom: 16px;
    width: 44px;
    height: 44px;
    margin: 0;
    border-radius: 50%;
    font-size: 30px;
  }
  .kcat-lightbox-prev {
    left: 14px;
  }
  .kcat-lightbox-next {
    right: 14px;
  }
  .kcat-lightbox-count {
    bottom: 19px;
  }
}
