/** 
 * CSS Style: Theme page, single, archive 
 * 
 * @since 1.0
 */

 /**
 * 
 *
 */
.theme-grid-row.theme-block {
    padding-bottom: 30px;
}

@media only screen and (max-width: 768px) {
    .theme-grid-row.theme-block {
        padding-bottom: var(--theme-padding);
    }
}

.theme-block-items {
    justify-content: space-between;
}

/**
 * Archive
 *
 */
.archive .theme-block-main {
    flex: 0 0 calc(67% - var(--theme-margin));
    max-width: 67%;
}

.archive .theme-block-main-feed {
    flex: 0 0 calc( 33% - var(--theme-margin) );
    max-width: 33%;
}

@media only screen and (max-width: 768px) {
    .archive .theme-block-main {
        padding-bottom: var(--theme-padding);
    }
    .archive .theme-block-main, .archive .theme-block-main-feed {
        flex: 0 0 100%;
        max-width: 100%;
        
    }
}

.theme-grid-archive {
    justify-content: center;
    /*max-width: 65%;*/
    margin: 0 auto;
}

.archive .theme-grid-archive .theme-card, 
.search .theme-grid-archive .theme-card,
.page-template-project .theme-grid-archive .theme-card {
    padding-bottom: var( --theme-padding );
}

.archive .theme-grid-archive .theme-card .theme-card-items, 
.search .theme-grid-archive .theme-card .theme-card-items,
.page-template-project .theme-grid-archive .theme-card .theme-card-items {
    display: flex;
    flex-direction: row;
}

.archive .theme-grid-archive .theme-card .theme-card-image,
.search .theme-grid-archive .theme-card .theme-card-image,
.page-template-project .theme-grid-archive .theme-card .theme-card-image {
    margin-right: var(--theme-margin);
    margin-bottom: 0;
    flex: 0 0 45%;
    max-width: 45%;
}

@media only screen and (max-width: 768px) {
    /*.archive .theme-grid-archive .theme-card {
        flex: 0 0 100%;
        max-width: 100%;
    }*/
    
    .theme-grid-archive {
        /*max-width: 100%;*/
    }
}

/** 
 * Theme widgets. Widget "All news"
 * 
 * @since 1.0
 */
.theme-block-feed {
    flex: 0 0 calc(25% - var(--theme-margin));
    max-width: 25%;
}

@media only screen and (max-width: 1100px) {
    .theme-block-feed {
        display: none;
    }
}

.theme-page-sidebar .theme-all-posts .theme-grid-title .theme-grid-col:last-child,
.theme-block-primary .theme-all-posts .theme-grid-title .theme-grid-col:last-child {
    display: none;
}

.theme-all-posts .theme-grid-card {
    height: 500px;
    overflow-y: auto;
}

.theme-all-posts .theme-card {
    padding-bottom: 15px;
    padding-right: var(--theme-padding);
}

.theme-card.theme-card-all-posts .theme-card-text {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: flex-start;
}

.theme-card.theme-card-all-posts .theme-card-title {
    font-size: 17px;
    font-weight: 400;
    margin-bottom: 0;
}

.theme-card.theme-card-all-posts .theme-card-info {
    color: var(--theme-color);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    margin-right: 15px;
    margin-top: 0;;
}

/**
 *
 *
 */
.theme-block-main {
    flex: 0 0 calc(50% - var(--theme-margin));
    max-width: 50%;
}

.theme-block-main .theme-grid-card {
    flex-direction: column;
}

@media only screen and (max-width: 1100px) {
    .theme-block-main {
        flex: 0 0 calc(67% - var(--theme-margin));
        max-width: 67%;
    }
}

@media only screen and (max-width: 768px) {
    .theme-block-main {
        flex: 0 0 100%;
        max-width: 100%;
        padding-bottom: var( --theme-padding );
    }
}

.theme-block-main .theme-card-title {
    font-size: 32px;
}

@media only screen and (max-width: 768px) {
    .theme-block-main .theme-card-title {
        font-size: 26px;
    }
}

@media only screen and (max-width: 560px) {
    .theme-block-main .theme-card {
        position: relative;
    }

    .theme-block-main .theme-card .theme-card-text {
        position: absolute;
        left: 0;
        right: 0;
        bottom: var(--theme-padding);
        padding: 0 var(--theme-padding) ;
        z-index: 9;
    }

    .theme-block-main .theme-card .theme-card-image {
        margin-bottom: 0;
    }

    .theme-block-main .theme-card .theme-card-image:after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, .2) 20%, #222 100%);
        border-radius: 10px;
        z-index: 8;
    }

    .theme-block-main .theme-card-title {
        font-size: 22px;
    }

    .theme-block-main .theme-card a, 
    .theme-block-main .theme-card .theme-card-info, 
    .theme-block-main .theme-card .theme-card-info a {
        color: #fff;
    }
}

@media only screen and (max-width: 480px) {
    .theme-block-main .theme-card-title {
        font-size: 20px;
    }
}

/**
 *
 *
 */
.theme-block-main-feed {
    flex: 0 0 calc(25% - var(--theme-margin));
    max-width: 25%;
}

@media only screen and (max-width: 1100px) {
    .theme-block-main-feed {
        flex: 0 0 calc(33% - var(--theme-margin));
        max-width: 33%;
    }
}

@media only screen and (max-width: 768px) {
    .theme-block-main-feed {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.theme-block-main-feed .theme-grid-card {
    flex-direction: column;
}

.home .theme-block-main-feed .theme-grid-card {
    margin-top: 35px;
}

.theme-block-main-feed .theme-card .theme-card-items {
    display: flex;
    flex-direction: row;
}

.theme-block-main-feed .theme-card .theme-card-image {
    margin-right: var( --theme-margin );
    display: none;
}

.theme-block-main-feed  .theme-card:not(:last-child) {
    padding-bottom: var( --theme-padding );
    border-bottom: 1px solid var( --theme-color-dark-grey );
}

.theme-block-main-feed .theme-card:not(:first-child) {
    padding-top: var( --theme-padding );
}

@media only screen and (max-width: 768px) {
    .home .theme-block-main-feed .theme-grid-card {
        margin-top: 0;
    }

    .theme-block-main-feed .theme-card {
        border: none !important;
        padding-top: 0 !important;
        
    }

    .theme-block-main-feed .theme-card .theme-card-image {
        display: block;
        margin-right: var(--theme-margin);
        margin-bottom: 0;
        flex: 0 0 45%;
        max-width: 45%;
    }
}

/**
 *
 *
 */
.theme-block-second .theme-grid-card {
     justify-content: space-between;
}

.theme-block-second .theme-card {
    flex: 0 0 calc((100% / 4) - var(--theme-margin));
    max-width: 25%;
}

@media only screen and (max-width: 1100px) {

    .theme-block-second .theme-card:nth-child(-1n+2) {
        padding-bottom: var(--theme-padding);
    }

    .theme-block-second .theme-card {
        flex: 0 0 calc((100% / 2) - var(--theme-margin));
        max-width: 50%;
    }
}

@media only screen and (max-width: 1100px) {

    .theme-block-second .theme-card {
        flex: 0 0 100%;
        max-width: 100%;
        padding-bottom: var(--theme-padding);
    }

    .theme-block-second .theme-card .theme-card-items {
        display: flex;
        flex-direction: row;
    }

    .theme-block-second .theme-card .theme-card-image {
        margin-right: var(--theme-margin);
        margin-bottom: 0;
        flex: 0 0 45%;
        max-width: 45%;
    }
}

/**
 *
 *
 */
.theme-grid-row.theme-block-promo, .theme-grid-row.theme-block-promo-slider {
    max-width: none;
    padding-top: var(--theme-padding);
    padding-bottom: var(--theme-padding);
    background-color: #e2e2e2;
    margin-bottom: 30px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

@media only screen and (max-width: 1100px) {
    .theme-grid-row.theme-block-promo {
        margin-left: 0;
        margin-right: 0;
    }
}

.theme-grid-row.theme-block-promo .theme-block-item {
    max-width: 1360px;
    margin: 0 auto;
}

.theme-block-promo .theme-grid-card {
    justify-content: space-between;
}

.theme-block-promo .theme-card {
    flex: 0 0 calc((100% / 4) - var(--theme-margin));
    max-width: 25%;
    padding-bottom: var(--theme-padding);
}

@media only screen and (max-width: 1100px) {
    .theme-block-promo .theme-card {
        flex: 0 0 calc((100% / 3) - var(--theme-margin));
        max-width: 33.3333333%;
    }
    .theme-block-promo .theme-card:last-child {
        display: none;
    }
}

@media only screen and (max-width: 768px) {
    .theme-block-promo .theme-card {
        flex: 0 0 calc((100% / 2) - var(--theme-margin));
        max-width: 50%;
    }

    .theme-block-promo .theme-card:nth-child(3) {
        display: none;
    }
}

@media only screen and (max-width: 560px) {
    .theme-block-promo .theme-card {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .theme-block-promo .theme-card:nth-child(2) {
        display: none;
    }
}

/**
 *
 *
 */
/*.theme-grid-row.theme-block-promo-slider {
    flex-direction: column;
}*/
 
.theme-grid-row.theme-block-promo-slider .theme-swiper {
    max-width: 1360px;
    margin: 0 auto;
    width: 100%;
}

.theme-project-posts {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.theme-project-posts .theme-grid-card {
    justify-content: space-between;
}

.theme-project-posts .theme-grid-card .theme-grid-col:first-child {
    flex: 0 0 calc(67% - var(--theme-margin));
    max-width: 67%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

@media only screen and (max-width: 1100px) {
    .theme-grid-row.theme-block-promo-slider {
        margin-left: 0;
        margin-right: 0;
    }

    .theme-project-posts .theme-grid-card .theme-grid-col:first-child {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .theme-project-posts .theme-grid-card .theme-grid-col:first-child .theme-card {
        padding-bottom: var(--theme-padding);
    }
}

.theme-project-posts .theme-grid-card .theme-grid-col:first-child .theme-card {
    flex: 0 0 calc((100% / 2 ) - var(--theme-margin));
    max-width: 50%;
}

@media only screen and (max-width: 768px) {
    .theme-project-posts .theme-grid-card .theme-grid-col:first-child .theme-card:last-child {
        display: none;
    }

    .theme-project-posts .theme-grid-card .theme-grid-col:first-child .theme-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.theme-project-posts .theme-grid-button {
    justify-content: flex-end;
}

.theme-project-posts .theme-grid-card .theme-grid-col:last-child, .theme-project-posts .theme-grid-button .theme-grid-col {
    flex: 0 0 calc(33% - var(--theme-margin));
    max-width: 33%;
}

@media only screen and (max-width: 1100px) {
    .theme-project-posts .theme-grid-card .theme-grid-col:last-child {
        display: none;
    }

    .theme-project-posts .theme-grid-button {
        justify-content: center;
    }

    .theme-project-posts .theme-grid-button .theme-grid-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.theme-project-posts .theme-grid-card .theme-grid-col:last-child .theme-card {
    padding-bottom: var(--theme-padding);
}

/**
 *
 *
 */
.theme-block-middle .theme-block-item:first-child,
.theme-block-middle .theme-block-item:last-child {
    flex: 0 0 calc( 25% - var(--theme-margin) );
    max-width: 25%;
}

.theme-block-middle .theme-block-item:nth-child(2) {
    flex: 0 0 calc( 50% - var(--theme-margin) );
    max-width: 50%;
}

@media only screen and (max-width: 1100px) {
    .theme-block-middle {
        justify-content: center;
    }

    .theme-block-middle .theme-block-item {
        flex: 0 0 80% !important;
        max-width: 80% !important;
    }

    .theme-block-middle .theme-block-item:not(:last-child) {
        padding-bottom: var( --theme-padding );
    }
}

@media only screen and (max-width: 768px) {

    .theme-block-middle .theme-block-item {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

.theme-block-middle .theme-block-item:nth-child(2) .theme-grid-card {
    flex-direction: column;
}

.theme-block-middle .theme-block-item:nth-child(2) .theme-card:not(:last-child) {
    padding-bottom: var( --theme-padding );
}

.theme-block-middle .theme-block-item:nth-child(2) .theme-card .theme-card-items {
    display: flex;
    flex-direction: row;
}

.theme-block-middle .theme-block-item:nth-child(2) .theme-card .theme-card-image {
    margin-right: var( --theme-margin );
    margin-bottom: 0;
    flex: 0 0 45%;
    max-width: 45%;
}

/**
 *
 *
 */
.theme-block-last .theme-grid-card {
    justify-content: space-between;
}

.theme-block-last .theme-card {
    flex: 0 0 calc((100% / 2) - var(--theme-margin));
    max-width: 50%;
    padding-bottom: var(--theme-padding);
}

@media only screen and (max-width: 1100px) {

    .theme-block-last .theme-grid-card {
        justify-content: center;
    }

    .theme-block-last .theme-card {
        flex: 0 0 80%;
        max-width: 80%;
    }

}

@media only screen and (max-width: 768px) {

    .theme-block-last .theme-card {
        flex: 0 0 100%;
        max-width: 100%;
    }

}

.theme-block-last .theme-card .theme-card-items {
    display: flex;
    flex-direction: row;
}

.theme-block-last .theme-card .theme-card-image {
    margin-right: var(--theme-margin);
    margin-bottom: 0;
    flex: 0 0 45%;
    max-width: 45%;
}

@media only screen and (max-width: 560px) {
    .theme-block-main-feed .theme-card .theme-card-image,
    .theme-block-second .theme-card .theme-card-image,
    .theme-block-middle .theme-block-item:nth-child(2) .theme-card .theme-card-image,
    .theme-block-last .theme-card .theme-card-image,
    .archive .theme-grid-archive .theme-card .theme-card-image {
        flex: 0 0 115px !important;
        max-width: 115px !important;
        height: 115px;
    }

    .theme-block-main-feed .theme-card .theme-card-image a,
    .theme-block-second .theme-card .theme-card-image a,
    .theme-block-middle .theme-block-item:nth-child(2) .theme-card .theme-card-image a,
    .theme-block-last .theme-card .theme-card-image a,
    .archive .theme-grid-archive .theme-card .theme-card-image a {
        padding-bottom: 0;
        height: 100%;
    }
}

@media only screen and (max-width: 480px) {

    .theme-block-main-feed .theme-card .theme-card-image,
    .theme-block-second .theme-card .theme-card-image,
    .theme-block-middle .theme-block-item:nth-child(2) .theme-card .theme-card-image,
    .theme-block-last .theme-card .theme-card-image,
    .archive .theme-grid-archive .theme-card .theme-card-image {
        flex: 0 0 90px !important;
        max-width: 90px !important;
        height: 90px;
    }
}

/** 
 * Theme page category / widget title / layout title
 * 
 * @since 1.0
 */
.theme-grid-title {
    height: 35px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
}

.theme-widget-title {
    font-size: 20px;
    line-height: 1;
    font-weight: 700;
}

.theme-widget-title a {
    color: #000000;
}

@media only screen and (max-width: 1100px) {
    .theme-block-today .theme-widget-title {
        text-transform: uppercase;
    }
}

/** 
 * Theme page / post title
 * 
 * @since 1.0
 */
.theme-page-title {
    font-size: 32px;
    font-weight: 500;
    line-height: 1.2;
    padding-bottom: var( --theme-padding );
}

.page .theme-page-title {
    text-align: center;
    margin: 0 auto;
    max-width: 800px;
}

.page-template-project .theme-page-title {
    text-align: left;
}

.archive .theme-page-title:first-letter {
  text-transform: uppercase;
}

@media only screen and (max-width: 1100px) {
  .theme-page-title {
    font-size: 30px;
  }
}

@media only screen and (max-width: 768px) {
  .theme-page-title {
    font-size: 28px;
  }
  
  /*.theme-page-category {
    font-size: 10px;
  }*/
  
}

/**
 * Theme sidebar 
 *
 */
.theme-page-sidebar {
    flex: 0 0 330px;
    max-width: 330px;
}

.theme-page-sidebar-sticky {
    position: sticky;
    top: 90px;
    margin-bottom: var( --theme-margin );
}

@media only screen and (max-width: 1100px) {
    .theme-page-sidebar {
        display: none;
    }
}

.theme-page-sidebar .theme-widget:not(:last-child) {
    margin-bottom: var( --theme-margin );
}

/** 
 * Theme pagination
 * 
 * @since 1.0
 */
.theme-paginate {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: center;
    margin: var( --theme-margin ) auto var(--theme-margin);
    font-size: 14px;
}

.theme-paginate ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.theme-paginate ul li {
    margin: 0 10px 10px 10px;
    font-weight: 500;
}

.theme-paginate ul li a.page-numbers, 
.theme-paginate ul li .current, 
.theme-paginate ul li .dots {
    display: block;
    padding: 8px 13px;
    border-radius: 5px;
}

.theme-paginate ul li a.page-numbers  {
    color: #ffffff;
    background-color: var(--theme-color );
}

.theme-paginate ul li .current {
    color: #ffffff;
    background-color: var( --theme-color-dark-grey );
}

.theme-paginate ul li a:hover {
    opacity: 0.8;
}

/** 
 * Theme label
 * 
 * @since 1.0.0
 */
.theme-label {
    font-weight: bold;
    font-size: 14px;
}

/** 
 * Theme card
 * 
 * @since 1.0.0
 */
.theme-card {
    flex-basis: 0;
    flex-grow: 1;
    max-width: 100%;
    width: 100%;
    /*padding: 0 var( --theme-padding ) var( --theme-padding ) var( --theme-padding );*/
}

.theme-card-items {
    height: 100%;
    overflow: hidden;
}

.theme-card a {
    color: #000000;
}

/** 
 * Theme card image
 *
 */
.theme-card-image {
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-bottom: 10px;
}

.theme-card-image .theme-thumbnail-has {
    position: absolute;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.theme-card-image .theme-thumbnail-has svg {
    fill: #ffffff;
    width: 80px;
    height: auto;
    display: block;
    opacity: 0.8;
}

@media only screen and (max-width: 580px) {
    .theme-card-image .theme-thumbnail-has svg {
        width: 40px;
        height: auto;
    }
}

.theme-card-image a {
    display: block;
    position: relative;
    /* aspect-ratio: 16/9; */
    padding-bottom: 56.25%; /* 16/9 -  56.25%, 4/3 - 75% / 133.33% 125% */
    width: 100%;
    min-width: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-color: #f9f9f9;
    border-radius: 10px;
}

/** 
 * Theme card title
 *
 */
.theme-card-title {
    font-weight: 500;
    line-height: 1.35;
}

.theme-card-title.theme-title-has-highlight {
    font-weight: 600 !important;
}

.theme-card-title .theme-title-has {
    color: var(--theme-color);
    font-weight: 600;
    margin-right: 5px;
    display: inline-block;
    vertical-align: middle;    
}

.theme-card-title .theme-title-has svg {
    width: auto;
    height: 16px;
    fill: var(--theme-color);
    display: block;
    margin-bottom: 3px;
}

.theme-card-title .theme-title-has-update {
    background-color: var(--theme-color);
    color: #ffffff !important;
    padding: 1px 6px 0 6px;
    font-weight: normal;
    font-style: normal;
    border-radius: 4px;
    font-size: 11px;
    line-height: 18px;
    height: 18px;
    vertical-align: middle;
    display: inline-block;
    margin-top: 0;
    margin-left: 3px;
    margin-right: 0;
}

h2.theme-card-title {
    font-size: 21px;
}

h3.theme-card-title {
    font-size: 19px;
}

@media only screen and (max-width: 768px) {
    h3.theme-card-title {
        font-size: 17px;
    }
}

h4.theme-card-title {
    font-size: 17px;
}

h5.theme-card-title {
    font-size: 15px;
}

h6.theme-card-title {
    font-size: 13px;
}

/** 
 * Theme card text
 *
 */
.theme-card-text {
    display: flex;
    flex-direction: column;
}

/** 
 * Theme card info
 *
 */
.theme-card-info {
    display: flex;
    flex-direction: row;
    font-size: 12px;
    font-weight: 400;
    color: var( --theme-color-dark-grey );
    margin-top: 10px;
}

.theme-card-info a {
    color: var( --theme-color-dark-grey );
}

.theme-card-info > div:not(:last-child):not(:empty):after {
    content: '-';
    margin: 0 5px;
}

/*.archive .theme-card, 
.search .theme-card {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    min-height: 250px;
}

@media only screen and (max-width: 1100px) {
    .search .theme-card {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media only screen and (max-width: 768px) {
    .search .theme-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
}*/

/**
 * FAQS
 *
 * @since 1.0.0
 */
.dmi-faqs-row div {
   margin-bottom: 0!important;
}

.dmi-faqs-row-accordion .dmi-faq {
  border-top: 3px solid #000000;
}

.theme-dark-background .dmi-faqs-row-accordion .dmi-faq {
  border-top: 3px solid #ffffff;
}

.dmi-faqs-row-accordion .dmi-faq:last-child {
  border-bottom: 3px solid #000000;
}

.theme-dark-background .dmi-faqs-row-accordion .dmi-faq:last-child {
  border-bottom: 3px solid #ffffff;
}

.dmi-faqs-row-accordion .dmi-faq-content {
  border-top: 0!important;
  padding: 20px 60px 20px 0;
}

.dmi-faqs-row-accordion .dmi-faq-title {
  padding-left: 0;
  padding-right: 60px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3
}

.dmi-faqs-row-accordion .dmi-faq-title:before {
  display: none;
}

.dmi-faqs-row-accordion .dmi-faq-title:after {
  content: '+';
  position: absolute;
  top: 15px;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 34px;
  line-height: 40px;
  text-align: center;
  vertical-align: middle;
  transition: transform 500ms;
  font-weight: 500;
  color: var( --theme-color-background );
  background-color: #000000;
}

.theme-dark-background .dmi-faqs-row-accordion .dmi-faq-title:after {
  color: var( --theme-color );
  background-color: #ffffff;
}

.dmi-faqs-row-accordion .dmi-faq-title:hover:after, .dmi-faqs-row-accordion .dmi-faq-title.dmi-faq-title-active:after {
  background-color: #000000;
  color: var( --theme-color-background );
}

.theme-dark-background .dmi-faqs-row-accordion .dmi-faq-title:hover:after, .theme-dark-background .dmi-faqs-row-accordion .dmi-faq-title.dmi-faq-title-active:after {
  background-color: #000000;
  color: var( --theme-color-background );
}

.dmi-faqs-row-accordion .dmi-faq-title.dmi-faq-title-active:after {
  transform: rotate( -45deg );
  transition: transform 500ms;
}

/**
 * Gallery
 *
 * @since 1.0.0
 */
.theme-widget-gallery .theme-gallery-row {
  margin: 0 -10px;
}

.theme-widget-gallery .theme-gallery-col {
  padding: 0 10px;
}

@media only screen and (max-width: 560px) {
  .theme-widget-gallery .theme-gallery-col {
    padding: 0 10px 20px 10px;
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media only screen and (max-width: 400px) {
  .theme-widget-gallery .theme-gallery-col {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.theme-widget-gallery img.theme-gallery-image {
  display: block;
  width: 100%;
  height: auto;
}

/**
 * Search form 
 *
 * @since 1.0.0
 */
.theme-search .searchform {
    margin-bottom: var( --theme-margin );
}

.searchform .theme-search-options {
    justify-content: space-between;
}

.searchform .theme-search-options .theme-grid-col {
    /*flex: 0 0 calc( 50% - var( --theme-margin ) );
    max-width: 50%;*/
    flex: 0 0 100%;
    max-width: 100%;
}

.searchform .theme-search-options .theme-grid-col:not(:last-child) {
    margin-bottom: var( --theme-margin );
}

@media only screen and (max-width: 768px) {

    .searchform .theme-search-options .theme-grid-col {
        flex: 0 0 100%;
        max-width: 100%;
    }

}

.theme-radio-button {
    margin-bottom: 10px;
}

.theme-radio-button:not(:last-child) {
    margin-right: var(--theme-margin);
}

.theme-radio-button input[type=radio] {
    display: none;
}

.theme-radio-button label {
    display: inline-block;
    cursor: pointer;
    padding: 10px 15px;
    border: 1px solid var(--theme-color);
    user-select: none;
    font-size: 13px;
    color: var(--theme-color);
    border-radius: 5px;
}

/* Checked */
.theme-radio-button input[type=radio]:checked+label {
    background-color: var(--theme-color);
    color: #ffffff;
}

/* Hover */
.theme-radio-button label:hover {
    opacity: 0.8;
}

.searchform select {
    margin-bottom: var(--theme-margin);
    width: 100%;
    background-color: #ffffff;
    color: #000000;
    border: 1px solid var( --theme-color-grey );
    font-size: 14px;
    padding: 10px 20px;
    appearance: none;
    outline: none;
    cursor: pointer;
    position: relative;
}

.searchform select option:checked, .searchform select option:hover, 
.searchform select option:focus, .searchform select option:active {
    background-color: var( --theme-color );
    color: #ffffff;
}

.searchform .theme-label {
    margin-bottom: 10px;
}

.theme-search-input {
    position: relative;
}

.searchinput, .searchform input[name="daterange"] {
    width: 100%;
    height: 40px;
    border: none;
    outline: none;
    border: 1px solid var( --theme-color-grey );
    padding: 0 20px;
    font-size: 15px;
}

.searchinput {
    padding: 0 60px 0 20px;
}

.searchsubmit {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    border: 1px solid var(--theme-color);   
    outline: none;
    background-color: var( --theme-color );
    position: absolute;
    right: 0;
    top: 0;
    width: 60px;
    height: 40px;
    z-index: 1;
    cursor: pointer;
}

.searchsubmit:hover {
    border: 1px solid var( --theme-color );
    background-color: #ffffff;
}

.theme-search-phrase {
    margin-bottom: var( --theme-margin );
    font-size: 16px;
    font-weight: 700;
}

.theme-search-phrase span {
    font-weight: normal;
    font-style: italic;
}

.theme-search-link {
    padding: 5px var( --theme-padding ) 0 var(--theme-padding);
    font-size: 15px;
}

.daterangepicker .drp-selected {
    display: none !important;
}

/**
 * Theme user action 
 *
 * @since 1.0.0
 */
.theme-user-actions {
  margin: 0 20px;
  background-color: var( --theme-color-grey );
  padding: 20px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}

.theme-user-actions > .theme-grid-col {
  padding: 0 30px;
}

@media only screen and (max-width: 1100px) {
  .theme-user-actions > .theme-grid-col {
    padding: 0;
    flex: 0 0 auto;
    width: auto;
    max-width: none;
  }
  
  .theme-user-actions > .theme-grid-col:not(:last-child) {
    margin-bottom: 10px;
  }
  
  .theme-user-actions {
    flex-direction: column;
  }
}

@media only screen and (max-width: 768px) {
  .theme-user-actions {
    margin: 0;
  }
}

/**
 * Button
 *
 */
.theme-button {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 0 20px;
    height: 40px;
    width: auto;
    max-width: 140px;
    flex: 0 0 auto;
    border: 1px solid var( --theme-color );
    color:var(--theme-color);
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;  
}

.theme-button:hover {
    opacity: 1;
    background-color: var(--theme-color);
    color: #ffffff;
}

/**
 *
 *
 */
.theme-load-more {
    width: 100%;
}

.theme-preloader {
    flex: 0 0 100%;
    width: 100%;
    display: none;
    margin-bottom: var( --theme-margin );
}

/**
 *
 *
 */
.theme-not-found {
  padding: 0 20px;
}

/**
 * Theme Swiper
 *
 */
.theme-swiper-button-next {
    right: 20px !important;
    color: var( --theme-color ) !important;
}

.theme-zmtk .theme-swiper-button-next {
    right: 10px !important;
    color: #f9f9f9 !important;
}

.theme-swiper-button-prev {
    left: 20px !important;
    color: var( --theme-color ) !important;
}

.theme-zmtk .theme-swiper-button-prev {
    left: 10px !important;
    color: #f9f9f9 !important;
}

/**
 * zmtk.ru
 *
 */
.theme-zmtk {
    background-color: #f9f9f9;
    overflow: hidden;
}

.theme-zmtk > .theme-zmtk-title {
    background-color: #1d64f2;
    padding: 10px 20px;
}

.theme-zmtk > .theme-zmtk-title img {
    display: block;
    width: auto;
    height: 30px;
}

.theme-zmtk-card-grid {
    padding: var( --theme-padding );
    flex-wrap: nowrap;
}

/*.theme-zmtk-card-grid .theme-swiper-wrapper {
    justify-content: space-between;
}*/

.theme-zmtk-card {
    display: flex !important;
    flex-direction: column;
    /*flex: 0 0 calc( (100%/4) - 20px );*/
    min-width: 315px;
    max-width: 315px;
    position: relative;
    border: none;
}

@media only screen and (max-width: 1024px) {
    .theme-zmtk-card {
        min-width: 216px;
        max-width: 216px;
    }
}

@media only screen and (max-width: 768px) {
    .theme-zmtk-card {
        min-width: 100%;
        max-width: 100%;
    }
}

.theme-zmtk-card .theme-zmtk-card-title {
    padding: 15px 10px 0 10px;
    font-weight: 500;
    font-size: 17px;
    color: #000000;
    transition: .4s;
}

.theme-zmtk-card .theme-zmtk-card-image {
    display: block;
    position: relative;
    padding-bottom: 56.25%;
    width: 100%;
    min-width: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-color: #ccc;
    border-radius: 10px;
    overflow: hidden;
    transition: .4s;
}

.theme-zmtk-card .theme-zmtk-card-image:hover {
    opacity: 0.7;
}

.theme-zmtk-card .theme-zmtk-card-title:hover {
    color: #1d64f2;
}

/*.dmimag-zmtk-preloader {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.dmimag-zmtk-preloader .wpdmi-col {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 48px;
}

.dmimag-zmtk-preloader .wpdmi-col {
    background-image: url('assets/images/preloader-zmtk.svg')
}*/

/**
 * Afisha
 *
 */
.dmimag-events-grid {
    padding: 20px 0 20px 0;
    border-top: 1px solid var(--theme-color-dark-grey);
    border-bottom: 1px solid var(--theme-color-dark-grey);
}

.dmimag-events-card-grid {
    display: flex;
    flex-direction: row;
    /*justify-content: center;*/
    overflow-x: auto;
}

.dmimag-events-grid>.dmimag-events-row-title {
    margin-bottom: 20px;
}

.dmimag-events-row-title img {
    height: 32px;
    width: auto;
}

@media only screen and (max-width: 768px) {
    .dmimag-events-grid>.dmimag-events-row-title {
        justify-content: center;
    }

        .dmimag-events-card-grid {
            overflow-x: scroll;
        }
}

.dmimag-event-card-feature {
    display: flex;
    flex-direction: column;
    flex: 0 0 20%;
    max-width: 20%;
    margin-bottom: 0;
    position: relative;
    border: none;
    padding-right: 20px;
}

.dmimag-events-grid .dmimag-event-card-feature:last-child {
    display: none;
}

.dmimag-event-card-feature:nth-child(5) {
    padding-right: 0;
}

@media only screen and (max-width: 1100px) {
    .dmimag-event-card-feature {
        flex: 0 0 33%;
        max-width: 33%;
        padding-right: 20px;
    }
}

@media only screen and (max-width: 768px) {
    .dmimag-event-card-feature {
        flex: 0 0 50%;
        max-width: 50%;
    }
}


.dmimag-event-card-feature a {
    color: #222222;
}

.dmimag-event-card-feature .dmimag-event-type {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    font-size: 12px;
    margin-right: 0;
    z-index: 9;
}

.dmimag-event-card-feature .dmimag-event-card-image {
    height: 280px;
    overflow: hidden;
    border-radius: 4px;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 1000%;
}

.dmimag-event-card-feature .dmimag-event-card-image-bg {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.dmimag-event-card-feature .dmimag-events-button-ticket {
    padding: 6px 8px 6px 35px;
    position: absolute;
    bottom: 5px;
    right: 5px;
}

.dmimag-event-feature {
    display: inline-block;
    font-size: 12px;
    line-height: 12px;
    padding: 8px 13px;
    background-color: #f9f9f9;
    border: 1px solid #f9f9f9;
    text-align: center;
    border-radius: 4px;
    color: #ffffff;
    text-transform: none;
    font-weight: normal;
}

.dmimag-events-button-ticket {
    background-color: #5400c7;
    border: 1px solid #5400c7;
    padding-left: 35px;
    background-repeat: no-repeat;
    background-position: center left;
    background-size: auto 90%;
}

.dmimag-events-align-center {
    align-items: center;
}

.dmimag-event-card-feature .dmimag-event-type {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    font-size: 12px;
    margin-right: 0;
    z-index: 9;
}

.dmimag-event-card-feature .dmimag-event-type a {
    background-color: #5400c7;
    border: 1px solid #5400c7;
    color: #ffffff;
    padding: 6px 8px;
    font-size: 12px;
    line-height: 12px;
    margin-bottom: 3px;
    margin-right: 3px;
    border-radius: 4px;
}

.dmimag-event-card-feature .dmimag-event-card-title {
    padding: 5px;
    font-size: 17px;
    font-weight: 700;
}
