.homeGallery-bg {
  background-image: linear-gradient(rgb(230, 230, 250), rgb(230, 230, 250, 0.3)), url('../images/la.jpg');
  background-size: cover; /* Scales image to cover the container */
  background-position: center; /* Centers the image */
  background-repeat: no-repeat; /* Prevents tiling */
  /* opacity: 0.1; */
  position: absolute;
  width: 100%;
  height: 100%;
  color: rgb(230, 230, 250);
  z-index: -2;
}

.home-gallery-section {
  width: 100%;
  /* padding: 50px 0; */
  font-family: 'Gotu', sans-serif;
  height: 100%;
}

.home-gallery-container {
  width: 100%;
  padding-bottom: 2rem;
}

.home-gallery-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
}

.home-gallery-card {
  overflow: hidden;
  min-width: 420px;
  height: 35rem;
  flex: 0 0 auto;

  color: #fff;

  padding: 30px;
  border-radius: 2rem;

  text-align: center;
  place-content: center;

  position: relative;
  transition: transform 0.5s ease;
  cursor: pointer;
  user-select: none;
  box-shadow: 4px 12px 20px rgba(0, 0, 0, 0.3);
}

.home-gallery-card img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  inset: 0;
  z-index: 0;
  transition: transform 0.2s ease-in-out;
}
.home-gallery-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5));
  border-radius: inherit; /* Matches parent radius automatically */
  z-index: 1;
  opacity: 0; /* Hidden by default */
  transition: opacity 0.6s ease; /* Smooth fade effect */
  pointer-events: none; /* Allows clicks to pass through if needed */
}

/* 3. Correct hover syntax: Trigger on parent, change pseudo-element */
.home-gallery-card:hover::after {
  opacity: 1;
  cursor: pointer;
}

.home-gallery-card .text {
  font-family: 'Gotu', sans-serif;
  position: relative;
  font-size: 2rem;
  font-size: 600;
  color: #fff;
  z-index: 2;

  opacity: 0; /* Hidden by default */
  transition: opacity 0.3s ease; /* Smooth fade effect */
}

.home-gallery-card:hover > .text {
  opacity: 1;
}

@media (max-width: 1024px) {
  .home-gallery-card {
    min-width: 320px;
  }
}

@media (max-width: 768px) {
  .homeGallery-bg {
    background-image: linear-gradient(rgb(230, 230, 250), rgb(230, 230, 250, 0.3));
  }
  .home-gallery-flex {
    flex-direction: column;
  }
  .home-gallery-card {
    min-width: 440px;
    height: 26rem;
  }
}

@media (max-width: 580px) {
  .home-gallery-card {
    min-width: 300px;
  }
}
