
    .gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.gallery img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
}

.item img {
  height: 170px;
}
.item {
  margin: 5px;
}
.gallery-page {
  text-align: center;
  padding: 0px 146px;
}

/* Gallery hover effect */
.item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}

.item p {
      position: absolute;
    top: 0;
    left: 0;
    right: 0;
    color: #0000004f;
    font-size: 13px;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

.item img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}

/* Dark + zoom on hover */
.item:hover img {
  transform: scale(1.08);
  filter: brightness(65%);
}

/* Optional: smooth caption appearance */
.item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 10px;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.item:hover figcaption {
  opacity: 1;
}
/* Zoom icon on hover (top-right) */
.item::after {
  content: "+";
  position: absolute;
  top: 10px;
  right: 10px;

  width: 25px;
  height: 25px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(112, 54, 54, 0.7);
  color: #fff;
  font-size: 15px;
  font-weight: bold;

  border-radius: 50%;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

/* Show icon only on hover */
.item:hover::after {
  opacity: 1;
  transform: scale(1);
}




/* Lightbox  */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

/* Large image */
.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}
.lightbox-content {
  position: relative;
  display: inline-block;
}
.lightbox-content img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 6px;
}

/* Close button (top-right) */
.lightbox-close {
position: absolute;
  position: absolute;
  top: 6px;
  right: 6px;

  width: 28px;
  height: 28px;

  background: rgba(112, 54, 54, 0.7);
  color: #fff;

  font-size: 18px;
  line-height: 28px;
  text-align: center;

  border-radius: 50%;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

/* pagination */


.umai-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 18px 0px 6px 0px;
}

.umai-pagination a,
.umai-pagination span {
  border-radius: 4px;
  text-decoration: none;
  padding: 5px 11px;
  transition: all 0.25s ease-in-out;
 
}
.umai-pagination a {
 background-color: #fff;
  border: 1px solid #dee2e6;
}

.umai-pagination a:hover {
 background-color: #e2e2e2;
  border: 1px solid #b77f37;
}
.umai-pagination .current {
  font-weight: bold;
  background:  #b5523b;
  color: #fff;
}

.umai-pagination .disabled {
  opacity: .4;
  pointer-events: none;
}

.page-info {
  margin-right: 10px;
  font-size: 14px;
  opacity: .8;
}



