/* Image Modal/Popup Styles */
.clickable-image {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.clickable-image:hover {
  transform: scale(1.02);
}

.image-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.85);
  transition: opacity 0.3s ease;
  opacity: 0;
}

.image-modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  margin: auto;
  display: block;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  border-radius: 4px;
  animation: zoom 0.3s;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  transition: color 0.2s;
}

.close-modal:hover {
  color: #bbb;
}

@keyframes zoom {
  from {transform: scale(0.9); opacity: 0;}
  to {transform: scale(1); opacity: 1;}
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
  .image-modal {
    background-color: rgba(10, 10, 10, 0.9);
  }
  
  .close-modal {
    color: #e1e1e1;
  }
  
  .close-modal:hover {
    color: #ffffff;
  }
}
