/* ==========================================
   HAMSA MOBILE FRAMEWORK
========================================== */

@media (max-width: 991px) {

    /* ======================================
       GLOBAL
    ====================================== */

    html,
    body {
        width: 100%;
        overflow-x: hidden;
    }

    * {
        box-sizing: border-box;
    }

    img,
    iframe,
    video {
        max-width: 100%;
        height: auto;
    }

    /* ======================================
       CONTAINER
    ====================================== */

    .hamsa-container {
        width: 100%;
        max-width: 100%;

        padding-left: 20px;
        padding-right: 20px;

        margin-left: auto;
        margin-right: auto;
    }

    .hamsa-full-width {
        width: 100%;
        max-width: 100%;

        padding-left: 0;
        padding-right: 0;
    }

    /* ======================================
       MOBILE HEADER
    ====================================== */

    .hamsa-header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;

        min-height: auto;

        padding-top: 18px;
        padding-bottom: 18px;

        position: relative;
    }

    .hamsa-header-left {
        flex: 1;
        min-width: 0;
    }

    .hamsa-header-navigation {
        flex: 0;
        margin-left: auto;
    }

    .hamsa-header-right {
        display: none;
    }

    .custom-logo {
        max-width: 180px;
        height: auto;
    }

    /* ======================================
       MOBILE NAVIGATION
    ====================================== */

    .hamsa-menu-toggle {
        display: inline-flex;

        align-items: center;
        justify-content: center;

        min-width: 110px;
        height: 52px;

        border: 0;
        cursor: pointer;
    }

    .hamsa-menu {
        display: none;
    }

    .hamsa-menu.is-open {
    display: flex;

    flex-direction: column;

    position: absolute;

    top: 100%;
    left: auto;
    right: 0;

    width: 320px;
    min-width: 320px;
    max-width: calc(100vw - 32px);

    background: #ffffff;

    padding: 16px 24px;

    margin: 0;

    list-style: none;

    border-radius: 16px;

    box-shadow:
        0 16px 40px
        rgba(0,0,0,.12);

    z-index: 99999;
}

    .hamsa-menu.is-open > li {
        width: 100%;
    }

    .hamsa-menu.is-open a {
    display: block;

    width: 100%;

    padding: 14px 0;

    white-space: normal;
    word-break: normal;
}

    /* MOBILE SUBMENU */

    .hamsa-menu.is-open .sub-menu {
        position: static;

        opacity: 1;
        visibility: visible;
        pointer-events: auto;

        transform: none;

        display: block;

        width: 100%;
        min-width: 100%;

        margin-top: 10px;
        padding-left: 18px;

        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }

    /* ======================================
       CONTENT
    ====================================== */

    .hamsa-content-area {
        display: block;
        width: 100%;
    }

    .hamsa-main-content,
    .hamsa-entry,
    .entry-content,
    .entry-header {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    /* ======================================
       TYPOGRAPHY
    ====================================== */

    h1,
    .entry-title {
        font-size: 42px;
        line-height: 1.15;
        word-break: break-word;
    }

    h2 {
        font-size: 34px;
        line-height: 1.2;
    }

    h3 {
        font-size: 28px;
    }

    p,
    li {
        font-size: 18px;
        line-height: 1.8;
    }

    /* ======================================
       WORDPRESS BLOCKS
    ====================================== */

    .wp-block-columns {
        display: block;
    }

    .wp-block-column,
    .wp-block-group {
        width: 100%;
        max-width: 100%;
    }

    table {
        display: block;
        overflow-x: auto;
        width: 100%;
    }
}

/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width: 480px) {

    .hamsa-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .custom-logo {
        max-width: 150px;
    }

    h1,
    .entry-title {
        font-size: 34px;
    }

    h2 {
        font-size: 28px;
    }

    p,
    li {
        font-size: 17px;
    }
}