/* css/imgpopup.css */

.thumbnail {
  border: 1px solid #ccc;
  cursor: pointer;
  max-width: 100%;
  height: auto;
}

/* Renamed to ai-modal to avoid Bootstrap conflict */
.ai-modal {
  display: none; 
  position: fixed; 
  z-index: 9999; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; /* Allows scrolling if the image is tall */
  background-color: rgba(0,0,0,0.85); /* Dark background */
}

/* Renamed to ai-modal-content */
.ai-modal-content {
  background-color: #fefefe;
  margin: 3% auto; /* Just 3% from the top */
  padding: 10px;
  border: 1px solid #888;
  
  /* FORCE HUGE SIZE */
  width: 90%;       /* Occupy 90% of the screen width */
  max-width: none;  /* Remove any limits */
  height: auto;     /* Allow it to grow as tall as needed */
}

.ai-modal-content img {
  width: 100%;   /* Image fills the 90% container */
  height: auto;  
  display: block; 
}

/* Renamed close button to avoid Bootstrap styling */
.ai-close {
  color: #aaa;
  float: right;
  font-size: 35px;
  font-weight: bold;
  line-height: 20px;
}

.ai-close:hover,
.ai-close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}