/* wpdmi */
.wpdmi-layout {
}

.wpdmi-grid {
  width: 100%;
  max-width: 1440px;
  padding: 0 10px;
  margin: 0 auto;
}

.wpdmi-modal .wpdmi-grid {
  max-width: 100%;
}

header .wpdmi-grid, footer .wpdmi-grid {
  padding: 0 20px;
}

.wpdmi-row .wpdmi-grid {
  padding:0;
} 

.wpdmi-row {
  display: flex;
}

.wpdmi-col {
  
}

/* Row */

.dmi-grid-row {
  display: flex;
  flex-wrap: wrap;
}

.dmi-row-reverse {
  flex-direction: row-reverse;
}

/* end Row */

/* Col */

.dmi-grid-col {
  flex-basis: 0;
  flex-grow: 1;
  max-width: 100%;
  width: 100%;
}

.dmi-grid-col-auto {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
}

.dmi-grid-col-1 {
}

.dmi-grid-col-2 {
  flex: 0 0 12.5%;
  max-width: 12.5%;
}

.dmi-grid-col-3 {
  flex: 0 0 25%;
  max-width: 25%;
}

.dmi-grid-col-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
}

.dmi-grid-col-5 {
  flex: 0 0 41.666667%;
  max-width: 41.666667%;
}

.dmi-grid-col-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

.dmi-grid-col-7 {
}

.dmi-grid-col-8 {
  flex: 0 0 66.666667%;
  max-width: 66.666667%;
}

.dmi-grid-col-9 {
  flex: 0 0 75%;
  max-width: 75%;
}

.dmi-grid-col-10 {
}

.dmi-grid-col-11 {
}

.dmi-grid-col-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

/* end Col */

/* */

.wpdmi-tablet, .wpdmi-mobile {
  display: none!important;
}

/*@media only screen and (max-width: 1024px) {*/
@media only screen and (max-width: 1149px) {
  .wpdmi-desktop {
    display: none!important;
  }
  
  .wpdmi-tablet {
    display: block!important;
  }
  
  .wpdmi-mobile {
    display: block!important;
  }
}

@media only screen and (max-width: 768px) {
  .wpdmi-tablet {
    display: none;
  }
}

/* */

.wpdmi-topnews-1-4 .panel-grid-cell .wpdmi-columns {
  position: relative;
  padding-bottom: 56.25%; /*66%*/
  overflow: hidden;  
}

.wpdmi-topnews-1-4 .panel-grid-cell:first-child .wpdmi-columns .card-article {
  position: absolute;
  width:100%;
  height:100%;
}

.wpdmi-topnews-1-4 .panel-grid-cell:last-child .wpdmi-columns .card-article {
  position: absolute;
  width:50%;
  height:50%;
}

.wpdmi-topnews-1-4 .panel-grid-cell:last-child .wpdmi-columns .card-article:nth-child(2) {
  top: 0;
  bottom: 0;
  right:0;
}

.wpdmi-topnews-1-4 .panel-grid-cell:last-child .wpdmi-columns .card-article:nth-child(3) {
  top: 50%;
  bottom: 0;
  left:0;
}

.wpdmi-topnews-1-4 .panel-grid-cell:last-child .wpdmi-columns .card-article:last-child {
  top: 50%;
  bottom: 0;
  right:0;
}

.wpdmi-topnews-1-4 .card-wpdmi-bg-image .card-article-body {
  padding-bottom:0;
  width:100%;
  height:100%;
}

/* */

.sidebar {
  flex: 0 0 340px; /*340px*/
  padding: 0 10px;
}

.sidebar .sidebar-widget, .sidebar .wpdmi-columns-layout {
  margin-bottom: 30px;
}



/* end wpdmi */

/* */

.wpdmi-columns {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  flex-wrap: wrap;
  overflow: hidden;
}

.archive .wpdmi-columns {
  width:25%;
}

.search .wpdmi-columns {
  width:100%;
}

.wpdmi-content .wpdmi-columns {
  margin-left: -10px;
  margin-right: -10px;
}

.wpdmi-columns-1 {
  flex-direction: column;
  flex-wrap: nowrap;
}

/* */
.wpdmi-columns-layoutthree {
  height: 1160px;
}

.wpdmi-columns-layoutthree, .wpdmi-columns-layoutfive {
  /*height: 615px;*/
  max-height: 100%;
  padding: 10px;
  /*overflow: hidden;*/
}

/* */

.wpdmi-columns-layoutthree .wpdmi-col, .wpdmi-columns-layoutfive .wpdmi-columns-title + .wpdmi-col {
  /*height:520px;*/
  max-height: 100%;
  overflow-y:auto;
}

.wpdmi-columns-layoutfive .wpdmi-columns-title + .wpdmi-col {
  height: 420px;
}

.wpdmi-columns-layoutthree .wpdmi-col {
  height: 1100px;
}

.wpdmi-columns-layoutfive > .wpdmi-col {
  border:1px solid #9b302a;
  height: 100%;
  overflow: hidden;
  padding: 0 15px 15px 15px;
}

.sidebar .wpdmi-columns-layoutthree {
  height: 530px;
  margin-bottom: 30px;
}

.sidebar .wpdmi-columns-layoutthree, .sidebar .wpdmi-columns-layoutfive {
  padding: 0;
}

/* */

.wpdmi-columns-title {
  width: 100%;
  margin-bottom: 10px;
  padding: 0 10px;
}

.wpdmi-content .wpdmi-columns-title, .wpdmi-columns-title { /**/
  position: relative;
  width: 100%;
  display: flex;
  padding: 0 10px;
}

/*.wpdmi-columns-layoutthree .wpdmi-columns-title-theme-dark, .wpdmi-columns-layoutfive .wpdmi-columns-title-theme-dark {
  margin: 0;
  position: static;
}*/

.wpdmi-content .wpdmi-columns-title:before, .wpdmi-columns-title:before { 
  content: '';
  position: absolute;
  height: 1px;
  background-color: #d4d4d4;
  z-index: 1;
  top: 50%;
  margin-top: 1px;
  left:10px;
  right:10px;
}

.wpdmi-columns-layoutthree .wpdmi-columns-title:before, .wpdmi-columns-layoutfive .wpdmi-columns-title:before, .wpdmi-columns-title-theme-light:before {
  display: none;
}

.wpdmi-content .wpdmi-columns-title .columns-title { /* , .wpdmi-columns-title-theme-dark .columns-title */
  padding: 0 20px 0 0;
  background-color: #ffffff;
  position: relative;
  z-index: 9;
}

.wpdmi-columns-title-theme-red .columns-title {
  background-color: transparent;
}

.wpdmi-columns-title-theme-red .columns-title, .wpdmi-columns-title-theme-red .columns-title a {
  color: #ffffff;
  text-shadow: 0 1px 1px rgb(0 0 0 / 30%);
}

.wpdmi-columns-title-theme-red:before {
  display: none;
}

.wpdmi-columns-title-theme-red .columns-title a:hover {
  color: #000000;
}

/* */

.wpdmi-columns-1 .card-article, .archive .wpdmi-columns-1 .card-article {
  width:100%;
}

.wpdmi-columns-2 .card-article {
  width:50%;
}

.wpdmi-columns-3 .card-article {
  width:33.333333%;
}

.wpdmi-columns-4 .card-article, .archive .card-article  { /* */
  width:25%;
}

.wpdmi-columns-5 .card-article {
  width:20%;
}

.wpdmi-columns-6 .card-article {
  width:16.6666666%;
}

.wpdmi-columns-7 .card-article {
  width:14.2857142%;
}

.wpdmi-columns-8 .card-article {
  width:12.5%;
}

/* Load more */

.wpdmi-preloader {
  display: none;
  margin:20px 0;
  width:100%;
  height:48px;
  background-image: url('../images/preloader.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 48px;
}

.load-more {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.button-load-more {
  
}

.link-more {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.link-more a {
  color: #9b302a;
}

.link-more a:hover {
  color: #ffffff;
}

.card-wpdmi-theme-light + .link-more a {
  color: #ffffff;
  border:1px solid #ffffff;
}

.card-wpdmi-theme-light + .link-more a:hover {
  border:1px solid #9b302a;
}

.wpdmi-new-day {
  background-color: #cccccc;
  padding:0 10px;
  text-transform: uppercase;
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
  margin-right: 10px;
  text-shadow: 0 1px 1px rgb(0 0 0 / 30%);
}

/* */

.wpdmi-slider > .panel-layout {
  display: none;
}

.owl-item .panel-grid {
  width: 100%;
}

.owl-item .panel-grid > .panel-row-style, .owl-item .panel-grid > .panel-row-style > .panel-grid-cell,
.owl-item .panel-grid > .panel-row-style > .panel-grid-cell > .so-panel.widget, 
.owl-item .panel-grid > .panel-row-style > .panel-grid-cell > .so-panel.widget > .panel-widget-style {
  height:100%;
}

.owl-carousel .owl-stage {
  display: flex;
}

.owl-carousel .owl-item {
  display: flex;
		flex: 1 0 auto;
} 

/*.owl-nav {
  
  width: 100%;
  
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 0 30px;
}*/

.owl-carousel .owl-nav {
  overflow: hidden;
  height: 0px;
}

.owl-nav button span {
  display: none;
}

.owl-nav button {
  position: absolute;
  width: 36px;
  height: 68px;
  top:50%;
  margin-top: -34px;
  background-repeat: no-repeat;
  background-size: contain!important;
  background-position: center;
  outline: none;
}


.owl-nav button.owl-prev {
  background-image: url('../images/icon-arrow-left.svg')!important;
  background-repeat: no-repeat;
  left: 30px;
}

.owl-nav button.owl-next {
  background-image: url('../images/icon-arrow-right.svg')!important;
  background-repeat: no-repeat;
  right:30px;
}

.wpdmi-slider .textwidget {
  color: #ffffff;
} 

/* */

.wpdmi-ticker {
  width:100%;
  position: fixed;
  bottom: 0;
  width:100%;
  padding: 10px 0;
  background-color: #9b302a;
  z-index: 9999;
  font-size: 18px;
  color: #ffffff;
  text-shadow: 0 1px 1px rgb(0 0 0 / 30%);
}

.wpdmi-ticker a {
  color: #ffffff;
}

.wpdmi-ticker-text > div {
  overflow: hidden;
  visibility: hidden;
}

/*  */

.no-results {
  padding: 10px;
  font-size: 18px;
  font-weight: bold;
}

/*@media only screen and (max-width: 1024px) {*/
@media only screen and (max-width: 1149px) {
  .sidebar  {
    display: none;
  }
  
  .archive .wpdmi-columns, .archive .card-article, .search .card-article {
    width:50%;
  }
  
  .wpdmi-columns-layoutthree, .wpdmi-columns-layoutfive {
    height:auto;
    
  }
  
  .wpdmi-columns-layoutthree {
    padding: 0 10px 10px 10px;
  }
  
  .wpdmi-columns-layoutthree .wpdmi-col, .wpdmi-columns-layoutfive .wpdmi-columns-title + .wpdmi-col {
    height: auto;
  }
  
  .wpdmi-new-day {
    margin-right: 0;
  }
  
  /* */
  
  .wpdmi-grid-1-1-1-1, .wpdmi-grid-cell-1-1 .panel-grid, .wpdmi-grid-2-1-1 {
    flex-direction: row!important;
    flex-wrap: wrap!important;
  }

  .wpdmi-grid-1-1-1-1 .panel-grid-cell, .wpdmi-grid-cell-1-1 .panel-grid-cell {
    width: 50%!important; 
  }
  
  .wpdmi-columns-3 .card-article {
    width: 50%;
  }
  
  .wpdmi-columns-layoutfive {
    padding: 10px 0 0 0;
    margin-left: -10px;
    margin-right: -10px;
  }
  
  .wpdmi-columns-layoutfive > .wpdmi-col {
    border: none;
    background-color: #9b302a;
  }
  
  .wpdmi-columns-layoutfive a {
    color: #ffffff!important;
  }
  
  .card-number {
    color: #ffffff!important;
  }
  
  .wpdmi-columns-layoutfive .columns-title {
    background-color: transparent;
    color: #ffffff;
  }
}

@media only screen and (max-width: 560px) {
  
  .wpdmi-mobile .wpdmi-slider .wpdmi-columns .card-article:not(:first-child) {
    display: none;
  }
  
  .wpdmi-grid.panel-row-style {
    flex-wrap: wrap!important;
  }
  
  .page .panel-grid-cell {
    width:100%!important;
  }

  header .wpdmi-grid, footer .wpdmi-grid {
    padding: 0 10px;
  }
  
  .wpdmi-grid {
    padding: 0;
  }
  
  .archive .wpdmi-columns, .archive .card-article, .search .card-article {
    width:100%;
  }
  
  .wpdmi-columns-layoutfive {
    margin-left: 0;
    margin-right: 0;
  }
  
  /* */
  
  .wpdmi-topnews-1-4 .panel-grid-cell .wpdmi-columns {
    position: static;
    padding-bottom: 0;
  }

  .wpdmi-topnews-1-4 .panel-grid-cell .wpdmi-columns .card-article {
    position: static!important;
    width:100%!important;
    height:100%!important;
  }
  
  .wpdmi-topnews-1-4 .panel-grid-cell:last-child .wpdmi-columns .card-article:nth-child(n+3) {
    display: none;
  }
  
  .wpdmi-columns-layoutfive .card-article:nth-child(n+6) {
    display: none;
  } 

  .wpdmi-topnews-1-4 .card-wpdmi-bg-image .card-article-body {
    padding-bottom: 66%;
    width: 100%;
    height: 100%;
  }
  
  .wpdmi-grid-1-1-1-1, .wpdmi-grid-cell-1-1 .panel-grid {
    flex-direction: column!important;
    flex-wrap: nowrap!important;
  }

  .wpdmi-grid-1-1-1-1 .panel-grid-cell, .wpdmi-grid-cell-1-1 .panel-grid-cell, .wpdmi-grid-2-1-1 .panel-grid-cell:nth-child(2),.wpdmi-grid-2-1-1 .panel-grid-cell:nth-child(3) {
    width: 100%!important; 
  }
}

/**
 * Afisha
 *
 */

.dmimag-events-grid {
  margin: 0 10px;
  padding: 20px 10px 10px 10px;
  background-color: #f9f9f9;
}

.dmimag-events-grid > .dmimag-events-row-title {
  margin-bottom: 20px;
  padding: 0 10px;
}

@media only screen and (max-width: 768px) {
  .dmimag-events-grid > .dmimag-events-row-title {
    justify-content: center;
  }
}

.dmimag-event-card-feature {
  display: flex;
  flex-direction: column;
  flex: 0 0 20%;
  max-width: 20%;
  padding: 0 10px 10px 10px;
  margin-bottom: 0;
  position: relative;
  border: none;
}

.dmimag-events-grid .dmimag-event-card-feature:last-child {
  display: none;
}

@media only screen and (max-width: 1100px) {
  .dmimag-event-card-feature {
    flex: 0 0 33.3333333%;
    max-width: 33.3333333%;
  }
  
  .dmimag-events-grid .dmimag-event-card-feature:last-child {
    display: flex;
  }
}

@media only screen and (max-width: 768px) {
  .dmimag-event-card-feature {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media only screen and (max-width: 460px) {
  .dmimag-event-card-feature {
    flex: 0 0 90%;
    max-width: 90%;
    margin: 0 auto;
  }
}

.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: 320px;
  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;
  color: #ffffff;
}

.dmimag-events-button-ticket {
  background-color: #5400c7;
  border: 1px solid #5400c7;
  padding-left: 35px;
  background-repeat: no-repeat;
  background-position: center left;
  background-image: url(https://afisha.ysia.ru/wp-content/plugins/dmimag-events/public/images/icon-discount-ticket.png);
  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: 18px;
  font-weight: 700;
}

/**
 * zmtk.ru
 *
 */
.dmimag-zmtk-grid {
  margin: 0 10px;
  background-color: #f9f9f9;
  /*border-radius: 10px;*/
  margin-bottom: 20px;
  overflow: hidden;
  padding: 0 10px 20px 10px;
}

.dmimag-zmtk-grid > .dmimag-zmtk-row-title {
  margin: 0 -20px 30px -20px;
  padding: 20px 30px;
  background-color: #1d64f2;
}

.dmimag-zmtk-grid > .dmimag-zmtk-row-title img {
  display: block;
  widht: auto;
  height: 36px;
}

.dmimag-zmtk-card .dmimag-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;
}

.dmimag-zmtk-card .dmimag-zmtk-card-image:hover {
  opacity: 0.7;
}

.dmimag-zmtk-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 100%;
  max-width: 100%;
  
  /*flex: 0 0 33.3333333%;
  max-width: 33.3333333%;*/
  
  padding: 0 10px 10px 10px;
  margin-bottom: 0;
  position: relative;
  border: none;
}

.dmimag-zmtk-card .dmimag-zmtk-card-title {
  padding: 15px 10px 0 10px;
  font-weight: 500;
  font-size: 20px;
  color: #000000;
  transition: .4s;
}

.dmimag-zmtk-card .dmimag-zmtk-card-title:hover {
  color: #1d64f2;
}

.dmimag-zmtk-preloader {
  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-image: url('../images/preloader-zmtk.svg');
  background-size: 48px;
}