.gallery-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
  }
  
  .gallery-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }
  
  .gallery-card h3 {
    margin-top: 10px;
    font-size: 18px;
    font-weight: 600;
  }
  
  .gallery-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }

  /* Styling for the back button */
.back-btn {
    display: inline-flex;
    align-items: center;
    font-size: 18px;
    padding: 8px 16px;
    border-radius: 4px;
    background-color: #007bff;
    color: white;
    margin-top: 2px;
    margin-left: 2px;
    text-decoration: none;
    transition: background-color 0.3s ease;
  }
  
  .back-btn:hover {
    background-color: #9bbfee;
  }
  
  .back-btn i {
    margin-right: 8px;
  }
  
  .gallery-img-wrapper {
    position: relative;
    width: 100%;
    height: 300px; /* Uniform height */
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease-in-out;
  }
  
  .gallery-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Keeps aspect ratio while filling container */
    transition: transform 0.3s ease-in-out;
  }
  
  .gallery-img-wrapper:hover img {
    transform: scale(1.05);
  }
  