/* Fixed square box */
.gallery-img {
  position: relative;
  width: 350px;
  height: 300px;
  overflow: hidden;
  border-radius: 12px;
}

.gallery-img::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s ease;
  z-index: 1;
}

.gallery-img:hover::before {
  opacity: 0;
}

/* Image */
.gallery-img img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Add white space if the image doesn't fully cover the square */
  background-color: white; /* Fill excess space with white */
  transition: transform 0.5s ease;
  position: relative;
  z-index: 0;
}

/* Overlay with title and date at bottom left */
.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  background: none;
  padding: 10px;
  text-align: left;
  z-index: 2;
  color: white;
}

.gallery-overlay h5 {
  margin: 0 0 5px 0;
  font-size: 20px;
  color: white;
}

.gallery-overlay .date {
  margin: 0;
  font-size: 14px;
  color: white;
}

/* Card lift effect */
.gallery-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Add hover effect to hide title and date */
.gallery-card:hover .gallery-overlay h5,
.gallery-card:hover .gallery-overlay .date {
  opacity: 0;
  transition: opacity 0.3s ease;
}


/* Gallery Header */
.gallery-header {
    background: #141414;
   padding-top: 0;
   padding-bottom: 30px;
  
    margin: 0;
    margin-bottom: 30px;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.container.mb-5 {
    padding-top: 0px;

}
.gallery-header h1 {
    letter-spacing: 1px;
    padding-top: 31px;
}

.gallery-header p {
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}
