/**
* 2025 Danzai Software
*
* NOTICE OF LICENSE
*
* This source file is subject to the Commercial License
* you can't distribute, modify or sell this code
*
* DISCLAIMER
*
* Do not edit or add to this file
* If you need help please contact contacto@danzai.es
*
*  @author    Danzai Software <contacto@danzai.es>
*  @copyright 2025 Danzai Software
*  @license   https://danzai.es  Commercial license
*/

/* Estilos para el hook de la página de inicio. */
.dsblog-home {
  margin-top: 10rem;
}
.dsblog-home-title {
  font-size: 2.188rem;
  font-weight: 500;;
}
.dsblog-home-description {
  font-size: 1.2rem;;
}
.dsblog-home-posts {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8rem;
}
.dsblog-home-posts-post {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 400px;
  max-width: 100%;
}
.dsblog-home-posts-post img {
  width: 100%;
  max-width: 100%;
  height: 300px;
  object-fit: cover;
}
.dsblog-home-posts-post-content {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  align-items: start;
}
.dsblog-home-posts-post-content-title {
  margin: 0;
}
.dsblog-home-posts-post-content-description {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}
.dsblog-home-footer {
  display: flex;
  justify-content: end;
  margin-top: 5rem;
  padding: 2rem;
}
.dsblog-home-footer a:hover {
  text-decoration: underline;
}

/* Estilos para la página de todas las entradas del blog. */
.dsblog-posts {
  display: flex;
  flex-direction: column;
  gap: 8rem;
}
.dsblog-posts-header {
  display: flex;
  justify-content: center;
}
.dsblog-posts-items {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.dsblog-posts-items-item {
  width: 400px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.dsblog-posts-items-item img {
  width: 100%;
  height: 300px;
  max-width: 100%;
  object-fit: cover;
}
.dsblog-posts-items-item-content {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  align-items: start;
}
.dsblog-posts-items-item-content-title {
  margin: 0;
}
.dsblog-posts-items-item-content-description {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}

/* Estilos para la página de la entrada del blog. */
.dsblog-post {
  display: flex;
  flex-direction: column;
  gap: 8rem;
}
.dsblog-post-header {
  display: flex;
  justify-content: center;
}
.dsblog-post-item {
  display: flex;
  align-items: start;
  gap: 5rem;
}
.dsblog-post-item img {
  max-width: 100%;
}
.dsblog-post-item-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.dsblog-post-item-content-date {
  color: #5b5b5b;
}
.dsblog-post-footer {
  display: flex;
}
.dsblog-post-footer a:hover {
  text-decoration: underline;
}

/* Estilos para pantallas pequeñas. */
@media only screen and (max-width: 1024px) {
  /* Estilos para el hook de la página de inicio. */
  .dsblog-home-posts {
    flex-direction: column;
    align-items: center;
  }

  /* Estilos para la página de la entrada del blog. */
  .dsblog-post-item {
    flex-direction: column;
    align-items: center;
  }
  .dsblog-post-item img{
    width: 100%;
  }
  .dsblog-post-footer {
    justify-content: center;
  }
}
