/* Task 17: public Homilies section ([smpd_homilies] on Home). Sits on the page gradient, so text is light. */
.smpd-hom{width:100%;max-width:880px;margin:0 auto;display:flex;flex-direction:column;gap:22px;text-align:left;color:#fff}
.smpd-hom-none{text-align:center;font-size:18px;color:#eceef6;margin:0}
.smpd-hom-cur{display:flex;flex-direction:column;gap:14px}
.smpd-hom-meta{display:flex;flex-direction:column;gap:4px}
.smpd-hom-meta b{font-size:22px}
.smpd-hom-meta span{font-size:15px;color:#eceef6}
.smpd-hom-meta p{margin:4px 0 0;font-size:17px;line-height:1.5}
.smpd-hom-vid{all:unset;box-sizing:border-box;cursor:pointer;position:relative;display:block;width:100%;aspect-ratio:16/9;background:#16213e;border-radius:8px;overflow:hidden}
.smpd-hom-vid img,.smpd-hom-th img{width:100%;height:100%;object-fit:cover;display:block;max-width:none}
.smpd-hom-vid iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.smpd-hom-vid:focus-visible,.smpd-hom-item:focus-visible{outline:3px solid #e3b93c;outline-offset:3px}
.smpd-hom-play{position:absolute;left:50%;top:50%;width:76px;height:76px;margin:-38px 0 0 -38px;border-radius:50%;background:#e3b93c;box-shadow:0 6px 18px rgba(0,0,0,.35)}
.smpd-hom-play::after{content:"";position:absolute;left:30px;top:22px;border-style:solid;border-width:16px 0 16px 26px;border-color:transparent transparent transparent #16213e}
.smpd-hom-play.s{width:44px;height:44px;margin:-22px 0 0 -22px}
.smpd-hom-play.s::after{left:17px;top:12px;border-width:10px 0 10px 16px}
.smpd-hom-text{background:#fff;color:#1d2433;border-radius:8px;padding:22px 26px;max-height:520px;overflow:auto;font-size:17px;line-height:1.6}
.smpd-hom-text p{margin:0 0 12px}
.smpd-hom-gh{font-size:26px;margin:8px 0 0;text-align:center}
.smpd-hom-gal{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:16px}
.smpd-hom-item{all:unset;box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;gap:6px;width:100%;color:#fff}
.smpd-hom-item b{font-size:16px;line-height:1.3}
.smpd-hom-item small{font-size:13px;color:#eceef6}
.smpd-hom-th{position:relative;display:block;aspect-ratio:16/9;border-radius:6px;overflow:hidden;background:#16213e}
.smpd-hom-ticon{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#fff;color:#16213e;font-family:'Cormorant Garamond',serif;font-size:40px;font-weight:700}
.smpd-hom-dlg{width:min(860px,calc(100vw - 32px));max-height:calc(100vh - 48px);border:0;border-radius:10px;padding:22px;background:#16213e;color:#fff}
.smpd-hom-dlg::backdrop{background:rgba(10,14,28,.75)}
.smpd-hom-dlg h3{font-size:26px;margin:0 70px 4px 0}
.smpd-hom-dlg p{margin:0 0 10px}
.smpd-hom-dlg .smpd-hom-d{color:#d9dce6;font-size:15px}
.smpd-hom-x{position:absolute;right:16px;top:16px;background:#e3b93c;color:#16213e;border:0;border-radius:6px;padding:8px 14px;font-weight:700;cursor:pointer;font-size:15px}
@media (max-width:600px){.smpd-hom-gal{grid-template-columns:1fr 1fr;gap:12px}.smpd-hom-meta b{font-size:20px}.smpd-hom-text{padding:16px 18px}.smpd-hom-dlg{padding:16px}}
@media (prefers-reduced-motion:no-preference){.smpd-hom-item .smpd-hom-th{transition:opacity .15s}.smpd-hom-item:hover .smpd-hom-th{opacity:.85}}
/* The theme styles every button (pink border, hover fill, capitals); these buttons are a thumbnail and a card. */
.smpd-hom button.smpd-hom-vid,.smpd-hom button.smpd-hom-vid:hover,.smpd-hom button.smpd-hom-vid:focus,.smpd-hom button.smpd-hom-vid:active{background:#16213e;border:0;border-radius:8px;padding:0;margin:0;color:#fff;box-shadow:none;text-transform:none;line-height:normal;width:100%}
.smpd-hom button.smpd-hom-item,.smpd-hom button.smpd-hom-item:hover,.smpd-hom button.smpd-hom-item:focus,.smpd-hom button.smpd-hom-item:active{background:transparent;border:0;border-radius:0;padding:0;margin:0;color:#fff;box-shadow:none;text-transform:none;letter-spacing:normal;line-height:1.3;text-align:left;font-family:inherit;white-space:normal;width:100%}
.smpd-hom button.smpd-hom-item small{line-height:1.35}
.smpd-hom-dlg button.smpd-hom-x,.smpd-hom-dlg button.smpd-hom-x:hover,.smpd-hom-dlg button.smpd-hom-x:focus{background:#e3b93c;color:#16213e;border:0;border-radius:6px;text-transform:none}
/* Task 47 Part C: the Sunday date above each earlier homily's thumbnail; 'See all homilies' with month headings. */
.smpd-hom .smpd-hom-item .smpd-hom-date{order:-1;font-size:17px;font-weight:600;color:#fff;line-height:1.3}
.smpd-hom-mh{font-size:18px;font-weight:600;margin:10px 0 0;color:#f3d36b;letter-spacing:.5px}
.smpd-hom-all{display:flex;flex-direction:column;gap:12px}
.smpd-hom-all[hidden]{display:none}
.smpd-hom-more{text-align:center;margin:0}
.smpd-hom button.smpd-hom-seeall,.smpd-hom button.smpd-hom-seeall:hover,.smpd-hom button.smpd-hom-seeall:focus{background:#e3b93c;color:#16213e;border:0;border-radius:8px;padding:12px 22px;min-height:44px;font-weight:700;font-size:16px;text-transform:none;letter-spacing:normal;cursor:pointer}
.smpd-hom button.smpd-hom-seeall:focus-visible{outline:3px solid #fff;outline-offset:3px}
.smpd-hom-gal[hidden]{display:none}

/* Task 64: Earlier homilies in one row with arrows (about 4 on a laptop, 2 on a tablet, 1 on a phone; swipe works). */
.smpd-hom-car{display:flex;align-items:center;gap:10px}
.smpd-hom-car .smpd-hom-row{flex:1 1 auto;min-width:0;display:grid;grid-auto-flow:column;grid-template-columns:none;grid-auto-columns:calc((100% - 48px) / 4);gap:16px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding:4px 6px;scroll-padding:0 6px}
.smpd-hom-car .smpd-hom-row::-webkit-scrollbar{display:none}
.smpd-hom-car .smpd-hom-row>li{scroll-snap-align:start;min-width:0}
.smpd-hom button.smpd-hom-arr,.smpd-hom button.smpd-hom-arr:hover,.smpd-hom button.smpd-hom-arr:focus{flex:none;width:44px;height:44px;border-radius:50%;border:1px solid rgba(255,255,255,.45);background:rgba(255,255,255,.12);color:#fff;font-size:30px;line-height:1;padding:0 0 4px;margin:0;cursor:pointer;text-transform:none;box-shadow:none;display:flex;align-items:center;justify-content:center}
.smpd-hom button.smpd-hom-arr:hover:not([disabled]){background:#e3b93c;color:#16213e;border-color:#e3b93c}
.smpd-hom button.smpd-hom-arr[disabled]{opacity:.3;cursor:default}
.smpd-hom button.smpd-hom-arr:focus-visible{outline:3px solid #e3b93c;outline-offset:2px}
.smpd-hom-car.fits .smpd-hom-arr{visibility:hidden}
.smpd-hom-count{text-align:center;margin:-8px 0 0;font-size:15px;color:#eceef6}
.smpd-hom-count[hidden]{display:none}
@media (max-width:900px){.smpd-hom-car .smpd-hom-row{grid-auto-columns:calc((100% - 16px) / 2)}}
@media (max-width:600px){.smpd-hom-car{gap:6px}.smpd-hom-car .smpd-hom-row{grid-auto-columns:100%;gap:12px}.smpd-hom button.smpd-hom-arr{width:36px;height:36px;font-size:24px}}
