.popup {
  display: none; /* Nastavení výchozího stavu na "skrytý" */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Styling pro obsah pop-up okna */
.popup-content {
  background-color: #333;
  border: 2px solid #a1a1a1;
  padding: 20px;
  border-radius: 5px;
  position: relative;
  margin: 20px;
  max-width: 1000px;
  max-height: 80%; /* Maximální výška obsahu */
  overflow-y: auto; /* Povolení vertikálního skrolování */

  animation: zoomIn 0.8s ease;
}

.popup-content:active {
  .zoom-in:active {
    transform: scale(2);
  }
}

/* Styling pro křížek v rohu pop-up okna */
.close-popup {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
}

.popup-img-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%; /* Pokud chcete centrovat i vertikálně */
}

.popup-img {
  max-width: 400px;
}

@keyframes zoomIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

@media all and (min-width: 1024px) and (max-width: 1280px) {
}

@media all and (min-width: 768px) and (max-width: 1024px) {
}

@media all and (min-width: 480px) and (max-width: 768px) {
  .popup-img {
    max-width: 300px;
  }
}

/*Phones*/
@media all and (min-width: 380px) and (max-width: 480px) {
  .popup-img {
    max-width: 200px;
  }
}

/*Ultra small phones*/
@media all and (max-width: 380px) {
  .popup-img {
    max-width: 200px;
  }
}
