.category-list {
    display: flex;
    justify-content: center;
}
.category-list li {
    display: flex;
    margin: 1rem;
}
.category-button {
    cursor: pointer;
}
.image-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    overflow: hidden;
}
.image-item {
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1; 
    transition: 0.25s;
}

.image-item img {
  width: 95%;
  transition: all 0.5s;
  transform: scale(1);
  max-width: 100%;
  height: auto;
}

.caption {
  position: absolute;
  top: 0;
  left: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: white;
  width: 100%;
  height: 100%;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  background-color: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: all 0.5s;
  z-index: 2;
}
.caption p {
  font-size: 1.2rem;
}
.caption p a {
  color: white;
  text-decoration: none;
  font-size:  .8rem;
}
.image-item:hover .caption {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  width: 100%;
}
.image-item:hover img {
  transform: scale(1.1);
  transform-origin: center;
  z-index: 1; 
}


/**** Isotope Filtering ****/
.category-list {
    position: relative;
    width: 100%;
    text-align: center;
    margin-bottom: 30px;
    padding-left: 0;
  }
.category-list:after {
  content: "";
  display: block;
  clear: both;
}
.category-list li {
  display: inline-block;
  text-align: center;
  margin-left: 20px;
  margin-right: 20px;
  margin-bottom: 5px;
}

.category-list li:last-child {
  margin-right: 0;
}
.category-list li:first-child {
  margin-left: 0;
}
.category-list li a {
  position: relative;
  display: inline-block;
  letter-spacing: 1px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  outline: none;
  color: #1b1d21;
  padding-bottom: 10px;
  transition: all 0.3s linear;
  -webkit-transition: all 0.3s linear;
  -moz-transition: all 0.3s linear;
  -o-transition: all 0.3s linear;
  -ms-transition: all 0.3s linear;
}
.category-list li a:after {
  position: absolute;
  height: 3px;
  width: 0%;
  right: 0px;
  bottom: 0px;
  background-color: #1fa6d3;
  content: "";
  display: block;
  border-radius: 1.5px;
  -webkit-border-radius: 1.5px;
  transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
}
.category-list li a.category-button:hover {
  color: #1fa6d3;
  border-bottom: 3px solid #1fa6d3; /* Add an underline on hover */
  transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
}

/* Styles for the selected button */
.category-list li a.category-button.selected {
  color: #1fa6d3;
  border-bottom: 3px solid #1fa6d3;
}
 




/* Fade-in animation */
.fade-in {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    .image-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .image-gallery {
        grid-template-columns: 1fr;
    }
}




