/** 
 * Modal
 *
 */
.theme-modal {
    position: fixed;
    z-index: 99999;  
    transition: .6s 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;
    background-color: #ffffff;
    transition: .8s linear;
}

.theme-modal-menu > .theme-grid > *:not(:last-child) {
    margin-bottom: var( --theme-margin );
}

.theme-modal-menu > .theme-grid > .theme-grid-row:first-child {
    padding: var(--theme-padding);
}

@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: .8s linear;
    margin-left: 0 !important;
}

/** 
 * Modal search
 *
 */
.theme-modal-search {
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 30px var( --theme-padding );
    background-color: #ffffff;
    box-shadow: 0 0 5px 0 rgb(204 204 204);
    margin-top: -200px !important;
}

@media only screen and (max-width: 560px) {
    .theme-modal-search {
        padding: 30px 0;
    }
}

.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 regions
 *
 */
.theme-modal-projects {
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    overflow-y: auto;
    padding: 30px var(--theme-padding);
    background-color: #ffffff;
    box-shadow: 0 0 5px 0 rgb(204 204 204);
    margin-top: -250px !important;
    max-height: 100%;
   
}

@media only screen and (max-width: 1100px) {
    .theme-modal-projects {
        margin-top: -350px !important;
    }
}

@media only screen and (max-width: 560px) {
    .theme-modal-projects {
        padding: 30px 0;
    }
}

.theme-modal-projects.theme-modal-active {
    transition: .7s linear;
    margin-top: 0 !important;
}

/** 
 * Modal navigation panel
 *
 */
.theme-modal-navigation-panel {
    left:0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    height: 60px;
    background-color: transparent;
    margin-bottom: -60px;
}

.theme-modal-navigation-panel .theme-grid {
    height: 100%;
}

.theme-modal-navigation-panel .theme-grid > .theme-grid-row {
    height: 100%;
    background-color: var(--theme-color);
}

@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 a {
    display: block;
}

.theme-modal-logo svg {
    width: auto;
    height: 50px;
}

.theme-modal-logo svg path:nth-child(2) {
    fill: #ffffff;
}

@media only screen and (max-width: 768px) {
    .theme-modal-logo svg {
        width: auto;
        height: 40px;
    }
}

/**
 *
 *
 */
.theme-modal-preloader.theme-modal-active {
    width: 100%;
    height: 100%;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.8);
}

/*.theme-modal-preloader.theme-modal-active:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    opacity: 0.8;
    top: 0;
    bottom: 0;
}*/

.theme-modal-preloader.theme-modal-active > .theme-grid, 
.theme-modal-preloader.theme-modal-active > .theme-grid > .theme-grid-row {
    height: 100%;
}

.theme-modal-preloader.theme-modal-active .theme-preloader {
    display: block;
    margin-bottom: 0;
    position: relative;
    z-index: 99999;
}

.theme-modal-preloader.theme-modal-active .theme-icon-preloader {
    width: 48px;
    height: 48px;
    fill: var(--theme-color);
    margin: 0 auto;
}

/**
 *
 *
 */
.theme-modal-poll {
    display: none;
    padding: var(--theme-padding);
    overflow-y: auto;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.3);
}

.theme-modal-poll.theme-modal-active {
    display: block;    
}

.theme-modal-poll .theme-grid {
    position: relative;
    z-index: 2;
}

/*.theme-modal-poll:after {
    content: '';
    background-color: #222222;
    position: absolute;
    top:0;    
    bottom: 0;
    left: 0;
    right: 0;
    opacity: .3;
    z-index: 1;
}*/