/**LAst Articles block styles**/

.hb-last_articles-block .layout-5 .text-section {
  z-index: 3;
  bottom: 100px;
  padding: 10px 20px;
}

.hb-last_articles-block .layout-5 .text-section h3,
.hb-last_articles-block .layout-10 .text-section h3 {
  color: #fff;
}

.hb-last_articles-block .layout-5::after {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
}

.hb-last_articles-block a.multimedia-class {
  display: block;
}

.hb-last_articles-block a.multimedia-class:before {
  content: "\f144";
  position: absolute;
  bottom: 5%;
  right: 5%;
  z-index: 2;
  font-family: "Font Awesome 5 Free"font-weight 900;
  color: #fff;
  opacity: 0.9;
}

.hb-last_articles-block a.multimedia-class:after {
  content: "";
  position: absolute;
  display: block;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 50%;
  background: rgba(0, 0, 0, 0) linear-gradient(to bottom, rgba(0, 0, 0, 0) 0px, #303035 100%) repeat 0 0;
  z-index: 1;
}

.hb-last_articles-block .layout-7 .text-section {
  padding: 0 10px;
}

.hb-last_articles-block .layout-7 {
  margin-bottom: 20px;
}


/**Layout 8*/

.hb-last_articles-block .layout-8 {
  flex-direction: column;
}

.hb-last_articles-block .layout-8:first-child,
.hb-last_articles-block .layout-8:nth-child(3n+4) {
  flex: 1 1 100%;
}

.hb-last_articles-block .layout-8:nth-child(3n+2),
.hb-last_articles-block .layout-8:nth-child(3n+3) {
  flex: 0 1 48%;

}

.hb-last_articles-block .layout-8:nth-child(3n+2) {
  margin-right: 4%;
}

.hb-last_articles-block .layout-8 .text-section {
  padding: 10px 20px 20px 10px;
}

.hb-last_articles-block .layout-8:first-child .text-section,
.hb-last_articles-block .layout-8:nth-child(3n+4) .text-section {
  padding-right: 20px;
  flex: 1 0 50%;
  margin-bottom: 0 !important;
  padding-bottom: 20px;
  padding-left: 10px;
}

.hb-last_articles-block .layout-8:first-child .post-image a,
.hb-last_articles-block .layout-8:nth-child(3n+4) .post-image a,
.hb-last_articles-block .layout-8:first-child .post-image img,
.hb-last_articles-block .layout-8:nth-child(3n+4) .post-image img {
  height: 100%;
}

.hb-last_articles-block .layout-8:first-child .post-image img,
.hb-last_articles-block .layout-8:nth-child(3n+4) .post-image img {
  object-fit: cover;
  max-height: 400px;
}

.hb-last_articles-block .layout-8 .text-section {
  order: 1;
}



.hb-last_articles-block .layout-8:first-child .text-section,
.hb-last_articles-block .layout-8:nth-child(3n+4) .text-section {
  display: flex;
  flex-direction: column;
}


.hb-last_articles-block .layout-8:first-child .text-section .categoria,
.hb-last_articles-block .layout-8:nth-child(3n+4) .text-section .categoria {
  order: 1;
}

.hb-last_articles-block .layout-8:first-child .text-section a,
.hb-last_articles-block .layout-8:nth-child(3n+4) .text-section a {
  order: 2;
}

.hb-last_articles-block .layout-8:first-child .text-section .subtitulo,
.hb-last_articles-block .layout-8:nth-child(3n+4) .text-section .subtitulo {
  order: 3;
}

.hb-last_articles-block .layout-8:first-child .text-section .autor,
.hb-last_articles-block .layout-8:nth-child(3n+4) .text-section .autor {
  order: 4;
}

.hb-last_articles-block .layout-8:first-child .text-section .excerpt,
.hb-last_articles-block .layout-8:nth-child(3n+4) .text-section .excerpt {
  order: 5;
}

@media (min-width: 991px) {

  .hb-last_articles-block .layout-8:nth-child(3n+2) .text-section,
  .hb-last_articles-block .layout-8:nth-child(3n+3) .text-section {
    order: 1;
  }

  .hb-last_articles-block .layout-8:first-child,
  .hb-last_articles-block .layout-8:nth-child(3n+4) {
    flex-direction: row;
  }

  .hb-last_articles-block .layout-8:nth-child(3n+2) .post-image,
  .hb-last_articles-block .layout-8:nth-child(3n+3) .post-image {
    height: 250px;
  }

  .hb-last_articles-block .layout-8:nth-child(3n+2) .post-image img,
  .hb-last_articles-block .layout-8:nth-child(3n+3) .post-image img {
    object-fit: cover;
    height: 250px;
  }
}



/**Layout 9*/
.hb-last_articles-block .layout-9 .text-section {
  z-index: 3;
  padding: 10px 20px;
}

.hb-last_articles-block .layout-9 .text-section h3 {
  color: #fff;
}

.hb-last_articles-block .layout-9 .post-image a.destacado {
  display: block;
}

.hb-last_articles-block .layout-9 .post-image a.titulo::after {
  background-color: rgba(0, 0, 0, 0.5);
  content: "";
  width: 100%;
  height: 100%;
  z-index: 2;
  position: absolute;
  top: 0;
  display: block;
  left: 0;
}

.hb-last_articles-block .layout-9 .post-image {
  clip-path: polygon(0 0, 100% 0, 100% 71%, 0 85%);
}

.hb-last_articles-block .layout-9 .categoria-destacado {
  right: 20px;
  position: absolute;
  bottom: 70px;
}

.hb-last_articles-block .layout-9 .subtitulo-post {
  padding: 15px 0 10px 0;
}

.hb-last_articles-block .layout-9 .contenido-para-fondo {
  bottom: 5px;
  padding-right: 15px;
  padding-left: 15px;
  position: relative;
}


.hb-last_articles-block .layout-9 .contenido-para-fondo .boton-escuchar {
  border: 1px solid black;
  border-radius: 50px;
  width: fit-content;
  padding: 8px 24px;
  position: absolute;
  right: 15px;
  bottom: 40px;
}


.hb-last_articles-block .layout-9 .escucha-a::before,
.hb-last_articles-block .layout-9 .subtitulo-post::before {
  position: absolute;
  content: "";
  border-top: 4px solid black;
  width: 50%;
  top: 0;
}

.hb-last_articles-block .layout-9 .escucha-a,
.hb-last_articles-block .layout-9 .subtitulo-post {
  position: relative;
  width: fit-content;
  padding-top: 15px;
}

/**Layout 10 SIVARIOUS**/
.hb-last_articles-block .layout-10 .text-section {
  z-index: 3;
  position: relative;
}


.hb-last_articles-block .layout-10 .post-image img {
  aspect-ratio: 16/9;
  min-height: 280px;
  object-fit: contain;
}

.hb-last_articles-block .layout-10 .post-image::after,
.hb-last_articles-block .layout-5 .post-image::after {
  content: '';
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  position: absolute;
  left: 0;
  top: 0;
}

@media (max-width: 991px) {
  .hb-block.hb-single-post-block.my-3.contenedor-borde.d-flex.flex-column.layout-5.position-relative {
    display: none !important;
  }
}

@media (min-width: 991px) {
  .article.dos-columnas {
    flex: 0 1 46%;
  }

  .article.dos-columnas:nth-child(2n + 1) {
    margin-right: 2%;
  }

  .article.dos-columnas:nth-child(2n + 2) {
    margin-left: 2%;
  }

  .article.dos-columnas .post-image img {
    height: 212px;
    object-fit: cover;
  }

  /**Para la sección sin sidebar**/

  .hb-seccion-sin-sidebar .dos-columnas {
    flex: 0 1 48%;
  }

  .hb-seccion-sin-sidebar .dos-columnas .post-image img {
    height: 280px;
  }

  .tres-columnas {
    flex: 0 1 31%;
  }

  .article.tres-columnas .post-image img {
    height: 143px;
    object-fit: cover;
  }

  .article.tres-columnas:nth-child(3n + 2) {
    margin-left: 3.5%;
    margin-right: 3.5%;
  }

  .cuatro-columnas {
    flex: 0 1 23%;
    margin-right: 2.666%;
  }

  .cuatro-columnas:nth-child(4n + 4) {
    margin-right: 0;
  }

  .article.cuatro-columnas .post-image img {
    object-fit: cover;
    height: 106px;
  }

  .hb-last_articles-block .layout-7 {
    margin-bottom: 15px;
  }

  .hb-last_articles-block .layout-7 .text-section {
    padding-left: 10px;
    padding-top: 10px;
    padding-right: 5px;
  }

  .hb-last_articles-block .layout-7:nth-child(4n + 2),
  .hb-last_articles-block .layout-7:nth-child(3n + 3) {
    flex: 1 1 37%;
    display: flex;
    flex-direction: column;
  }

  .hb-last_articles-block .layout-7:nth-child(4n + 2) .text-section,
  .hb-last_articles-block .layout-7:nth-child(3n + 3) .text-section {
    order: 1;
  }

  .hb-last_articles-block .layout-7:nth-child(odd) {
    margin-right: 2%;
  }

  .hb-last_articles-block .layout-7:nth-child(4n + 1),
  .hb-last_articles-block .layout-7:nth-child(3n + 4) {
    flex: 1 1 57%;
    display: flex;
  }

  .hb-last_articles-block .layout-7:nth-child(4n + 1) .post-image img,
  .hb-last_articles-block .layout-7:nth-child(3n + 4) .post-image img {
    height: 100%;
    object-fit: cover;
  }

  .hb-last_articles-block .layout-7:nth-child(3n + 4) .text-section {
    order: 1;
  }
}