/* HERO */
.gallery-hero{
  background:linear-gradient(135deg,#fffdf4,#ffeaa7);
}
.gallery-chip{
  display:inline-block;
  font-size:.75rem;
  text-transform:uppercase;
  letter-spacing:.12em;
  padding:.25rem .8rem;
  border-radius:999px;
  background:#fff3c4;
  color:#92400e;
  margin-bottom:.6rem;
}
.gallery-title{
  font-weight:800;
  font-size:2.2rem;
}
.gallery-sub{
  max-width:620px;
  margin:0.7rem auto 0;
  color:#4b5563;
}



/* COMMON GALLERY SECTIONS */
.gallery-section{
  position:relative;
  padding-top:2.5rem;
  background:#ffffff;
  opacity:0;
  transform:translateY(40px);
  transition:opacity .7s ease-out, transform .7s ease-out;
}
.gallery-section.visible{
  opacity:1;
  transform:translateY(0);
}
.gallery-heading{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:1rem;
  margin-bottom:1.5rem;
}
.gallery-heading h2{
  font-weight:800;
  font-size:1.6rem;
}
.gallery-heading p{
  margin:0;
  color:#4b5563;
  font-size:.92rem;
}

/* Hospital section background tint */
/* 3 x 2 big images for hospital */
.gallery-hospital .gallery-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1.5rem;
}
.gallery-hospital .g-item{
  height:260px;           /* big */
}
.gallery-hospital .g-item img{
  height:100%;
  object-fit:cover;
}

/* mobile: 2 per row */
@media (max-width:767.98px){
  .gallery-hospital .gallery-grid{
    grid-template-columns:repeat(2,1fr);
  }
  .gallery-hospital .g-item{
    height:190px;
  }
}

.g-item{
  position:relative;
  overflow:hidden;
  border-radius:20px;
  box-shadow:0 18px 45px rgba(0,0,0,.12);
  cursor:pointer;
  transform:translateY(30px);
  opacity:0;
  transition:opacity .6s ease-out, transform .6s ease-out, box-shadow .25s;
}
.gallery-section.visible .g-item{
  opacity:1;
  transform:translateY(0);
}
.g-item img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  transition:transform .4s ease;
}

.g-item:hover img{
  transform:scale(1.06);
}
.g-item:hover{
  box-shadow:0 26px 70px rgba(0,0,0,.22);
}

/* staggered animation inside each grid */
.gallery-grid .g-item:nth-child(1){ transition-delay:.05s;}
.gallery-grid .g-item:nth-child(2){ transition-delay:.1s;}
.gallery-grid .g-item:nth-child(3){ transition-delay:.15s;}
.gallery-grid .g-item:nth-child(4){ transition-delay:.2s;}
.gallery-grid .g-item:nth-child(5){ transition-delay:.25s;}
.gallery-grid .g-item:nth-child(6){ transition-delay:.3s;}




/* LIGHTBOX */
.lightbox-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.85);
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  pointer-events:none;
  transition:opacity .25s ease;
  z-index:1050;
}
.lightbox-overlay.show{
  opacity:1;
  pointer-events:auto;
}
.lightbox-inner{
  position:relative;
  max-width:900px;
  width:90%;
}
.lightbox-inner img{
  width:100%;
  max-height:80vh;
  object-fit:contain;
  border-radius:12px;
}
.lightbox-close{
  position:absolute;
  top:-10px;
  right:-10px;
  width:32px;
  height:32px;
  border-radius:50%;
  border:none;
  background:#111;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

/* responsive */
@media (max-width:767.98px){
  .gallery-title{
    font-size:1.9rem;
  }
  .gallery-heading{
    flex-direction:column;
    align-items:flex-start;
  }
  .gallery-grid{
    grid-template-columns:repeat(auto-fill,minmax(160px,1fr));
  }
}

/* 2 x 2 grid for patient sliders */
.gallery-patient-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:1.5rem;
}

.gallery-patients .g-item{
  height:auto;
  box-shadow:0 18px 45px rgba(0,0,0,.12);
}

/* slider size inside each item */
.gallery-patients .ba-slider{
  position:relative;
  width:100%;
  height:260px;
  border-radius:20px;
  overflow:hidden;
}
.gallery-patients .ba-img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* mobile: 1 slider per row */
@media (max-width:767.98px){
  .gallery-patient-grid{
    grid-template-columns:1fr;
  }
  .gallery-patients .ba-slider{
    height:220px;
  }
}
