/* Compatibility after removing the original framework runtimes. */
[hidden] { display: none !important; }
.elementor-invisible { visibility: visible !important; }
.affinex-menu-open { display: block !important; visibility: visible !important; opacity: 1 !important; max-height: none !important; }
.affinex-dropdown-open > ul, .affinex-dropdown-open > .nav-dropdown-menu, .axj-nav-drop:focus-within > div { display: block; visibility: visible; opacity: 1; }
.swiper-wrapper { overflow-x: auto; scroll-snap-type: x mandatory; transform: none !important; }
.swiper-slide { scroll-snap-align: start; flex-shrink: 0; }
img, video { max-width: 100%; }

.ag-portfolio-swiper .swiper-slide { width: min(80vw, 420px); margin-right: 24px; }
.ag-lightbox .ag-lb-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.85); }
.ag-lightbox .ag-lb-panel { position: relative; z-index: 1; max-width: 90vw; max-height: 90vh; }
.ag-lightbox .ag-lb-img { max-height: 80vh; object-fit: contain; }

/* Content must remain visible without the legacy scroll-animation script. */
.reveal { opacity: 1 !important; transform: none !important; }

/* Lead form container; article CTAs scroll to #form. */
.affinex-lead{max-width:520px;margin:28px auto;scroll-margin-top:90px}
