/* GALLERY STYLES */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 15px;
  padding: 20px 0;
}

.gallery-img {
  width: 100%;
  height: auto;
  cursor: pointer;
  transition: transform 0.3s, opacity 0.3s;
  border-radius: 3px;
}

.gallery-img:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

/* MODAL STYLES */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  animation: fadeIn 0.3s;
}

.modal-content {
  display: block;
  max-width: 90%;
  max-height: 80vh;
  margin: 5% auto;
  animation: zoomIn 0.3s;
}

#caption {
  margin: 15px auto;
  display: block;
  width: 80%;
  text-align: center;
  color: #ccc;
  font-size: 1.1em;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.close:hover {
  color: #bbb;
}

@keyframes zoomIn {
  from {transform: scale(0.8); opacity: 0}
  to {transform: scale(1); opacity: 1}
}

@keyframes fadeIn {
  from {opacity: 0}
  to {opacity: 1}
}

/* Add this to your gallery.css */
.gallery-grid .gallery-img {
  width: 100%;
  height: auto;
  cursor: pointer;
  transition: transform 0.3s, opacity 0.3s;
  border-radius: 3px;
}

/* Make sure these only apply to gallery grid images */
.gallery-grid .gallery-img:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

/* Special case for band member photos */
.band-member .member-photo.gallery-img {
  /* Reset all gallery styles that affect layout */
  width: 196px !important;
  max-width: 196px !important;
  margin: 0 !important;
  padding-right: 20px !important;
  float: left !important;
  display: inline !important;
  transition: none !important;
}

.band-member .member-content {
  display: flex !important; /* Maintain flex layout */
}

.band-member .member-info {
  flex: 1 !important;
}