/* When injected into BWG grid, Photo Gallery CSS controls gaps/format.
   Keep only lightbox + shortcode fallback styles here. */

.abha-pf-bwg-item a.abha-pf-gallery__item {
  cursor: pointer;
}

.abha-pf-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 14, 20, 0.88);
  padding: 1.25rem;
}

.abha-pf-lightbox.is-open {
  display: flex;
}

.abha-pf-lightbox__img {
  max-width: min(1100px, 96vw);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.abha-pf-lightbox__close,
.abha-pf-lightbox__nav {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
  width: 42px;
  height: 42px;
  font-size: 1.35rem;
  line-height: 1;
}

.abha-pf-lightbox__close { top: 1rem; right: 1rem; }
.abha-pf-lightbox__prev { left: 1rem; }
.abha-pf-lightbox__next { right: 1rem; }

.abha-pf-lightbox__title {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.95rem;
  background: rgba(0, 0, 0, 0.45);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
}

/* Shortcode-only fallback (if used outside About BWG) */
.abha-pf-gallery--inline {
  width: 1204px;
  max-width: 100%;
  margin: 0 auto;
  padding: 4px 0 0 4px;
  box-sizing: border-box;
}
.abha-pf-gallery--inline .abha-pf-gallery__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.abha-pf-gallery--inline .abha-pf-gallery__item {
  width: calc(33.333% - 4px);
  max-width: 400px;
  margin: 0 4px 4px 0;
  text-decoration: none;
  color: inherit;
}
.abha-pf-gallery--inline .abha-pf-gallery__thumb {
  position: relative;
  width: 100%;
  padding-top: 50%;
  overflow: hidden;
  background: rgba(0,0,0,.3);
}
.abha-pf-gallery--inline .abha-pf-gallery__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.abha-pf-gallery--inline .abha-pf-gallery__item:hover .abha-pf-gallery__thumb img {
  transform: scale(1.08);
}
.abha-pf-gallery--inline .abha-pf-gallery__caption {
  display: block;
  padding: 2px;
  color: #323A45;
  font-family: Ubuntu, "Noto Sans", sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}
