.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  overflow-y: auto;
}

.popup .close {
  transition: all 0.2s;
  position: absolute;
  top: 10px;
  right: 2%;
  width: 100%;
  max-width: 3.5vw;
  cursor: pointer;
}

.popup .close:hover {
  transition: all 0.2s;
  transform: scale(1.02, 1.02);
}

.popup-container {
  position: relative;
  width: 80vw;
  min-height: 50vh;
  /*border-radius: .6rem;*/
  border-width: .1rem;
  background-color: #EDEDED;
  color: #C29432;
  padding: 2%;
  animation: popupShow 0.3s forwards;
  text-align: center;
  border-color: #C29432;
  border-style: solid;
  max-height: 80%;
  overflow-y: scroll;
}

.popup_photos img {
  transition: all .3s ease-in-out;
  width: 10vw;
  margin: 0.2rem;
  cursor: pointer;
}

.popup_photos img:hover {
  transition: all .3s ease-in-out;
  transform: scale(1.05);
}

.popup_photos img:active {
  transition: all .1s ease-in-out;
  transform: scale(.95);
}

.popup-title {
  font-size: 1.3vw;
  text-transform: uppercase;
}

@media screen and (max-width: 1200px) and (pointer: coarse) {
  .popup_photos img {
    width: 22vw;
  }
}

@media screen and (max-width: 1024px) and (orientation: portrait) {
  .popup .close {
    top: 12px;
    right: 4%;
    width: 100%;
    max-width: 5vw;
    cursor: pointer;
  }

  .popup-container {
    width: 88vw;
  }

  .popup-title {
    font-size: 4vw;
  }

  .popup-text {
    font-size: 3.2vw;
  }
}

@media screen and (max-width: 1024px) and (orientation: landscape) {
  .popup .close {
    top: 12px;
    right: 4%;
    width: 100%;
    max-width: 5vw;
    cursor: pointer;
  }

  .popup-container {
    width: 70vw;
  }

  .popup-title {
    font-size: 3vw;
  }

  .popup-text {
    font-size: 2.2vw;
  }
}
