.wvn-posts-grid-wrap {
  width: 100%;
}

.wvn-posts-year-filter-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  width:40%;
  border-radius:10px;
  border:2px solid #c60316;
  padding:10px;
  text-transform:uppercase;
  background: #efeae5;
}

.wvn-posts-year-filter-label {
  font-weight: 700;
  color: #242424;
}

.wvn-posts-year-filter {
  min-width: 180px;
  padding: 10px 12px;
  background:#ffffff;
}

.wvn-posts-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.wvn-post-card {
  display: flex;
  width: 100%;
  max-height: 300px;
  min-height: 300px;
  height: 300px;
  overflow: hidden;
  background: #ffffff !important;
  border-radius: 0 !important;
  border: 0;
}

.wvn-post-thumb {
  display: block;
  width: 40%;
  min-width: 40%;
  height: 100%;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  background-color: rgba(0,0,0,0.04);
  border-radius: 0 !important;
  overflow: hidden;
}

.wvn-post-thumb-placeholder {
  display: block;
  width: 100%;
  height: 100%;
}

.wvn-post-body {
  width: 60%;
  min-width: 0;
  padding: 28px 30px;
  background: #ffffff !important;
  border-radius: 0 !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.wvn-post-title {
  margin: 0 0 8px 0;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wvn-post-title a {
  text-decoration: none;
  font-weight: 700;
}

.wvn-post-date {
  font-size: 14px;
  margin-bottom: 14px;
  text-transform: capitalize;
  font-weight: 700;
  color: #242424;
  opacity: 1;
  line-height: 1.2;
}

.wvn-post-excerpt {
  font-size: 15px;
  line-height: 1.55;
  color: #242424;
  opacity: 1;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wvn-post-button-wrap {
  margin-top: auto;
  padding-top: 18px;
}

.wvn-read-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 12px 24px;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  background: #242424;
  color: #ffffff !important;
  transition: opacity .2s ease;
}

.wvn-read-more-btn:hover {
  opacity: .85;
}

.wvn-posts-grid-actions {
  /*display: flex;*/
  justify-content: center;
  align-items: center;
  min-height: 54px;
  margin-top: 24px;
}

.wvn-load-more-btn {
  cursor: pointer;
  border: 0;
  /*border-radius: 999px;*/
  padding: 12px 28px;
  /*font-weight: 700;*/
  line-height: 1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color:#ffffff !important;
  background:#c60316;
}

.wvn-load-more-btn[disabled] {
  opacity: .55;
  cursor: wait;
}

.wvn-posts-grid-loader {
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.wvn-posts-grid-loader[hidden] {
  display: none !important;
}

.wvn-posts-grid-loader:not([hidden]) {
  display: flex !important;
}

.wvn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0,0,0,0.15);
  border-top-color: rgba(0,0,0,0.55);
  border-radius: 50%;
  animation: wvnspin 0.8s linear infinite;
}

@keyframes wvnspin {
  to { transform: rotate(360deg); }
}

.wvn-posts-grid-wrap[data-has-more="0"] .wvn-posts-grid-actions > button.wvn-load-more-btn,
.wvn-posts-grid-wrap[data-has-more="0"] .wvn-posts-grid-loader {
  display: none !important;
}

@media (max-width: 760px) {
  .wvn-posts-year-filter-wrap {
    align-items: flex-start;
    flex-direction: column;
  }

  .wvn-post-card {
    flex-direction: column;
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .wvn-post-thumb {
    width: 100%;
    min-width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .wvn-post-body {
    width: 100%;
    padding: 20px;
  }
}


/* Estado de carga al filtrar por año o cargar más */
.wvn-posts-grid-wrap {
  position: relative;
}

.wvn-posts-grid-results {
  position: relative;
}

.wvn-posts-grid-wrap.wvn-is-loading .wvn-posts-grid-results {
  opacity: .45;
  pointer-events: none;
}

.wvn-posts-grid-wrap.wvn-is-loading .wvn-posts-grid-results::after {
  content: attr(data-loading-text);
}

.wvn-posts-grid-wrap.wvn-is-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.62);
  z-index: 8;
  pointer-events: none;
}

.wvn-posts-grid-wrap.wvn-is-loading::after {
  content: attr(data-loading-text);
  position: absolute;
  top: 120px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9;
  background: #ffffff;
  color: #242424;
  padding: 12px 22px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
