/* Let browser zoom scale content instead of forcing a viewport-sized minimum.
   Small-screen layouts retain their existing page-specific spacing. */
@media (min-width: 1400px) {
    body.page .entry-content > .elementor > .e-con.e-con-boxed > .e-con-inner {
        min-width: 0 !important;
    }
}

@media (min-width: 1600px) {
    body.blog .phltd-news-hero__inner,
    body.blog .phltd-news-content {
        width: min(1180px, calc(100% - 48px));
        max-width: none;
    }

    body.page:not(.elementor-page) #content > .ast-container,
    body.single-post.ast-no-sidebar #content .ast-container,
    body.category:not(.category-technical-support) #content > .ast-container {
        width: min(1160px, calc(100% - 64px));
        max-width: none !important;
    }
}

/* Product-index cards had 25% widths plus gaps, causing overflow.
   Distribute the existing cards evenly inside their rows. */
@media (min-width: 1025px) {
    body.page-id-2030 .elementor-2030 :is(
        .elementor-element-b804179, .elementor-element-431b814
    ) > .e-con-inner > .e-con,
    body.page-id-2030 .elementor-2030 :is(
        .elementor-element-faf3f49, .elementor-element-26ae1aa,
        .elementor-element-ca5c3e3, .elementor-element-b2a9ce3
    ) > .e-con {
        --width: calc((100% - 40px) / 3) !important;
    }

    body.page-id-5724 .elementor-5724 .elementor-element.elementor-element-f6e5c6e > .e-con-inner > .e-con,
    body.page-id-5766 .elementor-5766 .elementor-element.elementor-element-2c0bf89 > .e-con-inner > .e-con {
        --width: calc((100% - 60px) / 4) !important;
    }

    body.page-id-5724 .elementor-5724 .elementor-element.elementor-element-c415527 > .e-con-inner > .e-con {
        --width: calc((100% - 40px) / 3) !important;
    }

}

body:is(.page-id-2030, .page-id-5724, .page-id-5766, .page-id-3027)
.elementor-widget-image img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
}

/* Bound the whole desktop canvas. A zoomed-out viewport must not keep
   expanding images, full-width bands, the sticky header or the footer.
   1920px preserves the existing desktop layout through Full HD; normal
   responsive rules continue to reflow narrow windows and zoomed-in pages. */
body #page.site {
    width: 100%;
    max-width: 1920px;
    margin-inline: auto;
}
html body #masthead,
html body #phltd-language-strip {
    max-width: 1920px;
    margin-inline: auto;
    left: 0;
    right: 0;
}
body #phltd-products-mega {
    max-width: 1920px;
    margin-inline: auto;
    left: 0;
    right: 0;
}
@media (min-width: 1920px) {
    body #phltd-products-mega {
        padding-inline: 330px;
    }
}
/* Do not switch to a wider content column when zoom-out crosses 1600/1920px. */
@media (min-width: 1025px) {
    body.home .elementor-2500 .elementor-element.elementor-element-4cff0ae > .e-con-inner,
    body.home .elementor-2500 .elementor-element.elementor-element-cff869a > .e-con-inner,
    body.home .elementor-2500 .elementor-element.elementor-element-52eefaf > .e-con-inner,
    body.home .elementor-2500 .elementor-element.elementor-element-1e69b7d > .e-con-inner,
    body.home .elementor-2500 .elementor-element.elementor-element-952dba7 > .e-con-inner {
        max-width: min(1200px, calc(100% - 96px)) !important;
    }
    body.home #phltd-home-products {
        max-width: 1320px !important;
    }
}