.hugo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  align-items: start;
}

.hugo-gallery .gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  object-fit: cover;
}

/* optional: style for empty message */
.gallery-empty {
  color: #666;
  font-style: italic;
}

/* Lightbox modal styles (used by gallery.js) */
#gallery-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.8);
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: opacity .2s ease-in-out;
  cursor: zoom-out;
}

#gallery-modal.visible {
  visibility: visible;
  opacity: 1;
}

#gallery-modal img {
  max-width: 95%;
  max-height: 95%;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
