/* Agent-maintained shared CSS for buffalo-north.solutiosoftware.com.
   One commented block per section or fix. Scope every rule to its own component;
   do not add page or menu-item selectors. Linked from the Gantry outline CSS rows. */

/* ==========================================================================
   Homepage rotator — 2026-12-04
   The slides are 1600x900 (16:9), but the shared kit pins .fullwidth-swiper to a
   fixed height (--slideshow-height, set to 42vw in content/override.css) and gives
   the slide image that same height inside a slide that is only ~70% of the row, so
   a 16:9 image was cropped left and right on desktop. On mobile the block kept the
   desktop height (42vw) while the image switched to --slideshow-height-mobile
   (56.25vw), so the swiper overflowed its block and the Mass Times panel cut into
   the bottom of the image. The frame is now 16:9 of its own width at every width,
   and the Mass Times panel is held to the same height so the two hero columns stay
   level (the panel already scrolls its own content).
   ========================================================================== */
#g-slideshow > .g-container > .g-grid {
    align-items: start !important;
}
#g-slideshow .g-block.fullwidth-swiper {
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 16 / 9 !important;
}
#g-slideshow .fullwidth-swiper > .g-content,
#g-slideshow .fullwidth-swiper .g-swiper,
#g-slideshow .fullwidth-swiper :is(.swiper-wrapper,.swiper-slide) {
    height: 100% !important;
}
#g-slideshow .fullwidth-swiper .swiper-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}
@media (min-width: 51rem) {
    /* 353 / 463.5 = the Mass Times column width over the 16:9 height of the
       image column at the same row width, so both blocks end level. */
    #g-slideshow .g-grid > .mass-times-block {
        height: auto !important;
        max-height: none !important;
        aspect-ratio: 353 / 463.5 !important;
    }
    #g-slideshow .mass-times-block > .g-content,
    #g-slideshow .mass-times-block .g-content-array,
    #g-slideshow .mass-times-block .g-grid,
    #g-slideshow .mass-times-block .g-block,
    #g-slideshow .mass-times-block .g-array-item {
        height: 100% !important;
        max-height: none !important;
    }
    #g-slideshow .mass-times-block .g-array-item-text {
        height: 100% !important;
        max-height: 100% !important;
        overflow-y: auto;
    }
}

/* Rotator pagination — 2026-12-04.
   Each slide carries its tagline (FAITH / WORSHIP / SERVICE / COMMUNITY) in a band
   across the bottom of the 1600x900 image, and the dots sat on top of it. Lift the
   dots into the clear navy gap between the photo strip and that band. The offset is
   a percentage of the frame height, so it tracks the image at every width (the band
   is baked into the image and scales with it). The dots are hidden below 51rem. */
#g-slideshow .fullwidth-swiper [class*="swiper-pagination-parent"] {
    bottom: 5% !important;
}

/* Homepage quick links — one row at every desktop width (2026-12-04).
   content/override.css floors each quick-link block at min-width:175px above 50.99rem,
   and the six blocks plus 24px gaps need 1170px of row. Below a ~1242px viewport the
   sixth block (Funeral Planning) could not fit, so flex-wrap dropped it onto its own
   full-width row. Let the flex row divide its own width instead: the blocks keep
   flex:1 1 0%, so all six stay on one line and shrink evenly. Under 50.99rem the
   layout is untouched (two per row). */
@media (min-width: 50.99rem) {
    #g-above .ql-square-1 .g-blockcontent-subcontent-block {
        min-width: 0 !important;
    }
}
