/* Image Zoom Modal Styles */
.image-zoom-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Close button */
.image-zoom-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 10000;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
}

.image-zoom-close:hover,
.image-zoom-close:focus,
.image-zoom-close:focus-visible {
  color: #bbb;
  outline: 2px solid #fff;
  outline-offset: 4px;
}

/* Zoomed image */
.image-zoom-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: zoom 0.3s;
}

@keyframes zoom {
  from { transform: translate(-50%, -50%) scale(0.8); }
  to { transform: translate(-50%, -50%) scale(1); }
}

/* Responsive adjustments */
@media only screen and (max-width: 700px) {
  .image-zoom-content {
    max-width: 95%;
    max-height: 95%;
  }
  
  .image-zoom-close {
    top: 10px;
    right: 20px;
    font-size: 30px;
  }
}

/* Add hover effect to clickable images */
.image-grid img:hover,
.image-grid2 img:hover {
  opacity: 0.9;
  transition: opacity 0.3s;
}

/* Add focus indicator for keyboard navigation */
.image-grid img:focus,
.image-grid2 img:focus,
.image-grid img:focus-visible,
.image-grid2 img:focus-visible {
  outline: 3px solid #4a90e2;
  outline-offset: 2px;
}

/* Dark mode focus indicators */
.dark .image-grid img:focus,
.dark .image-grid2 img:focus,
.dark .image-grid img:focus-visible,
.dark .image-grid2 img:focus-visible {
  outline-color: #66b3ff;
}
