.card-article {
  padding: 10px;
}

.wpdmi-columns .card-wpdmi-small-space {
  margin-bottom: 10px;
}

.wpdmi-columns .card-article:last-child {
  margin-bottom: 0;
}

/* */

.card-wpdmi-layoutthree {
  padding-left:0;
}

/* */

.card-article-body {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.card-article-content {
  width: 100%;
  height: 100%;
  /*max-height: 100%;
  overflow: hidden;*/
}

.card-wpdmi-layoutone a.card-thumbnail:after, .card-wpdmi-layouttwo a.card-thumbnail:after { /* , .card-wpdmi-layout a.card-thumbnail:after */
  height: 100%;
  left: 0;
  bottom: 0;
  content: '';
  position: absolute;
  width: 100%;
  background: linear-gradient(to bottom,rgba(0,0,0,.1) 0,rgba(0,0,0,.1) 40%,#000000 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#000000', endColorstr='#000000', GradientType=0 );
  z-index: 2;
}

.card-wpdmi-title-top-center .card-article-body {
  align-items: center;
  position: relative;
}

.card-wpdmi-title-bottom-center .card-article-body {
  justify-content: flex-end;
  align-items: center;
  position: relative;
}

.card-wpdmi-title-bottom-left .card-article-body {
  /*justify-content: flex-end;
  position: relative;*/
}

.card-wpdmi-layoutone .card-article-content .card-text, .card-wpdmi-layouttwo .card-article-content .card-text {
  padding: 15px 15px 20px 15px;
}

.card-wpdmi-layoutfive .card-article-content {
  display: flex;
  flex-direction: row;
}

/* card-wpdmi-bg-image */

.card-wpdmi-bg-image {
}

.card-wpdmi-bg-image .card-article-body {
  padding-bottom: 56.25%;
  position: relative;
  overflow: hidden;
}

.card-wpdmi-bg-image .card-article-content {
  position: absolute;
  overflow: hidden;
}

.card-wpdmi-bg-image .card-image {
  position: relative;
  z-index:1;
  width:100%;
  height:100%;
}

.card-wpdmi-bg-image .card-text {
  position: absolute;
  z-index: 9;
  bottom:0;
}

.card-wpdmi-bg-image.card-wpdmi-size-wpdminews-large .card-article-body {
  padding-bottom: 137.314%;
}

@media only screen and (max-width: 1024px) {
  .card-wpdmi-bg-image.card-wpdmi-size-wpdminews-large .card-article-body {
    padding-bottom: 66.66%;
  }
}

/*
.card-wpdmi-bg-image.card-wpdmi-size-wpdminews-small {
  max-height: 240px;
}

.card-wpdmi-bg-image.card-wpdmi-size-wpdminews-small .card-article-body {
  max-height: 220px;
}*/

/*
.card-image-wpdminews-normal, .card-image-wpdminews-large {
  width:100%; 
  max-height:460px;
}

.card-wpdmi-bg-image .card-image-wpdminews-small {
  width:100%;
  max-height: 220px;
}*/

/* */

.card-category {
  z-index: 9;
  text-transform: uppercase;
  border: 1px solid #9b302a;
  padding: 6px;
  font-weight: bold;
  background-color: #9b302a;
  font-size: 11px;
  line-height: 11px;
} 

.card-category:hover {
  background-color: #9b9b9b;
  border: 1px solid #9b9b9b;
}

.card-image .card-category {
  top: 15px;
  left: 15px;
  position: absolute;
}

.card-category a {
  color: #ffffff;
  position: relative;
  z-index: 1;
}

.card-category a:hover {
  color: #ffffff;
}

/* */

.card-image a.card-thumbnail {
  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;
}

.card-image {
  width: 100%;
  max-width: 100%;
  position: relative;
}

/* */

.card-wpdmi-image-top .card-image {
  margin-bottom: 10px;
}

/*.card-wpdmi-image-top .card-image > a.card-thumbnail {
  padding-bottom: 65.676%;
  position: relative;
  display: block;
  overflow: hidden;
}*/

.card-wpdmi-image-top .card-image img {
  position: absolute;
}

.card-image-wpdminews-medium {
  width:100%; 
}

.card-image-thumbnail {
  width:120px;
  height:120px;
  flex: 0 0 120px;
}

.card-image > a.card-thumbnail:before {
  width: 100%;
  height: 100%;
  left: 0;
  bottom: 0;
  content: '';
  position: absolute;
  z-index: 3;
}

.card-article-has-images a.card-thumbnail:before {
  background-image: url('../images/icon-photo.png');
  background-position: center;
  background-repeat: no-repeat;
}

.card-article-has-video a.card-thumbnail:before {
  background-image: url('../images/icon-video.png');
  background-position: center;
  background-repeat: no-repeat;
}

.card-wpdmi-image-left .card-article-content {
  display: flex;
  flex-direction: row;
}

.card-wpdmi-image-right .card-article-content {
  display: flex;
  flex-direction: row-reverse;
}

.card-wpdmi-image-left .card-image {
  margin-bottom: 0;
  margin-right: 20px;
  /*flex: 0 0 50%;
  max-width: 50%;*/
}

.card-wpdmi-image-right .card-image {
  margin-bottom: 0;
  margin-left: 20px;
  /*flex: 0 0 50%;
  max-width: 50%;*/
}

@media only screen and (max-width: 768px) {
  .card-wpdmi-image-left .card-article-content, .card-wpdmi-image-right .card-article-content {
    flex-direction: column;
  }
 
  .card-wpdmi-image-left .card-image {
    margin-bottom: 20px;
    margin-right: 0;
    flex: 0 0 100%;
    max-width: 100%;
  }

  .card-wpdmi-image-right .card-image {
    margin-bottom: 20px;
    margin-left: 0;
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/*.card-wpdmi-image-left .card-image-wpdminews-small {
  width:240px;
  flex:0 0 240px;
  height:135px;
  margin-bottom: 0;
  margin-right: 30px;
}

.card-wpdmi-image-right .card-image-wpdminews-small {
  width:240px;
  flex:0 0 240px;
  height:135px;
  margin-bottom: 0;
  margin-left: 30px;
}*/

/* */

.card-number {
  width: 40px;
  flex: 0 0 40px;
  font-weight: bold;
  color: #9b302a;
}

/* */

.card-number-h2 {
  font-size: 28px;
  line-height: 56px;
}

.card-number-h3 {
  font-size: 24px;
}

.card-number-h4 {
  font-size: 20px;
}

.card-number-h5 {
  font-size: 18px;
}

.card-number-h6 {
  font-size: 15px;
}

/* */

.card-text {
  position: relative;
  z-index: 9;
}

.card-wpdmi-layoutthree .card-text {
  display: flex;
}
.card-wpdmi-title-bottom-center .card-title {
  text-align: center;
}

.card-wpdmi-layoutfive .card-title {
  font-weight: normal!important;
}

.card-article-tools {
  font-size: 12px;
  line-height: 18px;
  color: #959595;
  font-weight: normal;
}

.card-wpdmi-theme-light .card-article-tools {
  color: #ffffff;
}

.card-wpdmi-image-top .card-title + .card-article-tools { /* .card-wpdmi-image-left .card-article-tools, .card-wpdmi-image-right .card-article-tools,  */
  margin-top: 5px;
}

.card-wpdmi-image-left .card-article-tools, .card-wpdmi-image-right .card-article-tools {
  margin-bottom: 10px!important;
}

.card-wpdmi-theme-light .card-date {
  text-shadow: 0 1px 1px rgb(0 0 0 / 30%);
}

.card-wpdmi-layoutthree .card-title {
  display:flex;
  flex-direction: row;
  font-weight: normal!important;
}

.card-wpdmi-layoutthree .card-title a {
  padding-left:30px;
  position: relative;
}

.card-wpdmi-layoutthree .card-title a:before {
  position: absolute;
  color: #9b302a;
  left:0;
  font-size: 18px;
  width:30px;
  text-align: center;
}

.link-highlight {
  font-weight: bold;
}

.link-highlight:before {
  content: '';
  background-image: url('../images/icon-lightning.png');
  background-size: 9px 14px;
  background-position: center;
  height: 18px;
  background-repeat: no-repeat;
}

.link-ad:before {
  content: '\20BD';
  font-size: 15px!important;
  font-weight: bold;
  /*background-image: url('../images/icon-ad.svg');
  background-size: 14px;
  background-position: center;
  height: 18px;
  background-repeat: no-repeat;*/
}

.link-images:before {
  content: '';
  background-image: url('../images/icon-photo.svg');
  background-size: auto 13px;
  background-position: center;
  height: 18px;
  background-repeat: no-repeat;
}

.link-video:before {
  content: '';
  background-image: url('../images/icon-video.svg');
  background-size: 14px;
  background-position: center;
  height: 18px;
  background-repeat: no-repeat;
}

.post-update {
  background-color: #9b302a; 
  color: #ffffff;
  padding: 2px 6px;
  font-weight: normal;
  font-style: normal;
  border-radius: 4px;
  font-size: 11px;
  vertical-align: middle;
}

.card-wpdmi-layoutthree .card-article-tools {
  flex: 0 0 auto;
  
}

.card-text > .card-article-tools {
  margin-bottom: 5px;
}

.card-wpdmi-title-bottom-center .card-toolbar {
  justify-content: center;
}

.card-article-tools .card-toolbar {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.card-article-tools .card-toolbar > div {
  margin-right: 12px;
}

.card-article-tools .card-toolbar > div:last-child {
  margin-right: 0;
}

.card-title .card-article-tools .card-date {
  font-size: 13px;
  line-height: 23px;
  margin-right: 0;
}

.card-wpdmi-layoutthree .card-date {
  font-size: 15px!important;
  line-height: 18px;
  font-weight: bold;
  color: #9b302a;
}

/* */

.card-excerpt {
  margin-top: 8px;
  font-size: 15px;
  line-height: 18px;
}

.card-title-h2 + .card-excerpt, .card-title-h2 + .card-article-tools + .card-excerpt {
  font-size: 20px;
  line-height: 24px;
}

@media only screen and (max-width: 560px) {
  .card-title-h2 + .card-excerpt, .card-title-h2 + .card-article-tools + .card-excerpt {
    font-size: 16px;
    line-height: normal;
  }
}

.card-wpdmi-theme-light .card-excerpt {
  color: #ffffff;
}

/*.card-wpdmi-layoutone .card-excerpt {
  font-size: 18px;
  line-height: 20px;
}*/

.wpdmi-card-bg-image-mobile .card-excerpt {
  display: none;
}

/* */

.card-author {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  margin-bottom: 15px;
}

.card-author-thumbnail {
  width: 100px;
  height:100px;
  margin-right: 15px;
}

.card-author-name {
  font-size: 16px;
  line-height: 24px;
  font-weight: 300;
}

@media only screen and (max-width: 1280px) {
  .card-wpdmi-bg-image.card-wpdmi-size-wpdminews-small .card-title-h5 {
    font-size: 16px;
    line-height: 20px;
  }
}

/*@media only screen and (max-width: 1024px) {*/
@media only screen and (max-width: 1149px) {
  .card-wpdmi-bg-image.card-wpdmi-size-wpdminews-small .card-title-h5 {
    font-size: 18px;
    line-height: 22px;
  }
  
  .card-wpdmi-layoutthree {
    padding-left:10px 0;
  }
  
  .wpdmi-card-bg-image-mobile .card-wpdmi-layoutone .card-thumbnail > a:after, .wpdmi-card-bg-image-mobile .card-wpdmi-layouttwo .card-thumbnail > a:after {
    display: none;
  }
  
  .wpdmi-card-bg-image-mobile .card-wpdmi-bg-image .card-article-body {
    flex-direction: row;
    padding-bottom: 0;
  }

  .wpdmi-card-bg-image-mobile .card-wpdmi-bg-image .card-article-content  {
    position: static;
    display: flex;
    flex-direction: row;
  }

  .wpdmi-card-bg-image-mobile .card-wpdmi-bg-image .card-text {
    position: static;
    bottom: auto;
    padding: 0;
    padding: 0;
  }

  .wpdmi-card-bg-image-mobile .card-wpdmi-theme-light .card-date {
    color: #959595;
    text-shadow: 0 0 0 rgb(0 0 0 / 30%)!important;
  }

  .wpdmi-card-bg-image-mobile .card-wpdmi-theme-light .card-title a {
    color: #000000;
    text-shadow: 0 0 0 rgb(0 0 0 / 30%);
  }
  
  .wpdmi-card-bg-image-mobile .card-excerpt {
    color: #000000!important;
    margin-top: 4px;
    font-size: 15px!important;
    line-height: 18px!important;
    display: block;
  }

  .wpdmi-card-bg-image-mobile .card-image {
    width:33%;
    flex: 0 0 33%;
    margin-right: 20px;
  }

  .wpdmi-card-bg-image-mobile .card-image .card-thumbnail > a {
    padding-bottom: 65.676%;
    position: relative;
    display: block;
    overflow: hidden;
  }
  
  .wpdmi-columns-4 .card-article, .archive .card-article {
    width: 50%;
  }
}

@media only screen and (max-width: 560px) {
  .card-article, .wpdmi-columns-2 .card-article, .wpdmi-columns-3 .card-article, .wpdmi-columns-4 .card-article {
    width: 100%; 
    max-width: 100%;
  }

  .wpdmi-topnews-1-4 .panel-grid-cell:first-child .card-article .card-excerpt {
    display: none;
  }
  
  .wpdmi-topnews-1-4 .panel-grid-cell:first-child .card-article .card-title-h2 {
    font-size: 18px;
    line-height: 22px;
  }
  
  .wpdmi-card-bg-image-mobile .card-wpdmi-bg-image .card-article-content  {
    flex-direction: column;
  }
  
  .wpdmi-card-bg-image-mobile .card-image {
    width:100%;
    flex: 0 0 100%;
    margin-right: 0;
    margin-bottom: 10px;
  }
  
  .wpdmi-card-bg-image-mobile .card-excerpt {
    display: none;
  }
  
  .wpdmi-columns-4 .card-article, .archive .card-article {
    width: 100%;
  }
}