.gallery-grid-section {
  padding: 50px 0;
}

/* gallery 2*/
.gallery-page-category {
  padding: 0 0 30px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
}

.gallery-page-category .gallery-item {
  background: #f5f5f5;
  border-radius: 5px;
  color: #000;
  font-weight: 600;
  text-decoration: none;
  transition: all .3s ease-in-out;
  width: 250px;
  height: 120px;
  border-radius: 7px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-page-category .gallery-item:hover {
  background: #007bff;
  color: #fff;
  box-shadow: -3px 3px 10px 0px #00000080
}

.gallery-page-category .gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
  border-radius: 7px;
}

.gallery-page-category .gallery-item-caption {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 14px;
    color: #F48817;
    z-index: 2;
    transition: font-size 0.3s ease, transform 0.3s ease;
    text-shadow: 
        -1px -1px 0 #000,  
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000; /* black outline effect */
}


/* Overlay effect */
.gallery-page-category .gallery-item::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  /* hidden initially */
  background: rgba(0, 0, 0, 0.6);
  transition: height 0.4s ease;
  z-index: 1;
}

/* Hover effects */
.gallery-page-category .gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-page-category .gallery-item:hover::before {
  height: 100%;
  /* overlay expands from bottom */
}

.gallery-page-category .gallery-item:hover .gallery-item-caption {
  font-size: 11px;
  /* text grows */
  transform: translateY(-10px);
  /* moves slightly up */
}

.uk-grid.lightbox-container {
  padding: 20px 0;
}

@media only screen and (min-width: 1280px) {
  .gallery-page-category {
    justify-content: space-between;
  }

  .gallery-page-category .gallery-item {
    width: 250px;
    height: 120px;
  }

}

@media only screen and (max-width: 1199px) {
  .gallery-page-category {
    justify-content: flex-start;
  }

  .gallery-page-category .gallery-item {
    width: 250px;
    height: 110px;
  }
}

@media only screen and (max-width: 769px) {
  /* .gallery-page-category{
    justify-content: flex-start;
  }
  .gallery-page-category .gallery-item{
        width: 250px;
        height: 110px;
  } */

  .gallery.gallery-page-category {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* Smooth scroll for iOS */
    padding-bottom: 10px;
  }

  .gallery.gallery-page-category .gallery-item {
    flex: 0 0 30%;
    /* Show 80% of width, adjust as needed */
    scroll-snap-align: start;
    height: 90px;
  }

  .gallery.gallery-page-category img {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }

  .uk-grid.lightbox-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media only screen and (max-width: 426px) {

  .gallery-page-category .gallery-item-caption {
    font-size: 8px;
  }

  .gallery.gallery-page-category .gallery-item {
    height: 60px;
  }

  .gallery-page-category .gallery-item:hover .gallery-item-caption {
    font-size: 11px;
    /* text grows */
    transform: translateY(-5px);
    /* moves slightly up */
  }

  .uk-grid.lightbox-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media only screen and (max-width: 376px) {

  .gallery-page-category .gallery-item-caption {
    font-size: 6px;
  }

  .gallery.gallery-page-category .gallery-item {
    height: 50px;
  }

  .gallery-page-category .gallery-item:hover .gallery-item-caption {
    font-size: 8px;
    /* text grows */
    transform: translateY(-2px);
    /* moves slightly up */
  }

  .gallery-grid-section {
    padding: 20px 0;
  }
}

@media only screen and (max-width: 320px) {

  .gallery.gallery-page-category .gallery-item {
    height: 40px;
  }

  .gallery-page-category .gallery-item:hover .gallery-item-caption {
    font-size: 8px;
    /* text grows */
    transform: translateY(0px);
    /* moves slightly up */
  }
}