/* REAVC photo-gallery item visuals + lightbox modal.
   Item/hover/overlay rules verbatim from the static site's style.css
   "PHOTO GALLERY (Lightbox)" block; the modal (.lb-*) is JS-created by
   gallery-lightbox.js (ISSUE-036: zero HTML footprint), so its CSS must
   ship with the runtime, not the page JSON. Grid column layout lives in
   the page's Elementor JSON (native containers). */

.gallery-item.gallery-item {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.elementor-widget.gallery-item__overlay,
.gallery-item__overlay.gallery-item__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30,58,95,0.45);
  color: #FFFFFF;
  font-size: 22px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-item__overlay { opacity: 1; }

/* Elementor wrapper compat: the image widget's wrappers must fill the
   square anchor container, margin-free (kit widget spacing would leak). */
.gallery-item .elementor-widget { margin: 0; }
.gallery-item .elementor-widget-image,
.gallery-item .elementor-widget-image .elementor-widget-container {
  width: 100%;
  height: 100%;
}
.gallery-item .elementor-widget-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Overlay built as a native Icon widget carrying the overlay class. */
.gallery-item__overlay .elementor-icon,
.gallery-item__overlay .elementor-icon i {
  color: #FFFFFF;
  font-size: 22px;
}

/* Lightbox modal (verbatim from static style.css) */
.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10,15,25,0.94);
  padding: 24px;
}
.lb-overlay.is-open { display: flex; }
.lb-overlay img {
  max-width: 92vw;
  max-height: 82vh;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.lb-btn {
  position: absolute;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.lb-btn:hover { background: #C9A227; color: #1E3A5F; }
.lb-close { top: 20px; right: 24px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lb-counter {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  font-family: 'Source Sans Pro', -apple-system, sans-serif;
}
@media (max-width: 600px) {
  .lb-btn { width: 44px; height: 44px; font-size: 18px; }
  .lb-prev { left: 10px; } .lb-next { right: 10px; }
}
