/* project_photo_grid.css */

.cover-image {
  max-width: 50%;
}

/* Code for basic photo masonry */
.photo-masonry-grid {
  column-count: 3;
  column-gap: 1rem;
  padding: 1rem;
}

.photo-masonry-grid img {
  width: 100%;
  display: block;
  margin-bottom: 1rem;
  break-inside: avoid;
  border-radius: 8px;
  cursor: pointer; /* show pointer on hover to indicate clickability */
}

/* Overlay styles */
.image-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1rem;
  box-sizing: border-box;

  /* Smooth fade in/out */
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.image-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}



.image-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.7);
}

/* Close button */
#overlay-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
}
