.ipabout {
    position: relative;
    z-index: 9999;
}
.ipabout::before, .ipabout::after {
    pointer-events: none !important;
}
.gallery1 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    position: relative;
}

.gallery-item1 {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  z-index: 10;
  pointer-events: auto;
}

.gallery-item1:hover {
  transform: scale(1.04);
}

.gallery-item1 img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gallery-item1, .gallery-item1 img {
  pointer-events: auto !important;
  z-index: 10;
}

.title1 {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0,0,0,0.55);
  color: #fff;
  text-align: center;
  padding: 10px;
  font-size: 1rem;
}

/* Lightbox */
.lightbox1 {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox1 img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
  transition: opacity 0.4s ease;
}

.caption1 {
  color: #fff;
  margin-top: 15px;
  font-size: 1.2rem;
  text-align: center;
}

.close1, .prev1, .next1 {
  position: absolute;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
  user-select: none;
}

.close1 { top: 20px; right: 35px; }
.prev1, .next1 {
  top: 50%;
  transform: translateY(-50%);
  font-size: 50px;
  padding: 10px;
}
.prev1 { left: 20px; }
.next1 { right: 20px; }

.close1:hover, .prev1:hover, .next1:hover {
  color: #f00;
}