:root {
  --card-radius: 12px;
  --card-shadow: 0 6px 18px rgba(0,0,0,.16);
  --ratio-w: 4;
  --ratio-h: 3;
  --title-size: 1.08rem;
  --title-size-sm: 1rem;
}

/* Imágenes globales */
img,
.jetpack-lazy-image img,
img.lazyloaded,
img.lazyload {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

/* Contenedores tipo tarjeta */
.feedzy-rss .feedzy-item .feedzy-thumbnail,
.feedzy-rss .feedzy-item .fzimg,
.wp-show-posts-image,
.wp-block-post-featured-image,
.wp-block-latest-posts__featured-image,
.wp-block-query .wp-block-post-featured-image,
.post-thumbnail,
.entry-thumbnail,
.featured-image,
.display-remote-post,
.remote-post,
.remote-entry,
.wp-block-post-featured-image a,
.wp-show-posts-image a,
.wp-block-post-featured-image figure,
.wp-show-posts-image figure {
  aspect-ratio: var(--ratio-w) / var(--ratio-h);
  width: 100%;
  overflow: hidden;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  position: relative;
  display: block;
  transition: transform .25s ease, box-shadow .25s ease;
}

/* Imágenes internas */
.feedzy-rss .feedzy-item .feedzy-thumbnail img,
.feedzy-rss .feedzy-item .fzimg img,
.wp-show-posts-image img,
.wp-block-post-featured-image img,
.wp-block-latest-posts__featured-image img,
.wp-block-query .wp-block-post-featured-image img,
.post-thumbnail img,
.entry-thumbnail img,
.featured-image img,
.wp-post-image,
.display-remote-post img,
.remote-post img,
.remote-entry img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}

/* Layouts en rejilla */
.feedzy-rss.feedzy-grid,
.wp-block-latest-posts.is-grid,
.wp-block-query .wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

/* Hover */
.feedzy-rss .feedzy-item:hover .feedzy-thumbnail,
.feedzy-rss .feedzy-item:hover .fzimg,
.wp-show-posts .wp-show-posts-entry:hover .wp-show-posts-image,
.wp-block-post:hover .wp-block-post-featured-image,
.post:hover .post-thumbnail,
.display-remote-post:hover,
.remote-post:hover,
.remote-entry:hover,
.wp-block-post-featured-image a:hover,
.wp-show-posts-image a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}

/* Títulos Feedzy */
.feedzy-rss .title {
  font-size: var(--title-size);
  line-height: 1.35;
  margin: .6rem 0 0;
}
.feedzy-rss .title a { text-decoration: none; }
.feedzy-rss .title a:hover { text-decoration: underline; }

/* Mobile */
@media (max-width: 720px) {
  :root {
    --title-size: 1rem;
    --title-size-sm: .98rem;
  }
}

/* Bloque genérico 4:3 */
.mi-bloque-gperea {
  aspect-ratio: var(--ratio-w) / var(--ratio-h);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  position: relative;
  display: block;
}

/* ===== Provincias ===== */
.gp-provincias-loop .wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.gp-provincias-loop .wp-block-post {
  background: #ffffff;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gp-provincias-loop .wp-block-post:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.08);
}

.gp-provincias-loop .wp-block-post-featured-image img {
  aspect-ratio: var(--ratio-w) / var(--ratio-h);
  object-fit: cover;
}

/* Contenido de tarjeta provincias */
.gp-provincias-loop .wp-block-post-title,
.gp-provincias-loop .wp-block-post-excerpt,
.gp-provincias-loop .wp-block-post-date,
.gp-provincias-loop .wp-block-read-more {
  padding: 0 1rem;
}

.gp-provincias-loop .wp-block-post-title {
  margin-top: 0.9rem;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.gp-provincias-loop .wp-block-post-date {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.7;
  margin-bottom: 0.25rem;
}

.gp-provincias-loop .wp-block-post-excerpt {
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

.gp-provincias-loop .wp-block-read-more {
  margin-top: auto;
  padding-bottom: 1rem;
  font-weight: 600;
}

@media (max-width: 640px) {
  .gp-provincias-loop .wp-block-post-template {
    grid-template-columns: 1fr;
  }
}

/* ===== Tarjeta Lista Principal ===== */
.gp-card-lista {
  background: #ffffff;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 1.5rem 2rem;
  margin: 1.5rem auto;
  max-width: 1100px;
}

.gp-card-lista h2,
.gp-card-lista h3,
.gp-card-lista h4 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}

.gp-card-lista ul {
  margin: 0;
  padding-left: 1.2rem;
}

.gp-card-lista li {
  margin-bottom: .35rem;
  line-height: 1.5;
}
.wp-show-posts-entry-summary {
  display: -webkit-box;
  -webkit-line-clamp: 6; /* ajusta */
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Ocultar Author Box inyectado (UWP) SOLO en entradas */
body.single-post .uwp_widget_author_box {
    display: none !important;
}