/* Native sticky behavior for Elementor image and gallery widgets. */
.navz-photo-gallery-sticky {
  --navz-sticky-offset: 95px;
  align-self: flex-start;
  max-width: 100%;
}

@media (min-width: 1025px) {
  .navz-photo-gallery-sticky.navz-sticky--top.navz-sticky-on-desktop {
    position: sticky !important;
    top: var(--navz-sticky-offset) !important;
    bottom: auto !important;
    z-index: 20;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .navz-photo-gallery-sticky.navz-sticky--top.navz-sticky-on-tablet {
    position: sticky !important;
    top: var(--navz-sticky-offset) !important;
    bottom: auto !important;
    z-index: 20;
  }
}

@media (max-width: 767px) {
  .navz-photo-gallery-sticky.navz-sticky--top.navz-sticky-on-mobile {
    position: sticky !important;
    top: var(--navz-sticky-offset) !important;
    bottom: auto !important;
    z-index: 20;
  }
}

/* Elementor Pro may leave a spacer after an old sticky setting. Never show it
   beside a widget using Navz native sticky. */
.navz-photo-gallery-sticky + .elementor-sticky__spacer {
  display: none !important;
}
