.popup-wrap.seen {
  opacity: 1;
  visibility: visible
}

.popup-wrap {
  display: block;
  position: fixed;
  height: 100%;
  width: 100%;
  background: rgb(0 0 0 / 84%);
  backdrop-filter: blur(5px);
  top: 0;
  z-index: 20;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s linear
}

.popup img {
  width: auto;
  max-width: 100%;
  display: block;
  height: auto;
  cursor: pointer;
  max-height: 100%
}

.popup-wrap .icon-close {
  right: 10px;
  top: 10px;
  position: absolute;
  cursor: pointer;
  background: var(--c-danger);
  background-color: var(--c-primary);
  color: #fff;
  border: 1px solid var(--c-blue-200);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  font-size: 1.2rem;
  box-shadow: 0 0 13px #00000030;
  z-index: 3;
}

.popup-wrap.down {
  max-width: min(300px, 60vw);
  max-height: 50%;
  bottom: 15px;
  top: auto;
  left: 15px;
  background: transparent;
  width: auto;
  height: auto
}

.popup-wrap.full .icon-close {
  position: static;
  margin-left: auto;
  flex: none;
  transform: translate(-1.5rem, 5.5rem);
  z-index: 3;
}

.popup-wrap.down.right {
  right: 15px
}

.popup-wrap.down.right .icon-close {
  right: 10px;
  left: unset
}

body.top_bar_popup {
  transition: 0.3s
}

body.top_bar_popup #header-mobile,
body.top_bar_popup #header {
  padding-top: var(--popup-h)
}

.popup-wrap.top_bar {
  background: transparent;
  max-height: var(--popup-h);
  top: 0
}

.popup-wrap.top_bar .closer.icon-close {
  z-index: 1;
  top: calc(var(--popup-h) / 2 - 1rem)
}

.popup-wrap.top_bar .popup {
  height: 100%
}

.popup-wrap.top_bar .popup img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  object-fit: cover;
  position: relative;
  background: #000
}

.popup-wrap.down .popup {
  height: 100%
}

.popup-wrap.down .icon-close {
  left: 10px;
  right: unset
}

.popup-wrap.down .popup img {
  max-width: 100%;
  position: static;
  max-height: 100%;
  margin-left: initial;
  filter: drop-shadow(2px 4px 18px #00000069);
}

.popup-wrap.full .popup {
  height: 100%
}

.popup-inner,
.popup-wrapper {
  height: 100%
}

.popup-wrap.full .popup-wrapper {
  display: flex;
  align-items: center;
  justify-content: center
}

.popup-wrap.full .popup-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  max-width: 90%;
  max-height: 90%
}

@media(max-width: 576px) {
  .popup-wrap.down {
    bottom: 14rem
  }
}