/* Modal Gallery Popup - Fullscreen Image Viewer */
.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.95);
  animation: fadeIn 0.3s;
}

.image-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 95%;
  max-height: 95%;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 50px rgba(255,255,255,0.3);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.image-modal-content:hover {
  transform: translate(-50%, -50%) scale(1.02);
}

.image-modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  line-height: 1;
  text-shadow: 0 0 10px rgba(0,0,0,0.8);
}

.image-modal-close:hover {
  color: #fff;
  transform: scale(1.1);
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

@media (max-width: 767px) {
  .image-modal-content {
    max-width: 98%;
    max-height: 90%;
    border-radius: 4px;
  }
  
  .image-modal-close {
    top: 10px;
    right: 15px;
    font-size: 32px;
  }
}

/* Clickable image overlay */
.item.features-image {
  cursor: pointer;
}

