/* ==========================================================
   ST MARY'S, CHORLEY
   Regal, restrained parish website
   ========================================================== */

:root {
  --ink: #171714;
  --navy: #17202b;
  --navy-deep: #0e151d;
  --wine: #4b1720;
  --gold: #b39557;
  --gold-light: #d8c28d;
  --cream: #f4efe4;
  --paper: #fbf8f1;
  --stone: #d8d0c1;
  --muted: #756f65;
  --white: #ffffff;
  --shadow: 0 18px 60px rgba(14, 21, 29, 0.12);
  --serif-display: "Cinzel", Georgia, serif;
  --serif-body: "Libre Baskerville", Georgia, serif;
  --shell: min(1180px, calc(100% - 44px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif-body);
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

body.menu-open,
body.search-open {
  overflow: hidden;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  left: 1rem;
  top: -100px;
  padding: .75rem 1rem;
  background: var(--cream);
  color: var(--navy);
}

.skip-link:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  position: absolute;
  z-index: 100;
  width: 100%;
  color: var(--white);
}

.utility-bar {
  border-bottom: 1px solid rgba(255,255,255,.16);
  font-size: .72rem;
  letter-spacing: .08em;
  text-shadow: 0 1px 4px rgba(0,0,0,.65);
}

.utility-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.utility-address {
  white-space: nowrap;
}

.utility-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.utility-button,
.language-control {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
}

.utility-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.utility-button:hover,
.utility-button:focus-visible,
.utility-phone:hover,
.utility-phone:focus-visible {
  color: var(--gold-light);
}

.language-control {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.language-select {
  max-width: 142px;
  border: 0;
  outline: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.language-select option {
  color: var(--ink);
  background: var(--white);
}

.mobile-utilities {
  display: none;
}

.utility-inner a {
  text-decoration: none;
}

.masthead {
  min-height: 102px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.identity {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.cross-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216,194,141,.65);
  color: var(--gold-light);
  font-size: 1.65rem;
  --transform: rotate(45deg);
}

.cross-mark::first-letter {
  transform: rotate(-45deg);
}

.cross-mark {
  line-height: 1;
}

.identity-copy {
  display: flex;
  flex-direction: column;
}

.identity-copy strong {
  font-family: var(--serif-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.1;
}

.identity-copy small {
  margin-top: 5px;
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

.primary-nav a {
  position: relative;
  padding: .6rem 0;
  text-decoration: none;
  font-size: .71rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 3px;
  width: 0;
  height: 1px;
  background: var(--gold-light);
  transition: width .25s ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: .6rem;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 28px;
  height: 1px;
  margin: 6px 0;
  background: var(--white);
}

/* Search */
.search-dialog[hidden] {
  display: none;
}

.search-dialog {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: start center;
  padding: min(13vh, 110px) 20px 40px;
}

.search-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(7,11,16,.84);
  backdrop-filter: blur(8px);
  cursor: default;
}

.search-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 40px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.search-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}

.search-panel h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--serif-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 500;
  line-height: 1.1;
}

.search-close-button {
  border: 0;
  color: var(--navy);
  background: transparent;
  font: 300 2.2rem/1 Georgia, serif;
  cursor: pointer;
}

.search-form {
  display: grid;
  grid-template-columns: 1fr 55px;
  margin-top: 30px;
  border-bottom: 2px solid var(--navy);
}

.search-form input,
.search-form button {
  min-height: 58px;
  border: 0;
  background: transparent;
}

.search-form input {
  min-width: 0;
  padding: 0 8px;
  color: var(--ink);
  outline: 0;
  font: 1rem var(--serif-body);
}

.search-form button {
  color: var(--wine);
  font-size: 1.65rem;
  cursor: pointer;
}

.search-hint {
  margin: 12px 0 24px;
  color: var(--muted);
  font-size: .72rem;
}

.search-results {
  border-top: 1px solid var(--stone);
}

.search-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--stone);
  text-decoration: none;
}

.search-result > span:first-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.search-result strong {
  color: var(--navy);
  font-family: var(--serif-display);
  font-weight: 600;
}

.search-result small,
.no-results {
  color: var(--muted);
  font-size: .76rem;
}

.search-result > span:last-child {
  color: var(--wine);
}

.no-results {
  margin: 0;
  padding: 22px 4px;
}


.hero {
  position: relative;
  min-height: 820px;
  height: 94vh;
  max-height: 980px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-deep);
}

.hero-image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(14,21,29,.12), rgba(14,21,29,.12)),
    url("images/st-marys-hero.jpg") center 45% / cover no-repeat;
  transform: scale(1.02);
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 22%, rgba(179,149,87,.18), transparent 24%),
    linear-gradient(120deg, rgba(75,23,32,.24), transparent 45%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(7,11,16,.68) 0%,
      rgba(7,11,16,.48) 18%,
      rgba(7,11,16,.12) 42%,
      transparent 60%
    ),
    linear-gradient(
      90deg,
      rgba(7,11,16,.88) 0%,
      rgba(7,11,16,.52) 45%,
      rgba(7,11,16,.18) 75%
    ),
    linear-gradient(
      0deg,
      rgba(7,11,16,.65) 0%,
      transparent 35%
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 90px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold-light);
  font-family: var(--serif-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--wine);
}

.hero h1,
.section h2 {
  font-family: var(--serif-display);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(4.6rem, 9vw, 8.2rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: .9;
  text-shadow: 0 10px 42px rgba(0,0,0,.25);
}

.hero-subtitle {
  max-width: 620px;
  margin: 28px 0 0;
  color: rgba(255,255,255,.86);
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  transition: .2s ease;
}

.button-gold {
  background: var(--gold);
  color: #16130e;
}

.button-gold:hover {
  background: var(--gold-light);
}

.button-outline {
  border-color: rgba(255,255,255,.5);
  color: var(--white);
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(5px);
}

.button-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.1);
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  right: 4%;
  bottom: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: .66rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.scroll-cue i {
  font-size: 1rem;
  font-style: normal;
  color: var(--gold-light);
}

/* Shared sections */
.section {
  padding: 112px 0;
}

.section h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.3rem, 4vw, 4rem);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.12;
}

.split-layout {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: 90px;
  align-items: start;
}

.ornament {
  display: inline-block;
  margin-top: 28px;
  color: var(--gold);
  font-size: 1.25rem;
}

.prose {
  max-width: 700px;
}

.prose p {
  color: #4f4a43;
  font-size: .98rem;
}

.prose .lead {
  margin-top: 0;
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.75;
}

.signature {
  margin-top: 32px;
  color: var(--navy) !important;
  font-style: italic;
}

.signature span {
  color: var(--muted);
  font-size: .82rem;
}

.section-intro {
  max-width: 720px;
}

.section-intro.centered {
  margin: 0 auto 54px;
  text-align: center;
}

.section-intro p:last-child {
  color: var(--muted);
}

/* Mass section */
.mass-section {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}



.mass-section .section-intro,
.mass-section .section-intro p:last-child {
  position: relative;
  color: rgba(255,255,255,.7);
}

.mass-section h2 {
  color: var(--white);
}

.mass-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 18px;
}

.mass-card {
  min-height: 320px;
  padding: 34px;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.035);
}

.featured-card {
  border-color: rgba(216,194,141,.5);
  background: linear-gradient(145deg, rgba(179,149,87,.12), rgba(255,255,255,.03));
}

.card-kicker {
  margin: 0 0 10px;
  color: var(--gold-light);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.mass-card h3 {
  margin: 0 0 30px;
  font-family: var(--serif-display);
  font-size: 1.5rem;
  font-weight: 500;
}

.time-list > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,.13);
  font-size: .82rem;
}

.time-list strong {
  color: var(--gold-light);
  font-weight: 400;
  text-align: right;
}

.card-note {
  margin: 25px 0 0;
  color: rgba(255,255,255,.48);
  font-size: .72rem;
}

.center-action {
  margin-top: 38px;
  text-align: center;
}

.text-link {
  color: var(--gold-light);
  text-decoration: none;
  font-size: .78rem;
}

.text-link span {
  margin-left: 8px;
}

/* Pope's monthly prayer intention */
.papal-intention {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(216,194,141,.1), transparent 25%),
    linear-gradient(135deg, var(--navy-deep), var(--navy) 72%);
  color: var(--white);
}

.papal-intention::before,
.papal-intention::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.papal-intention::before {
  inset: 22px;
  border: 1px solid rgba(216,194,141,.18);
}

.papal-intention::after,
.papal-intention-ornament {
  display: none;
}

.papal-intention-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) minmax(180px, .55fr);
  gap: clamp(38px, 5vw, 74px);
  align-items: center;
}

.papal-intention-date {
  margin: 0 0 16px;
  color: var(--gold-light);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.papal-intention h2 {
  color: var(--white);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
}

.papal-intention-copy {
  padding-left: clamp(0px, 4vw, 58px);
  border-left: 1px solid rgba(216,194,141,.32);
}

.papal-intention-text {
  max-width: 680px;
  margin: 0;
  color: rgba(255,255,255,.86);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.9;
}

.papal-intention-copy .button {
  gap: 10px;
  margin-top: 30px;
}

.papal-intention-source {
  margin: 18px 0 0;
  color: rgba(255,255,255,.5);
  font-size: .68rem;
}

.papal-arms {
  min-height: 290px;
  display: grid;
  place-items: center;
  background-image: url("images/vatican.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.papal-arms span {
  position: relative;
  z-index: -1;
  color: rgba(216,194,141,.28);
  font-family: var(--serif-display);
  font-size: 7rem;
  line-height: 1;
}

/* Sacraments */
.feature-panel {
  background: var(--wine);
  color: var(--white);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: 80px;
}

.feature-panel h2 {
  max-width: 700px;
  color: var(--white);
}

.feature-copy > p:not(.eyebrow) {
  max-width: 650px;
  color: rgba(255,255,255,.75);
}

.feature-copy .button {
  margin-top: 20px;
}

.feature-symbol {
  min-height: 330px;
  display: grid;
  place-content: center;
  border: 1px solid rgba(216,194,141,.38);
  text-align: center;
  background:
    radial-gradient(circle, rgba(216,194,141,.1), transparent 58%);
}

.large-cross {
  color: var(--gold-light);
  font-size: 7rem;
  line-height: 1;
}

.feature-symbol p {
  margin: 24px 0 0;
  color: rgba(255,255,255,.58);
  font-family: var(--serif-display);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* Parish life */
.parish-life {
  background: var(--cream);
}

.link-grid {
  border-top: 1px solid #cfc5b4;
}

.link-card {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 32px 10px;
  border-bottom: 1px solid #cfc5b4;
  text-decoration: none;
  transition: padding .22s ease, background .22s ease;
}

.link-card:hover {
  padding-inline: 24px;
  background: rgba(255,255,255,.4);
}

.link-number {
  color: var(--gold);
  font-size: .72rem;
  letter-spacing: .08em;
}

.link-card h3 {
  margin: 0;
  color: var(--navy);
  font-family: var(--serif-display);
  font-size: 1.45rem;
  font-weight: 500;
}

.link-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .82rem;
}

.arrow {
  color: var(--wine);
  font-size: 1.2rem;
}

/* Newsletter */
.newsletter {
  background: var(--navy-deep);
  color: var(--white);
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 60px;
  align-items: center;
}

.newsletter h2 {
  color: var(--white);
}

.newsletter p:not(.eyebrow) {
  max-width: 650px;
  color: rgba(255,255,255,.68);
}

.newsletter-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.pdf-mark {
  padding: 5px 8px;
  border: 1px solid rgba(216,194,141,.45);
  color: var(--gold-light);
  font-size: .59rem;
  letter-spacing: .15em;
}

.button-cream {
  background: var(--cream);
  color: var(--navy);
}

.button-cream:hover {
  background: var(--white);
}

.newsletter-action small {
  color: rgba(255,255,255,.45);
  font-size: .68rem;
}

/* Contact */
.contact {
  background: var(--paper);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact h2 {
  max-width: 600px;
}

address {
  margin-top: 30px;
  color: var(--muted);
  font-style: normal;
}

.contact-details {
  align-self: end;
}

.contact-details > div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding: 19px 0;
  border-bottom: 1px solid var(--stone);
}

.contact-details span {
  color: var(--muted);
  font-size: .69rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.contact-details a {
  color: var(--navy);
  text-decoration: none;
}

/* Footer */
.site-footer {
  padding: 65px 0 25px;
  background: #0a0f15;
  color: rgba(255,255,255,.7);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  padding-bottom: 50px;
}

.footer-identity {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-cross {
  width: 38px;
  height: 38px;
  font-size: 1.25rem;
}

.footer-identity div {
  display: flex;
  flex-direction: column;
}

.footer-identity strong {
  color: var(--white);
  font-family: var(--serif-display);
  font-size: 1.2rem;
}

.footer-identity span {
  margin-top: 2px;
  font-size: .69rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.site-footer nav a,
.footer-bottom a {
  text-decoration: none;
  font-size: .7rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .66rem;
}

/* Responsive */
@media (max-width: 960px) {
  .utility-bar {
    display: none;
  }

  .masthead {
    min-height: 86px;
  }

  .menu-toggle {
    display: block;
    position: relative;
    z-index: 102;
  }

  .primary-nav {
    position: fixed;
    inset: 0;
    z-index: 101;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    background: rgba(14,21,29,.98);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: .25s ease;
  }

  .primary-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .primary-nav a {
  position: relative;
  padding: .6rem 0;
  text-decoration: none;
  font-size: .71rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0,0,0,.65);
}

  .mobile-utilities {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 14px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.14);
    color: rgba(255,255,255,.75);
    font-size: .72rem;
    letter-spacing: .1em;
    text-transform: uppercase;
  }

  .mobile-utilities .language-select {
    text-transform: uppercase;
  }

  .split-layout,
  .feature-grid,
  .papal-intention-inner,
  .newsletter-inner,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .mass-grid {
    grid-template-columns: 1fr;
  }

  .mass-card {
    min-height: auto;
  }

  .feature-symbol {
    min-height: 260px;
  }

  .papal-intention-copy {
    padding-left: 0;
    padding-top: 38px;
    border-left: 0;
    border-top: 1px solid rgba(216,194,141,.32);
  }

  .papal-arms {
    min-height: 230px;
    border-left: 0;
    border-top: 1px solid rgba(216,194,141,.32);
  }
}

@media (max-width: 640px) {
  :root {
    --shell: min(100% - 28px, 1180px);
  }

  .identity-copy small {
    display: none;
  }

  .identity-copy strong {
    font-size: 1.15rem;
  }

  .cross-mark {
    width: 38px;
    height: 38px;
    font-size: 1.25rem;
  }

  .hero {
    min-height: 720px;
    height: 92vh;
  }

  .hero-content {
    padding-top: 70px;
  }

  .hero h1 {
    font-size: clamp(4rem, 19vw, 6rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    max-width: 310px;
  }

  .scroll-cue {
    display: none;
  }

  .section {
    padding: 78px 0;
  }

  .split-layout {
    gap: 34px;
  }

  .section h2 {
    font-size: 2.25rem;
  }

  .mass-card {
    padding: 27px 23px;
  }

  .papal-intention::before {
    inset: 12px;
  }

  .papal-intention-inner {
    gap: 34px;
  }

  .papal-intention-copy {
    padding-top: 30px;
  }

  .link-card {
    grid-template-columns: 42px 1fr auto;
    gap: 10px;
  }

  .link-card p {
    display: none;
  }

  .link-card h3 {
    font-size: 1.12rem;
  }

  .contact-details > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .footer-top,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer nav {
    flex-direction: column;
    gap: 12px;
  }

  .search-dialog {
    padding: 18px;
  }

  .search-panel {
    max-height: calc(100vh - 36px);
    padding: 28px 22px;
  }

  .search-hint {
    display: none;
  }
}

/* =========================
   WELCOME / CHURCH IMAGE
   ========================= */

.welcome-layout {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 64px;
    align-items: center;
}

.welcome-image {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    background: #eee8df;
}

.welcome-image img {
    width: 100%;
    height: 520px;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.8s ease;
}

.welcome-image:hover img {
    transform: scale(1.025);
}

.welcome-image-caption {
    position: absolute;
    left: 0;
    bottom: 0;
    background: rgba(91, 20, 31, 0.94);
    color: #fff;
    padding: 18px 26px;
    min-width: 210px;
}

.welcome-image-caption span {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
}

.welcome-image-caption small {
    display: block;
    margin-top: 4px;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.72;
}
.welcome-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(240px, .75fr);
  gap: 70px;
  align-items: center;
}

.welcome-content {
  min-width: 0;
}

.welcome-priest {
  position: relative;
  width: 100%;
  max-width: 310px;
  margin: 0 auto;
}

/* Small gold detail behind portrait */
.welcome-priest::before {
  content: "";
  position: absolute;
  top: -14px;
  right: -14px;
  width: 55%;
  height: 55%;

  opacity: .65;
}

.welcome-priest img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: cover;
  object-position: center top;
}

@media (max-width: 900px) {
  .welcome-layout {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 40px;
  }

  .welcome-priest {
    max-width: 220px;
  }
}

@media (max-width: 700px) {
  .welcome-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .welcome-priest {
    width: min(75%, 280px);
    margin-left: 0;
  }
}

@media (max-width: 900px) {

    .welcome-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .welcome-image {
        min-height: 400px;
    }

    .welcome-image img {
        height: 400px;
    }
}

@media (max-width: 560px) {

    .welcome-image {
        min-height: 300px;
    }

    .welcome-image img {
        height: 300px;
    }

    .welcome-image-caption {
        padding: 14px 18px;
        min-width: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
*,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}



#welcome .welcome-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(240px, .75fr);
  gap: 52px 70px;
  align-items: center;
}

#welcome .welcome-text {
  min-width: 0;
}

#welcome .welcome-priest {
    position: relative;
    width: 100%;
    max-width: 245px;
    margin: 0 auto;
    align-self: center;
}

#welcome .welcome-priest::before {
  content: "";
  position: absolute;
  top: -14px;
  right: -14px;
  width: 55%;
  height: 55%;
  opacity: .65;
}

#welcome .welcome-priest img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: cover;
  object-position: center top;
}


#welcome .welcome-image {
  grid-column: 1 / -1;
  width: 100%;
}

/* Tablet */
@media (max-width: 900px) {
  #welcome .welcome-layout {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 40px;
  }

  #welcome .welcome-priest {
    max-width: 220px;
  }

  #welcome .welcome-image {
    grid-column: 1 / -1;
  }
}

/* Mobile */
@media (max-width: 700px) {
  #welcome .welcome-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  #welcome .welcome-priest {
    width: min(75%, 280px);
    margin-left: 0;
  }

  #welcome .welcome-image {
    grid-column: 1;
  }
}
