/* Scoped enhancement: the original homepage stays the fallback. */
.rse-open-photo { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.rse-open-photo:focus-visible { outline: 4px solid #e6c180; outline-offset: -5px; }
.rse-open-photo + figcaption { pointer-events: none; }
.rse-photo-badge { position: absolute; inset: 18px 18px auto auto; border: 1px solid rgba(255,255,255,.4); padding: 7px 12px; border-radius: 18px; color: #fff; background: rgba(3,20,40,.7); font-size: .65rem; font-weight: 600; backdrop-filter: blur(10px); }
html[dir="rtl"] .rse-photo-badge { inset: 18px auto auto 18px; }
body.rse-gallery-open { overflow: hidden; }
.rse-gallery-dialog { width: min(1180px,calc(100vw - 32px)); height: min(820px,calc(100svh - 40px)); max-width: none; max-height: none; border: 1px solid rgba(255,255,255,.25); padding: 0; border-radius: 20px; background: #051b34; color: #fff; overflow: hidden; box-shadow: 0 30px 130px rgba(0,0,0,.45); }
.rse-gallery-dialog[open] { display: flex; flex-direction: column; }
.rse-gallery-dialog::backdrop { background: rgba(2,12,24,.9); backdrop-filter: blur(12px); }
.rse-gallery-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 22px; border-bottom: 1px solid rgba(255,255,255,.15); }
.rse-gallery-bar > span { font-size: .7rem; letter-spacing: .12em; color: #e6c180; }
.rse-gallery-frame { min-height: 0; flex: 1; margin: 0; display: grid; place-items: center; background: #03101e; }
.rse-gallery-frame img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.rse-gallery-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 22px; border-top: 1px solid rgba(255,255,255,.15); }
.rse-gallery-caption { font-size: .95rem; }
.rse-gallery-buttons { display: flex; align-items: center; gap: 14px; }
.rse-gallery-count { font-size: .7rem; color: #e6c180; white-space: nowrap; direction: ltr; }
.rse-gallery-dialog button:focus-visible { outline: 3px solid #e6c180; outline-offset: 4px; }
@media (max-width:600px) {
  .rse-gallery-dialog { width: calc(100vw - 16px); height: calc(100svh - 24px); border-radius: 14px; }
  .rse-gallery-bar { padding: 12px; }
  .rse-gallery-footer { padding: 14px 12px; flex-wrap: wrap; }
  .rse-gallery-caption { font-size: .85rem; width: 100%; }
}
.v16-hero.rse-enhanced {
  min-height: max(660px, calc(100svh - 120px));
  max-height: none;
  isolation: isolate;
  touch-action: pan-y;
}
.rse-enhanced .v16-hero-media { overflow: hidden; }
.rse-enhanced .rse-scene {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1.1s cubic-bezier(.22,.61,.36,1);
  pointer-events: none;
}
.rse-enhanced .rse-scene.is-active { opacity: 1; }
.rse-enhanced .rse-image-pan { position: absolute; inset: -2%; }
.rse-enhanced .v16-hero-media img {
  object-position: var(--rse-position, 62% 48%);
  transform: none !important;
  filter: saturate(.94) contrast(1.04);
}
.rse-enhanced .v16-hero-shade {
  z-index: 1;
  background: linear-gradient(90deg,rgba(3,20,40,.94),rgba(3,20,40,.75) 31%,rgba(3,20,40,.22) 68%,rgba(3,20,40,.14)),
    linear-gradient(0deg,rgba(3,20,40,.94),rgba(3,20,40,.22) 25%,transparent 60%);
}
.rse-enhanced .v16-hero-glow { display: none; }
.rse-enhanced::after { background: none; }
.rse-enhanced .v16-hero-layout {
  grid-template-columns: minmax(0,1.45fr) minmax(260px,.55fr);
  align-items: end; gap: 38px;
  padding-top: clamp(68px,10svh,125px); padding-bottom: 168px;
}
.rse-enhanced .v16-hero-copy { max-width: 740px; transform: none !important; }
.rse-enhanced .v16-hero-copy h1 {
  font-size: clamp(4.9rem,min(7.8vw,12svh),8.4rem); line-height: .96;
  margin: 20px 0 26px; letter-spacing: -.055em;
  text-wrap: initial;
}
.rse-enhanced .v16-hero-copy h1 em { color: #e6c180; background: none; }
.rse-enhanced .v16-hero-copy .eyebrow { color: #e6c180; font-size: .72rem; }
.rse-enhanced .hero-lead { max-width: 590px; font-size: 1.08rem; line-height: 1.65; }
.rse-enhanced .button-row { margin-top: 25px; }
.rse-enhanced .button { min-height: 50px; }
.rse-enhanced .hero-live-card {
  max-width: 330px; margin-bottom: 4px; padding: 24px;
  border-radius: 18px; background: rgba(4,24,46,.53);
  border: 1px solid rgba(255,255,255,.28); box-shadow: none;
  backdrop-filter: blur(16px);
}
.rse-enhanced .hero-live-card strong { margin: 13px 0 8px; font-size: 2rem; }
.rse-enhanced .hero-live-card p { margin-bottom: 15px; line-height: 1.55; }
.rse-enhanced .hero-live-card small { color: #e6c180; }
.rse-controls {
  position: absolute; z-index: 4; inset: auto 0 30px;
  display: flex; align-items: stretch; gap: 22px;
}
.rse-scenes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); flex: 1; gap: 22px; }
.rse-scene-trigger {
  position: relative; display: flex; align-items: center; gap: 14px;
  min-width: 0; min-height: 92px; padding: 17px 0 20px;
  border: 0; border-top: 1px solid rgba(255,255,255,.34);
  color: rgba(255,255,255,.69); background: none; cursor: pointer;
  text-align: start; font: inherit;
  transition: color .25s ease, border-color .25s ease;
}
.rse-scene-trigger img {
  position: static; width: 67px; height: 49px; flex: 0 0 67px;
  object-fit: cover; border-radius: 6px; filter: grayscale(.5); opacity: .72;
}
.rse-scene-trigger[aria-pressed="true"] { color: #fff; border-color: #e6c180; }
.rse-scene-trigger[aria-pressed="true"] img { filter: none; opacity: 1; }
.rse-scene-trigger small { display: block; color: #e6c180; font-size: .61rem; letter-spacing: .14em; margin-bottom: 5px; }
.rse-scene-trigger strong { display: block; font-size: .85rem; font-weight: 600; line-height: 1.35; }
.rse-progress { position: absolute; top: -1px; inset-inline-start: 0; height: 2px; width: calc(var(--rse-progress,0) * 100%); background: #e6c180; }
.rse-scene-trigger:hover { color: #fff; }
.rse-utilities { display: flex; align-items: center; gap: 7px; padding-inline-end: 106px; }
.rse-icon {
  display: grid; place-items: center; width: 44px; min-width: 44px; height: 44px;
  padding: 0; border: 1px solid rgba(255,255,255,.45); border-radius: 50%;
  color: #fff; background: rgba(4,24,46,.36); cursor: pointer;
  transition: color .2s ease, background .2s ease;
}
.rse-icon:hover { color: #071f3d; background: #e6c180; }
.rse-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.rse-enhanced button:focus-visible { outline: 3px solid #e6c180; outline-offset: 5px; }
.rse-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
html[dir="rtl"] .rse-enhanced .v16-hero-shade {
  background: linear-gradient(270deg,rgba(3,20,40,.94),rgba(3,20,40,.75) 31%,rgba(3,20,40,.22) 68%,rgba(3,20,40,.14)),
    linear-gradient(0deg,rgba(3,20,40,.94),rgba(3,20,40,.22) 25%,transparent 60%);
}
html[dir="rtl"] .rse-enhanced .v16-hero-copy h1 { letter-spacing: 0; line-height: 1.14; }
html[dir="rtl"] .rse-scenes small { letter-spacing: 0; }
@media (max-width:1100px) {
  .rse-enhanced .v16-hero-layout { grid-template-columns: minmax(0,1fr) 255px; gap: 28px; }
  .rse-enhanced .v16-hero-copy h1 { font-size: clamp(4.2rem,8.2vw,6.5rem); }
  .rse-controls, .rse-scenes { gap: 15px; }
  .rse-scene-trigger { gap: 9px; }
  .rse-scene-trigger img { width: 48px; flex-basis: 48px; height: 42px; }
  .rse-utilities { padding-inline-end: 100px; gap: 4px; }
}
@media (max-width:800px) {
  .v16-hero.rse-enhanced { min-height: 800px; }
  .rse-enhanced .v16-hero-layout { grid-template-columns: 1fr; padding-top: 65px; padding-bottom: 210px; gap: 27px; }
  .rse-enhanced .v16-hero-copy h1 { font-size: clamp(4rem,10vw,5.8rem); }
  .rse-enhanced .hero-live-card { max-width: 430px; padding: 16px 20px; }
  .rse-enhanced .hero-live-card strong { font-size: 1.4rem; margin: 8px 0 4px; }
  .rse-enhanced .hero-live-card p { font-size: .82rem; margin: 0 0 5px; }
  .rse-enhanced .hero-live-card a { font-size: .82rem; }
  .rse-controls { flex-direction: column-reverse; bottom: 28px; gap: 10px; }
  .rse-utilities { padding-inline-end: 0; justify-content: flex-start; }
  .rse-scene-trigger { min-height: 82px; align-items: center; }
  .rse-scene-trigger img { width: 48px; height: 42px; flex-basis: 48px; }
}
@media (max-width:600px) {
  body.rse-home-active .rosary-adviser-floating { width: 54px; padding: 4px; border-radius: 14px; }
  body.rse-home-active .rosary-adviser-floating img { width: 46px; height: 46px; }
  body.rse-home-active .rosary-adviser-floating span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .v16-hero.rse-enhanced { min-height: 860px; }
  .rse-enhanced .v16-hero-layout { padding-top: 46px; padding-bottom: 238px; gap: 26px; }
  .rse-enhanced .v16-hero-copy h1 { font-size: clamp(3.2rem,14vw,4.8rem); margin: 19px 0 23px; }
  .rse-enhanced .v16-hero-copy .eyebrow { font-size: .62rem; letter-spacing: .11em; line-height: 1.7; }
  .rse-enhanced .hero-lead { font-size: .95rem; line-height: 1.7; }
  .rse-enhanced .button-row { margin-top: 19px; gap: 10px; }
  .rse-enhanced .button { font-size: .82rem; min-height: 46px; padding-inline: 15px; }
  .rse-enhanced .hero-live-card { max-width: none; }
  .rse-enhanced .v16-hero-shade {
    background: linear-gradient(90deg,rgba(3,20,40,.85),rgba(3,20,40,.49)),linear-gradient(0deg,rgba(3,20,40,.94),transparent 80%);
  }
  html[dir="rtl"] .rse-enhanced .v16-hero-shade {
    background: linear-gradient(270deg,rgba(3,20,40,.85),rgba(3,20,40,.49)),linear-gradient(0deg,rgba(3,20,40,.94),transparent 80%);
  }
  .rse-scenes { gap: 12px; }
  .rse-scene-trigger { display: block; min-height: 104px; padding: 12px 0; }
  .rse-scene-trigger img { width: 58px; height: 36px; margin-bottom: 9px; }
  .rse-scene-trigger small { font-size: .56rem; margin-bottom: 4px; letter-spacing: .08em; }
  .rse-scene-trigger strong { font-size: .72rem; line-height: 1.4; }
  .rse-controls { bottom: 24px; }
  .rse-utilities { gap: 8px; margin-bottom: 4px; }
  .rse-enhanced .rse-image-pan { inset: -1%; }
  .rse-enhanced .v16-hero-media img { object-position: var(--rse-mobile-position,60% 50%); }
}
@media (prefers-reduced-motion:reduce) {
  .rse-enhanced .rse-scene, .rse-enhanced button { transition: none; }
  .rse-enhanced .rse-image-pan { transform: none !important; }
}
