/* Image Modal Styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 10000;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.modal-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: fixed;
  top: 20px;
  right: 30px;
  font-size: 40px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  z-index: 10001;
  transition: color 0.2s ease;
  line-height: 1;
}

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

/* Make image links have pointer cursor */
a[data-modal-image] {
  cursor: pointer;
}

a[data-modal-image] img {
  transition: opacity 0.2s ease;
}

a[data-modal-image]:hover img {
  opacity: 0.85;
}
