/* Rikhiapeeth Fixes */

/* No sideways scroll on small phones (off-canvas search panel was widening the page). */
html, body { overflow-x: clip; }
@supports not (overflow: clip) { html, body { overflow-x: hidden; } }

/* Gallery cards: whole poster always visible (titles are baked into the artwork). */
.rpf-card img { aspect-ratio: 16 / 9; width: 100%; height: auto; object-fit: cover; display: block; }
.rp-shelf-reel .rp-vgrid[data-rpf] { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 32%); grid-template-columns: none; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.rp-shelf-reel .rp-vgrid[data-rpf] > * { scroll-snap-align: start; }
@media (max-width: 600px) { .rp-shelf-reel .rp-vgrid[data-rpf] { grid-auto-columns: 78%; } }
.rpf-card { cursor: pointer; }
.rpf-card:focus-visible { outline: 3px solid #d9782d; outline-offset: 3px; }

/* Player overlay */
html.rpf-lock, html.rpf-lock body { overflow: hidden !important; }
.rpf-ov { position: fixed; inset: 0; z-index: 2147483000; background: #0c0806; color: #fff; display: none; }
.rpf-ov.is-open { display: block; }
.rpf-feed { position: absolute; inset: 0; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rpf-feed::-webkit-scrollbar { display: none; }
.rpf-slide { height: 100%; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; display: flex; align-items: center; justify-content: center; position: relative; }
.rpf-box { position: relative; background: #000; overflow: hidden; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.rpf-v { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }

/* Films: 16:9, as large as the screen allows, caption under the video */
.rpf-film .rpf-box { width: min(92vw, calc((100dvh - 150px) * 16 / 9)); aspect-ratio: 16 / 9; overflow: visible; background: transparent; box-shadow: none; }
.rpf-film .rpf-v { border-radius: 14px; }
.rpf-film .rpf-cap { position: absolute; left: 0; right: 0; top: 100%; padding: 14px 2px 0; }

/* Reels: 4:5 card, Instagram style, caption over the video */
.rpf-reel .rpf-box { height: min(calc(100dvh - 40px), calc(92vw * 5 / 4)); aspect-ratio: 4 / 5; }
.rpf-reel .rpf-v { object-fit: contain; cursor: pointer; }
.rpf-reel.is-started .rpf-v { object-fit: cover; }
.rpf-reel .rpf-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 18px 22px; background: linear-gradient(transparent, rgba(0,0,0,.65)); pointer-events: none; }
@media (max-width: 600px) {
  .rpf-reel .rpf-box { height: 100dvh; width: 100vw; aspect-ratio: auto; border-radius: 0; }
  .rpf-film .rpf-box { width: 100vw; }
  .rpf-film .rpf-v { border-radius: 0; }
  .rpf-film .rpf-cap { padding: 14px 16px 0; }
}
.rpf-cap h3 { margin: 0; font-size: clamp(18px, 2.4vw, 26px); line-height: 1.2; color: #fff; font-weight: 600; letter-spacing: 0; text-transform: none; }
.rpf-cap p { margin: 4px 0 0; font-size: 14px; color: rgba(255,255,255,.78); }

/* Reel progress bar and sound button */
.rpf-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.25); z-index: 2; }
.rpf-bar i { display: block; height: 100%; width: 0; background: #e8913f; }
.rpf-snd { position: absolute; top: 14px; left: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: #fff; cursor: pointer; z-index: 3; }
.rpf-snd::before { content: ""; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9h4l5-4v14l-5-4H4z'/%3E%3Cpath d='M16 8.5a5 5 0 0 1 0 7M18.5 6a8.5 8.5 0 0 1 0 12' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9h4l5-4v14l-5-4H4z'/%3E%3Cpath d='M16 8.5a5 5 0 0 1 0 7M18.5 6a8.5 8.5 0 0 1 0 12' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat; }
.is-muted .rpf-snd::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9h4l5-4v14l-5-4H4z'/%3E%3Cpath d='M16 9l6 6M22 9l-6 6' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9h4l5-4v14l-5-4H4z'/%3E%3Cpath d='M16 9l6 6M22 9l-6 6' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E"); }
.is-muted .rpf-snd { background: #e8913f; }
.rpf-reel:not(.is-playing):not(.is-loading) .rpf-box::after { content: ""; position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; background: rgba(0,0,0,.45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23fff'/%3E%3C/svg%3E") center / 34px no-repeat; pointer-events: none; }

/* Loading spinner */
.rpf-spin { position: absolute; inset: 0; margin: auto; width: 44px; height: 44px; border-radius: 50%; border: 3px solid rgba(255,255,255,.25); border-top-color: #fff; animation: rpfspin .8s linear infinite; display: none; pointer-events: none; z-index: 2; }
.is-loading .rpf-spin { display: block; }
@keyframes rpfspin { to { transform: rotate(360deg); } }

/* Close and next/previous buttons */
.rpf-close, .rpf-nav { position: absolute; z-index: 5; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); }
.rpf-close:hover, .rpf-nav:hover { background: rgba(255,255,255,.26); }
.rpf-close { top: 16px; right: 16px; }
.rpf-nav { right: 20px; }
.rpf-up { top: calc(50% - 54px); }
.rpf-dn { top: calc(50% + 8px); }
.rpf-nav:disabled { opacity: .25; cursor: default; }
@media (max-width: 600px) { .rpf-nav { display: none; } .rpf-close { top: 12px; right: 12px; background: rgba(0,0,0,.45); } }
.rpf-close:focus-visible, .rpf-nav:focus-visible, .rpf-snd:focus-visible { outline: 3px solid #e8913f; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .rpf-feed { scroll-behavior: auto; } .rpf-spin { animation: none; } }

/* Beat theme button and card styles */
.rpf-ov button.rpf-close, .rpf-ov button.rpf-nav { background: rgba(255,255,255,.14) !important; color: #fff !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; }
.rpf-ov button.rpf-close:hover, .rpf-ov button.rpf-nav:hover { background: rgba(255,255,255,.28) !important; }
.rpf-ov button.rpf-snd { background: rgba(0,0,0,.45) !important; padding: 0 !important; border: 0 !important; }
.rpf-ov .is-muted button.rpf-snd { background: #e8913f !important; }
.rp-shelf-reel .rpf-card { aspect-ratio: 16 / 9 !important; height: auto !important; }
.rp-shelf-reel .rpf-card img { aspect-ratio: 16 / 9 !important; height: 100% !important; width: 100% !important; object-fit: cover !important; }

/* Video gallery folders (Presentations, Satsangs, Short videos) */
.rpf-vlib { margin: 8px 0 24px; scroll-margin-top: 110px; }
.rpf-folders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 900px) { .rpf-folders { grid-template-columns: 1fr; gap: 16px; } }
.rpf-vlib button.rpf-folder { display: block; text-align: left; padding: 0 !important; border: 0 !important; background: transparent !important; color: inherit !important; cursor: pointer; box-shadow: none !important; }
.rpf-fcovers { position: relative; display: block; aspect-ratio: 16 / 10; margin-bottom: 14px; }
.rpf-fcovers img { position: absolute; width: 86%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; box-shadow: 0 8px 22px rgba(60,30,10,.18); transition: transform .25s ease; }
.rpf-fcovers img:nth-child(1) { left: 0; bottom: 0; z-index: 3; }
.rpf-fcovers img:nth-child(2) { left: 7%; bottom: 7%; z-index: 2; opacity: .85; }
.rpf-fcovers img:nth-child(3) { left: 14%; bottom: 14%; z-index: 1; opacity: .7; }
.rpf-folder:hover .rpf-fcovers img:nth-child(1), .rpf-folder:focus-visible .rpf-fcovers img:nth-child(1) { transform: translateY(-4px); }
.rpf-folder:focus-visible { outline: 3px solid #d9782d; outline-offset: 6px; border-radius: 12px; }
.rpf-ft { display: block; font-family: var(--e-global-typography-primary-font-family, inherit); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; color: #7a3a14; }
.rpf-fc { display: block; margin-top: 4px; font-size: 15px; color: #6b5a4c; }
.rpf-fhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 18px; }
.rpf-vlib button.rpf-back { padding: 8px 16px 8px 34px !important; border-radius: 999px !important; border: 1px solid #d9b99c !important; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 6l-6 6 6 6' fill='none' stroke='%237a3a14' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") 10px center / 18px no-repeat !important; color: #7a3a14 !important; font-size: 15px; cursor: pointer; }
.rpf-fh { flex-basis: 100%; margin: 10px 0 0; font-size: clamp(26px, 3vw, 36px); color: #7a3a14; }
.rpf-fn { font-size: 15px; color: #6b5a4c; }
.rpf-fnote { margin: -6px 0 16px; color: #6b5a4c; }
.rpf-fgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1024px) { .rpf-fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .rpf-fgrid { grid-template-columns: 1fr; } }
.rpf-fgrid .rpf-card { display: block; position: relative; padding: 0 !important; border: 0 !important; background: transparent !important; text-align: left; }
.rpf-fgrid .rpf-card img { border-radius: 12px; }
.rpf-fgrid .rp-vt { display: block; margin-top: 8px; font-size: 15px; color: #3d2a1d; }
.rpf-fgrid .rp-vt { position: static !important; background: none !important; padding: 0 !important; color: #3d2a1d !important; text-shadow: none !important; }

/* ---------- Ashram FINAL comments, 1 Dec 2026 ---------- */

/* 20. Quotes 50% smaller on desktop (phone unchanged). */
@media (min-width: 1025px) {
  .elementor-blockquote__content { font-size: 41px !important; line-height: 1.25 !important; }
}

/* 10. One font for headings (Newsreader), one for content (Plus Jakarta Sans), consistent body size. */
.elementor-widget-text-editor:not(.elementor-widget-blockquote) p,
.elementor-widget-text-editor li,
.elementor-element-61a0b3e, .elementor-element-8163b0f,
.elementor-element-d123130, .elementor-element-d123130 p,
.elementor-element-0532209, .elementor-element-0532209 p,
.elementor-icon-list-text {
  font-family: "Plus Jakarta Sans", sans-serif !important;
}
.elementor-element-61a0b3e, .elementor-element-8163b0f, .elementor-element-d123130, .elementor-element-0532209 {
  font-size: clamp(17px, 1.35vw, 19px) !important; line-height: 1.65 !important;
}
.elementor-element-61a0b3e p, .elementor-element-8163b0f p, .elementor-element-d123130 p, .elementor-element-0532209 p { font-size: inherit !important; line-height: inherit !important; }

/* 18. Gallery tiles: titles readable over the photos. */
.elementor-2081 .elementor-element-4180bb2 .aspect-ratio-1 { position: relative; overflow: hidden; }
.elementor-2081 .elementor-element-4180bb2 .aspect-ratio-1::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: linear-gradient(180deg, rgba(20,12,6,0) 35%, rgba(20,12,6,.72) 100%);
}
.elementor-2081 .elementor-element-4180bb2 .aspect-ratio-1 > .e-con, .elementor-2081 .elementor-element-4180bb2 .aspect-ratio-1 > div { position: relative; z-index: 1; }
.elementor-2081 .elementor-element-4180bb2 .aspect-ratio-1 .elementor-heading-title,
.elementor-2081 .elementor-element-4180bb2 .aspect-ratio-1 p { color: #fff !important; text-shadow: 0 2px 10px rgba(0,0,0,.45); }

/* Breadcrumbs readable on photo heroes (About, Seva). */
.elementor-element-ca4d2b1 #breadcrumbs, .elementor-element-ca4d2b1 #breadcrumbs a,
.elementor-element-209941a #breadcrumbs, .elementor-element-209941a #breadcrumbs a { color: #fff !important; text-shadow: 0 1px 6px rgba(0,0,0,.5); }

/* Short videos are vertical (4:5): show them as vertical tiles, like a phone feed. */
.rpf-fgrid-reel { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1024px) { .rpf-fgrid-reel { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .rpf-fgrid-reel { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.rpf-fgrid-reel .rpf-card img { aspect-ratio: 4 / 5; }
.rpf-fgrid-reel .rp-vt { font-size: 14px; line-height: 1.3; }
.rpf-folder[data-rpf-folder="short-videos"] .rpf-fcovers img { width: 40%; aspect-ratio: 4 / 5; }
.rpf-folder[data-rpf-folder="short-videos"] .rpf-fcovers img:nth-child(1) { left: 0; }
.rpf-folder[data-rpf-folder="short-videos"] .rpf-fcovers img:nth-child(2) { left: 30%; bottom: 0; opacity: 1; z-index: 2; }
.rpf-folder[data-rpf-folder="short-videos"] .rpf-fcovers img:nth-child(3) { left: 60%; bottom: 0; opacity: 1; z-index: 1; }
.theme-rp-gallery .rpf-fgrid-reel .rp-vcard, .rpf-fgrid-reel .rpf-card { aspect-ratio: 4 / 5 !important; height: auto !important; }
.rpf-fgrid-reel .rpf-card img { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; aspect-ratio: auto !important; border-radius: 0; }
.rpf-fgrid-reel .rpf-card .rp-vt { position: absolute !important; left: 0; right: 0; bottom: 0; z-index: 2; margin: 0 !important; padding: 28px 10px 10px !important; color: #fff !important; font-size: 13px; line-height: 1.3; background: linear-gradient(to top, rgba(20,8,2,.78), rgba(20,8,2,0)) !important; }
@media (max-width: 600px) { .rpf-fgrid-reel .rp-play { transform: translate(-50%, -50%) scale(.7) !important; } }
.rpf-fgrid-reel .rpf-card .rp-vt { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; }

/* Feed layout for short videos: big frames, like a phone feed (1.2.4). */
.rpf-fgrid-reel.rpf-shorts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 1120px; }
@media (max-width: 1024px) { .rpf-fgrid-reel.rpf-shorts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
@media (max-width: 600px) { .rpf-fgrid-reel.rpf-shorts { grid-template-columns: 1fr; gap: 18px; max-width: 480px; margin: 0 auto; } }
.rpf-shorts .rpf-card { border-radius: 16px !important; box-shadow: 0 10px 28px rgba(40,18,6,.18); }
.rpf-shorts .rpf-pv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; opacity: 0; transition: opacity .35s ease; pointer-events: none; background: transparent; }
.rpf-shorts .rpf-card.is-live .rpf-pv { opacity: 1; }
.rpf-shorts .rpf-card .rp-vt { font-size: 16px !important; padding: 48px 16px 16px !important; z-index: 3; }
.rpf-shorts .rp-play { z-index: 3; transition: opacity .3s ease, transform .3s ease; }
.rpf-shorts .rpf-card.is-live .rp-play { opacity: 0; }
@media (hover: hover) { .rpf-shorts .rpf-card:hover .rp-play { opacity: 1; } }
@media (max-width: 600px) { .rpf-fgrid-reel.rpf-shorts .rp-play { transform: translate(-50%, -50%) scale(.85) !important; } }

/* ---- 1.2.7: ashram's 3 Dec list ---- */
/* Card headings keep their own capitals ("Camp for Children", not "Camp For Children"). */
.rp-card h3, .rp-card .rp-tag, .rikhiapeeth-rail-tile strong, .theme-rp-coming-up__row strong,
.theme-rp-event-detail-title { text-transform: none !important; }

/* Rikhia at a Glance: darker shade behind the captions so they read on light photos. */
.rikhiapeeth-rail-tile { position: relative; }
.rikhiapeeth-rail-tile::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 70%; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(20,12,6,.82) 0%, rgba(20,12,6,.55) 45%, rgba(20,12,6,0) 100%); border-radius: inherit; }
.rikhiapeeth-rail-tile__text { position: relative; z-index: 2; }

/* Cards with two date ranges show both. */
.rp-date.rpf-multi b { font-size: .95em; line-height: 1.25; white-space: normal; }

/* Gallery > Pictures: on phones the caption sits under the photo, in a smaller size. */
@media (max-width: 767px) {
  .rp-pics .rp-pic > span { position: static !important; display: block; background: none !important; color: inherit !important;
    font-size: 13px !important; line-height: 1.35; padding: 6px 2px 2px !important; border-radius: 0 !important; max-width: none !important; }
  .rp-pics .rp-pic { margin-bottom: 6px; }
}
@media (min-width: 768px) {
  .rp-pics .rp-pic > span { font-size: 14px !important; max-width: calc(100% - 20px); }
}

/* Event panel pictures + viewer. */
.rpf-evgal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 20px 0 8px; }
.rpf-evgal-i { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: #eee; }
.rpf-evgal-i img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.rpf-evgal-i:hover img { transform: scale(1.04); }
.rpf-lb { position: fixed; inset: 0; z-index: 100000; background: rgba(10,6,3,.92); display: none; align-items: center; justify-content: center; }
.rpf-lb.is-open { display: flex; }
.rpf-lb img { max-width: 92vw; max-height: 84vh; object-fit: contain; border-radius: 6px; }
.rpf-lb button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 50%; width: 48px; height: 48px; font-size: 30px; line-height: 1; cursor: pointer; }
.rpf-lb-x { top: 16px; right: 16px; }
.rpf-lb-p { left: 16px; top: 50%; transform: translateY(-50%); }
.rpf-lb-nx { right: 16px; top: 50%; transform: translateY(-50%); }
.rpf-lb.is-single .rpf-lb-p, .rpf-lb.is-single .rpf-lb-nx { display: none; }
.rpf-lb-n { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; opacity: .8; }
