
/* MYADVANCE — GLOBAL TYPE AND COLOR */

:root {
    --mya-accent: var(--mya-accent);
    --mya-ink: #191919;
    --mya-muted: #777777;
    --mya-background: #ffffff;
    --mya-font: "Sofia Sans", sans-serif;
    --e-global-color-accent: var(--mya-accent);
    --e-global-typography-primary-font-family: var(--mya-font);
    --e-global-typography-secondary-font-family: var(--mya-font);
    --e-global-typography-text-font-family: var(--mya-font);
    --e-global-typography-accent-font-family: var(--mya-font);
}

html, body, button, input, textarea, select, option,
.elementor-heading-title, .elementor-button, .elementor-widget-text-editor,
.woocommerce, .ma2-header, .mya-footer-v2 {
    font-family: var(--mya-font);
}
body :is(.ma2-header,.mya-home,.mya-ig-v5,.mya-footer-v2,.woocommerce)
    :is(h1,h2,h3,h4,h5,h6,p,a,span,label,strong,small,button,input,textarea,select)
    :not(.dashicons):not([class*="eicon"]):not([class*="fa-"]) {
    font-family: inherit;
}
/* =========================================
   MYADVANCE INSTAGRAM — WIDTH + ICON FIX
   Works with Instagram V5
========================================= */

/* Full-width Instagram section */
body .mya-ig-v5 {
    width: 100%;
    max-width: none;
    padding: 65px 0 70px;
}

/* Wider content — up to 1600px */
body .mya-ig-v5 .mya-ig-v5-container {
    width: calc(100% - 64px);
    max-width: 1600px;
    margin-inline: auto;
}

/* Elementor parent containers */
body .mya-ig-v5 .mya-ig-v5-gallery {
    width: 100%;
    max-width: none;
    min-width: 0;
}

body .mya-ig-v5 .socialfeeds-instagram-feed,
body .mya-ig-v5 .socialfeeds-carousel-stage {
    width: 100% !important;
    max-width: 100% !important;
}

/* Preserve six cards on desktop */
@media (min-width: 1025px) {
    body .mya-ig-v5
    .socialfeeds-instagram-inner.layout-carousel
    > .socialfeeds-instagram-item {
        flex: 0 0 calc((100% - 40px) / 6) !important;
        width: calc((100% - 40px) / 6) !important;
    }
}

/* Restore WordPress Dashicons */
body .dashicons,
body .dashicons::before,
body .mya-ig-v5 .dashicons,
body .mya-ig-v5 .dashicons::before {
    font-family: dashicons !important;
    font-weight: normal !important;
    font-style: normal !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* Keep Sofia Sans for text only */
body .mya-ig-v5-heading,
body .mya-ig-v5-heading h2,
body .mya-ig-v5-heading p,
body .mya-ig-v5-heading span {
    font-family: var(--mya-font);
}

/* Mobile */
@media (max-width: 767px) {
    body .mya-ig-v5 {
        padding: 42px 0 50px;
    }

    body .mya-ig-v5 .mya-ig-v5-container {
        width: calc(100% - 24px);
    }

    body .mya-ig-v5
    .socialfeeds-instagram-inner.layout-carousel
    > .socialfeeds-instagram-item {
        flex: 0 0 calc((100% - 8px) / 2) !important;
        width: calc((100% - 8px) / 2) !important;
    }
}
