/* Simple Popup for Image */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.popup-overlay.active .popup-content {
  transform: scale(1);
}

.popup-image {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: block;
}

.popup-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #333;
  transition: all 0.3s ease;
  font-weight: bold;
  line-height: 1;
}

.popup-close:hover {
  background-color: #fff;
  transform: rotate(90deg);
}

@media (max-width: 768px) {
  .popup-content {
    max-width: 95%;
  }
  
  .popup-close {
    top: -35px;
    width: 30px;
    height: 30px;
    font-size: 24px;
  }
}
