/* Journey of Grace — Custom Styles
   Design system layered over the static template markup.
   Palette: warm grounded neutrals + deep slate + amber/gold accent.
   Typography: Asap (sans-serif body) + Cantata One (serif headings). */

:root {
  --color-bg: #faf8f4;
  --color-bg-sand: #f1ece2;
  --color-surface: #ffffff;
  --color-ink: #33302b;
  --color-ink-muted: #6e6a63;
  --color-slate: #2d3a45;
  --color-slate-soft: #43535f;
  --color-amber: #c9973d;
  --color-amber-deep: #9c6f1e;
  --color-amber-pale: #f0dcae;
  --font-serif: 'Cantata One', Georgia, 'Times New Roman', serif;
  --font-sans: 'Asap', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius: 10px;
  --radius-pill: 999px;
  --shadow-soft: 0 6px 24px rgba(45, 58, 69, 0.10);
  --shadow-hover: 0 10px 30px rgba(45, 58, 69, 0.16);
  --header-max-width: 1200px;
}

/* === Base === */
html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--color-amber-pale);
  color: var(--color-ink);
}

.jog-html-content h1 { font-size: 2.2rem; }
.jog-html-content h2 { font-size: 1.8rem; }
.jog-html-content h3 { font-size: 1.4rem; }
.jog-html-content h4 { font-size: 1.15rem; }

/* === Body links === */
a {
  color: var(--color-amber-deep);
  text-decoration: underline;
  text-decoration-color: rgba(156, 111, 30, 0.35);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
  color: var(--color-amber);
  text-decoration-color: var(--color-amber);
}

.jog-html-content a {
  color: var(--color-amber-deep);
}

.jog-html-content a:hover {
  color: var(--color-amber);
}

/* === Buttons (markup button blocks) === */
.jog-button-element--primary,
.jog-button-element--secondary,
.jog-block-button-element--primary,
.jog-block-button-element--secondary,
.eventlist-button {
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.jog-button-element--primary,
.jog-block-button-element--primary {
  background-color: var(--color-amber);
  border-color: var(--color-amber);
  color: var(--color-ink);
  box-shadow: 0 4px 14px rgba(201, 151, 61, 0.35);
}

.jog-button-element--primary:hover,
.jog-block-button-element--primary:hover {
  background-color: var(--color-amber-deep);
  border-color: var(--color-amber-deep);
  color: #ffffff;
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.jog-button-element--secondary,
.jog-block-button-element--secondary {
  background-color: transparent;
  border: 2px solid var(--color-amber);
  color: var(--color-slate);
}

.jog-button-element--secondary:hover,
.jog-block-button-element--secondary:hover {
  background-color: var(--color-slate);
  border-color: var(--color-slate);
  color: #ffffff;
  transform: translateY(-2px);
}

.eventlist-button {
  background-color: var(--color-amber);
  border-color: var(--color-amber);
  color: var(--color-ink);
}

.eventlist-button:hover {
  background-color: var(--color-amber-deep);
  border-color: var(--color-amber-deep);
  color: #ffffff;
  transform: translateY(-2px);
}

/* === Header (clone pages) === */
/* Dark slate bar matching the footer: translucent, slim, full-width, amber border */
.site-header {
  background: rgba(45, 58, 69, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 4px solid var(--color-amber);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
  margin: 0 !important;
  padding: 0.9rem 3vw !important;
}

/* Announcement strip (JS-injected): slim, translucent, full-width */
.jog-announcement-bar {
  background: rgba(45, 58, 69, 0.72) !important;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(201, 151, 61, 0.25);
  width: 100% !important;
  left: 0 !important;
  right: 0 !important;
}

.jog-announcement-bar-text {
  padding: 0 !important;
}

.jog-announcement-bar-text p {
  padding: 0.3em 2em !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jog-announcement-bar-close {
  display: none !important;
}

.jog-announcement-bar .jog-announcement-bar-url,
.jog-announcement-bar .jog-announcement-bar-text,
.jog-announcement-bar .jog-announcement-bar-text p {
  color: #f4f1ea !important;
}

.jog-announcement-bar .jog-announcement-bar-url:hover .jog-announcement-bar-text,
.jog-announcement-bar .jog-announcement-bar-url:hover .jog-announcement-bar-text p {
  color: var(--color-amber-pale) !important;
}

/* Nav links: cream on the dark slate bar (beats site.css white-on-image rules) */
.site-header .main-navigation a {
  color: #f4f1ea !important;
}

.site-header .main-navigation a:hover,
.site-header .main-navigation .nav-item:not(.header-cta) a:hover {
  color: var(--color-amber-pale) !important;
}

.site-header .main-navigation .active > a,
.site-header .main-navigation .active > a span:not(.jog-cart-quantity) {
  color: #f4f1ea !important;
  text-decoration: underline;
  text-decoration-color: var(--color-amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* Hamburger + social icons: cream on the dark slate bar */
.site-header .nav-toggle svg {
  stroke: #f4f1ea !important;
}

.site-header .nav-toggle:hover svg {
  stroke: var(--color-amber) !important;
}

/* Logo: subtle lift off the dark bar */
.site-branding h1.image img {
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
}

.site-header .nav-item a {
  font-family: var(--font-sans);
  letter-spacing: 0.08em;
}

/* Nav menu polish */
.main-navigation .nav-item {
  font-size: 14px !important;
  font-weight: 600 !important;
  padding-right: 0 !important;
  letter-spacing: 0.05em !important;
}

.main-navigation .nav-item a {
  text-transform: uppercase !important;
  color: #f4f1ea !important;
}

.main-navigation .nav-item:not(.header-cta) a:hover {
  color: #c97a2b !important;
  text-decoration: none !important;
}

.main-navigation .active > a,
.main-navigation .active > a span:not(.jog-cart-quantity) {
  color: #c97a2b !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border-bottom: none !important;
}

/* === Header Flex Alignment & Logo Vertical Centering === */
.site-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: #1e242d !important;
  border-bottom: 3px solid var(--color-amber) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
  margin: 0 !important;
  padding: 0.6rem 3vw !important;
  min-height: 70px !important;
}

.site-branding {
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

.site-branding h1.image {
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  line-height: 1 !important;
}

.site-branding h1.image a {
  display: flex !important;
  align-items: center !important;
}

.site-branding h1.image img {
  max-height: 48px !important;
  height: 48px !important;
  width: auto !important;
  display: block !important;
  object-fit: contain !important;
  margin: 0 !important;
}

.main-navigation {
  display: flex !important;
  align-items: center !important;
  gap: 1.8rem !important;
}

.main-navigation .nav-item {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding-right: 0 !important;
}

.main-navigation .nav-item a {
  display: inline-flex !important;
  align-items: center !important;
  padding: 0.4rem 0 !important;
}

/* Header CTA (Plan Your Visit Button) */
.main-navigation .nav-item.header-cta,
.jog-global-nav a.jog-btn-cta {
  margin-left: 2rem !important;
}

.header-cta a, .jog-btn-cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #c97a2b !important;
  color: #ffffff !important;
  border-radius: 50px !important;
  padding: 0.55rem 1.4rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  font-size: 14px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  box-shadow: 0 3px 10px rgba(201, 122, 43, 0.3) !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.header-cta a:hover, .jog-btn-cta:hover {
  background: #a8621d !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 14px rgba(201, 122, 43, 0.4) !important;
  text-decoration: none !important;
}

.header-cta a:hover,
.main-navigation .nav-item.header-cta a:hover {
  background: var(--color-amber-deep);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(156, 111, 30, 0.4);
}

/* Mobile CTA pinned in header next to hamburger */
.header-cta-mobile {
  display: none;
}

.nav-social-wrapper {
  gap: 1.5rem;
}

/* Cart icon touch target */
.site-header .Cart {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* === Hero (homepage full-screen video) === */
/* Very light wash for caption legibility; keep the video rich and vibrant. */
.jog-hero-overlay {
  background: linear-gradient(180deg, rgba(45, 58, 69, 0.05) 0%, rgba(45, 58, 69, 0.30) 100%);
}

#mainContent .jog-hero-desc {
  color: #ffffff;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.15;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.65), 0 6px 26px rgba(0, 0, 0, 0.55);
}

.jog-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-amber);
  color: #ffffff;
  border-radius: var(--radius-pill);
  padding: 0.9rem 2.2rem;
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), 0 3px 12px rgba(201, 122, 43, 0.4);
  transition: background 0.2s ease, transform 0.2s ease;
}

.jog-hero-cta:hover {
  background: var(--color-amber-deep);
  transform: translateY(-2px);
}

/* === Page banner / title card (inner pages) === */
.jog-banner-overlay {
  background: linear-gradient(180deg, rgba(45, 58, 69, 0.35) 0%, rgba(45, 58, 69, 0.62) 100%);
}

.jog-banner-title .jog-page-title {
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-family: var(--font-serif) !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.jog-banner-title .jog-page-desc {
  color: #ffffff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

/* === Content spacing (whitespace rhythm) === */
.jog-main-inner {
  padding: clamp(2.5rem, 5vw, 5rem) clamp(1.25rem, 6vw, 6rem) clamp(4rem, 7vw, 7rem);
}

.jog-main-inner .jog-block {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.jog-main-inner .row.jog-row {
  margin-bottom: 1rem;
}

/* === Event list (events page) === */
.eventlist {
  max-width: 960px;
  margin: 0 auto;
}

.eventlist-section-heading {
  font-family: var(--font-serif);
  color: var(--color-slate);
  font-size: 1.6rem;
  margin: 0 auto 0.25rem;
  max-width: 960px;
}

.eventlist-section-heading + .eventlist,
.eventlist-section-heading + p.eventlist-empty {
  margin-top: 1rem;
}

p.eventlist-empty {
  /* p.eventlist-empty beats the generic p:last-child reset in site.css so the
     empty-state message keeps its bottom spacing before the next section. */
  color: var(--color-ink-muted);
  margin: 0 auto 2rem;
  max-width: 960px;
  line-height: 1.6;
}

.eventlist-event {
  background: var(--color-surface);
  border: 1px solid #eae4d8;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 2rem;
  margin: 1.5rem 0;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.eventlist-event:first-of-type {
  margin-top: 0;
}

.eventlist-event:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.eventlist-column-thumbnail {
  border-radius: 6px;
  overflow: hidden;
}

/* Group event cards with header images: the runtime CSS hides thumbnails via
   the body:not(.event-thumbnails) and img:not(.loaded) guards (the thumbnails
   script only checks .eventlist--upcoming / --past). Override them here with a
   clean flex row so whitelisted group images display properly. */
.eventlist--groups .eventlist-event {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  position: relative;
}

.eventlist--groups .eventlist-column-thumbnail {
  display: block !important;
  float: none;
  position: static;
  flex: 0 0 260px;
  width: 260px;
  max-width: 38%;
  height: auto;
  padding-bottom: 0;
  background: transparent;
}

.eventlist--groups .eventlist-column-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 1 !important;
  border-radius: 6px;
  object-fit: cover;
}

.eventlist--groups .eventlist-column-date {
  position: static !important;
  float: none;
  width: 70px;
  flex: 0 0 70px;
  text-decoration: none;
}

.eventlist--groups .eventlist-datetag {
  position: static !important;
  top: 0;
  right: auto;
}

.eventlist--groups .eventlist-column-info {
  float: none;
  flex: 1 1 auto;
  width: auto;
  padding: 0;
  min-width: 0;
}

@media (max-width: 639px) {
  .eventlist--groups .eventlist-event {
    flex-wrap: wrap;
  }

  .eventlist--groups .eventlist-column-thumbnail {
    flex: 0 0 100%;
    width: 100%;
    max-width: none;
  }
}

/* On mobile the jog-layout row's negative gutters (site.css) push grid
   content flush against the screen edge; pull it back to the page padding
   and let the content column use the full text width. */
@media (max-width: 639px) {
  .jog-layout > .jog-row {
    margin-left: 0;
    margin-right: 0;
  }
  .jog-main-inner .jog-layout > .jog-row > [class*="jog-col"] {
    padding-left: 0;
    padding-right: 0;
    width: 100% !important;
  }
}

.eventlist-title {
  font-family: var(--font-serif);
  margin-bottom: 0.75rem;
}

.eventlist-title-link {
  color: var(--color-slate);
  text-decoration: none;
}

.eventlist-title-link:hover {
  color: var(--color-amber-deep);
  text-decoration: none;
}

.eventlist-meta {
  margin-bottom: 1rem;
}

.eventlist-meta-date {
  color: var(--color-amber-deep);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.eventlist-meta-address-line,
.eventlist-meta-time .event-time-12hr {
  color: var(--color-ink-muted);
}

.eventlist-meta-export {
  margin-top: 0.5rem;
}

.eventlist-meta-export a {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.eventlist-excerpt {
  color: var(--color-ink-muted);
}

/* === Sermon filter toolbar === */
.sermon-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  max-width: 820px;
  margin: 1.5rem auto 2.5rem;
}

.sermon-filters input[type="search"],
.sermon-filters select {
  padding: 0.75rem 1rem;
  border: 1px solid #ddd5c4;
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  min-height: 48px;
}

.sermon-filters input[type="search"] {
  flex: 1 1 240px;
  min-width: 220px;
}

.sermon-filters select {
  min-width: 150px;
}

.sermon-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1080px;
  margin: 0 auto;
}

.sermon-item {
  background: var(--color-surface);
  border: 1px solid #eae4d8;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.sermon-item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.sermon-item[hidden] {
  display: none;
}

.sermon-item .sermon-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-slate);
  margin: 0 0 0.5rem;
}

.sermon-item .sermon-meta {
  font-size: 0.9rem;
  color: var(--color-ink-muted);
  margin-bottom: 0.75rem;
}

.sermon-item .sermon-meta .tag {
  display: inline-block;
  background: var(--color-bg-sand);
  border: 1px solid #e2dac9;
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.7rem;
  margin: 0.15rem 0.25rem 0.15rem 0;
  font-size: 0.8rem;
  color: var(--color-slate);
}

.sermon-item audio {
  width: 100%;
  margin-top: 0.75rem;
}

/* === Custom pages (blog, sermon-archive) === */
.header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(250, 248, 244, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e6e0d4;
  box-shadow: 0 2px 12px rgba(45, 58, 69, 0.06);
}

.header-inner {
  max-width: var(--header-max-width);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-logo img {
  max-height: 56px;
  width: auto;
}

.nav-wrapper {
  display: flex;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-list a {
  text-decoration: none;
  color: var(--color-slate);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.nav-list a:hover {
  color: var(--color-amber-deep);
  text-decoration: none;
}

.nav-list .header-cta a {
  background: var(--color-amber);
  color: var(--color-ink);
  border-radius: var(--radius-pill);
  padding: 12px 22px;
  white-space: nowrap;
}

.nav-list .header-cta a:hover {
  background: var(--color-amber-deep);
  color: #ffffff;
}

/* Custom pages content */
.jog-main {
  padding: 0;
}

.jog-main-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.jog-page-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.75rem;
}

.jog-page-description {
  font-size: 1.125rem;
  color: var(--color-ink-muted);
  margin-bottom: 2rem;
}

/* === Footer === */
.site-footer {
  background: var(--color-slate);
  color: #d9d2c4;
  border-top: 4px solid var(--color-amber);
  padding: 2.5rem 1.5rem;
}

.site-footer .jog-html-content p,
.site-footer .jog-html-content a {
  color: #d9d2c4;
}

.site-footer a:hover {
  color: var(--color-amber-pale);
}

.site-footer .jog-button-element--primary,
.site-footer .jog-block-button-element--primary {
  background-color: var(--color-amber);
  color: var(--color-ink);
}

.footer {
  background: var(--color-bg-sand);
  border-top: 1px solid #e6e0d4;
  padding: 2.5rem 1.25rem;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--header-max-width);
  margin: 0 auto;
  text-align: center;
}

.footer-content {
  font-size: 0.85rem;
  color: var(--color-ink-muted);
}

/* === Forms === */
.form-field {
  margin-bottom: 1.25rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-slate);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid #d8d1c1;
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: var(--color-surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-amber);
  box-shadow: 0 0 0 3px rgba(201, 151, 61, 0.2);
}

.btn-submit {
  padding: 12px 28px;
  background-color: var(--color-amber);
  color: var(--color-ink);
  border: none;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-submit:hover {
  background-color: var(--color-amber-deep);
  color: #ffffff;
  transform: translateY(-1px);
}

/* === Focus styles (a11y) === */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.nav-toggle:focus-visible,
.summary-block .summary-item:focus-visible {
  outline: 3px solid var(--color-amber);
  outline-offset: 3px;
  border-radius: 4px;
}

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* === Print === */
@media print {
  .site-header,
  .header,
  .site-footer,
  .footer,
  .nav-wrapper,
  .header-cta-mobile {
    display: none !important;
  }
  body {
    background: #ffffff;
    color: #000000;
    font-size: 12pt;
    line-height: 1.5;
  }
  a {
    color: #000000;
  }
}

/* === Responsive === */
@media (min-width: 1100px) {
  .site-header .main-navigation .nav-item {
    padding-right: 2rem;
  }
}

@media (max-width: 1099px) {
  .site-header .main-navigation .nav-item {
    font-size: 14px;
    padding-right: 1.25rem;
  }
}

@media (max-width: 480px) {
  .nav-list a {
    font-size: 0.72rem;
  }

  /* Full-width CTA pills shouldn't balloon into giant lozenges on phones */
  .jog-actions .jog-cta {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 0.9rem 1.25rem;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
  }

  /* Sermons header pills: stack so they keep a natural pill shape */
  .sermons-yt-section .sermons-yt-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .sermons-yt-header a {
    white-space: nowrap;
  }

  /* Sermons grid: min track of 280px bleeds past narrow containers */
  .sermons-yt-section .sermons-yt-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==== Planning Center form embeds ==== */
.jog-block[data-definition-name="website.components.form"] .form-wrapper .field-list .field .field-element {
  background: var(--color-surface);
  border: 1px solid #d8d2c6;
  border-radius: var(--radius);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  padding: 12px 14px;
  min-height: 48px;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.jog-block[data-definition-name="website.components.form"] .form-wrapper .field-list .field .field-element:focus {
  border-color: var(--color-amber);
  box-shadow: 0 0 0 3px rgba(201, 151, 61, 0.25);
  outline: none;
}

.jog-block[data-definition-name="website.components.form"] .form-wrapper .field-list .field textarea.field-element {
  min-height: 140px;
}

.jog-block[data-definition-name="website.components.form"] .form-wrapper .field-list .title {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-slate);
  margin-bottom: 2px;
}

.jog-block[data-definition-name="website.components.form"] .form-wrapper .field-list .title .required-mark {
  color: var(--color-amber-deep);
}

.jog-block[data-definition-name="website.components.form"] .form-wrapper .field-list .field {
  margin: 0 0 20px;
}

.jog-block[data-definition-name="website.components.form"] .form-wrapper .field-list .description {
  color: var(--color-ink-muted);
  font-size: 13px;
  opacity: 1;
}

.jog-block[data-definition-name="website.components.form"] .form-wrapper input[type=submit] {
  background-color: var(--color-amber);
  border-radius: var(--radius-pill);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1em;
  min-height: 48px;
  padding: 14px 34px;
  text-transform: uppercase;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.jog-block[data-definition-name="website.components.form"] .form-wrapper input[type=submit]:hover {
  background-color: var(--color-amber-deep);
  color: #fff;
}

.jog-block[data-definition-name="website.components.form"] .form-wrapper .form-thanks {
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid var(--color-amber);
  border-radius: var(--radius);
  background: var(--color-amber-pale);
  color: var(--color-slate);
  font-family: var(--font-serif);
  font-size: 1.05rem;
}

/* ==== Planning Center form embed (PCO People form in an iframe) ==== */
/* The iframe content is cross-origin (not themeable), so we theme the card
   wrapper around it to match the site's card style. The form page itself
   renders with a transparent body, letting the card background show through. */
.pco-form-frame {
  background: var(--color-surface);
  border: 1px solid #e6dfd5;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 1.2rem;
  overflow: hidden;
}

/* Next Step / Próximo Paso pages contain a content H1 ("What's your Next
   Step?" / "¿Cuál es tu próximo paso?") above the form. The PCO form embed
   renders its own title inside the cross-origin iframe (not hideable), so we
   hide the redundant content H1 — the page banner + intro paragraph remain. */
#block-fa0bbbf2219e7bf9b81a h1,
#block-fd65ee276dcc0b1c0cc7 h1 {
  display: none;
}

/* The PCO embed iframe is 480px wide; on grid layouts (visit / plan-your-visit
   use an inline .content-grid) the fixed width would blow out the 1fr track on
   narrow screens, so let grid children shrink below 900px (where the page's own
   grid collapses to a single column) and let the scale-to-fit handle the iframe.
   Above 900px the columns keep their auto minimum so the 480px form fits. */
@media (max-width: 900px) {
  .content-grid > *,
  .form-column {
    min-width: 0;
  }
}

/* The PCO form box is sized to match its card at runtime (the card's content
   area minus a tiny inset), so the iframe just fills its wrapper. Flexible
   embed mode keeps the form layout responsive to that width. */
.pco-form-frame .pco-form-embed {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  background: transparent;
  overflow: hidden;
}

.pco-form-scale-wrap {
  position: relative;
  overflow: hidden;
}

/* Desktop: always-visible inline nav (site uses icon-nav style which collapses it) */
@media (min-width: 769px) {
  .site-header .nav-social-wrapper {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    flex: 0 1 auto !important;
    width: auto !important;
    max-width: none !important;
    transform: none !important;
  }
  .site-header .header-social-icons-with-nav {
    display: none !important;
  }
  .site-header .header-social-icons-right {
    order: -1;
    position: relative !important;
    right: 0 !important;
    margin-right: 0 !important;
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  .site-header .nav-toggle {
    display: none !important;
  }
  .site-header .main-navigation .nav-item {
    opacity: 1 !important;
  }
}

/* === Live Church Calendar (Planning Center embed) === */
.church-calendar-section {
  max-width: 960px;
  margin: 0 auto 2.5rem;
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid #eae4d8;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.church-calendar-heading {
  font-family: var(--font-serif);
  color: var(--color-slate);
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
}

.church-calendar-intro {
  color: var(--color-ink-muted);
  margin: 0 0 1.25rem;
}

.church-calendar-request {
  color: var(--color-ink);
  margin: -0.25rem 0 1.25rem;
  line-height: 1.5;
}

.church-calendar-request a {
  color: #b4843a;
  font-weight: 600;
  text-decoration: underline;
}

.church-calendar-embed {
  width: 100%;
  min-height: 620px;
  border: 1px solid #eae4d8;
  border-radius: var(--radius);
  background: var(--color-bg);
}

/* === Visit Page === */
.visit-service-times {
  max-width: 960px;
  margin: 0 auto 3rem;
  padding: 2rem;
  background: var(--color-surface);
  border: 1px solid #eae4d8;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.visit-service-times h2 {
  font-family: var(--font-serif);
  color: var(--color-slate);
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.visit-time-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.visit-time-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.25rem;
  background: var(--color-bg);
  border-radius: var(--radius);
  border-left: 4px solid var(--color-amber);
}
.visit-time-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-ink-muted);
  font-weight: 600;
}
.visit-time-value {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--color-slate);
}
.visit-time-desc {
  font-size: 0.9rem;
  color: var(--color-ink-muted);
}

/* Location + Map */
.visit-location {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto 3rem;
}
.visit-map iframe {
  border-radius: var(--radius);
  border: 1px solid #eae4d8;
}
.visit-address h3 {
  font-family: var(--font-serif);
  color: var(--color-slate);
  margin-bottom: 0.75rem;
}
.visit-address p {
  margin-bottom: 0.5rem;
  color: var(--color-ink);
}
.visit-address .jog-button-element--primary {
  display: inline-block;
  margin-top: 1rem;
}

/* What to Expect */
.visit-expect {
  max-width: 960px;
  margin: 0 auto 3rem;
  padding: 2rem;
}
.visit-expect h2 {
  font-family: var(--font-serif);
  color: var(--color-slate);
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.visit-expect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.visit-expect-item {
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid #eae4d8;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.visit-expect-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.visit-expect-item h3 {
  font-family: var(--font-serif);
  color: var(--color-slate);
  margin-bottom: 0.5rem;
}
.visit-expect-item p {
  color: var(--color-ink-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* CTA */
.visit-cta {
  max-width: 960px;
  margin: 0 auto 3rem;
  padding: 2.5rem;
  text-align: center;
  background: var(--color-slate);
  border-radius: var(--radius);
}
.visit-cta h2 {
  font-family: var(--font-serif);
  color: #f4f1ea;
  margin-bottom: 0.5rem;
}
.visit-cta p {
  color: #d9d2c4;
  margin-bottom: 1.5rem;
}
.visit-cta .jog-button-element--primary {
  background: var(--color-amber);
  color: var(--color-ink);
  font-weight: 700;
}

/* === Leaflet Map Overrides === */
#visit-map {
  background: var(--color-bg-sand);
  border-radius: var(--radius);
}
.leaflet-container {
  background: var(--color-bg-sand) !important;
  border-radius: var(--radius);
  font-family: var(--font-sans) !important;
}
.leaflet-popup-content-wrapper {
  background: var(--color-surface) !important;
  color: var(--color-ink) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-soft) !important;
}
.leaflet-popup-tip {
  background: var(--color-surface) !important;
}
.leaflet-popup-content {
  font-family: var(--font-sans) !important;
  font-size: 14px !important;
}
.leaflet-control-zoom a {
  background: var(--color-surface) !important;
  color: var(--color-slate) !important;
  border-color: #eae4d8 !important;
}
.leaflet-control-attribution {
  background: rgba(250,248,244,0.8) !important;
  font-size: 10px !important;
}

/* === Visit Page Hero Banner === */
/* Hide the index-gallery-wrapper on pages with a custom page-banner-wrapper.
   The index-gallery-wrapper is position:fixed and creates a full-viewport background that
   pushes the main content down when the page has a custom hero section instead.
   Scoped to the visit-1 page via its unique body collection ID. */
body[data-collection-id="5fe2ceca4aff1019af48766b"] .index-gallery-wrapper {
  display: none !important;
}

/* When we have a custom hero banner, reset the main-content spacing.
   The mainContent div is normally short (just the overlay area) so reset it. */
body[data-collection-id="5fe2ceca4aff1019af48766b"] #mainContent {
  min-height: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

/* Reset the content-outer-wrapper min-height:100vh set by has-index-nav in site.css */
body[data-collection-id="5fe2ceca4aff1019af48766b"] .jog-frame {
  min-height: 0 !important;
}

/* Reset the main-content-inner-wrapper top offset and remove padding
   so the hero banner starts immediately after the header */
body[data-collection-id="5fe2ceca4aff1019af48766b"] .jog-main-inner {
  margin-top: 0 !important;
  top: 0 !important;
  padding: 0 !important;
}

/* Remove the jog-layout padding that creates an indent around the hero banner */
body[data-collection-id="5fe2ceca4aff1019af48766b"] .jog-layout {
  padding: 0 !important;
}

/* The col/span-12 that wraps the hero also removes padding */
body[data-collection-id="5fe2ceca4aff1019af48766b"] .jog-col-12,
body[data-collection-id="5fe2ceca4aff1019af48766b"] .span-12,
body[data-collection-id="5fe2ceca4aff1019af48766b"] .jog-row {
  padding: 0 !important;
  margin: 0 !important;
}

/* Make the main content blocks (after the banner) use standard page padding */
body[data-collection-id="5fe2ceca4aff1019af48766b"] .jog-block-html {
  padding-left: 6vw;
  padding-right: 6vw;
}

/* Clean page banner image sizing & title card alignment */
.jog-page-banner {
  position: relative !important;
  display: block !important;
  height: 420px !important;
  overflow: hidden !important;
}

.jog-page-banner .jog-banner-img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.jog-page-banner .jog-banner-img img,
.page-banner-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

/* Connect page banner: frame the in-focus woman (black-and-white dress,
   face around native y~290-360) as the dominant subject. Window top ~231
   keeps her whole head + hair in view with the front-row faces pushed down
   and out of frame. */
.jog-page-banner[data-collection-id="5d55ccd9c3c43a0001f0e133"] .jog-banner-img img,
.jog-page-banner[data-collection-id="5c70d1d3f9619ae6c8345e63"] .jog-banner-img img {
  object-position: 50% 33% !important;
}

.jog-page-banner .jog-banner-title-wrap {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 5 !important;
  pointer-events: none !important;
}

.jog-banner-title-wrap .jog-banner-title {
  text-align: center !important;
  max-width: 90% !important;
  margin: 0 auto !important;
}

.jog-banner-title-wrap .jog-page-title {
  font-family: 'Cantata One', Georgia, serif !important;
  font-size: clamp(1.8rem, 4.5vw, 3.8rem) !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.95) !important;
  margin: 0 auto !important;
  line-height: 1.2 !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

@media (max-width: 768px) {
  .jog-page-banner {
    height: 260px !important;
  }
}

/* ==========================================================================
   GLOBAL DESIGN SYSTEM ENHANCEMENTS (HEADER, MOBILE NAV, FOOTER, ADA)
   ========================================================================== */

/* WCAG 2.1 AA Focus Ring Accessibility */
:focus-visible {
  outline: 3px solid #c97a2b !important;
  outline-offset: 2px !important;
}

/* Premium Sticky Navigation Bar */
/* Premium Sticky Navigation Bar */
.jog-global-header {
  background: #1e242d !important;
  border-bottom: 3px solid #c97a2b !important;
  padding: 0.4rem 3vw !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 999 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
  min-height: 70px !important;
}
/* Homepage layout: the full-screen video hero must always fill the whole page
   below the shared sticky header (header keeps the same code as other pages;
   no footer on the homepage). Flex towers keep the hero edge-to-edge and flush
   with the bottom of the viewport at any size, without hardcoding the header
   height. */
body[data-collection-id="5c3ba438352f53368c055aa2"] {
  min-height: 100vh;
  min-height: 100svh;
}
body[data-collection-id="5c3ba438352f53368c055aa2"] .jog-shell {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
body[data-collection-id="5c3ba438352f53368c055aa2"] .jog-frame {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
body[data-collection-id="5c3ba438352f53368c055aa2"] #mainContent {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
body[data-collection-id="5c3ba438352f53368c055aa2"] .jog-hero {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
}
.jog-global-header .header-brand a {
  display: flex !important;
  align-items: center !important;
}
.jog-global-header .header-brand img {
  height: 76px !important;
  width: auto !important;
  display: block !important;
  object-fit: contain !important;
}
.jog-global-nav {
  display: flex !important;
  align-items: center !important;
  gap: 1.8rem !important;
}
.jog-global-nav a {
  text-transform: uppercase !important;
  color: #f4f1ea !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  letter-spacing: 0.05em !important;
  text-decoration: none !important;
  position: relative !important;
  padding-bottom: 4px !important;
  transition: color 0.2s ease !important;
}
.jog-global-nav a:hover {
  color: #c97a2b !important;
}
.jog-global-nav a.active:not(.jog-btn-cta) {
  color: #c97a2b !important;
}
.jog-global-nav a.active:not(.jog-btn-cta)::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 2px !important;
  background-color: #c97a2b !important;
  border-radius: 2px !important;
}
.jog-global-nav a.jog-btn-cta {
  background: #c97a2b !important;
  color: #ffffff !important;
  border-radius: 50px !important;
  padding: 0.55rem 1.4rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  font-size: 16px !important;
  box-shadow: 0 3px 10px rgba(201, 122, 43, 0.3) !important;
}
.jog-global-nav a.jog-btn-cta:hover {
  background: #a8621d !important;
  transform: translateY(-1px) !important;
}
.jog-mobile-toggle {
  color: #f4f1ea !important;
}

/* Mobile Hamburger Navigation Drawer */
.jog-mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #1f242d;
  cursor: pointer;
  padding: 0.4rem;
}
.jog-mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(31, 36, 45, 0.98);
  z-index: 2000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.8rem;
  padding: 2rem;
}
.jog-mobile-drawer.open {
  display: flex;
}
.jog-mobile-drawer a {
  color: #ffffff;
  text-decoration: none;
  font-family: 'Asap', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  transition: color 0.2s;
}
.jog-mobile-drawer a:hover {
  color: #c97a2b;
}
.jog-mobile-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2.2rem;
  cursor: pointer;
}

/* Mobile Responsive Overrides */
@media (max-width: 850px) {
  .jog-global-header {
    padding: 0.75rem 1.25rem;
  }
  .jog-global-nav {
    display: none !important;
  }
  .jog-mobile-toggle {
    display: block !important;
  }
}

/* Global Unified Site Footer */
footer.jog-footer {
  background-color: #1e242d !important;
  color: #e2e8f0 !important;
  padding: 3.5rem 2rem 2rem !important;
  margin-top: 4rem !important;
  border-top: 3px solid #c97a2b !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

footer.jog-footer .footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 2.5rem;
}

@media (max-width: 768px) {
  footer.jog-footer .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

footer.jog-footer h3, footer.jog-footer .footer-brand h3 {
  font-family: 'Cantata One', Georgia, serif !important;
  color: #ffffff !important;
  font-size: 1.5rem !important;
  margin-top: 0 !important;
  margin-bottom: 0.8rem !important;
}

footer.jog-footer h4 {
  font-family: 'Cantata One', Georgia, serif !important;
  color: #ffffff !important;
  font-size: 1.1rem !important;
  margin-top: 0 !important;
  margin-bottom: 0.8rem !important;
}

footer.jog-footer p, 
footer.jog-footer .footer-brand p,
footer.jog-footer div,
footer.jog-footer span {
  color: #ffffff !important;
  font-size: 0.95rem !important;
  line-height: 1.7 !important;
  opacity: 1 !important;
}

footer.jog-footer nav a {
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  opacity: 1 !important;
  transition: color 0.2s ease !important;
}

footer.jog-footer nav a svg {
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.15em;
  margin-right: 0.45rem;
  fill: currentColor;
}

footer.jog-footer nav a:hover {
  color: #c97a2b !important;
}

footer.jog-footer .footer-links nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
  text-align: center;
}

footer.jog-footer .footer-links h4 {
  text-align: center;
}

footer.jog-footer .footer-bottom {
  max-width: 1100px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  font-size: 0.85rem;
  color: #ffffff !important;
  opacity: 0.9 !important;
}

footer.jog-footer .footer-bottom .footer-privacy-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

footer.jog-footer .footer-bottom .footer-privacy-link:hover {
  border-bottom-color: #ffffff;
}

/* Recent YouTube Sermons Section */
.sermons-yt-section {
  margin: 3rem 0;
}
.sermons-yt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.8rem;
}
.sermons-yt-header h2 {
  margin: 0 !important;
  border-bottom: none !important;
  font-family: 'Cantata One', Georgia, serif;
  color: #0f172a;
}
.sermons-yt-header a {
  background: #c97a2b;
  color: #ffffff !important;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  transition: background 0.2s ease;
}
.sermons-yt-header a:hover {
  background: #a8621d;
}
.sermons-yt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.sermon-yt-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.sermon-yt-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.sermon-yt-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #1e242d;
  overflow: hidden;
}
.sermon-yt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.sermon-yt-card:hover .sermon-yt-thumb img {
  transform: scale(1.05);
}
.sermon-yt-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  background: rgba(201, 122, 43, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: background 0.2s ease, transform 0.2s ease;
}
.sermon-yt-card:hover .sermon-yt-play-btn {
  background: #c97a2b;
  transform: translate(-50%, -50%) scale(1.1);
}
.sermon-yt-thumb iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.sermon-yt-info {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.sermon-yt-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}
.sermon-yt-meta {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Upcoming Service Section */
.sermons-upcoming-section {
  margin-bottom: 3rem;
}
.sermons-upcoming-card {
  display: flex;
  flex-wrap: wrap;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 2px solid #c97a2b;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sermons-upcoming-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}
.sermons-upcoming-card .sermon-yt-thumb {
  flex: 1 1 360px;
  max-width: 46%;
  aspect-ratio: 16 / 9;
}
.sermons-upcoming-card .sermon-yt-info {
  flex: 1 1 320px;
  padding: 1.5rem;
  justify-content: center;
}
.sermons-upcoming-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: #c97a2b;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.sermons-upcoming-card .sermon-yt-title {
  font-size: 1.35rem;
  color: #0f172a;
}
.sermons-upcoming-when {
  font-size: 0.95rem !important;
  font-weight: 600;
  color: #c97a2b !important;
  margin: 0 0 0.75rem 0;
}
@media (max-width: 720px) {
  .sermons-upcoming-card .sermon-yt-thumb {
    max-width: 100%;
    flex-basis: 100%;
  }
}


/* Homepage hero: full-screen self-hosted video.
   The original index-gallery structure (IndexGallery/HeaderOverflow) no
   longer applies in this static site, so the whole hero is a self-contained
   <video> that autoplays muted and loops, covering the full viewport behind
   the caption and nav pills. The solid sticky header sits above it. */
.jog-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 420px;
  overflow: hidden;
  background: #1e242d;
  margin: 0;
}

.jog-hero-video {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
  border: 0;
  background: #1e242d;
}

.jog-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.jog-hero-caption {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem 2rem;
  box-sizing: border-box;
  pointer-events: none;
}

.jog-hero-caption .jog-hero-cta {
  pointer-events: auto;
}

.jog-hero-desc {
  margin: 0 0 1.5rem;
}

@media (max-width: 768px) {
  .jog-hero {
    min-height: 320px;
  }
}

/* === Gallery (sqs slider blocks) ===
   The static site has no slider JS, so Squarespace "slider" galleries
   (youth group, kids) currently stack every photo full-width. Render them as
   a tidy responsive grid instead. */
.jog-gallery-container.jog-gallery-block-slider .jog-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.jog-gallery-container.jog-gallery-block-slider .jog-gallery .thumb-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
}

.jog-gallery-container.jog-gallery-block-slider .jog-gallery-controls {
  display: none;
}


/* === Full-bleed block replacement ===
   The page used to full-bleed its first image block (and gallery blocks on
   the kids & youth pages) via the Squarespace Fullwidth jQuery plugin, which
   has been removed. Reproduce that effect in pure CSS so pages look the same. */
body[data-collection-id="5d55ccd9c3c43a0001f0e133"] .jog-block.image-block, /* connect */
body[data-collection-id="5c3ba27bc2241bdece806eda"] .jog-block.image-block, /* spanish */
body[data-collection-id="5cb2b2e79b747a58e8a70c21"] .jog-block.image-block, /* mens-ministry */
body[data-collection-id="5cb2626cfa0d60178b1c3c60"] .jog-block.gallery-block, /* kids-min */
body[data-collection-id="5cb2af22e79c70e52f2292b5"] .jog-block.gallery-block /* youth-group */ {
  width: 100vw;
  max-width: none;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  padding-left: 0;
  padding-right: 0;
}

body[data-collection-id="5d55ccd9c3c43a0001f0e133"] .jog-block.image-block .intrinsic,
body[data-collection-id="5c3ba27bc2241bdece806eda"] .jog-block.image-block .intrinsic,
body[data-collection-id="5cb2b2e79b747a58e8a70c21"] .jog-block.image-block .intrinsic {
  max-width: 100% !important;
}

/* === Breadcrumb (journey trail) === */
.jog-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 auto 2.5rem;
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
}
.jog-breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-slate-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}
.jog-breadcrumb a:hover {
  color: var(--color-amber-deep);
}
.jog-breadcrumb svg {
  color: var(--color-amber);
  width: 1.05em;
  height: 1.05em;
  flex: none;
}
.jog-breadcrumb-current {
  color: var(--color-slate);
  font-weight: 700;
}
.jog-breadcrumb-arrow {
  color: var(--color-amber);
  display: inline-flex;
  align-items: center;
}

/* === Bible verse pull-quote === */
.jog-verse {
  position: relative;
  max-width: 680px;
  margin: 0 auto 3rem;
  padding: 2.4rem 2.6rem;
  background: var(--color-bg-sand);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.jog-verse-text {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  line-height: 1.7;
  font-weight: 400;
  color: var(--color-slate);
  margin: 0 0 1.4rem;
}
.jog-verse-icon {
  display: block;
  margin: 0 auto 1.1rem;
  color: var(--color-amber-deep);
  opacity: 0.85;
}
.jog-verse-ref {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-amber-deep);
}
.jog-verse-ref a {
  color: var(--color-amber-deep);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.jog-verse-ref a:hover {
  color: var(--color-slate);
  border-bottom-color: var(--color-amber);
}

/* === Ministry gateway tiles === */
.jog-ministry {
  max-width: 720px;
  margin: 0 auto 3.5rem;
}
.jog-ministry-heading {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  color: var(--color-slate);
  text-align: center;
  margin: 0 0 1.75rem;
}
.jog-ministry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}
.jog-ministry-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.35rem 1.5rem;
  background: var(--color-surface);
  border: 2px solid #ded7c8;
  border-radius: var(--radius);
  color: var(--color-slate);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.jog-ministry-tile svg {
  color: var(--color-amber);
  transition: transform 0.2s ease, color 0.2s ease;
}
.jog-ministry-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-amber);
  color: var(--color-slate);
}
.jog-ministry-tile:hover svg {
  transform: translateX(4px);
  color: var(--color-amber-deep);
}
@media (max-width: 640px) {
  .jog-ministry-grid {
    grid-template-columns: 1fr;
  }
  .jog-verse {
    padding: 1.75rem 1.5rem;
  }
}

/* === Clean content sections (rewritten pages) === */
.jog-section {
  max-width: 720px;
  margin: 0 auto 3.5rem;
}
.jog-section-heading {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  color: var(--color-slate);
  text-align: center;
  margin: 0 0 1.5rem;
}
.jog-lead {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--color-ink);
  text-align: center;
}
.jog-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.jog-list li {
  position: relative;
  padding: 0 0 0 1.7rem;
  margin: 0 0 1rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-ink);
}
.jog-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.65rem;
  height: 0.65rem;
  transform: rotate(45deg);
  background: var(--color-amber);
}
.jog-list a {
  color: var(--color-amber-deep);
}
.jog-actions {
  text-align: center;
  margin: 0 auto 3.5rem;
}
.jog-cta {
  display: inline-block;
  padding: 1rem 2.75rem;
  border-radius: var(--radius-pill);
  background: var(--color-amber);
  border: 2px solid var(--color-amber);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(201, 151, 61, 0.35);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.jog-cta:hover {
  background: var(--color-amber-deep);
  border-color: var(--color-amber-deep);
  color: #ffffff;
  transform: translateY(-2px);
}
.jog-section-full {
  max-width: 1080px;
}
.jog-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.jog-photo-grid img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  box-shadow: var(--shadow-soft);
  display: block;
}

/* Spanish ministry page */
.jog-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}
@media (max-width: 640px) {
  .jog-service-grid {
    grid-template-columns: 1fr;
  }
}
.jog-service-card {
  background: var(--color-surface);
  border: 2px solid #ded7c8;
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-soft);
}
.jog-service-heading {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--color-slate);
  margin: 0 0 1rem;
  text-align: center;
}
.jog-map {
  width: 100%;
  height: 380px;
  border: 1px solid #ded7c8;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  background: var(--color-bg-sand);
  z-index: 0;
}
.jog-address-box {
  color: var(--color-ink-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
  text-align: center;
}
.jog-address-box strong {
  color: var(--color-slate);
  font-size: 1.05rem;
}
.jog-map-actions {
  text-align: center;
  margin: 1.4rem 0 1rem;
}
.jog-directions-btn {
  display: inline-block;
  background: var(--color-slate);
  color: #fff !important;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.65rem 1.3rem;
  border-radius: 6px;
  transition: background 0.2s;
}
.jog-directions-btn:hover {
  background: var(--color-amber);
}
.jog-form-card {
  background: var(--color-surface);
  border: 2px solid #ded7c8;
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  box-shadow: var(--shadow-soft);
}
.jog-form-row {
  margin: 0 0 1.1rem;
}
.jog-form-label {
  display: block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-slate);
  margin-bottom: 0.4rem;
}
.jog-required {
  color: var(--color-amber-deep);
}
.jog-form-input {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-ink);
  padding: 0.7rem 0.9rem;
  border: 2px solid #ded7c8;
  border-radius: var(--radius-sm, 8px);
  background: var(--color-bg);
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.jog-form-input:focus {
  outline: none;
  border-color: var(--color-amber);
}
.jog-form-actions {
  text-align: center;
  margin-top: 1.2rem;
}
.jog-form-submit {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--color-amber);
  border: 2px solid var(--color-amber);
  border-radius: var(--radius-pill);
  padding: 0.8rem 2.2rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(201, 157, 61, 0.35);
  transition: background 0.2s, transform 0.2s;
}
.jog-form-submit:hover {
  background: var(--color-amber-deep);
  border-color: var(--color-amber-deep);
  transform: translateY(-2px);
}
.form-thanks {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--color-amber-deep);
  text-align: center;
  margin: 1rem 0 0;
}
.form-thanks-followup {
  font-weight: 400;
  color: var(--color-ink);
  margin: 0.5rem auto 0;
  max-width: 34rem;
}
.relay-form-error {
  font-family: var(--font-sans);
  font-weight: 600;
  color: #b91c1c;
  text-align: center;
  margin: 0.75rem 0 0;
}

/* Connection Card - paper card style form (mimics the printed card) */
.jog-cc-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  position: relative;
  padding-bottom: 4.5rem;
}
.jog-cc-side {
  background: linear-gradient(180deg, #fdfaf2 0%, #f8f2e3 100%);
  border: 1px solid #c9b98f;
  border-radius: 6px;
  padding: 1.25rem 1.6rem 1.4rem;
  box-shadow: 0 1px 3px rgba(122, 91, 37, 0.15);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.jog-cc-side-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.jog-cc-front {
  aspect-ratio: 731 / 542;
}
.jog-cc-logo {
  width: 3.4rem;
  height: auto;
  flex: 0 0 auto;
}
.jog-cc-side-title {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #6b4a1f;
  margin: 0 0 0.1rem;
}
.jog-cc-side-tag {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a16207;
  margin: 0 0 1rem;
}
.jog-cc-field {
  margin-bottom: 0.9rem;
}
.jog-cc-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: #5b4632;
  margin-bottom: 0.25rem;
}
.jog-cc-input {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: #1f2937;
  background: #fff;
  border: 1px solid #c9b98f;
  border-radius: 4px;
  padding: 0.45rem 0.6rem;
  width: 100%;
  box-sizing: border-box;
}
.jog-cc-input:focus {
  outline: 2px solid rgba(178, 132, 58, 0.4);
  outline-offset: 1px;
  border-color: #8a6530;
}
select.jog-cc-input {
  padding: 0.4rem 0.5rem;
}
textarea.jog-cc-input {
  resize: vertical;
}
.jog-cc-back #cc-other {
  padding: 0.8rem 0.6rem;
}
.jog-cc-row {
  display: flex;
  gap: 0.8rem;
}
.jog-cc-row .jog-cc-field {
  flex: 1 1 0;
}
.jog-cc-row .jog-cc-field.jog-cc-short {
  flex: 0 0 7rem;
}
.jog-cc-row-name .jog-cc-prefix-field {
  flex: 0 0 8.5rem;
}
.jog-cc-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin-top: 0.2rem;
}
.jog-cc-option {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: #4a3b28;
  cursor: pointer;
}
.jog-cc-option input {
  accent-color: #8a6530;
  cursor: pointer;
}
.jog-cc-block-option {
  margin-top: 0.2rem;
}
.jog-cc-grade {
  gap: 0.25rem 0.9rem;
}
.jog-cc-letters {
  gap: 0.15rem 0.7rem;
}
.jog-cc-note {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-style: italic;
  color: #7c6f55;
  margin: 1rem 0 0;
}
.jog-cc-submit {
  position: absolute;
  right: 10px;
  bottom: 10px;
  margin: 0;
}
.jog-cc-submit input[type=submit] {
  min-height: 44px;
  padding: 12px 30px;
}
@media (max-width: 480px) {
  .jog-cc-side {
    padding: 1.1rem 1.15rem 1.25rem;
  }
  .jog-cc-front,
  .jog-cc-back {
    aspect-ratio: auto;
  }
  .jog-cc-logo {
    width: 2.75rem;
  }
  .jog-cc-row {
    flex-direction: column;
    gap: 0;
  }
  .jog-cc-row .jog-cc-field.jog-cc-short {
    flex: 1 1 0;
  }
  .jog-cc-row-name .jog-cc-prefix-field {
    flex: 1 1 0;
  }
  .jog-cc-input {
    font-size: 16px;
  }
  .jog-cc-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.2rem 0.8rem;
  }
  .jog-cc-option {
    min-height: 44px;
  }
  .jog-cc-letters {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.15rem 0.4rem;
  }
  .jog-cc-submit {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 10px 12px;
    background: rgba(253, 250, 242, 0.96);
    border-top: 1px solid #c9b98f;
    box-shadow: 0 -2px 8px rgba(122, 91, 37, 0.18);
    z-index: 50;
  }
  .jog-cc-submit input[type=submit] {
    width: 100%;
    min-height: 48px;
    font-size: 1rem;
  }
}

/* Image lightbox (photo grids + About Us staff photos) */
.jog-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 10, 14, 0.88);
  padding: 20px;
}
.jog-lightbox.jog-lightbox-open {
  display: flex;
}
.jog-lightbox-img {
  max-width: min(94vw, 1600px);
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: auto;
  border-radius: 6px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}
.jog-lightbox-close {
  position: fixed;
  top: 16px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #10141d;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.jog-lightbox-locked {
  overflow: hidden;
}

/* Giving popup - mobile-friendly popup window for the giving form.
   Desktop uses Planning Center's own modal via js.churchcenter.com/modal/v1;
   on touch devices the official script would open a separate tab, so a
   custom popup keeps visitors on the page. */
.jog-giving-popup {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(24, 18, 8, 0.6);
}
.jog-giving-popup-card {
  position: relative;
  width: min(100vw - 12px, 520px);
  max-height: 94vh;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}
.jog-giving-popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  font-size: 20px;
  line-height: 1;
  color: #444;
  cursor: pointer;
}
.jog-giving-popup-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  display: flex;
  justify-content: center;
}
.jog-giving-popup-body .jog-giving-frame-wrap {
  transform-origin: top left;
  flex: 0 0 auto;
}
.jog-giving-popup-body::-webkit-scrollbar {
  display: none;
}
html.jog-giving-open,
body.jog-giving-open {
  overflow: hidden;
}
.jog-giving-popup-body .jog-giving-frame-wrap {
  transform-origin: top left;
}
.jog-giving-popup-body iframe {
  border: 0;
  display: block;
  transform-origin: top left;
}
