img.pv-hit,
.gallery-grid a,
.thumb img,
figure img,
.kf-card-thumb img,
.kf-extra-photo img {
  cursor: zoom-in;
}

body.pv-open {
  overflow: hidden;
}

.pv {
  --pv-top: 5.4rem;
  position: fixed;
  top: var(--pv-top);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  overflow: hidden;
  background: #000;
}

.pv[hidden] {
  display: none !important;
}

.pv-stage {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem 0.35rem;
  overflow: hidden;
  background: #000;
}

.pv-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  background: #000;
}

.pv-bar {
  flex: 0 0 4.25rem;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: min(20rem, calc(100% - 2rem));
  margin: 0 auto 1rem;
  background: #000;
}

.pv-cap {
  margin: 0;
  color: #9a9aa2;
  font-size: 0.85rem;
  text-align: center;
}

.pv-close,
.pv-prev,
.pv-next {
  appearance: none;
  border: 1px solid #2a2a2e;
  background: #1a1a1a;
  color: #f2f2f4;
  cursor: pointer;
}

.pv-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 1;
  min-height: 44px;
  padding: 0 0.9rem;
  border-radius: 12px;
  font: inherit;
}

.pv-prev,
.pv-next {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 1.6rem;
  line-height: 1;
}

.pv-close:hover,
.pv-prev:hover,
.pv-next:hover {
  border-color: #fdca31;
  color: #fdca31;
}
