/* Culebra · DESTAKDO fotográfico. La fotografía ocupa toda la superficie.
 * Sin marcos internos, colchones de color, zoom ni hover en la imagen.
 * Excepciones: cabeceras a sangre, logos, iconos, gráficos e imágenes transparentes.
 * Preserva la proporción natural, la cara completa y los controles de ampliación. */
body.pg2027-body{
 --pg27-photo-shadow:0 3px 6px rgba(54,45,37,.035),0 19px 40px rgba(54,45,37,.085);
}
/* Fotografía suelta editorial y contenido interior: sombra SOBRE el rectángulo real. */
body.pg2027-body :is(.pg27-editorial-body,.pg-interior-layout,.pg27-sector-body,.pg-workshops-section)
 :is(figure.wp-block-image,figure.pg27-clean-figure,figure.pg27-curated-figure,figure.pg27-sector-photo):not(.pg27-editorial-cover):not(.pg27-sector-visual):not(.pg-lead-hero-image):not(.pg27-assistant-real-capture){
 display:block;
 width:100%;max-width:100%;min-width:0;
 margin-inline:0;
 padding:0;border:0;background:transparent;
}
body.pg2027-body :is(.pg27-editorial-body,.pg-interior-layout,.pg27-sector-body,.pg-workshops-section)
 :is(figure.wp-block-image,figure.pg27-clean-figure,figure.pg27-curated-figure,figure.pg27-sector-photo):not(.pg27-editorial-cover):not(.pg27-sector-visual)
 > :is(img,a img,button img){
 width:100%;max-width:100%;height:auto;
 aspect-ratio:auto;object-fit:contain;
 object-position:center;display:block;
 border-radius:8px;
 box-shadow:var(--pg27-photo-shadow);
 background:transparent;
 margin:0;padding:0;
}
/* En Gutenberg, la imagen enlazada también recibe el mismo acabado sin marcos. */
body.pg2027-body :is(.pg27-editorial-body,.pg-interior-layout,.pg27-sector-body,.pg-workshops-section)
 figure.wp-block-image:not(:has(img[src$=".svg"]))>a{
 display:block;width:100%;margin:0;padding:0;background:transparent;
 border-radius:8px;overflow:hidden;
 box-shadow:var(--pg27-photo-shadow);
}
body.pg2027-body :is(.pg27-editorial-body,.pg-interior-layout,.pg27-sector-body,.pg-workshops-section)
 figure.wp-block-image>a>img{
 display:block;width:100%;height:auto;max-width:100%;
 aspect-ratio:auto;object-fit:contain;object-position:center;
 margin:0;padding:0;background:transparent;
 border-radius:0;box-shadow:none!important;
}
/* Figuras con control de ampliación: el efecto corresponde al control de imagen. */
body.pg2027-body .pg27-clean-figure__zoom{
 background:transparent!important;border:0!important;padding:0!important;
 border-radius:8px;overflow:hidden;
 box-shadow:var(--pg27-photo-shadow);
}
body.pg2027-body .pg27-clean-figure__zoom img{box-shadow:none!important}
/* Si todo el bloque imagen+texto ya es destakdo, eliminar la segunda sombra
   del botón de zoom. Una sola sombra en el contorno de la tarjeta. */
body.pg2027-body :is(.pg27-clean-pair,.pg27-clean-photo-card) .pg27-clean-figure__zoom{
 box-shadow:none!important;
}
body.pg2027-body .pg27-clean-figure figcaption{
 padding-top:8px;margin:0;background:transparent;
}
/* Módulos destakdos que YA envuelven foto+texto: no duplicar sombra en cada foto. */
body.pg2027-body :is(.pg27-clean-pair,.pg27-clean-photo-card,.pg-lead-option,.pg-contact-person,.pg-product-card,.pg27-blog-card,.pg-workshops-card,.pg-artisan)
 :is(.pg27-clean-figure,.pg-contact-person-photo,.pg-story-image,.pg-product-image,.pg-lead-option>a){
 padding:0!important;margin-inline:0;
 border:0;background:transparent;
}
body.pg2027-body :is(.pg27-clean-pair,.pg27-clean-photo-card,.pg-lead-option,.pg-contact-person,.pg-product-card,.pg27-blog-card,.pg-workshops-card,.pg-artisan) img{
 box-shadow:none!important;
}
/* En las parejas y microhistorias, quitar el hueco interior de color;
   la imagen utiliza todo su ancho y su ALTO natural. */
body.pg2027-body .pg-blog-post .pg27-clean-article.pg27-clean-auto :is(.pg27-clean-photo-card,.pg27-clean-pair) .pg27-clean-figure img{
 display:block;width:100%!important;max-width:100%;
 height:auto!important;max-height:none!important;
 aspect-ratio:auto!important;object-fit:contain!important;
 object-position:center;
 margin:0!important;padding:0!important;
 background:transparent!important;
}
body.pg2027-body .pg-blog-post .pg27-clean-article.pg27-clean-auto .pg27-clean-photo-card>.pg27-clean-figure{
 width:100%;margin-bottom:14px;
}
/* Regla editorial de seguridad para TODOS los artículos normalizados:
   no ampliar fotos/iconos a tamaño de cartel. Conserva su proporción
   natural y deja la lectura al texto; no afecta las imágenes hero. */
body.pg2027-body .pg-blog-post .pg27-clean-article.pg27-clean-auto .pg27-clean-pair>.pg27-clean-figure{
 max-width:380px!important;width:min(100%,380px)!important;
 justify-self:start!important;align-self:start!important;
}
body.pg2027-body .pg-blog-post .pg27-clean-article.pg27-clean-auto .pg27-clean-pair--brief>.pg27-clean-figure{
 max-width:290px!important;width:min(100%,290px)!important;
}
body.pg2027-body .pg-blog-post .pg27-clean-article.pg27-clean-auto .pg27-clean-pair>.pg27-clean-figure img{
 max-height:380px!important;object-fit:contain!important;
}
body.pg2027-body .pg-blog-post .pg27-clean-article.pg27-clean-auto .pg27-clean-photo-card>.pg27-clean-figure{
 max-width:380px!important;width:min(100%,380px)!important;
 align-self:flex-start;
}
body.pg2027-body .pg-blog-post .pg27-clean-article.pg27-clean-auto .pg27-clean-photo-card>.pg27-clean-figure img{
 max-height:310px!important;object-fit:contain!important;
}
body.pg2027-body .pg-blog-post .pg27-clean-article.pg27-clean-auto .pg27-clean-gallery>.pg27-clean-figure img{
 max-height:265px!important;aspect-ratio:auto!important;
 object-fit:contain!important;
}
body.pg2027-body .pg-blog-post .pg27-souvenir-reflow .pg27-souvenir-intro-pair>.pg27-clean-figure{
 max-width:260px!important;width:min(100%,260px)!important;
}
@media(max-width:760px){
 body.pg2027-body .pg-blog-post .pg27-clean-article.pg27-clean-auto .pg27-clean-pair>.pg27-clean-figure,
 body.pg2027-body .pg-blog-post .pg27-clean-article.pg27-clean-auto .pg27-clean-photo-card>.pg27-clean-figure{
  max-width:330px!important;width:min(100%,330px)!important;
 }
 body.pg2027-body .pg-blog-post .pg27-souvenir-reflow .pg27-souvenir-intro-pair>.pg27-clean-figure{
  max-width:240px!important;width:min(100%,240px)!important;
 }
}
/* Regla flexible de composición editorial: la extensión del relato decide
   la presencia de la fotografía. No hay carteles junto a texto breve.
   En bloques con >=700 caracteres, foto mayor cuando tiene sentido.
   Mantener proporciones naturales, sin crop y sin cambiar originales. */
@media(min-width:761px){
 body.pg2027-body .pg-blog-post .pg27-clean-article.pg27-clean-auto .pg27-clean-pair--long>.pg27-clean-figure{
  width:min(100%,510px)!important;max-width:510px!important;
 }
 body.pg2027-body .pg-blog-post .pg27-clean-article.pg27-clean-auto .pg27-clean-pair--long>.pg27-clean-figure img{
  max-height:480px!important;
 }
}
@media(max-width:760px){
 body.pg2027-body .pg-blog-post .pg27-clean-article.pg27-clean-auto .pg27-clean-pair--long>.pg27-clean-figure{
  width:min(100%,430px)!important;max-width:430px!important;
 }
 body.pg2027-body .pg-blog-post .pg27-clean-article.pg27-clean-auto .pg27-clean-pair--long>.pg27-clean-figure img{
  max-height:430px!important;
 }
}
/* Tarjetas con recorte cuadrado heredado: altura fotográfica real, sin barras. */
body.pg2027-body :is(.pg27-blog-card .pg-story-image,.pg-workshops-card .pg-workshops-card-image){
 aspect-ratio:auto;
 height:auto;
}
body.pg2027-body .pg27-blog-card .pg-story-image img{
 width:100%;height:auto;aspect-ratio:auto;object-fit:contain;
 transform:none!important;transition:none!important;
}
/* Una imagen no es un control que cambia al pasar el ratón. */
body.pg2027-body :is(.pg27-editorial-body,.pg-interior-layout,.pg27-sector-body,.pg27-blog-card)
 img:not(.pg-site-header img){
 transform:none!important;transition:none!important;
}
/* Cabeceras a sangre y fotos con sujetos humanos siguen su contrato propio. */
body.pg2027-body :is(.pg27-sector-visual,.pg27-editorial-cover,.pg-lead-hero-image,.pg-contact-person-photo) img{
 box-shadow:none!important;border-radius:0!important;
}
/* Iconos, mapas, diagramas, logos y medios PNG/SVG transparentes no se convierten
   a una tarjeta fotográfica. */
body.pg2027-body :is(.wp-block-image:has(img[src$=".svg"]),.wp-block-image:has(img[src*=".png"]),.wp-block-image:has(img[class*="logo"]),.wp-block-image:has(img[class*="icon"]))
 img{box-shadow:none!important;border-radius:0!important}
@media(prefers-reduced-motion:reduce){
 body.pg2027-body :is(.pg27-blog-card,.pg-workshops-card) img{transition:none!important}
}
