/* Container divs for the thumbnails */
.thmb {
  display: inline-block;
  border: 1px solid #333333;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin: 5px;
  padding: 10px;
  cursor: pointer;
  font-size: 60%;
}
.thmb:hover {
  padding: 9px;
  border: 2px solid #333333;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

/* Style the modal */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal content (image) */
.modal-content {
  display: block;
  margin: auto;
  max-width: 95%; /* Adjust as needed */
  max-height: 95%; /* Adjust as needed */
  padding: 10px;
}

/* Add animation (zoom in the modal) */
.modal-content, .caption {
  animation-name: zoom;
  animation-duration: 0.6s;
}

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

/* Close button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #ffffff;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  text-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.7), /* Slight shadow for dark bgs */
    0 2px 4px rgba(0, 0, 0, 0.5), /* More pronounced shadow */
    0 4px 8px rgba(0, 0, 0, 0.3); /* Additional shadow for lighter bgs */
}

.close:hover,
.close:focus {
  color: #bbbbbb;
  text-decoration: none;
  cursor: pointer;
}
