/*
Theme Name: Comunidade Católica Brasileira — Bay Area
Author: Comunidade Católica Brasileira da Bay Area
Description: Tema responsivo para as comunidades católicas brasileiras de San Rafael, San Francisco, El Cerrito e Concord.
Version: 1.3.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: bay-area-brasil
*/

:root {
    --bab-wine: #7d2938;
    --bab-wine-dark: #5b1725;
    --bab-gold: #c79a54;
    --bab-ink: #202126;
    --bab-muted: #68676b;
    --bab-cream: #f7f3ec;
    --bab-paper: #fffdf9;
    --bab-line: #e8e0d5;
    --bab-white: #fff;
    --bab-shadow: 0 18px 45px rgba(53, 35, 27, .09);
    --bab-radius: 18px;
    --bab-container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background: var(--bab-paper);
    color: var(--bab-ink);
    font-family: "Aptos", "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    margin: 0;
    text-rendering: optimizeLegibility;
}
body.admin-bar .site-header { top: 32px; }
img { display: block; height: auto; max-width: 100%; }
a { color: var(--bab-wine); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--bab-wine-dark); }
button, input, textarea, select { font: inherit; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; width: 1px; }
.screen-reader-text:focus { background: #fff; clip: auto; clip-path: none; color: #111; height: auto; left: 12px; padding: 12px; top: 12px; width: auto; z-index: 10000; }
.bab-container { margin-inline: auto; max-width: var(--bab-container); padding-inline: 24px; width: 100%; }
.bab-section { padding-block: clamp(64px, 8vw, 110px); scroll-margin-top: 92px; }
.bab-section--cream { background: var(--bab-cream); }
.bab-section--wine { background: var(--bab-wine-dark); color: #fff; overflow: hidden; position: relative; }
.bab-section--wine::after { border: 1px solid rgba(255,255,255,.12); border-radius: 50%; content: ""; height: 440px; position: absolute; right: -180px; top: -220px; width: 440px; }
.bab-eyebrow { color: var(--bab-wine); font-size: .78rem; font-weight: 800; letter-spacing: .12em; margin: 0 0 10px; text-transform: uppercase; }
.bab-section--wine .bab-eyebrow { color: #eccb97; }
.bab-heading { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4.4vw, 3.55rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.08; margin: 0; }
.bab-heading em { color: var(--bab-wine); font-weight: 400; }
.bab-section-intro { color: var(--bab-muted); margin: 18px 0 0; max-width: 670px; }
.bab-section-head { align-items: end; display: flex; gap: 32px; justify-content: space-between; margin-bottom: 38px; }
.bab-section-head .bab-link-arrow { flex: none; }
.bab-button { align-items: center; background: var(--bab-wine); border: 1px solid var(--bab-wine); border-radius: 999px; color: #fff; cursor: pointer; display: inline-flex; font-size: .92rem; font-weight: 700; gap: 9px; justify-content: center; line-height: 1.2; min-height: 48px; padding: 13px 22px; text-decoration: none; transition: background .2s, border-color .2s, transform .2s; }
.bab-button:hover { background: var(--bab-wine-dark); border-color: var(--bab-wine-dark); color: #fff; transform: translateY(-1px); }
.bab-button--light { background: #fff; border-color: #fff; color: var(--bab-wine-dark); }
.bab-button--light:hover { background: #f4eadd; border-color: #f4eadd; color: var(--bab-wine-dark); }
.bab-button--outline { background: transparent; border-color: currentColor; color: var(--bab-wine); }
.bab-link-arrow { align-items: center; display: inline-flex; font-size: .92rem; font-weight: 800; gap: 8px; text-decoration: none; }
.bab-link-arrow::after { content: "→"; transition: transform .2s; }
.bab-link-arrow:hover::after { transform: translateX(3px); }

/* Header */
.bab-alert { background: var(--bab-gold); color: #281c0b; font-size: .88rem; font-weight: 700; padding: 8px 20px; text-align: center; }
.bab-alert a { color: inherit; }
.site-header { background: rgba(255,255,255,.98); border-bottom: 1px solid rgba(125,41,56,.1); position: sticky; top: 0; z-index: 100; }
.site-header__inner { align-items: center; display: flex; gap: 30px; justify-content: space-between; min-height: 82px; }
.site-branding { align-items: center; color: var(--bab-ink); display: flex; flex: 0 1 380px; gap: 13px; min-width: 0; text-decoration: none; }
.site-branding:hover { color: var(--bab-ink); }
.custom-logo { max-height: 62px; width: auto; }
.bab-default-logo-frame { display: block; flex: 0 0 300px; height: 70px; overflow: hidden; position: relative; width: 300px; }
.bab-default-logo { left: 0; max-width: none; position: absolute; top: -36px; width: 290px; }
.bab-logo-placeholder { align-items: center; background: var(--bab-wine); border-radius: 50%; color: #fff; display: inline-flex; flex: 0 0 48px; font-family: Georgia, serif; font-size: 29px; height: 48px; justify-content: center; line-height: 1; width: 48px; }
.site-branding__text { display: flex; flex-direction: column; line-height: 1.15; }
.site-branding__text strong { font-family: Georgia, serif; font-size: 1.02rem; font-weight: 600; }
.site-branding__text span { color: var(--bab-muted); font-size: .69rem; font-weight: 800; letter-spacing: .08em; margin-top: 4px; text-transform: uppercase; }
.primary-navigation { align-items: center; display: flex; gap: 18px; }
.primary-navigation ul { align-items: center; display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.primary-navigation li { position: relative; }
.primary-navigation a { color: var(--bab-ink); font-size: .88rem; font-weight: 750; text-decoration: none; }
.primary-navigation a:hover { color: var(--bab-wine); }
.primary-navigation .sub-menu { align-items: stretch; background: #fff; border: 1px solid var(--bab-line); border-radius: 10px; box-shadow: var(--bab-shadow); display: none; flex-direction: column; gap: 0; left: -16px; min-width: 220px; padding: 8px; position: absolute; top: 100%; }
.primary-navigation li:hover > .sub-menu, .primary-navigation li:focus-within > .sub-menu { display: flex; }
.primary-navigation .sub-menu a { display: block; padding: 9px 10px; }
.bab-menu-toggle { background: transparent; border: 0; cursor: pointer; display: none; height: 44px; padding: 10px; width: 44px; }
.bab-menu-toggle span:not(.screen-reader-text) { background: var(--bab-ink); display: block; height: 2px; margin: 5px 0; width: 24px; }

/* Carousel */
.bab-hero { background: #231519; color: #fff; min-height: min(690px, calc(100vh - 82px)); overflow: hidden; position: relative; }
.bab-carousel { min-height: inherit; position: relative; }
.bab-slide { align-items: center; display: none; min-height: min(690px, calc(100vh - 82px)); overflow: hidden; position: relative; }
.bab-slide.is-active { display: flex; }
.bab-slide__image, .bab-slide__image picture, .bab-slide__image img { height: 100%; inset: 0; position: absolute; width: 100%; }
.bab-slide__image img { object-fit: cover; }
.bab-slide__image::after { background: linear-gradient(90deg, rgba(27,14,18,.86) 0%, rgba(27,14,18,.6) 45%, rgba(27,14,18,.13) 80%), linear-gradient(0deg, rgba(27,14,18,.38), transparent 55%); content: ""; inset: 0; position: absolute; }
.bab-slide__fallback { background: radial-gradient(circle at 75% 24%, rgba(199,154,84,.32), transparent 32%), radial-gradient(circle at 80% 65%, rgba(255,255,255,.1), transparent 25%), linear-gradient(135deg, #35151e, #7d2938 58%, #b57e3d); inset: 0; position: absolute; }
.bab-slide__fallback::before { border: 1px solid rgba(255,255,255,.16); border-radius: 50% 50% 0 0; bottom: -160px; content: ""; height: 620px; position: absolute; right: 8%; width: 330px; }
.bab-slide__fallback::after { background: rgba(255,255,255,.09); content: ""; height: 310px; position: absolute; right: calc(8% + 154px); top: 115px; width: 22px; }
.bab-slide__content { max-width: 720px; padding-block: 100px 130px; position: relative; z-index: 2; }
.bab-slide__content .bab-eyebrow { color: #edcf9c; }
.bab-slide__title { font-family: Georgia, serif; font-size: clamp(2.8rem, 7vw, 5.5rem); font-weight: 400; letter-spacing: -.045em; line-height: .98; margin: 0 0 24px; text-wrap: balance; }
.bab-slide__subtitle { color: rgba(255,255,255,.86); font-size: clamp(1.02rem, 2vw, 1.2rem); margin: 0 0 30px; max-width: 590px; }
.bab-carousel__controls { align-items: center; bottom: 38px; display: flex; gap: 12px; left: max(24px, calc((100% - var(--bab-container)) / 2 + 24px)); position: absolute; z-index: 4; }
.bab-carousel__button { align-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: #fff; cursor: pointer; display: flex; height: 42px; justify-content: center; width: 42px; }
.bab-carousel__button:hover { background: #fff; color: var(--bab-wine-dark); }
.bab-carousel__dots { display: flex; gap: 7px; margin-left: 5px; }
.bab-carousel__dot { background: rgba(255,255,255,.45); border: 0; border-radius: 99px; cursor: pointer; height: 7px; padding: 0; transition: width .2s; width: 7px; }
.bab-carousel__dot.is-active { background: #fff; width: 26px; }

/* Home */
.bab-welcome { align-items: center; display: grid; gap: clamp(38px, 7vw, 90px); grid-template-columns: 1.05fr .95fr; }
.bab-welcome__art { min-height: 440px; position: relative; }
.bab-welcome__photo { background: linear-gradient(150deg, #e1d2bf, #9d635a); border-radius: 48% 48% 18px 18px; inset: 0 54px 35px 0; overflow: hidden; position: absolute; }
.bab-welcome__photo img { height: 100%; object-fit: cover; width: 100%; }
.bab-welcome__photo-placeholder { align-items: center; background: radial-gradient(circle at 55% 25%, rgba(255,255,255,.35), transparent 24%), linear-gradient(145deg,#d5c2a9,#8b4c4d); color: rgba(255,255,255,.8); display: flex; font-family: Georgia, serif; font-size: 6rem; height: 100%; justify-content: center; }
.bab-welcome__accent { background: var(--bab-gold); border-radius: 18px; bottom: 0; color: #fff; max-width: 225px; padding: 24px; position: absolute; right: 0; }
.bab-welcome__accent strong { display: block; font-family: Georgia, serif; font-size: 1.5rem; font-weight: 500; line-height: 1.2; }
.bab-welcome__accent span { display: block; font-size: .8rem; font-weight: 700; margin-top: 8px; }
.bab-welcome__text { color: var(--bab-muted); font-size: 1.08rem; margin: 24px 0 30px; }
.bab-homily { background: #efe7dc; }
.bab-homily__grid { align-items: center; display: grid; gap: clamp(36px, 6vw, 80px); grid-template-columns: .82fr 1.18fr; }
.bab-homily__copy .bab-section-intro { font-size: 1.02rem; }
.bab-video-embed { aspect-ratio: 16 / 9; background: #1f1719; border-radius: var(--bab-radius); box-shadow: var(--bab-shadow); display: flex; justify-content: center; overflow: hidden; position: relative; }
.bab-video-embed iframe { border: 0; height: 100%; inset: 0; position: absolute; width: 100%; }
.bab-video-embed > .bab-button { align-self: center; }
.bab-video-placeholder { align-items: center; color: #fff; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.bab-video-placeholder strong { align-items: center; background: var(--bab-wine); border-radius: 50%; display: flex; font-size: 1.4rem; height: 64px; justify-content: center; padding-left: 4px; width: 64px; }
.bab-video-placeholder span { color: rgba(255,255,255,.72); font-size: .82rem; }
.bab-community-grid { display: grid; gap: 22px; grid-template-columns: repeat(4, 1fr); }
.bab-community-card { background: #fff; border: 1px solid var(--bab-line); border-radius: var(--bab-radius); box-shadow: 0 12px 30px rgba(53,35,27,.05); color: var(--bab-ink); min-height: 465px; overflow: hidden; position: relative; text-decoration: none; transition: box-shadow .25s, transform .25s; }
.bab-community-card:hover { box-shadow: var(--bab-shadow); color: var(--bab-ink); transform: translateY(-5px); }
.bab-community-card__image { background: linear-gradient(135deg, color-mix(in srgb, var(--community-color) 72%, white), var(--community-color)); height: 235px; overflow: hidden; position: relative; }
.bab-community-card__image img { height: 100%; object-fit: cover; transition: transform .5s; width: 100%; }
.bab-community-card:hover img { transform: scale(1.04); }
.bab-community-card__image::after { background: linear-gradient(transparent 55%, rgba(0,0,0,.32)); content: ""; inset: 0; position: absolute; }
.bab-community-card__placeholder { align-items: center; color: rgba(255,255,255,.88); display: flex; font-family: Georgia, serif; font-size: 4rem; height: 100%; justify-content: center; }
.bab-community-card__body { padding: 22px; }
.bab-community-card__city { color: var(--community-color); font-size: .72rem; font-weight: 850; letter-spacing: .1em; margin: 0 0 7px; text-transform: uppercase; }
.bab-community-card h3 { font-family: Georgia, serif; font-size: 1.3rem; font-weight: 500; line-height: 1.2; margin: 0 0 16px; }
.bab-community-card__mass { border-bottom: 1px solid var(--bab-line); border-top: 1px solid var(--bab-line); margin: 0 0 16px; padding: 12px 0; }
.bab-community-card__mass span { color: var(--bab-muted); display: block; font-size: .68rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.bab-community-card__mass strong { color: var(--community-color); display: block; font-family: Georgia, serif; font-size: 1.1rem; font-weight: 500; line-height: 1.3; margin-top: 2px; }
.bab-community-card__link { color: var(--bab-muted); font-size: .82rem; font-weight: 800; }
.bab-event-grid, .bab-news-grid, .bab-album-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.bab-event-card, .bab-news-card, .bab-album-card { background: #fff; border: 1px solid var(--bab-line); border-radius: var(--bab-radius); box-shadow: 0 10px 28px rgba(53,35,27,.05); overflow: hidden; }
.bab-event-card { display: grid; grid-template-columns: 94px 1fr; }
.bab-event-card__date { align-items: center; background: var(--bab-wine); color: #fff; display: flex; flex-direction: column; justify-content: center; min-height: 190px; padding: 16px 10px; text-align: center; }
.bab-event-card__date strong { font-family: Georgia, serif; font-size: 2.35rem; font-weight: 500; line-height: 1; }
.bab-event-card__date span { font-size: .73rem; font-weight: 800; letter-spacing: .09em; margin-top: 6px; text-transform: uppercase; }
.bab-event-card__body { padding: 22px; }
.bab-card-kicker { color: var(--bab-wine); font-size: .68rem; font-weight: 850; letter-spacing: .08em; margin: 0 0 8px; text-transform: uppercase; }
.bab-event-card h3, .bab-news-card h3, .bab-album-card h3 { font-family: Georgia, serif; font-size: 1.24rem; font-weight: 500; line-height: 1.25; margin: 0 0 10px; }
.bab-event-card h3 a, .bab-news-card h3 a, .bab-album-card h3 a { color: var(--bab-ink); text-decoration: none; }
.bab-event-card h3 a:hover, .bab-news-card h3 a:hover, .bab-album-card h3 a:hover { color: var(--bab-wine); }
.bab-card-meta { color: var(--bab-muted); font-size: .82rem; margin: 0; }
.bab-news-card__image, .bab-album-card__image { background: #ded3c5; height: 210px; overflow: hidden; }
.bab-news-card__image img, .bab-album-card__image img { height: 100%; object-fit: cover; transition: transform .5s; width: 100%; }
.bab-news-card:hover img, .bab-album-card:hover img { transform: scale(1.04); }
.bab-news-card__placeholder, .bab-album-card__placeholder { align-items: center; background: linear-gradient(135deg, #d6c8b9, #8c6262); color: rgba(255,255,255,.8); display: flex; font-family: Georgia, serif; font-size: 3.5rem; height: 100%; justify-content: center; }
.bab-news-card__body, .bab-album-card__body { padding: 22px; }
.bab-empty { background: #fff; border: 1px dashed #cfbfae; border-radius: var(--bab-radius); color: var(--bab-muted); grid-column: 1 / -1; padding: 34px; text-align: center; }
.bab-empty strong { color: var(--bab-ink); display: block; font-family: Georgia, serif; font-size: 1.25rem; margin-bottom: 5px; }
.bab-contact-band { align-items: center; display: grid; gap: 50px; grid-template-columns: 1fr auto; position: relative; z-index: 1; }
.bab-contact-band p { color: rgba(255,255,255,.75); margin-bottom: 0; max-width: 630px; }
.bab-contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Community */
.bab-community-hero { background: var(--community-color, var(--bab-wine)); color: #fff; min-height: 500px; overflow: hidden; position: relative; }
.bab-community-hero__media { inset: 0; position: absolute; }
.bab-community-hero__media img { height: 100%; object-fit: cover; width: 100%; }
.bab-community-hero__media::after { background: linear-gradient(90deg, color-mix(in srgb, var(--community-color, var(--bab-wine)) 88%, black), rgba(0,0,0,.12)); content: ""; inset: 0; position: absolute; }
.bab-community-hero__content { padding-block: 110px; position: relative; z-index: 2; }
.bab-community-hero .bab-eyebrow { color: #f3d9a9; }
.bab-community-hero h1 { font-family: Georgia, serif; font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 400; letter-spacing: -.045em; line-height: 1; margin: 0 0 14px; }
.bab-community-hero__city { font-size: 1.15rem; margin: 0 0 27px; }
.bab-community-meta { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.bab-community-meta a, .bab-community-meta span { color: #fff; font-size: .9rem; }
.bab-instagram-section { background: var(--bab-cream); }
.bab-instagram-layout { align-items: start; display: grid; gap: clamp(36px, 7vw, 90px); grid-template-columns: .72fr 1.28fr; }
.bab-instagram-embed { display: flex; justify-content: center; min-width: 0; }
.bab-instagram-embed .instagram-media { margin: 0 auto !important; max-width: 680px !important; min-width: 0 !important; width: 100% !important; }
.bab-instagram-embed .bab-empty { width: 100%; }
.bab-instagram-demo { background: #fff; border: 1px solid var(--bab-line); border-radius: 12px; box-shadow: var(--bab-shadow); max-width: 540px; padding: 18px; width: 100%; }
.bab-instagram-demo__head { align-items: center; display: flex; gap: 10px; margin-bottom: 14px; }
.bab-instagram-demo__head span { align-items: center; background: var(--community-color, var(--bab-wine)); border-radius: 50%; color: #fff; display: flex; height: 36px; justify-content: center; width: 36px; }
.bab-instagram-demo__photo { align-items: center; aspect-ratio: 1.35; background: linear-gradient(145deg, #d7c1b4, var(--community-color, var(--bab-wine))); color: rgba(255,255,255,.86); display: flex; font-family: Georgia, serif; font-size: 1.3rem; justify-content: center; }
.bab-instagram-demo p { color: var(--bab-muted); font-size: .85rem; margin-bottom: 0; }
.bab-mass-section { background: #fff; padding-block: 56px; position: relative; z-index: 5; }
.bab-mass-panel { background: #fff; border-radius: var(--bab-radius); box-shadow: var(--bab-shadow); display: grid; grid-template-columns: 230px 1fr; overflow: hidden; }
.bab-mass-panel__title { background: var(--community-color, var(--bab-wine)); color: #fff; padding: 32px; }
.bab-mass-panel__title span { display: block; font-size: .72rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.bab-mass-panel__title strong { display: block; font-family: Georgia, serif; font-size: 1.6rem; font-weight: 500; line-height: 1.2; margin-top: 8px; }
.bab-mass-list { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.bab-mass-item { border-right: 1px solid var(--bab-line); padding: 28px 30px; }
.bab-mass-item:last-child { border-right: 0; }
.bab-mass-item__day { color: var(--community-color, var(--bab-wine)); font-size: .78rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.bab-mass-item__time { display: block; font-family: Georgia, serif; font-size: 2rem; font-weight: 500; line-height: 1.1; margin: 8px 0; }
.bab-mass-item p { color: var(--bab-muted); font-size: .82rem; margin: 5px 0 0; }
.bab-community-about { display: grid; gap: 60px; grid-template-columns: 1.3fr .7fr; }
.bab-community-about__content { color: var(--bab-muted); }
.bab-community-about__content > :first-child { margin-top: 0; }
.bab-community-info { background: var(--bab-cream); border-radius: var(--bab-radius); padding: 28px; }
.bab-community-info h2 { font-family: Georgia, serif; font-size: 1.4rem; font-weight: 500; margin-top: 0; }
.bab-community-info dl { margin: 0; }
.bab-community-info dt { color: var(--bab-muted); font-size: .7rem; font-weight: 850; letter-spacing: .08em; margin-top: 16px; text-transform: uppercase; }
.bab-community-info dd { margin: 3px 0 0; }
.bab-social-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.bab-social-links a { border: 1px solid var(--bab-line); border-radius: 999px; font-size: .8rem; font-weight: 750; padding: 7px 12px; text-decoration: none; }

/* Articles and archives */
.bab-page-hero { background: var(--bab-cream); padding-block: 75px; }
.bab-page-hero h1 { font-family: Georgia, serif; font-size: clamp(2.6rem, 6vw, 4.5rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; margin: 0; }
.bab-page-hero p { color: var(--bab-muted); margin: 14px 0 0; }
.bab-single { display: grid; gap: 60px; grid-template-columns: minmax(0, 1fr) 300px; padding-block: 70px 100px; }
.bab-single__featured { border-radius: var(--bab-radius); margin-bottom: 32px; overflow: hidden; }
.bab-single__featured img { width: 100%; }
.bab-single__content { font-family: Georgia, serif; font-size: 1.08rem; }
.bab-single__content > :first-child { margin-top: 0; }
.bab-single__content h2, .bab-single__content h3 { color: var(--bab-ink); font-family: "Aptos", "Segoe UI", sans-serif; }
.bab-single__sidebar { align-self: start; background: var(--bab-cream); border-radius: var(--bab-radius); padding: 26px; position: sticky; top: 112px; }
.bab-single__sidebar h2 { font-family: Georgia, serif; font-size: 1.3rem; font-weight: 500; margin-top: 0; }
.bab-detail-list { list-style: none; margin: 0; padding: 0; }
.bab-detail-list li { border-bottom: 1px solid var(--bab-line); padding: 11px 0; }
.bab-detail-list li:last-child { border-bottom: 0; }
.bab-gallery { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); margin-top: 34px; }
.bab-gallery a { border-radius: 10px; overflow: hidden; }
.bab-gallery img { aspect-ratio: 1; height: 100%; object-fit: cover; width: 100%; }
.bab-pagination { margin-top: 45px; }
.bab-pagination .nav-links { display: flex; gap: 8px; }
.bab-pagination a, .bab-pagination span { border: 1px solid var(--bab-line); border-radius: 8px; display: inline-block; padding: 7px 12px; text-decoration: none; }

/* Footer */
.site-footer { background: #21191b; color: rgba(255,255,255,.72); padding-block: 64px 26px; }
.site-footer__grid { display: grid; gap: 45px; grid-template-columns: 1.4fr repeat(2, .7fr); }
.site-footer h2, .site-footer h3 { color: #fff; font-family: Georgia, serif; font-weight: 500; margin-top: 0; }
.site-footer h2 { font-size: 1.35rem; }
.site-footer h3 { font-size: 1rem; }
.site-footer p { font-size: .88rem; max-width: 440px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 7px 0; }
.site-footer a { color: rgba(255,255,255,.78); font-size: .86rem; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); font-size: .76rem; margin-top: 48px; padding-top: 22px; }

@media (max-width: 1050px) {
    .bab-community-grid { grid-template-columns: repeat(2, 1fr); }
    .bab-event-grid, .bab-news-grid, .bab-album-grid { grid-template-columns: repeat(2, 1fr); }
    .primary-navigation ul { gap: 18px; }
    .primary-navigation > .bab-button { display: none; }
}
@media (max-width: 820px) {
    body.admin-bar .site-header { top: 46px; }
    .site-header__inner { min-height: 72px; }
    .bab-menu-toggle { display: block; }
    .primary-navigation { align-items: stretch; background: #fff; border-bottom: 1px solid var(--bab-line); box-shadow: var(--bab-shadow); display: none; flex-direction: column; left: 0; padding: 16px 24px 24px; position: absolute; right: 0; top: 100%; }
    .primary-navigation.is-open { display: flex; }
    .primary-navigation ul { align-items: stretch; flex-direction: column; gap: 0; }
    .primary-navigation a { display: block; font-size: 1rem; padding: 10px 0; }
    .primary-navigation .sub-menu { border: 0; box-shadow: none; display: flex; margin-left: 16px; padding: 0; position: static; }
    .primary-navigation > .bab-button { display: inline-flex; }
    .bab-slide, .bab-hero { min-height: 610px; }
    .bab-slide__content { padding-block: 85px 120px; }
    .bab-welcome, .bab-homily__grid, .bab-instagram-layout, .bab-contact-band, .bab-community-about, .bab-single { grid-template-columns: 1fr; }
    .bab-welcome__art { min-height: 390px; }
    .bab-mass-panel { grid-template-columns: 1fr; }
    .bab-mass-panel__title { padding: 24px 28px; }
    .bab-community-hero__content { padding-block: 85px 125px; }
    .bab-single__sidebar { position: static; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .site-footer__about { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    .bab-container { padding-inline: 18px; }
    .site-branding__text strong { font-size: .9rem; }
    .site-branding__text span { font-size: .58rem; }
    .bab-default-logo-frame { flex-basis: 240px; height: 58px; width: 240px; }
    .bab-default-logo { top: -29px; width: 240px; }
    .bab-logo-placeholder { flex-basis: 42px; font-size: 25px; height: 42px; width: 42px; }
    .bab-section-head { align-items: flex-start; flex-direction: column; }
    .bab-community-grid, .bab-event-grid, .bab-news-grid, .bab-album-grid { grid-template-columns: 1fr; }
    .bab-community-card { min-height: 0; }
    .bab-community-card__image { height: 220px; }
    .bab-event-card { grid-template-columns: 82px 1fr; }
    .bab-welcome__photo { right: 28px; }
    .bab-welcome__accent { max-width: 195px; padding: 19px; }
    .bab-mass-list { grid-template-columns: 1fr; }
    .bab-mass-item { border-bottom: 1px solid var(--bab-line); border-right: 0; }
    .bab-mass-item:last-child { border-bottom: 0; }
    .bab-gallery { grid-template-columns: repeat(2, 1fr); }
    .site-footer__grid { grid-template-columns: 1fr; }
    .site-footer__about { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
