@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Roboto:wght@300;400;500;600;700;800;900&family=Montserrat:wght@300;400;500;600;700;800;900&family=Lato:wght@300;400;700;900&family=Oswald:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,700&display=swap');

.mea-hb-slide-link {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: block;
}
.mea-hb-box {
    position: absolute;
    overflow: hidden;
    z-index: 10;
    color: #fff;
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 18px;
    line-height: 1.35;
    padding: 6px 10px;
    box-sizing: border-box;
    word-break: break-word;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    pointer-events: none;
}
.porto-ibanner-desc .mea-hb-box > div,
.porto-ibanner-desc .mea-hb-box > p {
    font-weight: inherit;
    font-family: inherit;
    font-style: inherit;
    text-decoration: inherit;
    color: inherit;
    text-align: inherit;
    display: block;
}
.mea-hb-m-box { display: none; }
@media (max-width: 767px) {
    .mea-hb-d-box { display: none; }
    .mea-hb-m-box { display: block; }
}

/* Proportional type scaling: each slide is a size container, and box
   type/padding shrink with the banner once it renders narrower than
   the admin canvas (desktop ~822px measured at a full-screen admin
   window, mobile fixed 390px) — same wrap points as the admin canvas,
   so boxes stop overflowing into each other on small screens. Values
   never exceed the authored px (min() cap); per-box inline font-size
   gets the same treatment in the template. Browsers without cq units
   drop the min() and keep the px behavior. */
.mea-hb-scale,
.mea-hb-scale-m { container-type: inline-size; }
/* Defaults mirror the admin canvas base (18px, .hb-box-inner) — the
   preview must ALWAYS match the frontend (WYSIWYG contract Jul 10). */
.mea-hb-scale .mea-hb-d-box {
    font-size: min(18px, 2.1898cqw);           /* 18px @ 822 */
    padding: min(6px, 0.7299cqw) min(10px, 1.2165cqw);
}
/* .mea-hb-scale-m (small blocks b1/b2): desktop boxes reference the
   block's full 615px frontend width (content measured unclipped there),
   not the fluid admin canvas. */
.mea-hb-scale-m .mea-hb-d-box {
    font-size: min(18px, 2.9268cqw);           /* 18px @ 615 */
    padding: min(6px, 0.9756cqw) min(10px, 1.6260cqw);
}
.mea-hb-scale .mea-hb-m-box,
.mea-hb-scale-m .mea-hb-m-box {
    font-size: min(18px, 4.6154cqw);           /* 18px @ 390 */
    padding: min(6px, 1.5385cqw) min(10px, 2.5641cqw);
}
