/* Shared Caption Grid: preserves separate source images while presenting one
   editorial visual statement and one caption for the entire group. */
.cnv-post-content .cnv-gallery-type--shared-caption{display:block!important;width:90%!important;max-width:90%!important;margin:var(--cnv-media-gap,24px) auto!important;padding:0!important;overflow:hidden;border-radius:var(--cnv-radius-sm);background:#f3f5f6}
.cnv-post-content .cnv-gallery-shared-caption__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;background:#fff}
.cnv-post-content .cnv-gallery-shared-caption--count-2 .cnv-gallery-shared-caption__grid,.cnv-post-content .cnv-gallery-shared-caption--count-4 .cnv-gallery-shared-caption__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.cnv-post-content .cnv-gallery-shared-caption__grid .gallery-item{min-width:0;margin:0!important;aspect-ratio:16/10;overflow:hidden;background:#e8ecef}
.cnv-post-content .cnv-gallery-shared-caption__grid .gallery-icon,.cnv-post-content .cnv-gallery-shared-caption__grid .gallery-icon a{display:block!important;width:100%!important;height:100%!important}
.cnv-post-content .cnv-gallery-shared-caption__grid .gallery-icon img{display:block;width:100%!important;height:100%!important;object-fit:cover!important;transition:transform var(--cnv-motion,0.2s) ease-out}
.cnv-post-content .cnv-gallery-shared-caption__grid .gallery-icon a{cursor:zoom-in}
.cnv-post-content .cnv-gallery-shared-caption__grid .gallery-icon a:hover img{transform:scale(1.02)}
.cnv-post-content .cnv-gallery-shared-caption__caption{margin:0;padding:13px 18px 15px;border-top:1px solid var(--cnv-line,#e1e5e9);background:#fff;color:var(--cnv-muted,#6b7280);font-size:14px;font-style:italic;line-height:1.55;text-align:center}
@media(max-width:767px){.cnv-post-content .cnv-gallery-type--shared-caption{width:100%!important;max-width:100%!important}.cnv-post-content .cnv-gallery-shared-caption__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:2px}.cnv-post-content .cnv-gallery-shared-caption__caption{padding:11px 14px 13px;font-size:13.5px;line-height:1.5}}
@media(prefers-reduced-motion:reduce){.cnv-post-content .cnv-gallery-shared-caption__grid .gallery-icon img{transition:none!important}.cnv-post-content .cnv-gallery-shared-caption__grid .gallery-icon a:hover img{transform:none}}
