/* Magick V6.37.4 — nine requested editorial layout corrections only.
   Linked AFTER v6371.css and v6373-layout.css to override older gallery defaults.
   All rules are Magick-only; desktop layouts fold gracefully at narrow widths. */

/* 1: Psalm 23 text + heading are truly centered, including inherited article styles. */
.vc-magick .mg-article .mg-psalm-centered{display:block;width:100%;max-width:none;margin:3rem 0;padding:2.5rem clamp(14px,4vw,54px);text-align:center;background:#eff3eb;border-block:1px solid #d4dfd7}
.vc-magick .mg-article .mg-psalm-centered h4{display:block;text-align:center;margin:0 auto 1.55rem;color:#203c42;font-size:clamp(1.3rem,2.2vw,2rem);line-height:1.3}
.vc-magick .mg-article .mg-psalm-centered h4 span{display:block;margin-top:.45rem;font-size:.72rem;letter-spacing:.13em;text-transform:uppercase;color:#55765d}
.vc-magick .mg-article .mg-psalm-centered p{display:block;width:100%;max-width:1060px;text-align:center;margin:0 auto 1.25rem;line-height:1.85;overflow-wrap:normal}
.vc-magick .mg-article .mg-psalm-centered p:last-child{margin-bottom:0}

/* 2, 3, 5, 9: videos span the actual article column, not iframe defaults. */
.vc-magick .mg-article .mg-youtube-grid{width:100%;min-width:0}
.vc-magick .mg-article .mg-youtube-full{display:grid;grid-template-columns:minmax(0,1fr);gap:0}
.vc-magick .mg-article .mg-youtube-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.vc-magick .mg-article .mg-youtube-full .mg-yt,.vc-magick .mg-article .mg-youtube-pair .mg-yt{width:100%;max-width:none;min-width:0}
.vc-magick .mg-article .mg-youtube-full .mg-yt-frame,.vc-magick .mg-article .mg-youtube-pair .mg-yt-frame{position:relative;display:block;width:100%;height:auto;aspect-ratio:16/9}
.vc-magick .mg-article .mg-youtube-full iframe,.vc-magick .mg-article .mg-youtube-pair iframe{position:absolute;inset:0;display:block;width:100%;height:100%;border:0}

/* 4: PDF | photo | PDF; keep PDFs usable and download controls visible. */
.vc-magick .mg-article .mg-document-triptych{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.12fr) minmax(0,1fr);gap:18px;align-items:stretch;width:100%;margin:2rem 0 3rem}
.vc-magick .mg-article .mg-document-triptych>.mg-pdf{margin:0;min-width:0;display:flex;flex-direction:column;padding:12px}
.vc-magick .mg-article .mg-document-triptych>.mg-pdf iframe{display:block;width:100%;flex:1 1 400px;min-height:400px;max-height:660px;border:1px solid #d4dfd7}
.vc-magick .mg-article .mg-document-triptych>.mg-photo-grid{display:flex;align-items:center;justify-content:center;min-width:0;max-width:none;width:100%;margin:0}
.vc-magick .mg-article .mg-document-triptych>.mg-photo-grid>.mg-picture{display:flex;align-items:center;justify-content:center;width:100%;height:100%}
.vc-magick .mg-article .mg-document-triptych>.mg-photo-grid img{height:auto;width:auto;max-height:660px;max-width:100%;object-fit:contain}

/* 6: posters flank the Temperance card, in one equal-height desktop row. */
.vc-magick .mg-article .mg-temperance-trio{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:18px;width:100%}
.vc-magick .mg-article .mg-temperance-trio>.mg-picture{display:flex;align-items:center;justify-content:center;min-width:0;padding:10px;background:#fffefa}
.vc-magick .mg-article .mg-temperance-trio img{display:block;width:auto;height:auto;max-width:100%;max-height:660px;object-fit:contain}

/* 7: Magician/Fool illustration centered under paragraph, no empty second column. */
.vc-magick .mg-article .mg-magician-center{display:flex;justify-content:center;align-items:center;width:100%;max-width:none;margin:2rem auto 2.7rem}
.vc-magick .mg-article .mg-magician-center>.mg-picture{width:min(100%,880px);max-width:880px;margin:0 auto}

/* 8: founding-era illustrations left and documentary video right, matching backdrop. */
.vc-magick .mg-article .mg-history-media{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.12fr);gap:14px;align-items:stretch;margin:2.3rem 0 1rem;width:100%}
.vc-magick .mg-article .mg-history-media>.mg-picture,.vc-magick .mg-article .mg-history-media>.mg-yt{margin:0;min-width:0;padding:10px;display:flex;flex-direction:column;justify-content:center;background:#f7f6f1;border:1px solid #d4dfd7}
.vc-magick .mg-article .mg-history-media>.mg-picture img{display:block;width:auto;height:auto;max-width:100%;max-height:420px;object-fit:contain;margin:auto}
.vc-magick .mg-article .mg-history-media>.mg-yt .mg-yt-frame{position:relative;display:block;width:100%;aspect-ratio:16/9;flex-shrink:0}
.vc-magick .mg-article .mg-history-media>.mg-yt iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.vc-magick .mg-article .mg-history-media>.mg-yt figcaption{margin:0}

/* Responsive: no sideways overflow; 2-up at tablet size; stack on phone. */
@media(max-width:1300px){
 .vc-magick .mg-article .mg-document-triptych{grid-template-columns:repeat(2,minmax(0,1fr))}
 .vc-magick .mg-article .mg-document-triptych>.mg-photo-grid{grid-column:1/-1;grid-row:1;max-height:520px}
 .vc-magick .mg-article .mg-document-triptych>.mg-photo-grid img{max-height:500px}
 .vc-magick .mg-article .mg-document-triptych>.mg-pdf iframe{min-height:380px}
 .vc-magick .mg-article .mg-history-media{grid-template-columns:repeat(2,minmax(0,1fr))}
 .vc-magick .mg-article .mg-history-media>.mg-yt{grid-column:1/-1}
}
@media(max-width:780px){
 .vc-magick .mg-article .mg-youtube-pair{grid-template-columns:minmax(0,1fr)}
 .vc-magick .mg-article .mg-document-triptych{grid-template-columns:minmax(0,1fr)}
 .vc-magick .mg-article .mg-document-triptych>.mg-photo-grid{grid-column:auto;grid-row:auto}
 .vc-magick .mg-article .mg-document-triptych>.mg-pdf iframe{height:460px;min-height:460px;flex:none}
 .vc-magick .mg-article .mg-temperance-trio{grid-template-columns:minmax(0,1fr)}
 .vc-magick .mg-article .mg-temperance-trio img{max-height:570px}
 .vc-magick .mg-article .mg-history-media{grid-template-columns:minmax(0,1fr)}
 .vc-magick .mg-article .mg-history-media>.mg-yt{grid-column:auto}
}
