/*
Theme Name: АМК — фасадные покрытия
Version: 1.0
*/
dialog.amk-popup,dialog#amk-lightbox{padding:0;border:0;max-width:96vw;max-height:90dvh;overflow:auto;background:white}
dialog::backdrop{background:rgba(0,0,0,.72)}
.amk-close{position:sticky;top:0;float:right;z-index:5;color:#222;background:#fff;padding:1px 12px;font:30px/1.25 sans-serif}
.amk-popup .elementor-location-popup{display:block!important}
.amk-popup:has(form){width:min(460px,94vw)}
.amk-popup:has(.e-gallery-item){width:min(1000px,95vw)}
.amk-popup .elementor-gallery__container{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:8px;height:auto!important}
.amk-popup .e-gallery-item{display:block!important;position:static!important;width:auto!important;height:auto!important}
.amk-popup .e-gallery-image{background-size:cover;background-position:center;aspect-ratio:4/3}
#amk-lightbox{background:#101010;color:white;text-align:center}
#amk-lightbox img{max-width:85vw;max-height:76vh;object-fit:contain}
#amk-lightbox iframe{width:min(82vw,1100px);aspect-ratio:16/9;border:0}
#amk-lightbox button{background:white;color:#222}
.elementor-invisible{visibility:visible!important}
.elementor-widget-media-carousel .swiper-wrapper{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
.elementor-widget-media-carousel .swiper-slide{flex:0 0 33.333%;scroll-snap-align:start}
.elementor-carousel-image{min-height:160px;background-size:contain;background-position:center;background-repeat:no-repeat}
.swiper-lazy-preloader{display:none}
.elementor-menu-toggle[aria-expanded=true]+nav{display:block!important;transform:none!important;max-height:80vh!important;overflow:auto}
@media(max-width:767px){.elementor-widget-media-carousel .swiper-slide{flex-basis:100%}}

.amk-popup .e-gallery-item{position:relative!important;overflow:hidden}
.amk-popup .elementor-gallery-item__overlay{pointer-events:none}
html,body{overflow-x:clip}
@media(min-width:1025px){[data-elementor-type="header"]{position:sticky;top:0;z-index:99}}
img.lazyload[src]:not([src^="data:"]){opacity:1!important;visibility:visible!important}
