
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  overflow: auto;
}

.modal-content {
  position: relative;
  margin: auto;
  display: block;
  max-width: 95%;
  max-height: 95vh;
  padding: 10px;
}

.modal-content img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 95vh;
  display: block;
  margin: 0 auto;
  border: 2px solid #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.85);
}

.close {
  position: absolute;
  top: 15px;
  right: 25px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}

.close:hover {
  color: #ddd;
}

/* Optional: nicer cursor on thumbnails */
img.zoomable {
  cursor: zoom-in;
  transition: all 0.2s ease; /* Smooth animation */
}

img.zoomable:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.9);
  z-index: 10;               /* Helps the shadow stand out */
}
