/*
Theme Name: Kadence Child
Theme URI: https://www.kadencewp.com/kadence-theme/
Template: kadence
Author: Kadence WP
Author URI: https://www.kadencewp.com/
Description: Kadence Theme is a lightweight yet full featured WordPress theme for creating beautiful fast loading and accessible websites, easier than ever. It features an easy to use drag and drop header and footer builder to build any type of header in minutes. It features a full library of gorgeous starter templates that are easy to modify with our intelligent global font and color controls. With extensive integration with the most popular 3rd party plugins, you can quickly build impressive ecommerce websites, course websites, business websites, and more.
Tags: translation-ready,two-columns,right-sidebar,left-sidebar,footer-widgets,blog,custom-logo,custom-background,custom-menu,rtl-language-support,editor-style,threaded-comments,custom-colors,featured-images,wide-blocks,full-width-template,theme-options,e-commerce
Version: 1.2.25.1757877374
Updated: 2025-09-14 13:16:14

*/

/* Forzar captions a la izquierda en imágenes, galerías y carruseles */
.entry-content figure.wp-block-image figcaption,
.wp-block-image figcaption,
.wp-caption .wp-caption-text,
.wp-element-caption,
.article-post-thumbnail-caption,
.wp-block-image.aligncenter figcaption,
.kadence-blocks-gallery-item__caption {
  text-align: left !important;
  margin-top: 0.5em;
}

/* Línea 1: Caption (descripción) */
.article-post-thumbnail-caption .caption-text,
.wp-caption-text .caption-text,
.wp-element-caption .caption-text,
.kadence-blocks-gallery-item__caption .caption-text {
  display: block;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 0.95em;
  color: #222;
  line-height: 1.4;
  margin: 0 0 0.2em 0;
}

/* Línea 2: Crédito (desde Description) */
.article-post-thumbnail-caption .photo-credit,
.wp-caption-text .photo-credit,
.wp-element-caption .photo-credit,
.kadence-blocks-gallery-item__caption .photo-credit {
  display: block;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.75em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #666;
  margin: 0;
}

/* Kadence Gallery: hacer blanco el fondo del caption en "bottom" y "bottom-hover" */
.kb-gallery-caption-style-bottom-hover .kadence-blocks-gallery-item__caption,
.kb-gallery-caption-style-bottom .kadence-blocks-gallery-item__caption {
  background: rgba(255, 255, 255, 0.70) !important; /* blanco casi sólido */
  text-shadow: none !important;                      /* por si el tema aplica sombra de texto */
}

/* (Opcional) si notas que queda detrás del gradiente, súbelo de nivel */
.kb-gallery-caption-style-bottom-hover .kadence-blocks-gallery-item__caption,
.kb-gallery-caption-style-bottom .kadence-blocks-gallery-item__caption {
  position: absolute; left: 0; right: 0; bottom: 0;  /* Kadence ya lo hace, aquí lo reforzamos */
  z-index: 3;                                        /* encima del overlay */
}

/* Compactar el alto del rectángulo blanco del caption en Kadence */
.kb-gallery-caption-style-bottom-hover .kadence-blocks-gallery-item__caption,
.kb-gallery-caption-style-bottom .kadence-blocks-gallery-item__caption {
  padding-block: clamp(6px, 0.8vw, 10px) !important; /* arriba/abajo más pequeño */
  padding-inline: clamp(10px, 1.2vw, 14px) !important; /* lados */
  height: auto !important;
  min-height: 0 !important;
}

/* Reducir un poco el “aire” entre líneas */
.kadence-blocks-gallery-item__caption .caption-text {
  margin-bottom: 0.15em !important;
  line-height: 1.3 !important;
}
.kadence-blocks-gallery-item__caption .photo-credit {
  line-height: 1.2 !important;
}

