/* Agent-maintained shared CSS for St. Jules (Lafayette). One commented block per section. Every rule starts with its scope class. */

/* Bilingual Spanish block | prefix: sj-es | ticket: /home-cl content build */
.sj-es { --sj-es-bg: #f3f0e8; --sj-es-accent: #8a6d3b; background: var(--sj-es-bg); border-left: 4px solid var(--sj-es-accent); padding: 0.75rem 1.25rem; margin: 1rem 0; border-radius: 4px; }
.sj-es p, .sj-es li, .sj-es h3 { color: inherit; }
.sj-es p:last-child, .sj-es ul:last-child { margin-bottom: 0; }

/* Main navigation spacing, one-line dropdown, Facebook labels | prefix: g-main-nav (scoped) | ticket: /home-cl menu polish */
@media (min-width: 1025px) {
  .g-main-nav .g-toplevel > li > .g-menu-item-container { padding: 0.6rem 1.1rem; text-align: center; }
  .g-main-nav .g-toplevel > li > .g-menu-item-container .g-menu-item-content { display: flex; flex-direction: column; align-items: center; justify-content: center; }
  .g-main-nav .g-toplevel > li > .g-menu-item-container .g-menu-item-title { white-space: nowrap; line-height: 1.25; }
  .g-main-nav .g-toplevel > li > .g-menu-item-container .g-menu-item-subtitle { white-space: nowrap; font-size: 0.8em; font-style: italic; line-height: 1.25; opacity: 0.85; margin-top: 2px; }
  .g-main-nav .g-dropdown { width: auto !important; min-width: 220px; }
  .g-main-nav .g-dropdown .g-menu-item-container { padding: 0.55rem 1.1rem; }
  .g-main-nav .g-dropdown .g-menu-item-title, .g-main-nav .g-dropdown .g-menu-item-subtitle { white-space: nowrap; }
  .g-main-nav .g-dropdown .g-sublevel > li { margin: 0; }
}
.g-main-nav .g-social-items a { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; padding: 0.4rem 0.6rem; line-height: 1.1; }
.g-main-nav .g-social-items a[href*="facebook"] .g-social-text { display: block; font-size: 0.65rem; margin-top: 3px; white-space: nowrap; }
.g-main-nav .g-social-items a[href="/search"] .g-social-text { display: none; }

/* Social icon labels (Facebook English / Español, hide Search text) | the social particle sits outside .g-main-nav */
.g-social-items a { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; padding: 0.4rem 0.7rem; line-height: 1.1; }
.g-social-items a[href*="facebook"] .g-social-text { display: block; font-size: 0.65rem; margin-top: 3px; white-space: nowrap; }
.g-social-items a[href="/search"] .g-social-text { display: none; }

/* Bulletins widget — base link behaviour + chevron for the LPI feed | scope: .s-widget-bulletin | ticket: bulletin widget swap */
.s-widget-bulletin .bulletin-widget { --sjb-accent: #7a1f2b; --sjb-rule: rgba(0, 0, 0, 0.12); }
.s-widget-bulletin .bulletin-container { display: flex; flex-direction: column; gap: 0; }
.s-widget-bulletin .bulletin { border-bottom: 1px solid var(--sjb-rule); }
.s-widget-bulletin .bulletin:first-child { border-top: 1px solid var(--sjb-rule); }
.s-widget-bulletin .bulletin-link { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.7rem 0.25rem; color: inherit; text-decoration: none; transition: color 0.2s ease; }
.s-widget-bulletin .bulletin-link:hover, .s-widget-bulletin .bulletin-link:focus { color: var(--sjb-accent); }
.s-widget-bulletin .bulletin-link::after { content: "\203A"; font-size: 1.3rem; line-height: 1; opacity: 0.5; }
.s-widget-bulletin .bulletin-img-container { display: none; }
.s-widget-bulletin .bulletin-date-container p { margin: 0; font-weight: 600; }
.s-widget-bulletin .bulletin-widget button { margin-top: 0.85rem; padding: 0; background: none; border: 0; color: var(--sjb-accent); font-weight: 600; text-decoration: underline; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .s-widget-bulletin .bulletin-link { transition: none; } }

/* Bulletins list — SUPERSEDES the block above (kit card/grid rules outranked it; these carry !important and a longer selector) | scope: .s-widget-bulletin | ticket: bulletin widget swap */
.s-widget-bulletin .bulletin-widget .bulletin-container { display: flex !important; flex-direction: column !important; grid-template-columns: none !important; gap: 0 !important; margin: 0 0 0.5rem !important; width: 100% !important; }
.s-widget-bulletin .bulletin-widget .bulletin { width: 100% !important; position: static !important; box-shadow: none !important; border-radius: 0 !important; background: transparent !important; border-bottom: 1px solid rgba(0, 0, 0, 0.12) !important; }
.s-widget-bulletin .bulletin-widget .bulletin:first-child { border-top: 1px solid rgba(0, 0, 0, 0.12) !important; }
.s-widget-bulletin .bulletin-widget .bulletin-link { width: 100% !important; display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: space-between !important; gap: 0.75rem !important; padding: 0.7rem 0.25rem !important; }
.s-widget-bulletin .bulletin-widget .bulletin-img-container { display: none !important; }
.s-widget-bulletin .bulletin-widget .bulletin-date-container { position: static !important; width: auto !important; display: block !important; grid-template-columns: none !important; background: transparent !important; padding: 0 !important; }
.s-widget-bulletin .bulletin-widget .bulletin-date-container p { margin: 0 !important; font-weight: 600 !important; }
/* Bulletins list — correction: the kit fixes .bulletin to aspect-ratio 238/308, which left each row a card-height tall */
.s-widget-bulletin .bulletin-widget .bulletin { aspect-ratio: auto !important; height: auto !important; min-height: 0 !important; }

/* Subpage hero band (legacy inline banner, used by the gallery template) | prefix: sjhero- | ticket: subpage hero images */
.sjhero { margin: 0 0 1.5rem; }
.sjhero img { display: block; width: 100%; height: auto; aspect-ratio: 1600 / 444; object-fit: cover; object-position: center; border-radius: 6px; }
@media (max-width: 640px) { .sjhero img { aspect-ratio: 1600 / 620; } }

/* Bulletins — match the landing page card style, SUPERSEDES the list-row blocks above | scope: .s-widget-bulletin | ticket: bulletin widget swap */
.s-widget-bulletin .bulletin-widget button { display: none !important; }
.s-widget-bulletin .bulletin-widget .bulletin:first-child { position: relative !important; background: rgba(255, 255, 255, 0.95) !important; border: 0 !important; border-radius: 16px !important; box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5) !important; aspect-ratio: 238 / 308 !important; overflow: hidden !important; margin: 0 0 1rem !important; padding: 0 !important; }
.s-widget-bulletin .bulletin-widget .bulletin:first-child .bulletin-link { display: block !important; height: 100% !important; padding: 0 !important; }
.s-widget-bulletin .bulletin-widget .bulletin:first-child .bulletin-link::after { content: none !important; }
.s-widget-bulletin .bulletin-widget .bulletin:first-child .bulletin-img-container { display: block !important; width: 100% !important; height: 100% !important; aspect-ratio: auto !important; border-radius: 0 !important; background-size: cover !important; background-position: 50% 42% !important; }
.s-widget-bulletin .bulletin-widget .bulletin:first-child .bulletin-date-container { position: absolute !important; left: 0 !important; right: 0 !important; bottom: 0 !important; width: auto !important; display: block !important; background: rgba(255, 255, 255, 0.95) !important; padding: 0.35rem 0.75rem !important; }
.s-widget-bulletin .bulletin-widget .bulletin:first-child .bulletin-date-container p { margin: 0 !important; font-size: 1.25rem !important; font-weight: 400 !important; color: #000 !important; }
.s-widget-bulletin .bulletin-widget .bulletin:not(:first-child) { position: static !important; aspect-ratio: auto !important; background: transparent !important; border: 0 !important; border-bottom: 1px solid rgba(0, 0, 0, 0.12) !important; border-radius: 0 !important; box-shadow: none !important; width: 100% !important; }
.s-widget-bulletin .bulletin-widget .bulletin:not(:first-child) .bulletin-link { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 0.75rem !important; padding: 0.6rem 0.1rem !important; color: #611436 !important; }
.s-widget-bulletin .bulletin-widget .bulletin:not(:first-child) .bulletin-date-container { position: static !important; width: auto !important; display: block !important; background: transparent !important; padding: 0 !important; }
.s-widget-bulletin .bulletin-widget .bulletin:not(:first-child) .bulletin-date-container p { margin: 0 !important; font-size: 1.05rem !important; color: #611436 !important; }
/* Bulletins — centre the date in the first card's white strip | scope: .s-widget-bulletin */
.s-widget-bulletin .bulletin-widget .bulletin:first-child .bulletin-date-container { text-align: center !important; }
.s-widget-bulletin .bulletin-widget .bulletin:first-child .bulletin-date-container p { text-align: center !important; }
/* Bulletins — cover image fills the whole first card so the date strip sits flush (no gap at the bottom) | scope: .s-widget-bulletin */
.s-widget-bulletin .bulletin-widget .bulletin:first-child .bulletin-img-container { position: absolute !important; top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important; aspect-ratio: auto !important; border-radius: 0 !important; background-size: cover !important; background-position: 50% 42% !important; }
.s-widget-bulletin .bulletin-widget .bulletin:first-child .bulletin-date-container { display: block !important; padding: 0.5rem 0.75rem !important; line-height: 1.2 !important; text-align: center !important; }
.s-widget-bulletin .bulletin-widget .bulletin:first-child .bulletin-date-container p { line-height: 1.2 !important; text-align: center !important; }
/* Bulletins — date sits at the very bottom edge of the thumbnail (strip height was fixed, leaving white under the label) | scope: .s-widget-bulletin */
.s-widget-bulletin .bulletin-widget .bulletin:first-child .bulletin-date-container { top: auto !important; bottom: 0 !important; height: auto !important; min-height: 0 !important; max-height: none !important; padding: 0.45rem 0.75rem !important; }
.s-widget-bulletin .bulletin-widget .bulletin:first-child .bulletin-date-container p { margin: 0 !important; }
/* Bulletins — more breathing room in the date strip, solid white behind the text | scope: .s-widget-bulletin */
.s-widget-bulletin .bulletin-widget .bulletin:first-child .bulletin-date-container { padding: 0.85rem 0.75rem !important; background: #ffffff !important; }

/* Sponsor ad column — tighten the vertical gap between ads (kit sets 24px per row) | scope: .admod | ticket: ad column spacing */
.admod .table-container, .admod table, .admod tbody, .admod tr { margin: 0 !important; }
.admod { margin-bottom: 0 !important; }
/* Sponsor ad column — the kit's .table-container td rule outranks a plain .admod td, so the selector needs the extra class */
.moduletable.admod .table-container td { padding: 0 0 10px !important; }

/* Sponsor ads on small screens — override.css hides .stjules-home-ads below 1024px; show them | scope: .stjules-home-ads | ticket: ads on mobile */
@media (max-width: 1023px) {
  .site-home .stjules-home-ads { display: block !important; margin-top: 2rem !important; }
  .site-home .stjules-home-ads > .g-content { padding: 0 !important; }
  .site-home .stjules-home-ads .table-container { width: 100% !important; }
  .site-home .stjules-home-ads table { margin: 0 auto !important; }
  .moduletable.admod .table-container td { padding: 0 0 10px !important; }
}

/* Main nav — tablet band 816-1024px (site breakpoint is 51rem, not 1025px, so the desktop rules were falling through here) | scope: .g-main-nav | ticket: small-screen nav pass */
@media only screen and (min-width: 51rem) and (max-width: 1024.98px) {
  .g-main-nav .g-toplevel > li > .g-menu-item-container { padding: 0.5rem 0.55rem; text-align: center; }
  .g-main-nav .g-toplevel > li > .g-menu-item-container .g-menu-item-content { display: flex; flex-direction: column; align-items: center; justify-content: center; }
  .g-main-nav .g-toplevel > li > .g-menu-item-container .g-menu-item-subtitle { font-size: 0.72em; font-style: italic; line-height: 1.2; margin-top: 2px; opacity: 0.85; }
  .g-main-nav .g-dropdown { width: auto !important; min-width: 200px; }
  .g-main-nav .g-dropdown .g-menu-item-container { padding: 0.5rem 0.9rem; }
  .g-main-nav .g-dropdown .g-menu-item-title, .g-main-nav .g-dropdown .g-menu-item-subtitle { white-space: nowrap; }
}

/* St. Jules — hero banners: bias crop toward the top so heads are not cut off */
#grid-hero { object-position: 50% 20%; }

/* St. Jules — Contact Us map embed */
.stjules-contact .stjules-map { display: block; width: 100%; max-width: 100%; height: 400px; border: 0; border-radius: 6px; margin-top: 12px; }
@media (max-width: 600px) { .stjules-contact .stjules-map { height: 300px; } }

/* St. Jules — Staff page hero (itemid-145): group photo at the altar, bias the crop to sit on the faces in the band */
body.itemid-145 #grid-hero { object-position: 50% 45%; }

/* St. Jules — Staff page hero (itemid-145): church exterior. Supersedes the 50% 45% group-photo crop above; drop that rule on the next rewrite of this file. */
body.itemid-145 #grid-hero { object-position: 50% 55%; }

/* St. Jules — Photo Gallery hero source (itemid-175): the module only feeds the theme hero/title JS, never visible */
.stjules-hero-source { display: none !important; }

/* St. Jules — FILEman photo gallery tiles (Photo Gallery page, itemid-175 + subfolders) | scope: .com_fileman | 2026-12-01 */
.com_fileman .koowa_media_contents { display: block !important; }
.com_fileman .koowa_media {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 1.15rem !important;
  margin: 0 !important;
}
.com_fileman .koowa_media_contents .koowa_media__item {
  display: block !important;
  width: auto !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
}
.com_fileman .koowa_media__item__content {
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background: var(--default-white, #fff) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 20px -12px rgba(0, 0, 0, 0.45);
  transition: transform .25s ease, box-shadow .25s ease;
}
.com_fileman .koowa_media__item__content:hover,
.com_fileman .koowa_media__item__content:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 18px 30px -14px rgba(0, 0, 0, 0.5);
}
.com_fileman .koowa_media__item__link { display: block !important; text-decoration: none !important; }
.com_fileman .koowa_media__item__thumbnail { aspect-ratio: 16 / 9; overflow: hidden; background: #efe9e2; }
.com_fileman .koowa_media__item__thumbnail img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  transition: transform .5s ease;
}
.com_fileman .koowa_media__item__content:hover .koowa_media__item__thumbnail img { transform: scale(1.06); }
.com_fileman .koowa_media__item__label {
  height: auto !important;
  padding: .6rem .8rem !important;
  font-size: .95rem !important;
  line-height: 1.3 !important;
  color: var(--primary-color, #611436);
  background: transparent !important;
}
.com_fileman .koowa_media__item__label .overflow_container { display: flex; align-items: center; gap: .45rem; }
/* folder tiles (category view) */
.com_fileman .koowa_media_wrapper--categories .koowa_media__item__label { padding: .8rem !important; text-align: center; }
.com_fileman .koowa_media_wrapper--categories .koowa_media__item__label .overflow_container { display: block; }
.com_fileman .koowa_media_wrapper--categories .k-icon-document-folder {
  display: block;
  font-size: 1.8rem;
  margin-bottom: .2rem;
  color: var(--primary-color, #611436);
}
.com_fileman .koowa_media_wrapper--categories .koowa_media__item__label img {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  margin-top: .6rem;
}
@media (max-width: 600px) {
  .com_fileman .koowa_media { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: .8rem !important; }
  .com_fileman .koowa_media__item__label { padding: .45rem .55rem !important; font-size: .82rem !important; }
}

/* St. Jules — FILEman gallery fix: FILEman sizes the thumbnail with an inline-block ::before spacer (content:" "), which pushed our image below the box. Drop the spacer and overlay the image instead. */
.com_fileman .koowa_media__item__thumbnail { position: relative; }
.com_fileman .koowa_media__item__thumbnail::before { content: none !important; display: none !important; }
.com_fileman .koowa_media__item__thumbnail img { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; object-fit: cover; }

/* St. Jules — FILEman gallery: the content-holder is inline-block and collapsed once the image was taken out of flow. Force it to full width. */
.com_fileman .koowa_media__item__content-holder { display: block !important; width: 100% !important; }

/* St. Jules — FILEman gallery: 4 across at the 880px content width, so a 4-photo folder fills one row. Supersedes the minmax(220px, 1fr) column rule above. */
.com_fileman .koowa_media { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)) !important; }

/* St. Jules — FILEman folder tiles: full-width label, no clipping, preview photo flush to the card edges */
.com_fileman .koowa_media_wrapper--categories .koowa_media__item__label { display: block !important; width: 100% !important; padding: .8rem !important; box-sizing: border-box !important; }
.com_fileman .koowa_media_wrapper--categories .koowa_media__item__label .overflow_container { height: auto !important; overflow: visible !important; }
.com_fileman .koowa_media_wrapper--categories .koowa_media__item__label img {
  margin: .65rem -.8rem -.8rem !important;
  width: calc(100% + 1.6rem) !important;
  border-radius: 0 !important;
}

/* St. Jules — FILEman folder tiles: show the preview photo at its natural shape instead of a 16:9 crop (supersedes the aspect-ratio rule above) */
.com_fileman .koowa_media_wrapper--categories .koowa_media__item__label img {
  aspect-ratio: auto !important;
  height: auto !important;
  object-fit: fill !important;
}
.com_fileman .koowa_media_wrapper--categories .koowa_media__item__label { margin: 0 !important; }

/* St. Jules — FILEman category (folder) tiles: larger cards so a single folder does not look lost in the column */
.com_fileman .koowa_media_wrapper--categories .koowa_media { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important; }

/* St. Jules — FILEman gallery: FILEman pads .koowa_media__item (0 8px 16px) and the link (8px), which fought the grid gap and inset every card. Clear both so the grid gap is the only spacing. */
.com_fileman .koowa_media__item { padding: 0 !important; }
.com_fileman .koowa_media__item__link { padding: 0 !important; }
/* folder tiles: text block padded, preview photo flush to the card edges */
.com_fileman .koowa_media_wrapper--categories .koowa_media__item__label { padding: 0 !important; width: 100% !important; }
.com_fileman .koowa_media_wrapper--categories .koowa_media__item__label .overflow_container { padding: .9rem .9rem 0 !important; }
.com_fileman .koowa_media_wrapper--categories .koowa_media__item__label img {
  width: calc(100% + 1.8rem) !important;
  margin: .8rem -.9rem 0 !important;
  border-radius: 0 !important;
}

/* St. Jules — FILEman folder tile photo: FILEman caps images at max-width:100%, which clamped the bleed width. Lift the cap so the photo runs edge to edge. */
.com_fileman .koowa_media_wrapper--categories .koowa_media__item__label .overflow_container > img {
  max-width: none !important;
  width: calc(100% + 1.8rem) !important;
}

/* St. Jules — FILEman folder tiles: hide the folder glyph, keep the name on its own (user request 2026-12-01) */
.com_fileman .koowa_media_wrapper--categories .k-icon-document-folder { display: none !important; }
