/* Modern Gallery Redesign */
.gallery {
  position: relative;  
  background: linear-gradient(180deg, #000000 0%, #ffffff 100%);
  padding: 60px 5% 40px;
  margin-top: 50px;
  z-index: 1;
}

/* Solid white divider before footer */
.end-sec {
  background-color: #ffffff;
  height: 40px;
}

.gallery::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(0deg, #fff 0%, transparent 100%);
  pointer-events: none;
}


.custom-gallery {
  column-count: 3;
  column-gap: 1.2rem;
}

@media (max-width: 992px) {
  .custom-gallery {
    column-count: 2;
  }
}

@media (max-width: 576px) {
  .custom-gallery {
    column-count: 1;
  }
}

/* Each project */
.img-container {
  position: relative;
  display: inline-block;
  width: 100%;
  margin-bottom: 1.2rem;
  break-inside: avoid;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.35s ease;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.9s ease forwards;
  
}

.img-container:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

/* Image styling */
.img-container img.fully {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.img-container:hover img.fully {
  transform: scale(1.06);
  filter: brightness(0.85);
}

/* Overlay text */
.img-content-hover {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  /* background: rgba(10, 10, 10, 0.45); */
  opacity: 0;
  transition: opacity 0.4s ease;
}

.img-container:hover .img-content-hover {
  opacity: 1;
}

.img-content-hover h2 {
  font-family: "Antic Didone", serif;
  font-size: 2.4rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffffff !important;
  background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 100%);
  padding: 10px 20px;
  border-radius: 4px;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
  backdrop-filter: blur(3px);
  transform: translateY(10px);
  transition: all 0.4s ease;
}

.img-container:hover h2 {
  opacity: 1;
  transform: translateY(0);
}

/* Subtle fade-in on scroll */
.img-container {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
