.chapel-image-banner {
  --chapel-banner-green: #29463c;
  --chapel-banner-cream: #fffdf7;
  --chapel-banner-gold: #c9a968;
  background: #e9ece7;
  isolation: isolate;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.chapel-image-banner--banner { aspect-ratio: 16 / 7; }
.chapel-image-banner--section { aspect-ratio: 16 / 9; }
.chapel-image-banner--side { aspect-ratio: 4 / 5; max-width: 460px; }

/* Home keeps its approved title and introduction in the page content below its Banner. */
body.page-id-12 .entry-content > .chapel-image-banner + h1.wp-block-heading {
  border-bottom: 1px solid rgba(70, 105, 75, .35);
  color: #355c3c;
  font-family: "Droid Serif", "droid serif", Georgia, serif;
  font-size: clamp(1.9rem, 3.45vw, 2.55rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.16;
  margin: 38px 0 14px;
  padding: 0 0 16px;
  text-transform: none;
}
body.page-id-12 .entry-content > .chapel-image-banner + h1.wp-block-heading + p.wp-block-paragraph {
  background: linear-gradient(105deg, #f6f5ee 0%, #fbfaf7 100%);
  border-left: 4px solid #66866b;
  box-shadow: 0 9px 22px rgba(47, 72, 52, .07);
  color: #465049;
  font-size: 1.08rem;
  line-height: 1.78;
  margin: 0 0 36px;
  padding: 22px 25px 23px;
}

/* A Page Header is a dedicated opening area below the Site Header, not page content. */
.chapel-page-header--color { background: linear-gradient(118deg, #29463c 0%, #3d6154 62%, #547369 100%); color: #fffdf7; margin: 0; padding: clamp(42px, 7vw, 88px) 24px; }
.chapel-page-header__inner { margin: 0 auto; max-width: 1120px; width: 100%; }
.chapel-page-header__eyebrow { color: #e5cf9c; font-size: 12px; font-weight: 700; letter-spacing: .12em; line-height: 1.35; margin: 0 0 11px; text-transform: uppercase; }
.chapel-page-header__title { color: inherit; line-height: 1.08; margin: 0; max-width: 820px; }
.chapel-page-header__intro { color: inherit; font-size: clamp(16px, 1.65vw, 20px); line-height: 1.55; margin: 14px 0 0; max-width: 760px; }
.chapel-image-banner--page-header { aspect-ratio: 16 / 6; margin: 0; }
.chapel-image-banner--page-header::after { background: linear-gradient(90deg, rgba(19, 42, 35, .78) 0%, rgba(24, 47, 39, .52) 48%, rgba(21, 40, 34, .18) 100%); content: ''; inset: 0; pointer-events: none; position: absolute; z-index: 2; }
.chapel-image-banner--page-header .chapel-page-header__copy { align-items: center; display: flex; inset: 0; padding: clamp(34px, 6vw, 78px) 24px; pointer-events: none; position: absolute; z-index: 3; }
.chapel-image-banner--page-header .chapel-page-header__title { color: #fffdf7; text-shadow: 0 2px 14px rgba(13, 30, 24, .28); }
.chapel-image-banner--page-header .chapel-page-header__intro { color: #fffdf7; text-shadow: 0 1px 10px rgba(13, 30, 24, .32); }
.chapel-image-banner--page-header .chapel-image-banner__controls { z-index: 5; }

.chapel-image-banner--defined { border: 1px solid rgba(41, 70, 60, .24); border-radius: 2px; box-shadow: 0 2px 5px rgba(29, 47, 40, .08); }
.chapel-image-banner--soft { border: 1px solid rgba(255, 255, 255, .78); border-radius: 22px; box-shadow: 0 14px 30px rgba(27, 47, 39, .16); }
.chapel-image-banner--blended { border-radius: 34px; box-shadow: 0 12px 34px rgba(27, 47, 39, .10); }

.chapel-image-banner__slides { height: 100%; position: relative; width: 100%; }
.chapel-image-banner__slide { height: 100%; inset: 0; margin: 0; opacity: 0; overflow: hidden; pointer-events: none; position: absolute; transition: opacity .65s ease; width: 100%; }
.chapel-image-banner__slide.is-active { opacity: 1; pointer-events: auto; z-index: 1; }
.chapel-image-banner__image { display: block; height: 100%; object-position: var(--cib-x) var(--cib-y); transform: scale(var(--cib-scale)); transform-origin: center; width: 100%; }
.chapel-image-banner__image--cover { object-fit: cover; }
.chapel-image-banner__image--contain { background: #e8ebe6; object-fit: contain; }

.chapel-image-banner__overlay { bottom: auto; color: var(--chapel-banner-cream); left: var(--cib-overlay-x); margin: 0; max-width: min(68%, 540px); position: absolute; top: var(--cib-overlay-y); transform: translate(-50%, -50%); z-index: 2; }
.chapel-image-banner__overlay > div { background: linear-gradient(135deg, rgba(25, 50, 42, .91), rgba(41, 70, 60, .79)); border: 1px solid rgba(255, 255, 255, .6); border-radius: 12px; box-shadow: 0 9px 24px rgba(16, 33, 28, .26); padding: clamp(15px, 2.2vw, 26px); }
.chapel-image-banner__title { color: inherit; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(22px, 2.8vw, 38px); font-weight: 500; line-height: 1.08; margin: 0; }
.chapel-image-banner__text { color: inherit; font-size: clamp(13px, 1.25vw, 17px); line-height: 1.48; margin: 10px 0 0; }
.chapel-image-banner__button { background: var(--chapel-banner-cream); border-radius: 999px; color: var(--chapel-banner-green); display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .035em; margin-top: 15px; padding: 9px 15px; text-decoration: none; text-transform: uppercase; transition: background .18s ease, color .18s ease, transform .18s ease; }
.chapel-image-banner__button:hover,
.chapel-image-banner__button:focus { background: #f2dba9; color: #203a31; text-decoration: none; transform: translateY(-1px); }

/* Quiet glass is the Chapel default: three individual controls, never a heavy control bar. */
.chapel-image-banner__controls { align-items: center; background: transparent; border: 0; bottom: 16px; box-shadow: none; display: inline-flex; gap: 8px; overflow: visible; position: absolute; right: 17px; z-index: 4; }
.chapel-image-banner__controls button { align-items: center; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); background: rgba(255, 253, 247, .36); border: 1px solid rgba(255, 255, 255, .64); border-radius: 50%; box-shadow: 0 2px 10px rgba(20, 39, 33, .13), inset 0 1px 0 rgba(255, 255, 255, .28); color: rgba(31, 62, 52, .94); cursor: pointer; display: inline-flex; font-family: Georgia, 'Times New Roman', serif; font-size: 29px; height: 38px; justify-content: center; line-height: 1; padding: 0; transition: background .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease; width: 38px; }
.chapel-image-banner__controls button + button { border-left-color: rgba(255, 255, 255, .64); }
.chapel-image-banner__controls button:hover,
.chapel-image-banner__controls button:focus-visible { background: rgba(255, 253, 247, .86); box-shadow: 0 4px 14px rgba(20, 39, 33, .2), inset 0 1px 0 rgba(255, 255, 255, .5); color: var(--chapel-banner-green); outline: 2px solid rgba(255, 253, 247, .78); outline-offset: 2px; transform: translateY(-1px); }
.chapel-image-banner__pause { font-family: Arial, sans-serif !important; font-size: 15px !important; font-weight: 700; }

/* Edge arrows keep the photo almost completely clear while retaining pause control. */
.chapel-image-banner--controls-minimal .chapel-image-banner__controls { background: transparent; bottom: 0; display: block; inset: 0; pointer-events: none; right: 0; }
.chapel-image-banner--controls-minimal .chapel-image-banner__controls button { background: rgba(24, 53, 44, .26); border-color: rgba(255, 255, 255, .54); color: rgba(255, 253, 247, .96); pointer-events: auto; position: absolute; }
.chapel-image-banner--controls-minimal .chapel-image-banner__previous { left: 14px; top: 50%; transform: translateY(-50%); }
.chapel-image-banner--controls-minimal .chapel-image-banner__next { right: 14px; top: 50%; transform: translateY(-50%); }
.chapel-image-banner--controls-minimal .chapel-image-banner__pause { bottom: 14px; right: 14px; }
.chapel-image-banner--controls-minimal .chapel-image-banner__previous:hover,
.chapel-image-banner--controls-minimal .chapel-image-banner__previous:focus-visible,
.chapel-image-banner--controls-minimal .chapel-image-banner__next:hover,
.chapel-image-banner--controls-minimal .chapel-image-banner__next:focus-visible { transform: translateY(-50%) scale(1.05); }
.chapel-image-banner--controls-minimal .chapel-image-banner__controls button:hover,
.chapel-image-banner--controls-minimal .chapel-image-banner__controls button:focus-visible { background: rgba(24, 53, 44, .68); color: var(--chapel-banner-cream); }

.chapel-image-banner-page-layout { align-items: start; display: grid; gap: clamp(20px, 3vw, 38px); margin: 30px 0; }
.chapel-image-banner-page-layout.is-left { grid-template-columns: minmax(220px, 31%) minmax(0, 1fr); }
.chapel-image-banner-page-layout.is-right { grid-template-columns: minmax(0, 1fr) minmax(220px, 31%); }
.chapel-image-banner-page-layout.is-two-sided { grid-template-columns: minmax(190px, 25%) minmax(0, 1fr) minmax(190px, 25%); }
.chapel-image-banner-page-layout__content { min-width: 0; }
.chapel-image-banner-page-layout__side { min-width: 0; }
.chapel-image-banner-page-layout__side:empty { display: none; }
.chapel-image-banner-page-layout.is-right .chapel-image-banner-page-layout__side--left { display: none; }
.chapel-image-banner-page-layout.is-right .chapel-image-banner-page-layout__content { grid-column: 1; grid-row: 1; }
.chapel-image-banner-page-layout.is-right .chapel-image-banner-page-layout__side--right { grid-column: 2; grid-row: 1; }
.chapel-image-banner-page-layout.is-left .chapel-image-banner-page-layout__side--right { display: none; }
.chapel-image-banner-page-layout__side .chapel-image-banner + .chapel-image-banner { margin-top: 20px; }

@media (max-width: 720px) {
  .chapel-image-banner--banner { aspect-ratio: 16 / 10; }
  .chapel-image-banner--section { aspect-ratio: 4 / 3; }
  .chapel-image-banner--page-header { aspect-ratio: 16 / 10; }
  .chapel-page-header--color { padding: 42px 22px; }
  .chapel-page-header__eyebrow { font-size: 11px; margin-bottom: 9px; }
  .chapel-page-header__intro { font-size: 16px; margin-top: 11px; }
  .chapel-image-banner--page-header::after { background: linear-gradient(90deg, rgba(19, 42, 35, .8), rgba(24, 47, 39, .4)); }
  .chapel-image-banner--soft { border-radius: 15px; }
  .chapel-image-banner--blended { border-radius: 22px; }
  body.page-id-12 .entry-content > .chapel-image-banner + h1.wp-block-heading { font-size: 1.78rem; line-height: 1.22; margin-top: 27px; padding-bottom: 13px; }
  body.page-id-12 .entry-content > .chapel-image-banner + h1.wp-block-heading + p.wp-block-paragraph { font-size: 1rem; line-height: 1.7; margin-bottom: 28px; padding: 19px 18px; }
  .chapel-image-banner__image { object-position: var(--cib-phone-x) var(--cib-phone-y); transform: scale(var(--cib-phone-scale)); }
  .chapel-image-banner__overlay { left: var(--cib-phone-overlay-x); max-width: 82%; top: var(--cib-phone-overlay-y); }
  .chapel-image-banner__overlay > div { border-radius: 10px; padding: 14px; }
  .chapel-image-banner__title { font-size: clamp(21px, 7vw, 30px); }
  .chapel-image-banner__text { font-size: 13px; }
  .chapel-image-banner__controls { bottom: 11px; right: 11px; }
  .chapel-image-banner__controls button { height: 44px; width: 44px; }
  .chapel-image-banner--controls-minimal .chapel-image-banner__previous { left: 10px; }
  .chapel-image-banner--controls-minimal .chapel-image-banner__next { right: 10px; }
  .chapel-image-banner--controls-minimal .chapel-image-banner__pause { bottom: 10px; right: 10px; }
  .chapel-image-banner-page-layout,
  .chapel-image-banner-page-layout.is-left,
  .chapel-image-banner-page-layout.is-right,
  .chapel-image-banner-page-layout.is-two-sided { display: block; margin: 24px 0; }
  .chapel-image-banner-page-layout__side { margin: 0 0 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .chapel-image-banner__slide,
  .chapel-image-banner__button,
  .chapel-image-banner__controls button { transition: none; }
}
