*{
  margin: 0; padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
  text-transform: capitalize;
  transition:all .2s cubic-bezier(.34,1.12,.68,1.31);
  
}
.gallery-hed {
  font-size: 3rem; /* Adjust size as needed */
  color: #ffffff; /* Text color */
  text-align: center;
  background: linear-gradient(45deg, #ff6ec4, #7873f5);
  padding: 20px;
  margin: 20px auto;
  display: inline-block;
  position: relative;
  font-family: 'Arial', sans-serif;
  text-transform: uppercase;
  font-weight: 600;
  left: 38%;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

/* Adding the hanging line effect */
.gallery-hed::before {
  content: '';
  position: absolute;
  top: -20px; 
  left: 50%;
  transform: translateX(-50%);
  width: 2px; 
  height: 20px; 
  background-color: #7873f5; 
} 
.gallery{
  min-height: 100vh;
  background:#eee;
  padding-bottom: 100px;
}

.gallery .controls{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding:20px 0;
  list-style: none;
}

.gallery .controls .buttons{
  height:40px;
  width: 140px;
  background:#fff;
  color:#666;
  font-size: 20px;
  line-height: 40px;
  cursor: pointer;
  margin:20px;
  box-shadow: 0 3px 5px rgba(0,0,0,.3);
  text-align: center;
}

.gallery .controls .buttons.active{
  background:coral;
  color:#fff;
}

.gallery .image-container{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.gallery .image-container .image{
  height:250px;
  width: 350px;
  overflow: hidden;
  border:15px solid #fff;
  box-shadow: 0 3px 5px rgba(0,0,0,.3);
  margin: 20px;
}

.gallery .image-container .image img{
  height: 100%;
  width:100%;
  object-fit: cover;
}

.gallery .image-container .image:hover img{
  transform: scale(1.4);
}


/* Responsive Design */
@media (max-width: 1200px) {
  .gallery-hed {
    font-size: 2.5rem;
    left: 25%;
  }

  .gallery .image-container .image {
    height: 200px;
    width: 300px;
    margin: 15px;
  }

  .gallery .controls .buttons {
    height: 35px;
    width: 120px;
    font-size: 18px;
    margin: 15px;
  }
}

@media (max-width: 768px) {
  .gallery-hed {
    font-size: 2rem;
    left: 15%;
  }

  .gallery .image-container {
    flex-direction: column;
    align-items: center;
  }

  .gallery .image-container .image {
    height: 180px;
    width: 250px;
    margin: 10px;
  }

  .gallery .controls .buttons {
    width: 100px;
    font-size: 16px;
    margin: 10px;
  }
}

@media (max-width: 480px) {
  .gallery-hed {
    font-size: 1.5rem;
    left: 5%;
    padding: 10px;
  }

  .gallery .image-container .image {
    height: 150px;
    width: 200px;
    margin: 5px;
  }

  .gallery .controls {
    flex-direction: column;
  }

  .gallery .controls .buttons {
    width: 80px;
    font-size: 14px;
    margin: 5px;
  }
}
