body.popup-opened {
  overflow: hidden;
}

.popup {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  width: 100vw;
  height: 100vh;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.5s ease-in-out;
}
.popup.popup-visible {
  opacity: 1;
  pointer-events: auto;
  z-index: 999;
}
.popup.popup-visible .popup-container {
  opacity: 1;
}
.popup.v-pos-top {
  align-items: flex-start;
}
.popup.v-pos-top .popup-container {
  margin-top: 0.5rem;
}
.popup.v-pos-center {
  align-items: center;
}
.popup.v-pos-bottom {
  align-items: flex-end;
}
.popup.v-pos-bottom .popup-container {
  margin-bottom: 0.5rem;
}
.popup.h-pos-left {
  justify-content: flex-start;
}
.popup.h-pos-left .popup-container {
  margin-left: 0.5rem;
}
.popup.h-pos-center {
  justify-content: center;
}
.popup.h-pos-right {
  justify-content: flex-end;
}
.popup.h-pos-right .popup-container {
  margin-right: 0.5rem;
}
.popup .popup-container {
  position: relative;
  display: block;
  max-width: 1140px;
  max-height: 90%;
  background-color: white;
  border-radius: 6px;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.5s ease-in-out 0.2s;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
.popup .popup-container.is-link {
  text-decoration: none;
  cursor: pointer;
}
@media screen and (max-width: 1200px) {
  .popup .popup-container {
    max-width: 960px;
  }
}
@media screen and (max-width: 768px) {
  .popup .popup-container {
    width: 100%;
    max-width: unset;
    margin: 0 1rem;
  }
}
.popup .popup-container h2 {
  width: 100%;
  margin: 0;
  padding: 0.8rem 1.2rem;
  font-size: 2rem;
}
@media screen and (max-width: 576px) {
  .popup .popup-container h2 {
    margin-top: 2rem;
  }
}
.popup .popup-container h2.pos-center {
  text-align: center;
}
.popup .popup-container h2.pos-right {
  text-align: right;
}
.popup .popup-container .popup-content {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 1rem;
}
.popup .popup-container .popup-content picture {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(50% - 1rem);
}
.popup .popup-container .popup-content picture img {
  max-width: 100%;
}
.popup .popup-container .popup-content .popup-description {
  width: calc(50% - 1rem);
}
.popup .popup-container .popup-content.img-top {
  flex-direction: column;
}
.popup .popup-container .popup-content.img-top picture, .popup .popup-container .popup-content.img-top .popup-description {
  width: 100%;
}
.popup .popup-container .popup-content.img-top picture {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
}
.popup .popup-container .popup-content.img-top picture img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.popup .popup-container .popup-content.img-right picture {
  order: 2;
}
.popup .popup-container .popup-content.img-right .popup-description {
  order: 1;
}
.popup.no-image .popup-container .popup-description {
  width: 100%;
}
.popup.no-text .popup-container .popup-content picture {
  width: 100%;
  height: 100%;
}
.popup.no-text .popup-container .popup-content picture img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}
.popup.no-text .close-btn {
  top: 0.5rem;
  right: 0.5rem;
  max-width: 30px;
  max-height: 30px;
  padding: 0.3rem;
  background-color: white;
  border-radius: 50%;
}
.popup .close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  max-width: 20px;
  max-height: 20px;
  cursor: pointer;
}
.popup .overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  background-color: black;
  opacity: 0.8;
  cursor: pointer;
  z-index: -1;
}
