/** 
 * Modal
 *
 */
.theme-modal {
    position: fixed;
    background-color: #ffffff;
    z-index: 9999;  
    transition: .7s linear;
}

/** 
 * Modal menu
 *
 */
.theme-modal-menu {
    top: 0;
    left: 0;
    bottom: 0;
    box-shadow: 0px 0px 5px 0px rgba(41 39 89 / 15%);
    overflow-y: auto;
    align-items: flex-start !important;
    width: 40%;
    padding-bottom: var(--theme-padding);
    margin-left: -110% !important;
}

.theme-modal-menu > .theme-grid > *:not(:last-child) {
    margin-bottom: var( --theme-margin );
}

@media only screen and (max-width: 1200px) {
    .theme-modal-menu {
        width: 50%;
    }
}

@media only screen and (max-width: 768px) {
    .theme-modal-menu {
        width: 75%;
    }
}

@media only screen and (max-width: 560px) {
    .theme-modal-menu {
        width: 100%;
    }
}

.theme-modal-menu.theme-modal-active {
    transition: .7s linear;
    margin-left: 0!important;
}

/** 
 * Modal search
 *
 */
.theme-modal-search {
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 30px var( --theme-padding );
    box-shadow: 0 0 5px 0 rgb(204 204 204);
    margin-top: -200px !important;
}

.theme-modal-search.theme-modal-active {
    transition: .7s linear;
    margin-top: 0 !important;
}

.theme-modal-search .theme-grid-row-search-form {
    margin-top: var( --theme-margin );
}

/** 
 * Modal navigation panel
 *
 */
.theme-modal-navigation-panel {
    left:0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    z-index: 9998;
    height: 70px;
    margin-bottom: -70px;
}

.theme-modal-navigation-panel .theme-grid {
    background-color: var( --theme-color-grey );
    border-top: 1px solid #bdbdbd;
    height: 100%;
}

.theme-modal-navigation-panel .theme-grid > .theme-grid-row {
    height: 100%;
}

@media only screen and (max-width: 1100px) {
    .theme-modal-navigation-panel.theme-navigation-panel-fixed {
        margin-bottom: 0;
    }
    .theme-modal-navigation-panel .theme-grid {
        max-width: 924px;
    }
}

@media only screen and (max-width: 1024px) {
    .theme-modal-navigation-panel .theme-grid {
        max-width: 768px;
    }
}

@media only screen and (max-width: 768px) {
    .theme-modal-navigation-panel .theme-grid {
        max-width: 560px;
    }
}

/** 
 * Modal All post
 *
 */
.theme-modal-all-posts {
    position: fixed;
    max-width: 924px;
    margin: 0 auto;
    left: 0;
    right: 0;
    background-color: transparent;
    z-index: 9997;
    height: 70%;
    bottom: -100%;
}

.theme-modal-all-posts .theme-grid {
    background-color: #ffffff;
    border-top: 1px solid #bdbdbd;
    height: 100%;
    padding: var( --theme-margin );
}

.theme-modal-all-posts.theme-modal-active {
    transition: .7s linear;
    bottom: 70px;
}

@media only screen and (max-width: 1100px) {

    .theme-modal-all-posts .theme-grid {
        max-width: 924px;
    }
}

@media only screen and (max-width: 1024px) {
    .theme-modal-all-posts .theme-grid {
        max-width: 768px;
    }
}

@media only screen and (max-width: 768px) {
    .theme-modal-all-posts .theme-grid {
        max-width: 560px;
    }
}

.theme-modal-all-posts .theme-all-posts {
    overflow: hidden;
    height: 100%;
}

.theme-modal-all-posts .theme-all-posts .theme-grid-card {
    height: calc( 100% - 35px );
    margin-bottom: 20px;
}


/**
 * Modal logo
 *
 */
.theme-modal-logo {
    padding: 20px 0;
}

.theme-modal-logo a {
    display: block;
    color: var(--theme-color);
}

.theme-modal-logo svg {
    width: auto;
    height: 35px;
}

.theme-modal-logo svg path {
    fill: var(--theme-color);
}