:root{
  --bg: #fbfaf7;
  --surface: #ffffff;
  --soft: #f3efe6;
  --text: #1b1b1b;
  --muted: #555;
  --rule: #e6dfd1;

  --brand: #5a1f2b;     /* deep church maroon */
  --brand-2: #8a6a2f;   /* warm gold */
  --focus: #2d6cdf;

  --shadow: 0 10px 25px rgba(0,0,0,.08);
  --radius: 14px;
  --container: 1100px;
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
html{ scrollbar-gutter: stable; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

img{ max-width:100%; height:auto; display:block; }
a{ color: var(--brand); text-decoration: none; }
a:hover{ text-decoration: underline; }
a:focus{ outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }

.container{
  max-width: var(--container);
  padding: 0 16px;
  margin: 0 auto;
}

.skip-link{
  position:absolute;
  left:-999px;
  top:10px;
  background: var(--surface);
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.skip-link:focus{ left: 10px; z-index: 1000; }

.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 220px;
}
.brand-logo{
  width: 52px;
  height: 52px;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0,0,0,.10);
}
.brand-title{
  font-weight: 800;
  letter-spacing: .2px;
}
.brand-subtitle{
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.nav{
  display:flex;
  align-items:center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content:flex-end;
}
.nav-link{
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 600;
  color: #222;
}
.nav-link:hover{
  background: var(--soft);
  text-decoration: none;
}
.nav-link.is-active{
  background: rgba(90,31,43,.10);
  color: var(--brand);
}

.hero{
  background:
    radial-gradient(900px 300px at 20% 10%, rgba(90,31,43,.12), transparent 60%),
    radial-gradient(700px 280px at 90% 30%, rgba(138,106,47,.14), transparent 55%),
    linear-gradient(to bottom, #fff, var(--bg));
  border-bottom: 1px solid var(--rule);
}

.hero-inner{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  padding: 26px 0 22px;
}

.hero-card, .info-card, .card{
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card{
  padding: 22px;
}

/* =====================================================================
   HOME PAGE LARGE LOGO SIZE CONTROLS (DESKTOP / DEFAULT)
   ---------------------------------------------------------------------
   Controls the BIG Church_logo.png shown above the Welcome area.
   Edit THIS .hero-logo-large block (outside the mobile media query)
   to change desktop/default size.
   ===================================================================== */
.hero-logo-large{
  width: min(100%, 620px);
  max-height: 360px;
  object-fit: contain;
  display:block;
}
.hero-logo-home{
  margin: 0 auto 10px;
  background: transparent;
}

.hero-card h1{
  margin: 0 0 8px;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.3px;
}
.lead{
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 16px;
}

.hero-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.info-card{
  padding: 18px;
}
.card-title{
  margin: 0 0 10px;
  font-size: 16px;
}
.info-row{
  display:flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}
.info-label{ color: var(--muted); }
.info-value{ font-weight: 800; }
.info-block{ font-size: 14px; }
.rule{
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 14px 0;
}
.spacer-8{ height: 8px; }

.section{
  padding: 22px 0;
}
.section-soft{
  background: var(--soft);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.card{
  padding: 18px;
}
.card-header{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.card h2{
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.2px;
}
.card p{ margin: 10px 0; }

.card-footer{
  margin-top: 12px;
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
}

.muted{ color: var(--muted); }
.fineprint{ font-size: 13px; color: var(--muted); margin-top: 10px; }

.text-link{
  font-weight: 700;
  text-decoration: none;
}
.text-link:hover{ text-decoration: underline; }

.dot{ color: var(--muted); }

.btn{
  appearance:none;
  border: 1px solid rgba(90,31,43,.18);
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
}
.btn:hover{
  filter: brightness(1.03);
  text-decoration:none;
}
.btn:active{ transform: translateY(1px); }
.btn.btn-ghost{
  background: transparent;
  color: var(--brand);
  border-color: rgba(90,31,43,.28);
}
.btn.btn-danger{
  background: #8c1d24;
  border-color: rgba(140,29,36,.25);
}
.btn.btn-soft{
  background: rgba(90,31,43,.10);
  color: var(--brand);
  border-color: rgba(90,31,43,.15);
}

.form{
  display:grid;
  gap: 12px;
}
label{
  display:grid;
  gap: 6px;
  font-weight: 700;
}
input, textarea, select{
  font: inherit;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--rule);
  background: #fff;
}
input:focus, textarea:focus, select:focus{
  outline: 3px solid rgba(45,108,223,.25);
  border-color: rgba(45,108,223,.55);
}
textarea{ resize: vertical; }

.hp{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}

.callouts{
  display:grid;
  gap: 10px;
  margin-top: 12px;
}
.callout{
  border: 1px dashed rgba(138,106,47,.45);
  background: rgba(138,106,47,.08);
  border-radius: 12px;
  padding: 12px;
}
.callout-title{
  font-weight: 900;
  margin-bottom: 4px;
}
.callout-body{
  color: var(--muted);
  font-size: 14px;
}

.bulletin-list{
  display:grid;
  gap: 10px;
  margin-top: 8px;
}
.bulletin-item{
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}
.bulletin-date{
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.bulletin-title{
  margin: 4px 0 6px;
  font-size: 16px;
  letter-spacing: -.2px;
}
.bulletin-body{
  margin: 0;
  color: #2a2a2a;
}

.address{ margin-top: 0; }
.address-columns{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px;
  margin-top: 2px;
}
.address-columns-compact{
  margin-bottom: 2px;
}
.address-block{
  line-height: 1.5;
}
.address-block strong{
  display:block;
  margin-bottom: 3px;
}
.parish-house-placeholder{
  margin: 0 0 16px;
}
.parish-house-placeholder-box{
  min-height: 170px;
  border: 1px dashed rgba(90,31,43,.38);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(90,31,43,.08), rgba(138,106,47,.10)),
    repeating-linear-gradient(45deg, rgba(90,31,43,.035) 0 12px, rgba(138,106,47,.035) 12px 24px);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding: 22px 16px;
}
.parish-house-placeholder-title{
  display:block;
  font-weight: 900;
  letter-spacing: .2px;
  color: var(--ink);
}
.parish-house-placeholder-note{
  display:block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}
.parish-house-placeholder figcaption{
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}
.parish-house-placeholder-compact .parish-house-placeholder-box{
  min-height: 150px;
}
.parish-hall-photo-box{
  min-height: 228px;
  max-height: 228px;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.parish-house-placeholder-compact .parish-hall-photo-box{
  min-height: 208px;
  max-height: 208px;
}
.parish-hall-photo-img{
  display: block;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  object-fit: contain;
  object-position: center center;
  background: transparent;
}
.contact-office-card{
  display: flex;
  flex-direction: column;
}
.contact-office-card .parish-house-placeholder{
  margin: 8px 0 18px;
}
.contact-office-card .address-columns-compact{
  margin-top: 14px;
}
.contact-office-card .callout{
  margin-top: auto !important;
}
.contact-office-card .map-row-inline{
  margin-top: 18px;
}
.map-row{ margin-top: 14px; }
.small-note{ margin-top: 14px; font-size: 13px; }

.content h2{ margin-top: 18px; }
.content p{ max-width: 70ch; }

.gallery-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
  margin-top: 12px;
}
.gallery-card{
  margin:0;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background:#fff;
  overflow:hidden;
}
.gallery-ph{
  min-height: 160px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:
    linear-gradient(135deg, rgba(90,31,43,.10), rgba(138,106,47,.10)),
    repeating-linear-gradient(45deg, rgba(90,31,43,.04) 0 10px, rgba(138,106,47,.04) 10px 20px);
  color: var(--muted);
  font-weight: 700;
}
.gallery-card figcaption{
  padding: 10px 12px;
  font-size: 14px;
  color: var(--muted);
}


/* Home page placeholder image above Mass & Confession */
/* =====================================================================
   HOME PAGE MASS/CONFESSION IMAGE SLOT CONTROLS
   ---------------------------------------------------------------------
   This is the photo slot above the Mass & Confession section.
   .info-photo-placeholder = outer frame/container
   .info-photo-img         = actual image height/crop/fit behavior
   Adjust .info-photo-img height / object-fit / object-position here.
   ===================================================================== */
.info-photo-placeholder{
  width: 100%;
  min-height: 170px;
  margin: 0 0 12px;
  border: 1px dashed rgba(138,106,47,.45);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(90,31,43,.05), rgba(138,106,47,.07)),
    repeating-linear-gradient(
      45deg,
      rgba(90,31,43,.03) 0 10px,
      rgba(138,106,47,.03) 10px 20px
    );
  color: var(--muted);
  text-align: center;
  padding: 10px;
}

.info-photo-placeholder span{
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .2px;
}

/* Map button row with small logo */
.map-row-inline{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.map-logo-link{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(90,31,43,.18);
  background: #fff;
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.map-logo-link:hover{
  background: var(--soft);
  text-decoration: none;
}

.map-logo-icon{
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}


/* =====================================================================
   HOME PAGE WELCOME / DIGNITY MESSAGE PANEL
   ---------------------------------------------------------------------
   This is the highlighted welcome statement added to the About the Parish
   card on index.html.
   ===================================================================== */

.welcome-panel{
  margin: 14px 0 16px;
  padding: 14px 16px;
  border: 1px solid rgba(138,106,47,.28);
  border-radius: 14px;
  background:
    linear-gradient(to bottom, rgba(255,255,255,.96), rgba(243,239,230,.70));
}

.welcome-panel-title{
  margin: 0 0 8px;
  font-size: 18px;
}

.welcome-panel p{
  margin: 0 0 10px;
}

.welcome-panel p:last-child{
  margin-bottom: 0;
}


/* =====================================================================
   ADMIN LOGIN LANDING PAGE
   ---------------------------------------------------------------------
   Public page before secure server login, plus the protected landing page
   after authentication.
   ===================================================================== */

.admin-login-card{
  max-width: 760px;
  margin: 0 auto;
}

.admin-login-steps{
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
}

.admin-login-step{
  padding: 10px 12px;
  border: 1px solid rgba(138,106,47,.18);
  border-radius: 12px;
  background: rgba(243,239,230,.45);
}


/* TEMPORARY ADMIN TEST BUTTON */
.admin-test-btn{
  border-style: dashed;
}


/* =====================================================================
   NAV BUTTON ICON BADGES
   ---------------------------------------------------------------------
   Small web-2.0 style icon bubbles shown next to the top navigation text.
   If you want to change the icon look later:
   - .nav-icon-badge controls the little circular icon bubble
   - .nav-label controls the text beside it
   ===================================================================== */

.nav .nav-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.nav-icon-badge{
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(90,31,43,.28);
  background:
    linear-gradient(to bottom, rgba(255,255,255,.98) 0%, rgba(246,240,226,.88) 45%, rgba(221,205,173,.78) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.92),
    inset 0 -1px 0 rgba(138,106,47,.10);
  color: var(--brand);
  font-size: 11px;
  line-height: 1;
}

.nav-label{
  display: inline-block;
}

@media (max-width: 900px){
  .nav .nav-link{
    gap: 6px;
  }

  .nav-icon-badge{
    width: 17px;
    height: 17px;
    font-size: 10px;
  }
}

.site-footer{
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  background: #fff;
}
.footer-inner{
  display:flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Admin helpers */
.admin-shell{
  /* Admin pages were vertically centered, which created a huge empty area above the editor.
     Keep the page full-height, but start content near the top. */
  min-height: calc(100vh - 72px);
  display:flex;
  align-items:flex-start;      /* was: center */
  justify-content:center;      /* keep horizontally centered */
  padding: 18px 0 40px;        /* top, sides, bottom */
}
.admin-card{
  width: min(860px, 100%);
  padding: 18px;
}
.admin-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.toolbar{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 0;
}
.list{
  display:grid;
  gap: 10px;
}
.list-row{
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}
.row-top{
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.badge{
  display:inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(90,31,43,.10);
  color: var(--brand);
  font-weight: 800;
  font-size: 12px;
}
.hr-soft{
  border:0;
  border-top: 1px solid var(--rule);
  margin: 12px 0;
}

@media (max-width: 900px){
.sac-image-slot{
    height: 170px;             /* MOBILE IMAGE HEIGHT */
  }
  /* ================================================================
     MOBILE IMAGE/LOGO SIZE OVERRIDES (<=900px)
     ---------------------------------------------------------------
     - .hero-logo-large  = BIG home logo (Welcome area)
     - .info-photo-img   = walkway image height
     - .admin-guide-logo = Bulletin Editor Quick Help logo
     Edit values here for phone/tablet sizing ONLY.
     ================================================================ */
  .hero-logo-large{
    width: min(100%, 500px);
    max-height: 300px;
  }

  .hero-inner{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .header-inner{ align-items:flex-start; }
  .nav{ justify-content:flex-start; }
  .admin-grid{ grid-template-columns: 1fr; }
  .gallery-grid{ grid-template-columns: 1fr; }
  .address-columns{ grid-template-columns: 1fr; gap: 12px; }
  .info-photo-placeholder{ min-height: 140px; }
  .hero-logo-large{ width: min(100%, 500px); max-height: 300px; }
}

/* ===== Added: home photo slot image (walkway) ===== */
.info-photo-placeholder{
  padding: 0 !important;
  overflow: hidden;
  align-items: stretch;
  justify-content: stretch;
}
.info-photo-img{
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
  object-position: center center;
}

/* ===== Added: bulletin editor help area above the editor card ===== */
.admin-stack{
  width: min(860px, 100%);
  display: grid;
  gap: 14px;
}
.admin-guide{
  width: 100%;
  padding: 0;
  overflow: hidden;
}
.admin-guide-media{
  background: #bdbdbd;
}
.admin-guide-img{
  display: block;
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
}
.admin-guide-copy{
  padding: 12px 14px 14px;
  border-top: 1px solid var(--rule);
  background: #fff;
}
.admin-guide-title{
  margin: 0 0 8px;
  font-size: 18px;
}
.admin-guide-list{
  margin: 0;
  padding-left: 20px;
  color: #2a2a2a;
}
.admin-guide-list li{
  margin: 5px 0;
}
.field-label{
  font-weight: 800;
  color: #2a2a2a;
}
.field-input{
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}
#editForm{
  display: grid;
  grid-template-columns: 1fr;
}
.stack-xs{
  display: grid;
  gap: 10px;
}

@media (max-width: 900px){
  .info-photo-img{
    height: 140px;
  }
  .admin-guide-img{
    max-height: 220px;
  }
  .admin-guide-copy{
    padding: 10px 12px 12px;
  }
}

/* ===== Bulletin editor help area (clean, no illustrative image) ===== */
.admin-stack{
  width: min(860px, 100%);
  display: grid;
  gap: 14px;
}
.admin-guide{
  width: 100%;
}
/* =====================================================================
   BULLETIN EDITOR QUICK HELP LOGO SIZE CONTROLS
   ---------------------------------------------------------------------
   Controls the Church_logo.png shown inside admin/editor.html Quick Help.
   .admin-guide-logo width/height below was increased to 2x size.
   ===================================================================== */
.admin-guide-head{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--rule);
  background: #fff;
}
.admin-guide-logo{
  width: 112px;
  height: 112px;
  object-fit: contain;
  display:block;
  flex: 0 0 auto;
}
.admin-guide-copy{
  padding: 12px 14px 14px;
  background: #fff;
}
.admin-guide-title{
  margin: 0;
  font-size: 18px;
}
.admin-guide-list{
  margin: 0;
  padding-left: 20px;
  color: #2a2a2a;
}
.admin-guide-list li{
  margin: 6px 0;
}
.admin-tip{
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(90,31,43,.18);
  border-radius: 12px;
  background: var(--soft);
  color: #2a2a2a;
}
@media (max-width: 900px){
  .admin-guide-head{ padding: 12px; }
  .admin-guide-logo{
  width: 96px;
  height: 96px; }
  .admin-guide-copy{ padding: 10px 12px 12px; }
}

/* =====================================================================
   HOME PAGE MASS/CONFESSION IMAGE SLOT SLIDESHOW
   ---------------------------------------------------------------------
   Smooth fade between multiple photos in the Mass & Confession image slot.
   Change timing in index.html on .info-photo-slideshow:
   - data-interval="5000"  (5 seconds)
   - data-fade="1200"      (fade time in ms)
   ===================================================================== */
.info-photo-slideshow{
  position: relative;
  width: 100%;
  height: 240px; /* Desktop image slot height */
  overflow: hidden;
  border-radius: inherit;
}
.info-photo-slideshow .info-photo-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transition: opacity 1200ms ease-in-out;
  pointer-events: none;
}
.info-photo-slideshow .info-photo-img.is-active{
  opacity: 1;
}

@media (max-width: 900px){
  .info-photo-slideshow{
    height: 180px; /* Mobile image slot height */
  }
}

/* =====================================================================
   SACRAMENTS PAGE IMAGE SLOT CONTROLS
   ---------------------------------------------------------------------
   These image slots are used in sacraments.html.
   Drop transparent PNG files into the same folder as sacraments.html
   using names like:
   Sac_01.png, Sac_02.png, Sac_03.png, etc.
   ---------------------------------------------------------------------
   Desktop:
   - height controls the vertical size of each section image
   Mobile:
   - the media query below reduces the height
   ===================================================================== */

.sac-image-slot{
  width: 100%;
  height: 220px;               /* DESKTOP IMAGE HEIGHT */
  margin: 0 0 14px;
  border: 1px dashed rgba(138,106,47,.45);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(135deg, rgba(90,31,43,.05), rgba(138,106,47,.08)),
    repeating-linear-gradient(
      45deg,
      rgba(90,31,43,.03) 0 10px,
      rgba(138,106,47,.03) 10px 20px
    );
}

.sac-image-slot img{
  width: 100%;
  height: 100%;
  object-fit: contain;         /* use cover if you want tighter cropping */
  object-position: center center;
  display: block;
  background: transparent;
}

.sac-image-slot.is-empty::before{
  content: "Image Placeholder — " attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .2px;
}

/* =====================================================================
   SACRAMENTS PAGE ALTERNATING IMAGE / TEXT LAYOUT
   ---------------------------------------------------------------------
   This switches the Sacraments page from "image above text" to a side-by-
   side alternating layout.
   - Normal block: text left, image right
   - .is-reverse: image left, text right
   ---------------------------------------------------------------------
   Large sacrament icons:
   .sac-side-media .sac-image-slot { height: 420px; }
   Section badge icons:
   .sac-side-block.is-section .sac-image-slot { height: 260px; }
   ===================================================================== */

.sac-side-block{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
  margin: 0 0 18px;
}

.sac-side-copy{
  min-width: 0;
}

.sac-side-media{
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.sac-side-block .sac-side-copy{ order: 1; }
.sac-side-block .sac-side-media{ order: 2; }

.sac-side-block.is-reverse .sac-side-copy{ order: 2; }
.sac-side-block.is-reverse .sac-side-media{ order: 1; }

.sac-side-media .sac-image-slot{
  width: 100%;
  max-width: 360px;
  height: 420px;
  margin: 0;
  background: transparent;
  border-style: solid;
}

.sac-side-block.is-section{
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: center;
  margin: 0 0 22px;
}

.sac-side-block.is-section .sac-side-media .sac-image-slot{
  max-width: 260px;
  height: 260px;
}

.sac-section-copy{
  display: grid;
  gap: 6px;
}

.sac-section-copy h2{
  margin: 0;
}

.sac-section-copy p{
  margin: 0;
  color: var(--muted);
}

.sac-side-copy h2,
.sac-side-copy h3{
  margin-top: 0;
}

@media (max-width: 900px){
  .sac-side-block,
  .sac-side-block.is-section{
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .sac-side-block .sac-side-copy,
  .sac-side-block .sac-side-media,
  .sac-side-block.is-reverse .sac-side-copy,
  .sac-side-block.is-reverse .sac-side-media{
    order: initial;
  }

  .sac-side-media .sac-image-slot{
    max-width: 100%;
    height: 280px;
  }

  .sac-side-block.is-section .sac-side-media .sac-image-slot{
    max-width: 100%;
    height: 220px;
  }
}

/* =====================================================================
   SACRAMENTS PAGE IMAGE DISPLAY OVERRIDES
   ---------------------------------------------------------------------
   Requested update:
   - Remove visible borders/background panels around Sacraments images
   - Make all Sacraments images display at one uniform size
   ---------------------------------------------------------------------
   Desktop uniform size:
   - width: 320px
   - height: 320px
   Mobile uniform size:
   - width: 240px
   - height: 240px
   ===================================================================== */

.sac-side-media .sac-image-slot{
  width: 100%;
  max-width: 320px;
  height: 320px;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.sac-side-block.is-section .sac-side-media .sac-image-slot{
  max-width: 320px;
  height: 320px;
  border: none;
  border-radius: 0;
  background: transparent;
}

.sac-side-media .sac-image-slot.is-empty::before{
  border: none;
  background: transparent;
}

@media (max-width: 900px){
  .sac-side-media .sac-image-slot,
  .sac-side-block.is-section .sac-side-media .sac-image-slot{
    max-width: 240px;
    height: 240px;
    margin: 0 auto;
  }
}

/* =====================================================================
   SACRAMENTS PAGE IMAGE SIZE + BALANCE OVERRIDES
   ---------------------------------------------------------------------
   Requested update:
   - Make all Sacraments images display larger
   - Keep all images uniform in displayed size
   - Improve visual balance for shorter sections (like The Eucharist)
     by vertically centering the text and image blocks
   ---------------------------------------------------------------------
   Desktop:
   - side image column width: 520px
   - image display size: 520px x 520px
   Mobile:
   - image display size: 320px x 320px
   ===================================================================== */

.sac-side-block{
  grid-template-columns: minmax(0, 1fr) 520px;
  align-items: center;
}

.sac-side-block.is-section{
  grid-template-columns: 520px minmax(0, 1fr);
  align-items: center;
}

.sac-side-media{
  align-self: center;
}

.sac-side-media .sac-image-slot{
  width: 100%;
  max-width: 520px;
  height: 520px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sac-side-block.is-section .sac-side-media .sac-image-slot{
  max-width: 520px;
  height: 520px;
  border: none;
  border-radius: 0;
  background: transparent;
}

@media (max-width: 900px){
  .sac-side-block,
  .sac-side-block.is-section{
    grid-template-columns: 1fr;
    align-items: start;
  }

  .sac-side-media .sac-image-slot,
  .sac-side-block.is-section .sac-side-media .sac-image-slot{
    max-width: 320px;
    height: 320px;
    margin: 0 auto;
  }
}

/* =====================================================================
   HISTORY PAGE IMAGE / TEXT LAYOUT
   ---------------------------------------------------------------------
   Drop image files beside history.html using:
   Hist_01.png, Hist_02.png, Hist_03.png, Hist_04.png, Hist_05.png, Hist_06.png
   Missing files will show a labeled placeholder.
   ===================================================================== */

.history-side-block{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 22px;
  align-items: center;
  margin: 0 0 22px;
}

.history-side-block.is-reverse .history-copy{ order: 2; }
.history-side-block.is-reverse .history-media{ order: 1; }

.history-copy{
  min-width: 0;
}

.history-media{
  display: flex;
  justify-content: center;
  align-items: center;
}

.history-image-slot{
  width: 100%;
  max-width: 380px;
  height: 380px;
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(138,106,47,.22);
  border-radius: 14px;
}

.history-image-slot img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  background: transparent;
}

.history-image-slot img.history-photo-top{
  object-position: center 20%;
}

.history-image-slot img.history-photo-center{
  object-position: center center;
}

.history-image-slot.is-empty::before{
  content: "Image Placeholder — " attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

@media (max-width: 900px){
  .history-side-block{
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .history-side-block.is-reverse .history-copy,
  .history-side-block.is-reverse .history-media{
    order: initial;
  }

  .history-image-slot{
    max-width: 300px;
    height: 300px;
    margin: 0 auto;
  }
}

/* =====================================================================
   NAV ICON SIZE OVERRIDES
   ---------------------------------------------------------------------
   Requested update:
   - Make the top navigation icon badges much larger and easier to read.
   ===================================================================== */

.nav .nav-link{
  gap: 9px;
}

.nav-icon-badge{
  width: 28px;
  height: 28px;
  font-size: 17px;
  font-weight: 700;
}

@media (max-width: 900px){
  .nav .nav-link{
    gap: 8px;
  }

  .nav-icon-badge{
    width: 24px;
    height: 24px;
    font-size: 14px;
  }
}

/* =====================================================================
   NAV ICON PLAIN STYLE OVERRIDES
   ---------------------------------------------------------------------
   Requested update:
   - Remove the round icon bubble/background
   - Use larger plain icons for clearer readability
   - History uses an hourglass-with-sand icon
   - Gallery uses a camera icon
   ===================================================================== */

.nav .nav-link{
  gap: 8px;
}

.nav-icon-badge{
  width: auto;
  height: auto;
  min-width: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

@media (max-width: 900px){
  .nav .nav-link{
    gap: 7px;
  }

  .nav-icon-badge{
    font-size: 20px;
  }
}

/* =====================================================================
   NAV ICON UNIFORM SIZE OVERRIDES
   ---------------------------------------------------------------------
   Requested update:
   - Make all nav icons read at the same visual size
   - Give every icon the same width footprint
   - Use fuller symbols for Home, Bulletin, and Contact
   ===================================================================== */

.nav .nav-link{
  gap: 8px;
}

.nav-icon-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35em;
  min-width: 1.35em;
  height: 1em;
  padding: 0;
  font-size: 24px;
  line-height: 1;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  transform: translateY(1px);
}

/* Tiny per-icon nudges so they feel visually even */
.nav-icon-home{ font-size: 24px; }
.nav-icon-bulletin{ font-size: 24px; }
.nav-icon-sacraments{ font-size: 24px; }
.nav-icon-history{ font-size: 24px; }
.nav-icon-gallery{ font-size: 24px; }
.nav-icon-contact{ font-size: 24px; }
.nav-icon-directory{ font-size: 24px; }

@media (max-width: 900px){
  .nav .nav-link{
    gap: 7px;
  }

  .nav-icon-badge{
    width: 1.3em;
    min-width: 1.3em;
    font-size: 21px;
  }

  .nav-icon-home,
  .nav-icon-bulletin,
  .nav-icon-sacraments,
  .nav-icon-history,
  .nav-icon-gallery,
  .nav-icon-contact,
  .nav-icon-directory{
    font-size: 21px;
  }
}

/* =====================================================================
   DYNAMIC GALLERY DISPLAY
   ---------------------------------------------------------------------
   gallery.html now reads /data/gallery.json and renders the photo cards.
   If an image file is missing, a labeled placeholder is shown.
   ===================================================================== */

.gallery-image-slot{
  min-height: 190px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(90,31,43,.08), rgba(138,106,47,.08)),
    repeating-linear-gradient(45deg, rgba(90,31,43,.03) 0 10px, rgba(138,106,47,.03) 10px 20px);
}

.gallery-image-slot img{
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.gallery-image-slot.is-empty::before{
  content: "Image Placeholder — " attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

.gallery-card-title{
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.gallery-card-caption{
  display: block;
}

.gallery-empty{
  padding: 18px;
  border: 1px dashed rgba(138,106,47,.35);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
  background: rgba(243,239,230,.45);
}

/* =====================================================================
   GALLERY EDITOR HELP / PREVIEW STYLES
   ---------------------------------------------------------------------
   Used in admin/gallery-editor.html
   ===================================================================== */

.gallery-preview-box{
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.gallery-preview-box .gallery-image-slot{
  min-height: 180px;
}

.gallery-preview-box .gallery-image-slot img{
  height: 180px;
  object-fit: contain;
  background: #fff;
}

.gallery-preview-meta{
  padding: 10px 12px;
  border-top: 1px solid var(--rule);
}

.gallery-preview-meta strong{
  display: block;
  margin-bottom: 4px;
}

/* =====================================================================
   BULLETIN EDITOR LAYOUT GUIDE PREVIEWS
   ---------------------------------------------------------------------
   Shows clear mini examples of each bulletin card type inside the editor.
   ===================================================================== */

.bulletin-layout-help{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.bulletin-layout-help-card{
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 12px;
  background: #fffdfa;
}

.bulletin-layout-help-card h3{
  margin: 10px 0 6px;
  font-size: 16px;
}

.bulletin-layout-help-card p{
  margin: 0;
  color: #2a2a2a;
  line-height: 1.45;
  font-size: 14px;
}

.layout-mini{
  border: 1px solid rgba(90,31,43,.16);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.layout-mini-half,
.layout-mini-wide{
  padding: 12px;
}

.layout-mini-feature,
.layout-mini-spotlight{
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  min-height: 110px;
}

.layout-mini-spotlight{
  grid-template-columns: 116px minmax(0, 1fr);
  min-height: 130px;
}

.layout-mini-art{
  background: linear-gradient(180deg, rgba(243,239,230,.60), rgba(243,239,230,.24));
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(90,31,43,.10);
}

.layout-mini-art.large{
  padding: 10px;
}

.layout-mini-art img{
  width: 100%;
  max-width: 100%;
  max-height: 96px;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  background: #fff;
}

.layout-mini-art.large img{
  max-height: 120px;
}

.layout-mini-copy{
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}

.layout-mini-heading{
  width: 78%;
  height: 12px;
  border-radius: 999px;
  background: rgba(90,31,43,.30);
}

.layout-mini-heading.wide{
  width: 50%;
}

.layout-mini-heading.spotlight{
  width: 86%;
  height: 16px;
}

.layout-mini-text-row{
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(42,42,42,.12);
}

.layout-mini-text-row.short{
  width: 68%;
}

@media (max-width: 900px){
  .bulletin-layout-help{
    grid-template-columns: 1fr;
  }
}

/* =====================================================================
   BULLETIN V2: Announcements + Bulletin Cards
   ---------------------------------------------------------------------
   - Announcements are clean, short, and readable (Home + Bulletin page).
   - Bulletin cards are max 2 columns on desktop, 1 column on mobile.
   - Each card can have an optional image; images are uniform sized.
   ===================================================================== */

.ann-item{
  padding: 10px 12px;
  border: 1px solid rgba(138,106,47,.14);
  border-radius: 12px;
  background: rgba(255,255,255,.75);
}

.ann-title{
  margin: 0 0 6px;
  font-size: 16px;
}

.ann-body{
  margin: 0;
  color: #2a2a2a;
}

.bulletin-cards-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.bulletin-full-stack{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.bulletin-card{
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
}

.bulletin-card.bulletin-wide{
  grid-column: 1 / -1;
}

.bulletin-card.bulletin-media{
  --media-text-width: 430px;
  --media-image-track: 260px;
  --media-image-width: 220px;
  --media-image-max-height: 300px;
  --media-card-min-height: 286px;
  --media-gap: 26px;
  grid-column: 1 / -1;
  grid-template-columns: var(--media-text-width) var(--media-image-track);
  column-gap: var(--media-gap);
  justify-content: center;
  align-items: stretch;
  min-height: var(--media-card-min-height);
}

.bulletin-card.bulletin-media .bulletin-card-body{
  grid-column: 1;
  align-self: stretch;
  justify-self: start;
  width: var(--media-text-width);
  box-sizing: border-box;
  padding: 28px 0 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.bulletin-card.bulletin-media .bulletin-card-title{
  margin: 0 0 14px;
}

.bulletin-card.bulletin-media .bulletin-card-text{
  width: 100%;
  max-width: 100%;
}

.bulletin-card.bulletin-media .bulletin-media{
  grid-column: 2;
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: var(--media-image-width);
  aspect-ratio: 3 / 4;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.bulletin-card.bulletin-media .bulletin-media img{
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
}

.bulletin-card.bulletin-media.bulletin-no-image{
  grid-template-columns: 1fr;
}

.bulletin-card.bulletin-media.bulletin-no-image .bulletin-card-body{
  grid-column: 1;
}

.bulletin-card.bulletin-media.bulletin-no-image .bulletin-media{
  display: none;
}
.bulletin-card.bulletin-feature{
  --feature-image-track: 360px;
  --feature-image-max-height: 460px;
  grid-column: 1 / -1;
  grid-template-columns: var(--feature-image-track) minmax(0, 1fr);
  align-items: stretch;
}

.bulletin-card.bulletin-feature .bulletin-media{
  min-height: 0;
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 0;
  background: transparent;
}

.bulletin-card.bulletin-feature .bulletin-media img{
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
}

.bulletin-card.bulletin-feature .bulletin-card-body{
  padding: 22px 22px 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.bulletin-card.bulletin-feature .bulletin-card-title{
  font-size: 25px;
  line-height: 1.15;
  margin-bottom: 12px;
}

.bulletin-card.bulletin-feature .bulletin-card-text{
  font-size: 15px;
  line-height: 1.6;
}

.bulletin-card.bulletin-feature.bulletin-no-image{
  grid-template-columns: 1fr;
}


.bulletin-card.bulletin-stacked{
  grid-column: auto;
  grid-template-columns: 1fr;
  align-content: start;
}

.bulletin-card.bulletin-stacked .bulletin-media{
  width: calc(100% - 28px);
  max-width: none;
  margin: 18px 14px 0;
  aspect-ratio: 3 / 2;
  background: #f6f2e8;
  border: 1px solid rgba(138,106,47,.12);
  border-radius: 14px;
  overflow: hidden;
}

.bulletin-card.bulletin-stacked .bulletin-media img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: #f6f2e8;
}

.bulletin-card.bulletin-stacked .bulletin-card-body{
  padding: 18px 18px 20px;
  align-items: stretch;
}

.bulletin-card.bulletin-stacked .bulletin-card-title{
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.bulletin-card.bulletin-stacked .bulletin-card-credit{
  margin: -2px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(36,74,132,.14);
  color: #244a84;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 14.5px;
  line-height: 1.45;
}

.bulletin-card.bulletin-stacked .bulletin-card-text{
  color: #3f392f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: .01em;
}

.bulletin-card.bulletin-stacked.bulletin-no-image .bulletin-media{
  display: none;
}


.bulletin-media{
  min-height: 126px;
  position: relative;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
}

.bulletin-media img{
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  display: block;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  object-fit: cover;
  object-position: center top;
}

.bulletin-media.is-empty::before{
  content: "Image (optional)";
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

.bulletin-media.is-empty{
  min-height: 120px;
  padding: 0;
}

.bulletin-media.is-empty[data-label]::after{
  content: attr(data-label);
  position: absolute;
  bottom: 8px;
  left: 10px;
  color: rgba(42,42,42,.55);
  font-size: 12px;
}

.bulletin-card-body{
  padding: 12px 14px 14px;
}

.bulletin-card-title{
  margin: 0 0 8px;
  font-size: 17px;
}

.bulletin-card-text{
  color: #2a2a2a;
  line-height: 1.45;
}

@media (max-width: 900px){
  .bulletin-cards-grid{
    grid-template-columns: 1fr;
  }

  .bulletin-card.bulletin-media,
  .bulletin-card.bulletin-feature{
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .bulletin-card.bulletin-media .bulletin-media,
  .bulletin-card.bulletin-feature .bulletin-media{
    width: 100%;
    border: 0;
    padding: 0;
    justify-content: center;
    min-height: 0;
  }

  .bulletin-card.bulletin-media .bulletin-card-body{
    width: 100%;
    padding: 18px 18px 18px;
  }

  .bulletin-card.bulletin-media .bulletin-media{
    max-width: 244px;
  }

  .bulletin-card.bulletin-feature .bulletin-media{
    max-width: 320px;
  }

  .bulletin-card.bulletin-media .bulletin-media img,
  .bulletin-card.bulletin-feature .bulletin-media img{
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
  }

  .bulletin-card.bulletin-feature .bulletin-card-title{
    font-size: 22px;
  }

  .bulletin-media{
    height: auto;
  }
}


/* =====================================================================
   BULLETIN FULL PAGE NAVIGATION (PAGER)
   ---------------------------------------------------------------------
   Full bulletin is shown as cards (max 2 columns) with paging:
   - 8 sections per page
   ===================================================================== */

.bul-pager{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 14px;
  flex-wrap: wrap;
}

.bul-pager .badge{
  white-space: nowrap;
}

.bul-pager button[disabled]{
  opacity: 0.45;
  cursor: not-allowed;
}

  .home-lock-body{
    overflow: visible;
  }
  .home-lock-card .card-footer{
    position: static;
    background: transparent;
  }
}

/* =====================================================================
   BULLETIN PAGING UI (6 per page)
   ===================================================================== */
.bul-pager{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 14px;
  flex-wrap: wrap;
}
.bul-pager .badge{ white-space: nowrap; }
.bul-pager button[disabled]{ opacity: 0.45; cursor: not-allowed; }


/* =====================================================================
   BULLETIN IMAGE PICKER (Option A)
   ---------------------------------------------------------------------
   The editor picks from filenames; webmaster uploads images manually.
   ===================================================================== */
.bulletin-image-picker code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

/* =====================================================================
   SPONSOR STRIP STYLES (Bulletin pages)
   ---------------------------------------------------------------------
   Renders a clean, subtle sponsor grid using data/sponsors.json.
   ===================================================================== */

.sponsor-strip{
  margin-top: 12px;
}

.sponsor-strip h2{
  margin: 0 0 8px;
  font-size: 14px;
  letter-spacing: .2px;
  color: var(--maroon, #5a1f2b);
}

.sponsor-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 900px){
  .sponsor-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px){
  .sponsor-grid{ grid-template-columns: 1fr; }
}

.sponsor-tile{
  display:flex;
  gap:10px;
  align-items:flex-start;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 10px 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,.04);
}

.sponsor-logo{
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
}

.sponsor-copy{
  min-width: 0;
}

.sponsor-name{
  margin: 0;
  font-size: 13px;
  font-weight: 800;
}

.sponsor-blurb{
  margin: 4px 0 0;
  font-size: 12px;
  color: rgba(31,31,31,.72);
  line-height: 1.25;
}

.sponsor-meta{
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.25;
}

.sponsor-note{
  font-size: 11px;
  color: rgba(31,31,31,.62);
}

/* =====================================================================
   HOME PAGE: MATCH LEFT HEIGHT TO RIGHT
   ---------------------------------------------------------------------
   Goal:
   - Latest Bulletin (left) may grow as needed, but it must NOT exceed
     the height of the right column (About the Parish + Announcements).
   - The left column becomes scrollable only if it would exceed the right.
   Implementation:
   - JS sets the left card's max-height to the right card's measured height.
   - CSS makes the left card body scrollable and keeps the footer solid.
   ===================================================================== */

.home-left{
  display: flex;
  flex-direction: column;
}

.home-left .card-body{
  flex: 1;
  min-height: 0;
  overflow: auto;
}

/* Make the "View all bulletin items →" area SOLID WHITE so text cannot scroll behind it */
.home-left .card-footer{
  position: sticky;
  bottom: 0;
  background: #fff;                 /* solid white (requested) */
  border-top: 1px solid var(--rule);
  padding-top: 12px;
  box-shadow: 0 -8px 18px rgba(0,0,0,.05);
}

/* On small screens, disable sticky footer and allow natural layout */
@media (max-width: 900px){
  .home-left .card-footer{
    position: static;
    box-shadow: none;
  }
  .home-left .card-body{
    overflow: visible;
  }
}


/* Bulletin pager readability */
.bul-page-indicator{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-inline: 12px;
}
.bul-page-indicator span{
  display: inline-block;
}
.bul-page-indicator #bulPageNum,
.bul-page-indicator #bulPageTotal,
.bul-page-indicator #bulPageNum2,
.bul-page-indicator #bulPageTotal2{
  min-width: 1ch;
  text-align: center;
  font-weight: 800;
}


/* =====================================================================
   HOME PAGE — SAINT THOMAS PARISH IDENTITY IMAGE
   ---------------------------------------------------------------------
   Small fixed devotional image under "About the Parish". Keeps the home
   column balanced without adding too much vertical bulk.
   ===================================================================== */
.about-parish-saint-figure{
  margin: 10px 0 12px;
  text-align: center;
}

.about-parish-saint-image{
  display: inline-block;
  width: min(100%, 190px);
  max-height: 220px;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}

.contact-office-card{
  position: relative;
}

@media (max-width: 900px){
  .about-parish-saint-figure{
    margin-bottom: 10px;
  }

  .about-parish-saint-image{
    width: min(100%, 170px);
    max-height: 200px;
  }
}

@media (max-width: 900px){
  .parish-hall-photo-box,
  .parish-house-placeholder-compact .parish-hall-photo-box{
    min-height: 205px;
    max-height: 205px;
  }

  .parish-hall-photo-img{
    object-position: center 54%;
  }

  .contact-office-card .parish-hall-photo-box,
  .contact-office-card .parish-house-placeholder-compact .parish-hall-photo-box{
    min-height: 205px;
    max-height: 205px;
  }
}


/* =====================================================================
   HOME PAGE BULLETIN PREVIEW CARDS
   ===================================================================== */
.bulletin-preview-grid{
  display: grid;
  gap: 10px;
}

.bulletin-preview-card{
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.bulletin-preview-card:hover{
  background: rgba(243,239,230,.45);
  text-decoration: none;
}

.bulletin-preview-thumb{
  width: 92px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(243,239,230,.55);
}

.bulletin-preview-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bulletin-preview-thumb.is-empty{
  display:flex;
  align-items:center;
  justify-content:center;
}

.bulletin-preview-copy{
  min-width: 0;
}

.bulletin-preview-title{
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.2;
}

.bulletin-preview-body{
  margin: 0;
  color: #2a2a2a;
  font-size: 13px;
  line-height: 1.35;
}

@media (max-width: 900px){
  .bulletin-preview-card{
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 8px;
    padding: 9px;
  }

  .bulletin-preview-thumb{
    width: 78px;
  }
}

/* =====================================================================
   BULLETIN ENTRY IMAGE OVERRIDES
   ===================================================================== */
.bulletin-card[data-image-file*="Bul_adoration_art.png"]{
  --media-text-width: 470px;
  --media-image-track: 340px;
  --media-image-width: 320px;
  --media-card-min-height: 330px;
}

.bulletin-card[data-image-file*="Bul_adoration_art.png"] .bulletin-card-body{
  justify-content: center;
  align-items: center;
  text-align: center;
}

.bulletin-card[data-image-file*="Bul_adoration_art.png"] .bulletin-card-text{
  max-width: 46ch;
}

.bulletin-card[data-image-file*="Bul_adoration_art.png"] .bulletin-media{
  aspect-ratio: 4 / 5;
  max-width: 320px;
}

.bulletin-card[data-image-file*="Bul_earth_day_art.png"]{
  --feature-image-track: 420px;
}

.bulletin-card[data-image-file*="Bul_earth_day_art.png"] .bulletin-media{
  max-width: 390px;
  aspect-ratio: 4 / 3;
}

.bulletin-card[data-image-file*="Bul_easter_hymn_art.png"]{
  --media-text-width: 430px;
  --media-image-track: 360px;
  --media-image-width: 340px;
  --media-card-min-height: 320px;
}

.bulletin-card[data-image-file*="Bul_easter_hymn_art.png"] .bulletin-media{
  max-width: 340px;
  aspect-ratio: 4 / 3;
}

.bulletin-card[data-image-file*="Bul_easter_hymn_art.png"] .bulletin-card-body{
  justify-content: center;
}

@media (max-width: 900px){
  .bulletin-card[data-image-file*="Bul_adoration_art.png"] .bulletin-media,
  .bulletin-card[data-image-file*="Bul_earth_day_art.png"] .bulletin-media,
  .bulletin-card[data-image-file*="Bul_easter_hymn_art.png"] .bulletin-media{
    max-width: 100%;
    width: 100%;
  }

  .bulletin-card[data-image-file*="Bul_adoration_art.png"] .bulletin-media{
    aspect-ratio: 4 / 5;
  }

  .bulletin-card[data-image-file*="Bul_earth_day_art.png"] .bulletin-media,
  .bulletin-card[data-image-file*="Bul_easter_hymn_art.png"] .bulletin-media{
    aspect-ratio: 4 / 3;
  }
}


/* =====================================================================
   BULLETIN CREDIT LINES + ART IMAGE TUNING
   ===================================================================== */
.bulletin-card-credit{
  margin: -2px 0 12px;
  color: #244a84;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 14.5px;
  line-height: 1.45;
  letter-spacing: .01em;
}

.bulletin-card[data-image-file*="Bul_basket_raffle_art.png"]{
  --media-text-width: 430px;
  --media-image-track: 360px;
  --media-image-width: 340px;
  --media-card-min-height: 300px;
}

.bulletin-card[data-image-file*="Bul_basket_raffle_art.png"] .bulletin-media,
.bulletin-card[data-image-file*="Bul_easter_hymn_art.png"] .bulletin-media{
  max-width: 340px;
  aspect-ratio: 4 / 3;
}

.bulletin-card[data-image-file*="Bul_basket_raffle_art.png"] .bulletin-media img,
.bulletin-card[data-image-file*="Bul_easter_hymn_art.png"] .bulletin-media img,
.bulletin-card[data-image-file*="Bul_earth_day_art.png"] .bulletin-media img{
  object-position: center center !important;
}

.bulletin-card[data-image-file*="Bul_adoration_art.png"]{
  --media-text-width: 470px;
  --media-image-track: 360px;
  --media-image-width: 340px;
  --media-card-min-height: 300px;
}

.bulletin-card[data-image-file*="Bul_adoration_art.png"] .bulletin-media{
  max-width: 340px;
  aspect-ratio: 4 / 3;
  align-self: center;
}

.bulletin-card[data-image-file*="Bul_adoration_art.png"] .bulletin-media img{
  object-position: center center !important;
}

@media (max-width: 900px){
  .bulletin-card[data-image-file*="Bul_basket_raffle_art.png"] .bulletin-media,
  .bulletin-card[data-image-file*="Bul_adoration_art.png"] .bulletin-media,
  .bulletin-card[data-image-file*="Bul_easter_hymn_art.png"] .bulletin-media{
    max-width: 100%;
    width: 100%;
    aspect-ratio: 4 / 3;
  }
}


/* =====================================================================
   HOME PAGE BULLETIN PREVIEW FIT RULES
   ---------------------------------------------------------------------
   Show as many preview cards as will fit inside the left column without
   overtaking the right-side height. The preview area is clipped cleanly,
   and hidden cards are removed entirely from layout.
   ===================================================================== */
#bulletin-preview{overflow:hidden;}
#bulletin-preview .bulletin-preview-card[hidden]{display:none !important;}


/* =====================================================================
   ADORATION QUOTE STYLING
   ===================================================================== */
.adoration-quote-block{
  margin: 0 0 18px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(138,106,47,.14);
  border-radius: 14px;
  background: linear-gradient(to bottom, rgba(255,255,255,.98), rgba(247,244,238,.88));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.adoration-intro{
  margin: 0 0 10px;
  color: #4a463f;
  line-height: 1.55;
  text-align: center;
}

.adoration-quote{
  margin: 0;
  padding: 0 0 0 14px;
  border-left: 3px solid rgba(36,74,132,.28);
  color: #244a84;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.6;
}

.adoration-attrib{
  margin-top: 10px;
  color: #244a84;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 15px;
  text-align: right;
}



.sponsor-tile-link{
  color: inherit;
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.sponsor-tile-link:hover{
  text-decoration: none;
  transform: translateY(-1px);
}

.sponsor-tile-link:focus{
  text-decoration: none;
}

.sponsor-magos_technologies.sponsor-tile-link:hover,
.sponsor-magos_technologies.sponsor-tile-link:focus{
  border-color: rgba(45,108,223,.65);
  box-shadow: 0 0 0 3px rgba(45,108,223,.14), 0 10px 20px rgba(0,0,0,.08);
}


.bulletin-date-emphasis{display:inline-block;font-weight:900;color:#173a63;font-size:1.08em;}


/* Gallery improvements */
.gallery-card{cursor:zoom-in;}
.gallery-card-image-wrap{height:260px;overflow:hidden;border-radius:14px;background:#ede7da;}
.gallery-card-image-wrap img{width:100%;height:100%;object-fit:contain;object-position:center center;display:block;background:#ede7da;}
@media (max-width: 900px){.gallery-card-image-wrap{height:320px;}}
.gallery-lightbox{position:fixed;inset:0;background:rgba(22,27,35,.9);display:none;align-items:center;justify-content:center;padding:24px;z-index:9999;}
.gallery-lightbox.is-open{display:flex;}
.gallery-lightbox-image{max-width:min(96vw,1600px);max-height:90vh;width:auto;height:auto;border-radius:12px;box-shadow:0 18px 50px rgba(0,0,0,.45);background:#fff;}
.gallery-lightbox-close{position:absolute;top:18px;right:22px;width:48px;height:48px;border:0;border-radius:999px;font-size:32px;line-height:1;cursor:pointer;background:rgba(255,255,255,.92);color:#173a63;box-shadow:0 6px 16px rgba(0,0,0,.25);}
body.gallery-lightbox-open{overflow:hidden;}


.contact-map-link{
  display: inline-block;
  color: #173a63;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(23,58,99,.35);
  padding-bottom: 1px;
}
.contact-map-link:hover,
.contact-map-link:focus{
  color: #0f2846;
  border-bottom-color: rgba(15,40,70,.8);
  text-decoration: none;
}


/* Gallery sizing and full-view */
.gallery-card{ cursor: zoom-in; }
.gallery-card .gallery-image-slot{ min-height: 260px; }
.gallery-card .gallery-image-slot img{ height: 260px; object-fit: contain; object-position: center center; background: #ede7da; }
@media (max-width: 900px){
  .gallery-card .gallery-image-slot{ min-height: 320px; }
  .gallery-card .gallery-image-slot img{ height: 320px; }
}
.gallery-lightbox{ position: fixed; inset: 0; background: rgba(22,27,35,.9); display: none; align-items: center; justify-content: center; padding: 24px; z-index: 9999; }
.gallery-lightbox.is-open{ display: flex; }
.gallery-lightbox-image{ max-width: min(96vw,1600px); max-height: 90vh; width: auto; height: auto; border-radius: 12px; box-shadow: 0 18px 50px rgba(0,0,0,.45); background: #fff; }
.gallery-lightbox-close{ position: absolute; top: 18px; right: 22px; width: 48px; height: 48px; border: 0; border-radius: 999px; font-size: 32px; line-height: 1; cursor: pointer; background: rgba(255,255,255,.92); color: #173a63; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
body.gallery-lightbox-open{ overflow: hidden; }
