/* Estilos exclusivos de la ficha del San Juan Nepomuceno. */
.nepomuceno-subtitle{margin-bottom:22px}
.nepomuceno-story{max-width:760px;margin:0 auto}
.nepomuceno-story section{padding:32px 0;border-top:1px solid var(--line)}
.nepomuceno-story h2{font-size:clamp(1.7rem,3vw,2.25rem);margin-bottom:24px}
.nepomuceno-story p{font-size:1rem;line-height:1.85}
.nepomuceno-gallery{padding-top:48px;margin-top:24px;border-top:1px solid var(--line)}
.nepomuceno-gallery h2{margin-bottom:18px}
.nepomuceno-photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;margin-top:30px}
.nepomuceno-photo-grid figure{min-width:0;background:var(--white);border:1px solid var(--line)}
.nepomuceno-photo-grid a{display:block;background:#e5ded0}
.nepomuceno-photo-grid img{width:100%;height:260px;object-fit:contain}
.nepomuceno-photo-grid figcaption{padding:14px 16px;overflow-wrap:anywhere}
.photo-number{color:#806338;font-weight:bold;margin-right:8px}
@media(max-width:1050px){.nepomuceno-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.nepomuceno-story section{padding:26px 0}.nepomuceno-photo-grid{grid-template-columns:1fr;gap:22px}.nepomuceno-photo-grid img{height:290px}.nepomuceno-gallery{padding-top:30px}}

/* Historia y tabla del documento original del Nepomuceno. */
.nepomuceno-history-context{display:grid;grid-template-columns:minmax(0,1fr) 242px;gap:32px;align-items:start}
.nepomuceno-churruca img{width:242px;height:auto;background:var(--white)}
.nepomuceno-churruca figcaption{padding-top:12px}
.nepomuceno-data-table{min-width:600px}
.nepomuceno-data-table th,.nepomuceno-data-table td{padding:12px 14px;white-space:pre-wrap;min-width:0;vertical-align:top}
.nepomuceno-data-table th{font-weight:400}
.nepomuceno-data-table .document-title th{text-align:center;font:1.5rem var(--title);background:var(--navy);color:var(--paper)}
.nepomuceno-data-table .document-subtitle th{text-align:center;font-weight:700}
.nepomuceno-data-table .document-groups th,.nepomuceno-data-table .document-group{font-weight:700;background:var(--navy);color:var(--paper)}
.nepomuceno-data-table .document-spacer td{height:14px;padding:0;border:0}
@media(max-width:650px){.nepomuceno-history-context{grid-template-columns:1fr;gap:24px}.nepomuceno-churruca{max-width:242px;margin:auto}}
