.post-photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 13200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  touch-action: none;
}
.post-photo-lightbox.is-open {
  display: flex;
}
.post-photo-lightbox__close {
  position: absolute;
  top: max(10px, env(safe-area-inset-top, 0px));
  right: max(10px, env(safe-area-inset-right, 0px));
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.post-photo-lightbox__more-wrap {
  position: absolute;
  top: max(10px, env(safe-area-inset-top, 0px));
  left: max(10px, env(safe-area-inset-left, 0px));
  z-index: 4;
}
.post-photo-lightbox__more-wrap[hidden] {
  display: none !important;
}
.post-photo-lightbox__more {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  letter-spacing: 1px;
}
.post-photo-lightbox__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 180px;
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.post-photo-lightbox__menu[hidden] {
  display: none !important;
}
.post-photo-lightbox__menu button {
  display: block;
  width: 100%;
  border: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  background: transparent;
  color: #fff;
  text-align: left;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.post-photo-lightbox__menu button:first-child {
  border-top: 0;
}
.post-photo-lightbox__menu button:hover {
  background: rgba(148, 163, 184, 0.18);
}
.post-photo-lightbox__forward {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(280px, calc(100vw - 24px));
  max-height: min(360px, 55vh);
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.post-photo-lightbox__forward[hidden] {
  display: none !important;
}
.post-photo-lightbox__forward-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}
.post-photo-lightbox__forward-title {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.post-photo-lightbox__forward-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  color: #fff;
  cursor: pointer;
}
.post-photo-lightbox__forward-list {
  overflow: auto;
  max-height: min(300px, 48vh);
}
.post-photo-lightbox__forward-item {
  display: block;
  width: 100%;
  border: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: transparent;
  color: #fff;
  text-align: left;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}
.post-photo-lightbox__forward-item:first-child {
  border-top: 0;
}
.post-photo-lightbox__forward-item:hover {
  background: rgba(148, 163, 184, 0.18);
}
.post-photo-lightbox__forward-empty {
  color: rgba(226, 232, 240, 0.85);
  font-size: 13px;
  padding: 14px;
}
.post-photo-lightbox__counter {
  position: absolute;
  top: max(14px, env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 800;
  pointer-events: none;
}
.post-photo-lightbox__stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 52px;
  box-sizing: border-box;
}
.post-photo-lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.post-photo-lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 36px;
  height: 28px;
  border: 0;
  border-radius: 0;
  background: url("../akvarel/elementy/arrow3.png") center / 28px auto no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 1;
  cursor: pointer;
}
.post-photo-lightbox__arrow--prev {
  left: max(8px, env(safe-area-inset-left, 0px));
  transform: translateY(-50%) scaleX(-1);
}
.post-photo-lightbox__arrow--next {
  right: max(8px, env(safe-area-inset-right, 0px));
}
.post-photo-lightbox__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}
.post-rich-content img.post-inline-photo-zoomable,
.home-news-gallery-img.post-inline-photo-zoomable,
img.chat-photo-zoomable,
.thread-chat-item-media img {
  cursor: zoom-in;
}
