/* Bains Rajput Foundation - gallery and lightbox */
.gallery-count { color: var(--grey); font-size: 0.9rem; }
.gallery-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); list-style: none; padding: 0; margin: 1.4rem 0 0; }
.gallery-item { margin: 0; }
.gallery-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 10px; overflow: hidden; position: relative; box-shadow: var(--shadow); text-align: left; }
.gallery-open img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.25s ease; }
.gallery-open:hover img { transform: scale(1.04); }
.gallery-item-title {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem 0.9rem 0.7rem;
  background: linear-gradient(to top, rgba(16,20,22,0.85), transparent);
  color: var(--white); font-size: 0.88rem; font-weight: 600;
}
.gallery-empty { background: var(--mist); border: 1.5px dashed #c3cdc5; border-radius: 12px; padding: 3rem 1.6rem; text-align: center; color: var(--grey); max-width: 640px; margin: 2rem auto 0; }
.gallery-empty img { margin: 0 auto 1rem; opacity: 0.5; }
.gallery-empty p { margin: 0; max-width: 46ch; margin-inline: auto; }
/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(16, 20, 22, 0.94); display: grid; grid-template-columns: auto 1fr auto; align-items: center; padding: 1rem; }
.lightbox[hidden] { display: none; }
.lightbox-figure { margin: 0; text-align: center; max-height: 100%; }
.lightbox-figure img { max-width: min(1100px, 88vw); max-height: 76vh; margin: 0 auto; border-radius: 8px; object-fit: contain; }
.lightbox-figure figcaption { color: #d7dcdb; margin-top: 0.8rem; font-size: 0.92rem; }
.lightbox-figure #lightbox-title { font-weight: 700; display: block; color: var(--white); }
.lightbox-counter { display: block; font-size: 0.78rem; color: var(--gold); margin-top: 0.3rem; }
.lightbox-close { position: absolute; top: 1rem; right: 1.2rem; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  background: rgba(250, 249, 245, 0.1); color: var(--white); border: 1px solid rgba(250,249,245,0.35);
  border-radius: 8px; font-size: 1.6rem; line-height: 1; padding: 0.45rem 0.85rem; cursor: pointer;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--orange); color: var(--black); }
