/* Static-site safety: Elementor marks entrance-animation blocks as
   .elementor-invisible until its JS reveals them. If that script is late
   or does not run, the content must still be visible. */
.elementor-invisible {
  visibility: visible !important;
  opacity: 1 !important;
}

/* Gallery images are background-images set by e-gallery JS. Show a grid
   and honor data-thumbnail even if that script does not run. */
.elementor-gallery__container,
.e-gallery-container {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
}
@media (max-width: 1024px) {
  .elementor-gallery__container,
  .e-gallery-container { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .elementor-gallery__container,
  .e-gallery-container { grid-template-columns: 1fr; }
}
.e-gallery-item,
.elementor-gallery-item {
  position: relative;
  display: block;
  width: 100% !important;
  height: auto !important;
  inset: auto !important;
  transform: none !important;
  opacity: 1 !important;
}
.e-gallery-image,
.elementor-gallery-item__image {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  background-size: cover;
  background-position: center;
  min-height: 160px;
}
