/* Mark Popup Styles */

.mark-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.mark-popup-overlay.show {
  opacity: 1;
}

.mark-popup-container {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  animation: fadeInScale 0.4s ease-out;
}

.mark-popup-content {
  position: relative;
}

.mark-popup-content a {
  display: block;
  cursor: pointer;
}

.mark-popup-content img {
  max-width: 100%;
  max-height: 90vh;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.mark-popup-content img:hover {
  transform: scale(1.02);
}

.mark-popup-close {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 40px;
  height: 40px;
  background-color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #333;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.mark-popup-close:hover {
  background-color: #f0f0f0;
  transform: scale(1.1);
}

.mark-popup-close:active {
  transform: scale(0.95);
}

/* Fade in and scale animation */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .mark-popup-container {
    max-width: 95%;
  }

  .mark-popup-close {
    width: 35px;
    height: 35px;
    font-size: 24px;
    top: -10px;
    right: -10px;
  }
}
