
.black-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.39);
  transition: opacity 0.3s ease;
  z-index: 1;
  /* border-radius: 12px; */
}

.card:hover .black-overlay {
  opacity: 0;
}

.z-index-btn {
  z-index: 2;
}


.gallery-img {
  width: 100%;
  height: 27.6rem;   /* Fixed height for all images */
  object-fit: cover; /* Ensures the image is cropped properly without stretching */
  transition: transform 0.4s ease;
  border-radius: 12px;
}

.card-hover:hover .gallery-img {
  transform: scale(1.07);
}

.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
/*.PhotosectionButton {
    transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
    border-radius: 25px;
    box-shadow: 0 0 8px #ffcc00;
}

    .PhotosectionButton:hover {
        transform: scale(1.1);
        box-shadow: 0 0 15px #ffc107;
        color: #0d6efd !important;
    }
*/

.PhotosectionButton {
    transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
    border-radius: 25px;
    box-shadow: 0 0 8px #ffcc00;
}

    .PhotosectionButton:hover,
    .PhotosectionButton:focus {
        transform: scale(1.1);
        box-shadow: 0 0 15px #ffc107;
        color: blue !important; /* hover text color */
    }


@media (max-width: 576px) {
  .gallery-img {
    width: 100% !important;     
    height: 12.5rem !important;   
  }
  .PhotosectionButton{
    font-size: 0.5rem !important;
  }
}