/* Gallery styles moved from inline attributes to this file to satisfy CSP */
.gallery-thumb, .gallery-image {
  width: 220px;
  height: 160px;
  object-fit: cover;
  object-position: center;
  border-radius: 0.75rem;
  margin-bottom: 0.25rem;
  cursor: pointer;
  transition: transform 0.2s;
  display: block;
}
#gallery-modal {
  /* Tailwind classes handle layout/visibility (we must NOT set display here or it will override .hidden) */
  position: fixed;
  inset: 0;
  align-items: center;
  justify-content: center;
}
#gallery-modal img {
  max-height: 80vh;
  max-width: 90vw;
  border-radius: 0.375rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}
#gallery-prev, #gallery-next, #gallery-close {
  background: transparent;
  border: none;
}
/* Make visibility controlled by the `hidden` class explicitly so CSP or missing Tailwind won't show modal */
#gallery-modal.hidden { display: none !important; }
#gallery-modal:not(.hidden) { display: flex !important; }

