.et_pb_acf_gallery .acf-gallery__item {
  overflow: hidden;
}
.et_pb_acf_gallery .acf-gallery__img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 1;
  transition: opacity 150ms ease;
}
.et_pb_acf_gallery .acf-gallery__link {
  display: block;
}
.et_pb_acf_gallery .acf-gallery__item {
  position: relative;
}
.et_pb_acf_gallery .acf-gallery__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 150ms ease;
}
.et_pb_acf_gallery .acf-gallery__item:hover .acf-gallery__overlay {
  opacity: 1;
}
.et_pb_acf_gallery .acf-gallery__overlay-icon {
  font-family: ETmodules !important;
  font-size: 32px;
  line-height: 1;
}

/* Minimal overlay for fallback lightbox */
.acf-gallery-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}
.acf-gallery-lightbox-overlay.open { display: flex; }
.acf-gallery-lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  opacity: 1;
  transition: opacity 150ms ease;
}
.acf-gallery-lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

.acf-gallery-lightbox-prev,
.acf-gallery-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  font-size: 28px;
  line-height: 44px;
  text-align: center;
  cursor: pointer;
}
.acf-gallery-lightbox-prev { left: 20px; }
.acf-gallery-lightbox-next { right: 20px; }
.et_pb_acf_gallery .acf-gallery__placeholder{
  background: #eee;
  width: 100%;
  padding-top: 71%;
}
