/* agent-css-whitelake-montague.css
   Site-scoped CSS for whitelake-montague.solutiosoftware.com.
   Linked once from the Gantry Base outline (Page Settings > Assets > CSS),
   so every outline inherits it. Append new work here; do not rewrite the file.
   ------------------------------------------------------------------------- */

/* Mass-times overlay: links were illegible.
   Article 55 ("Mass Schedule") carries an inline color:#000000 on its phone and
   email links, and the kit's global link colour is --primary-color (#5a3825).
   Both are unreadable on the dark .swiper-overlay-mass-times panel (tertiary
   blue at 92% opacity), where all copy is white. !important is required to beat
   the inline style; it is scoped to this one card, so the same article renders
   with its own inline colours anywhere else. The Watch Livestream button keeps
   its own styling (excluded).
   Added 2026-11-25. */
.swiper-overlay-mass-times .g-array-item-text a:not(.button) {
    color: var(--default-white) !important;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    text-decoration-color: #ffffffb3;
}
.swiper-overlay-mass-times .g-array-item-text a:not(.button):hover,
.swiper-overlay-mass-times .g-array-item-text a:not(.button):focus {
    color: #f3e3c9 !important;
    text-decoration-color: #f3e3c9;
}

/* Mass Schedule card in the home hero — SIZING.
   The card is absolutely positioned inside #g-slideshow and vertically centred, but
   the quick-links strip that follows the hero overlaps the hero's bottom edge by
   ~28px. The card's content height (~610px at 1280, ~564px at 1024/1200) was taller
   than the space left between the navigation and that strip, so on laptop widths its
   last line ("Parish Office to schedule") was painted over by the quick links.
   Widening the card + tightening the internal rhythm takes ~110px off its height;
   measured clearance above the quick-links strip is 7px at the worst width (~1200)
   and 19–81px everywhere else, from 850px to 1920px wide.
   Scoped to min-width 51rem = the desktop overlay layout. The mobile layout stacks
   the card in normal flow (no overlap there) and keeps its original sizing.
   Added 2026-11-25. */
@media (min-width: 51rem) {
    .site-home #g-slideshow .swiper-overlay-mass-times {
        width: 390px !important;
        max-width: calc(100% - 40px) !important;
    }
    .swiper-overlay-mass-times { padding: 22px 24px !important; }
    .swiper-overlay-mass-times h2 {
        font-size: 24px !important;
        line-height: 1.2 !important;
        margin: 0 0 8px !important;
    }
    .swiper-overlay-mass-times p { margin: 0 0 8px !important; }
    .swiper-overlay-mass-times p + h2 { margin-top: 16px !important; }
    .swiper-overlay-mass-times .button { padding: 6px 15px !important; }
}

/* Mass Schedule card — SCROLL WHEN CONTENT OUTGROWS THE HERO.
   The card is absolutely positioned and vertically centred inside #g-slideshow, so it
   can only grow in both directions at once; anything taller than today's content
   would run under the quick-links strip (or the navigation). These rules cap its
   height to the band that is actually free and let the rest scroll inside the card.
   The caps are derived from the card's own centring: hero = 100% of the containing
   block (.g-container inside #g-slideshow), centre = 52% desktop / 60% tablet
   (override.css), and the strip overlaps the hero's bottom by ~28px. 96% - 72px
   (desktop) and 80% - 72px (tablet) leave an 8px gap above the strip at the cap.
   Measured 850-1920px wide: no scrollbar at today's content (card height 409-473px
   vs caps 455-619px), and with 5 extra schedule lines the card scrolls internally
   with the 8px gap intact.
   The tablet band also pins the card's body copy to 16px: the theme jumps it from
   15.84px to 17.6px at 1200px, which made the card 472px tall there - only 7px of
   slack - so one extra line would have started it scrolling immediately.
   Added 2026-11-25. */
@media (min-width: 76rem) {
    .site-home #g-slideshow .swiper-overlay-mass-times {
        max-height: calc(96% - 72px) !important;
    }
}
@media (min-width: 51rem) and (max-width: 75.99rem) {
    .site-home #g-slideshow .swiper-overlay-mass-times {
        max-height: calc(80% - 72px) !important;
    }
    .swiper-overlay-mass-times .g-array-item-text { font-size: 16px !important; }
}
@media (min-width: 51rem) {
    .site-home #g-slideshow .swiper-overlay-mass-times {
        overflow-y: auto !important;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: #ffffff66 transparent;
    }
    /* Thin light scrollbar so it reads on the dark panel. */
    .swiper-overlay-mass-times::-webkit-scrollbar { width: 6px; }
    .swiper-overlay-mass-times::-webkit-scrollbar-track { background: transparent; }
    .swiper-overlay-mass-times::-webkit-scrollbar-thumb {
        background: #ffffff66;
        border-radius: 3px;
    }
    .swiper-overlay-mass-times::-webkit-scrollbar-thumb:hover { background: #ffffff99; }
}
