/* ===========================================================================
   Snap Splash — shared module layout framework
   Loaded by both the live renderer (views/site/render.ejs) and the builder
   preview (views/builder/preview.ejs). Each module's root keeps its
   `.comp-<type>` class and adds `layout-<id>`; the rules below make that
   layout choice actually change the visual arrangement.
   =========================================================================== */

/* ---- Generic helpers reused across modules -------------------------------- */
.layout-minimal { --comp-dense: 1; }

/* =================== HERO =================== */
/* default: centered text on solid/!image bg (base .comp-hero handles this) */
.comp-hero .hero-text { display: flex; flex-direction: column; align-items: inherit; }

/* minimal: shorter, smaller type, tighter */
.comp-hero.layout-minimal { min-height: 34vh; }
.comp-hero.layout-minimal h1 { font-size: 2.1rem; }
.comp-hero.layout-minimal p { font-size: 1.05rem; margin-bottom: 20px; }

/* overlay: text over the background image, anchored bottom-left */
.comp-hero.layout-overlay { align-items: flex-start; justify-content: flex-end; text-align: left; }
.comp-hero.layout-overlay .hero-text { align-items: flex-start; max-width: 720px; }

/* split: text on one side, image panel on the other */
.comp-hero.layout-split { flex-direction: row; flex-wrap: wrap; text-align: left; padding: 0 !important; gap: 0; }
.comp-hero.layout-split .hero-text { flex: 1 1 360px; align-items: flex-start; padding: 64px 48px; }
.comp-hero.layout-split .hero-media { flex: 1 1 360px; align-self: stretch; min-height: 320px; background-size: cover; background-position: center; }
@media (max-width: 760px) {
  .comp-hero.layout-split { flex-direction: column; }
  .comp-hero.layout-split .hero-text { padding: 40px 24px; }
}

/* ===== Generated module layouts (workflow) ===== */

/* --- header --- */
/* =================== HEADER =================== */
/* centered: stack brand above the nav links, everything centered */
.comp-header.layout-centered { flex-direction: column; justify-content: center; gap: 12px; text-align: center; min-height: auto; padding-top: 16px; padding-bottom: 16px; }
.comp-header.layout-centered .hdr-brand { justify-content: center; }
.comp-header.layout-centered nav { justify-content: center; flex-wrap: wrap; }

/* minimal: strip backdrop/blur, lighter weight, tighter, smaller links */
.comp-header.layout-minimal { backdrop-filter: none !important; box-shadow: none; border-bottom: 1px solid rgba(128,128,128,0.18); min-height: 52px; }
.comp-header.layout-minimal .hdr-brand { font-weight: 600; }
.comp-header.layout-minimal .hdr-name { font-size: 1rem; font-weight: 600; }
.comp-header.layout-minimal nav { gap: 14px; }
.comp-header.layout-minimal nav a { font-size: 0.82rem; opacity: 0.75; }
.comp-header.layout-minimal .hdr-btn { padding: 6px 14px; font-size: 0.82rem; }

@media (max-width: 760px) {
  .comp-header.layout-centered nav { gap: 12px; }
  .comp-header.layout-minimal { min-height: 48px; }
}


/* --- footer --- */
/* =================== FOOTER =================== */
/* columns: links laid out as multi-column blocks above the text */
.comp-footer.layout-columns { text-align: left; }
.comp-footer.layout-columns .footer-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px 32px; max-width: 1100px; margin: 0 auto 24px; justify-items: start; }
.comp-footer.layout-columns .footer-links a { display: block; padding: 4px 0; }
.comp-footer.layout-columns p { max-width: 1100px; margin-left: auto; margin-right: auto; opacity: 0.7; }

/* minimal: strip background, single tidy centered row, lighter type */
.comp-footer.layout-minimal { background: transparent !important; border-top: 1px solid rgba(128,128,128,0.15); padding-top: 20px; padding-bottom: 20px; }
.comp-footer.layout-minimal .footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-bottom: 12px; }
.comp-footer.layout-minimal .footer-links a { font-size: 0.85rem; opacity: 0.7; }
.comp-footer.layout-minimal p { font-size: 0.8rem; opacity: 0.55; }

@media (max-width: 760px) {
  .comp-footer.layout-columns .footer-links { grid-template-columns: 1fr 1fr; }
  .comp-footer.layout-minimal .footer-links { gap: 12px; }
}


/* --- contact --- */
/* =================== CONTACT =================== */
/* (overlay is handled by a dedicated markup branch in both files) */
/* centered: constrain and center the heading/subtitle/info block */
.comp-contact-wrap.layout-centered .comp-contact { max-width: 720px; margin: 0 auto; text-align: center; }
.comp-contact-wrap.layout-centered .contact-info { justify-content: center; }
.comp-contact-wrap.layout-centered .contact-item { text-align: center; }

/* split: heading/subtitle in one column, the info cards in the other */
.comp-contact-wrap.layout-split .comp-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; max-width: 1100px; margin: 0 auto; text-align: left; }
.comp-contact-wrap.layout-split .comp-contact > h2 { grid-column: 1; margin: 0; }
.comp-contact-wrap.layout-split .contact-subtitle { grid-column: 1; grid-row: 2; margin: 0; opacity: 0.8; }
.comp-contact-wrap.layout-split .contact-info { grid-column: 2; grid-row: 1 / span 2; display: grid; grid-template-columns: 1fr; gap: 14px; }

@media (max-width: 760px) {
  .comp-contact-wrap.layout-split .comp-contact { grid-template-columns: 1fr; gap: 20px; }
  .comp-contact-wrap.layout-split .comp-contact > h2,
  .comp-contact-wrap.layout-split .contact-subtitle,
  .comp-contact-wrap.layout-split .contact-info { grid-column: 1; grid-row: auto; }
}


/* --- welcome-video --- */
/* =================== WELCOME-VIDEO =================== */
/* (overlay is handled by a dedicated markup branch in both files) */
/* centered: constrain content, center everything */
.comp-welcome-video.layout-centered { text-align: center; }
.comp-welcome-video.layout-centered > h2,
.comp-welcome-video.layout-centered .wv-sub,
.comp-welcome-video.layout-centered .wv-caption { text-align: center; }
.comp-welcome-video.layout-centered > div,
.comp-welcome-video.layout-centered .wv-embed,
.comp-welcome-video.layout-centered .wv-poster { max-width: 720px; margin-left: auto; margin-right: auto; }

/* split: media on the left, heading/subtitle/caption stacked on the right */
.comp-welcome-video.layout-split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; max-width: 1100px; margin: 0 auto; text-align: left; }
.comp-welcome-video.layout-split > h2 { grid-column: 2; grid-row: 1; text-align: left; margin: 0 0 12px; }
.comp-welcome-video.layout-split .wv-sub { grid-column: 2; grid-row: 2; text-align: left; opacity: 0.75; line-height: 1.7; margin: 0 0 16px; }
.comp-welcome-video.layout-split .wv-embed,
.comp-welcome-video.layout-split .wv-poster { grid-column: 1; grid-row: 1 / span 3; }
.comp-welcome-video.layout-split .wv-caption { grid-column: 2; grid-row: 3; text-align: left; }

@media (max-width: 760px) {
  .comp-welcome-video.layout-split { grid-template-columns: 1fr; gap: 20px; }
  .comp-welcome-video.layout-split > h2,
  .comp-welcome-video.layout-split .wv-sub,
  .comp-welcome-video.layout-split .wv-embed,
  .comp-welcome-video.layout-split .wv-poster,
  .comp-welcome-video.layout-split .wv-caption { grid-column: 1; grid-row: auto; }
}


/* --- map --- */
/* =================== MAP =================== */
/* (overlay is handled by a dedicated markup branch in both files) */
/* In the live renderer the map+info live in a flex row: the iframe column
   (flex:2) then the info column (flex:1). We target those structural
   children since they carry no classes there. The builder preview uses
   .map-wrap / .map-embed / .map-info, which we cover too. */

/* split-left: info column first, then the map (reverse the default order) */
.comp-map.layout-split-left > div:last-child { flex-direction: row-reverse; }
.comp-map.layout-split-left .map-wrap { flex-direction: row-reverse; }

/* stacked: map full-width on top, info block below, centered */
.comp-map.layout-stacked > div:last-child { flex-direction: column; align-items: stretch; max-width: 820px; margin: 0 auto; }
.comp-map.layout-stacked > div:last-child > div { width: 100%; min-width: 0; }
.comp-map.layout-stacked .map-wrap { flex-direction: column; align-items: stretch; max-width: 820px; margin: 0 auto; }
.comp-map.layout-stacked .map-embed { width: 100%; }
.comp-map.layout-stacked .map-info { width: 100%; margin-top: 24px; }

@media (max-width: 760px) {
  .comp-map.layout-split-left > div:last-child,
  .comp-map.layout-split-left .map-wrap { flex-direction: column; }
  .comp-map.layout-stacked > div:last-child { max-width: 100%; }
}


/* --- job-openings --- */
.comp-job-openings.layout-list > div { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.comp-job-openings.layout-list > div > div { margin: 0 !important; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.comp-job-openings.layout-list > div > div > div:first-child { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; }
.comp-job-openings.layout-list h4 { margin: 0 !important; }
@media (max-width: 760px) {
  .comp-job-openings.layout-list > div > div { flex-direction: column; align-items: flex-start; }
}

/* --- membership-journey --- */
.comp-membership-journey.layout-horizontal > div { display: flex !important; flex-direction: row; flex-wrap: nowrap; grid-template-columns: none !important; align-items: stretch; justify-content: center; gap: 0; max-width: 1100px; margin: 0 auto; }
.comp-membership-journey.layout-horizontal > div > div { flex: 1 1 0; min-width: 0; text-align: center; padding: 0 8px; background: transparent !important; position: relative; }
.comp-membership-journey.layout-horizontal > div > div:not(:last-child)::after { content: ''; position: absolute; top: 24px; right: -1px; width: 100%; height: 2px; background: rgba(128,128,128,0.25); z-index: 0; }
@media (max-width: 760px) {
  .comp-membership-journey.layout-horizontal > div { flex-direction: column; }
  .comp-membership-journey.layout-horizontal > div > div:not(:last-child)::after { display: none; }
}

/* --- mission-partner --- */
.comp-mission-partner.layout-list > div { display: block !important; grid-template-columns: none !important; max-width: 760px; margin: 0 auto; }
.comp-mission-partner.layout-list > div > div { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 12px; }
.comp-mission-partner.layout-list > div > div > div:first-child { flex-shrink: 0; margin-bottom: 0 !important; }
@media (max-width: 760px) {
  .comp-mission-partner.layout-list > div > div { flex-direction: column; }
}

/* --- partner-churches --- */
.comp-partner-churches.layout-list > div { display: block !important; grid-template-columns: none !important; max-width: 760px; margin: 0 auto; }
.comp-partner-churches.layout-list > div > div { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 12px; }
.comp-partner-churches.layout-list > div > div > div:first-child { flex-shrink: 0; margin-bottom: 0 !important; }
@media (max-width: 760px) {
  .comp-partner-churches.layout-list > div > div { flex-direction: column; }
}

/* --- pastoral-letter --- */
.comp-pastoral-letter.layout-centered > div { max-width: 720px; margin: 0 auto; text-align: center; }
.comp-pastoral-letter.layout-centered > div > div { justify-content: center; }
.comp-pastoral-letter.layout-centered img { margin: 0 auto; }
@media (max-width: 760px) {
  .comp-pastoral-letter.layout-centered > div { padding: 0 8px; }
}

/* --- prayer-chain --- */
.comp-prayer-chain.layout-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; text-align: left; max-width: 1100px; margin: 0 auto; }
.comp-prayer-chain.layout-split > h2 { grid-column: 1; text-align: left; margin-bottom: 12px; }
.comp-prayer-chain.layout-split > p { grid-column: 1; text-align: left; max-width: none; margin-left: 0; margin-right: 0; }
.comp-prayer-chain.layout-split > div { grid-column: 2; grid-row: 1 / span 3; max-width: none; margin: 0; align-self: start; }
@media (max-width: 760px) {
  .comp-prayer-chain.layout-split { grid-template-columns: 1fr; gap: 24px; }
  .comp-prayer-chain.layout-split > h2,
  .comp-prayer-chain.layout-split > p,
  .comp-prayer-chain.layout-split > div { grid-column: 1; grid-row: auto; }
}

/* --- tithing-thermometer --- */
.comp-tithing-thermometer.layout-horizontal { text-align: left; max-width: 1100px; margin: 0 auto; }
.comp-tithing-thermometer.layout-horizontal > h2,
.comp-tithing-thermometer.layout-horizontal > p { text-align: left; max-width: none; margin-left: 0; margin-right: 0; }
.comp-tithing-thermometer.layout-horizontal > div { max-width: none; margin-left: 0; margin-right: 0; }
.comp-tithing-thermometer.layout-horizontal > div[style*="justify-content:center"] { justify-content: space-between; }
@media (max-width: 760px) {
  .comp-tithing-thermometer.layout-horizontal > div[style*="justify-content:center"] { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* --- vision-mission --- */
.comp-vision-mission.layout-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; text-align: left; max-width: 1100px; margin: 0 auto; }
.comp-vision-mission.layout-split > h2 { grid-column: 1 / -1; text-align: left; }
.comp-vision-mission.layout-split > div { max-width: none; margin: 0; text-align: left; }
.comp-vision-mission.layout-split > div > h4 { text-align: left; }
@media (max-width: 760px) {
  .comp-vision-mission.layout-split { grid-template-columns: 1fr; gap: 24px; }
}

/* --- volunteer-signup --- */
.comp-volunteer-signup.layout-list > div[style*="grid"] { grid-template-columns: 1fr; max-width: 700px; margin-left: auto; margin-right: auto; gap: 12px; }
.comp-volunteer-signup.layout-list > div[style*="grid"] > div { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; text-align: left; }
.comp-volunteer-signup.layout-list > div[style*="grid"] > div > h4 { margin: 0; flex: 0 0 auto; }
.comp-volunteer-signup.layout-list > div[style*="grid"] > div > p { flex: 1 1 200px; margin: 0; }
@media (max-width: 760px) {
  .comp-volunteer-signup.layout-list > div[style*="grid"] > div { flex-direction: column; align-items: flex-start; }
}

/* --- worship-setlist --- */
.comp-worship-setlist.layout-cards > div[style*="max-width"] { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.comp-worship-setlist.layout-cards > div[style*="max-width"] > div { display: block; text-align: center; border-bottom: none; background: rgba(255,255,255,0.05); border-radius: 10px; padding: 18px; }
.comp-worship-setlist.layout-cards > div[style*="max-width"] > div > span:first-child { display: block; margin-bottom: 8px; }
.comp-worship-setlist.layout-cards > div[style*="max-width"] > div > div { text-align: center; }
@media (max-width: 760px) {
  .comp-worship-setlist.layout-cards > div[style*="max-width"] { grid-template-columns: 1fr; }
}

/* --- event-spotlight --- */
.comp-event-spotlight.layout-centered { text-align: center; }
.comp-event-spotlight.layout-centered .es-image { margin: 0 auto; max-width: 720px; }
.comp-event-spotlight.layout-centered .es-info { max-width: 720px; margin: 0 auto; }
.comp-event-spotlight.layout-centered .es-info .es-meta { align-items: center; }
.comp-event-spotlight.layout-centered > div[style*="display:flex"],
.comp-event-spotlight.layout-centered > div > div[style*="display:flex"] { flex-direction: column; align-items: center; text-align: center; }

.comp-event-spotlight.layout-stacked .es-image,
.comp-event-spotlight.layout-stacked .es-info { width: 100%; flex: none; }
.comp-event-spotlight.layout-stacked > div[style*="display:flex"],
.comp-event-spotlight.layout-stacked > div > div[style*="display:flex"] { flex-direction: column; align-items: stretch; gap: 24px; }
.comp-event-spotlight.layout-stacked .es-image { min-height: 280px; }

.comp-event-spotlight.layout-split-left > div[style*="display:flex"],
.comp-event-spotlight.layout-split-left > div > div[style*="display:flex"] { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; }
.comp-event-spotlight.layout-split-left .es-info { order: 1; }
.comp-event-spotlight.layout-split-left .es-image { order: 2; }

.comp-event-spotlight.layout-full-overlay { position: relative; width: 100%; padding: 0 !important; min-height: 480px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.comp-event-spotlight.layout-full-overlay .es-image { position: absolute; inset: 0; z-index: 0; border-radius: 0 !important; min-height: 0 !important; flex: none; width: 100%; height: 100%; }
.comp-event-spotlight.layout-full-overlay .es-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.75)); }
.comp-event-spotlight.layout-full-overlay .es-info { position: relative; z-index: 1; max-width: 720px; flex: none; color: #fff; padding: 80px 24px; }
.comp-event-spotlight.layout-full-overlay .es-info h2 { font-size: 2.8rem; }
.comp-event-spotlight.layout-full-overlay .es-meta { align-items: center; justify-content: center; }

.comp-event-spotlight.layout-banner { position: relative; width: 100%; padding: 0 !important; min-height: 360px; display: flex; align-items: center; overflow: hidden; }
.comp-event-spotlight.layout-banner .es-image { position: absolute; inset: 0; z-index: 0; border-radius: 0 !important; min-height: 0 !important; flex: none; width: 100%; height: 100%; }
.comp-event-spotlight.layout-banner .es-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,0.85) 40%, rgba(0,0,0,0.2) 100%); }
.comp-event-spotlight.layout-banner .es-info { position: relative; z-index: 1; max-width: 540px; flex: none; color: #fff; padding: 56px 8%; }
.comp-event-spotlight.layout-banner .es-info h2 { font-size: 2.4rem; }

@media (max-width: 760px) {
  .comp-event-spotlight.layout-split-left > div[style*="display:flex"],
  .comp-event-spotlight.layout-split-left > div > div[style*="display:flex"] { grid-template-columns: 1fr; }
  .comp-event-spotlight.layout-full-overlay { min-height: 380px; }
  .comp-event-spotlight.layout-full-overlay .es-info h2 { font-size: 2rem; }
  .comp-event-spotlight.layout-full-overlay .es-info { padding: 56px 20px; }
  .comp-event-spotlight.layout-banner { min-height: 320px; }
  .comp-event-spotlight.layout-banner .es-info { max-width: 100%; padding: 40px 24px; }
  .comp-event-spotlight.layout-banner .es-info h2 { font-size: 1.9rem; }
}

/* --- give --- */
/* give: minimal - strip backgrounds, lighter type, more whitespace */
.comp-give.layout-minimal { padding-top: 72px; padding-bottom: 72px; }
.comp-give.layout-minimal h2 { font-size: 1.6rem; }
.comp-give.layout-minimal > p { margin-bottom: 40px; }
.comp-give.layout-minimal .giving-options { gap: 24px; }
.comp-give.layout-minimal .giving-option { background: transparent; border: none; box-shadow: none; padding: 12px; }
.comp-give.layout-minimal .give-btn { box-shadow: none; }

/* give: split - text/heading left, giving options right */
.comp-give.layout-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; max-width: 1100px; margin: 0 auto; text-align: left; }
.comp-give.layout-split h2 { grid-column: 1; margin: 0 0 12px; }
.comp-give.layout-split > p { grid-column: 1; margin: 0 0 24px; }
.comp-give.layout-split .give-btn { grid-column: 1; justify-self: start; }
.comp-give.layout-split .giving-options { grid-column: 2; grid-row: 1 / span 3; grid-template-columns: 1fr; gap: 16px; margin: 0; }
@media (max-width: 760px) {
  .comp-give.layout-split { grid-template-columns: 1fr; text-align: center; }
  .comp-give.layout-split h2, .comp-give.layout-split > p, .comp-give.layout-split .give-btn, .comp-give.layout-split .giving-options { grid-column: 1; grid-row: auto; justify-self: center; }
}

/* --- services --- */
/* services: list - single column rows, each item a horizontal flex row */
.comp-services.layout-list .service-grid { grid-template-columns: 1fr; max-width: 720px; gap: 12px; }
.comp-services.layout-list .service-item { display: flex; align-items: center; gap: 20px; text-align: left; padding: 18px 24px; }
.comp-services.layout-list .service-item .day { min-width: 120px; }
.comp-services.layout-list .service-item .time { margin: 0; }
.comp-services.layout-list .service-item .name { margin-left: auto; }
@media (max-width: 760px) {
  .comp-services.layout-list .service-item { flex-direction: column; align-items: flex-start; gap: 6px; }
  .comp-services.layout-list .service-item .name { margin-left: 0; }
}

/* services: compact - tighter grid, smaller padding and type */
.comp-services.layout-compact .service-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.comp-services.layout-compact .service-item { padding: 14px; }
.comp-services.layout-compact .service-item .day { font-size: 0.95rem; }
.comp-services.layout-compact .service-item .time { font-size: 1.1rem; margin: 4px 0; }
.comp-services.layout-compact .service-item .name { font-size: 0.8rem; }
@media (max-width: 760px) {
  .comp-services.layout-compact .service-grid { grid-template-columns: 1fr 1fr; }
}

/* --- events --- */
/* events: cards - grid of elevated cards */
.comp-events.layout-cards .event-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; max-width: 1100px; }
.comp-events.layout-cards .event-item { flex-direction: column; gap: 12px; background: rgba(255,255,255,0.05); border-radius: 12px; padding: 20px; border-bottom: none; }
.comp-events.layout-cards .event-date { display: flex; gap: 8px; align-items: baseline; text-align: left; min-width: 0; }
.comp-events.layout-cards .event-date .day-num { font-size: 1.4rem; }
@media (max-width: 760px) {
  .comp-events.layout-cards .event-list { grid-template-columns: 1fr; }
}

/* events: compact - tighter rows, smaller type */
.comp-events.layout-compact .event-list { max-width: 640px; }
.comp-events.layout-compact .event-item { gap: 12px; padding: 10px 0; }
.comp-events.layout-compact .event-date { min-width: 48px; }
.comp-events.layout-compact .event-date .day-num { font-size: 1.3rem; }
.comp-events.layout-compact .event-info h3 { font-size: 1rem; }
.comp-events.layout-compact .event-info p { font-size: 0.8rem; }

/* events: overlay - full-bleed emphasis with darkened backdrop */
.comp-events.layout-overlay { position: relative; text-align: center; }
.comp-events.layout-overlay h2 { font-size: 2.4rem; margin-bottom: 32px; }
.comp-events.layout-overlay .event-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; max-width: 1000px; margin: 0 auto; }
.comp-events.layout-overlay .event-item { flex-direction: column; gap: 10px; background: rgba(0,0,0,0.35); border-radius: 12px; padding: 24px; border-bottom: none; }
.comp-events.layout-overlay .event-date { display: flex; gap: 8px; justify-content: center; align-items: baseline; min-width: 0; }
@media (max-width: 760px) {
  .comp-events.layout-overlay .event-list { grid-template-columns: 1fr; }
  .comp-events.layout-overlay h2 { font-size: 1.8rem; }
}

/* --- sermons --- */
/* sermons: list - single column rows, each item a horizontal flex row */
.comp-sermons.layout-list .sermon-grid { grid-template-columns: 1fr; max-width: 760px; gap: 14px; }
.comp-sermons.layout-list .sermon-item { display: flex; align-items: stretch; }
.comp-sermons.layout-list .sermon-img { flex: 0 0 180px; height: auto; min-height: 110px; }
.comp-sermons.layout-list .sermon-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 760px) {
  .comp-sermons.layout-list .sermon-item { flex-direction: column; }
  .comp-sermons.layout-list .sermon-img { flex: none; height: 160px; }
}

/* sermons: featured - first sermon spans full width and larger, rest in grid */
.comp-sermons.layout-featured .sermon-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.comp-sermons.layout-featured .sermon-item:first-child { grid-column: 1 / -1; display: flex; align-items: stretch; }
.comp-sermons.layout-featured .sermon-item:first-child .sermon-img { flex: 0 0 50%; height: auto; min-height: 240px; }
.comp-sermons.layout-featured .sermon-item:first-child .sermon-info { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 32px; }
.comp-sermons.layout-featured .sermon-item:first-child h3 { font-size: 1.5rem; }
@media (max-width: 760px) {
  .comp-sermons.layout-featured .sermon-item:first-child { flex-direction: column; }
  .comp-sermons.layout-featured .sermon-item:first-child .sermon-img { flex: none; height: 200px; }
  .comp-sermons.layout-featured .sermon-item:first-child .sermon-info { padding: 16px; }
}

/* sermons: overlay - full-bleed emphasis, darkened cards */
.comp-sermons.layout-overlay { text-align: center; }
.comp-sermons.layout-overlay h2 { font-size: 2.4rem; margin-bottom: 32px; }
.comp-sermons.layout-overlay .sermon-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; max-width: 1100px; margin: 0 auto; }
.comp-sermons.layout-overlay .sermon-item { background: rgba(0,0,0,0.4); }
.comp-sermons.layout-overlay .sermon-img { height: 200px; }
@media (max-width: 760px) {
  .comp-sermons.layout-overlay .sermon-grid { grid-template-columns: 1fr; }
  .comp-sermons.layout-overlay h2 { font-size: 1.8rem; }
}

/* --- store --- */
/* store: list - single column rows, each card a horizontal flex row */
.comp-store.layout-list .product-grid { grid-template-columns: 1fr; max-width: 760px; margin: 0 auto; gap: 14px; }
.comp-store.layout-list .product-card { display: flex; align-items: stretch; }
.comp-store.layout-list .product-img { flex: 0 0 200px; height: auto; min-height: 140px; }
.comp-store.layout-list .product-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 760px) {
  .comp-store.layout-list .product-card { flex-direction: column; }
  .comp-store.layout-list .product-img { flex: none; height: 200px; }
}

/* store: featured - first product spans full width and larger, rest in grid */
.comp-store.layout-featured .product-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.comp-store.layout-featured .product-card:first-child { grid-column: 1 / -1; display: flex; align-items: stretch; }
.comp-store.layout-featured .product-card:first-child .product-img { flex: 0 0 55%; height: auto; min-height: 300px; }
.comp-store.layout-featured .product-card:first-child .product-info { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 32px; }
.comp-store.layout-featured .product-card:first-child h3 { font-size: 1.6rem; }
.comp-store.layout-featured .product-card:first-child .price { font-size: 1.6rem; }
@media (max-width: 760px) {
  .comp-store.layout-featured .product-card:first-child { flex-direction: column; }
  .comp-store.layout-featured .product-card:first-child .product-img { flex: none; height: 220px; }
  .comp-store.layout-featured .product-card:first-child .product-info { padding: 16px; }
}

/* store: overlay - full-bleed emphasis, darkened cards */
.comp-store.layout-overlay { text-align: center; }
.comp-store.layout-overlay h2 { font-size: 2.4rem; }
.comp-store.layout-overlay .product-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; max-width: 1100px; margin: 0 auto; }
.comp-store.layout-overlay .product-card { background: rgba(0,0,0,0.4) !important; }
.comp-store.layout-overlay .product-img { height: 200px; }
@media (max-width: 760px) {
  .comp-store.layout-overlay .product-grid { grid-template-columns: 1fr; }
  .comp-store.layout-overlay h2 { font-size: 1.8rem; }
}

/* --- staff --- */
.comp-staff.layout-list .staff-grid { grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; gap: 16px; }
.comp-staff.layout-list .staff-member { display: flex; flex-direction: row; align-items: center; gap: 20px; text-align: left; }
.comp-staff.layout-list .staff-photo { margin: 0; flex-shrink: 0; }
.comp-staff.layout-list .staff-member h3 { margin-bottom: 4px; }
@media (max-width: 760px) { .comp-staff.layout-list .staff-member { gap: 14px; } }

.comp-staff.layout-cards .staff-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.comp-staff.layout-cards .staff-member { background: rgba(255,255,255,0.05); padding: 28px 20px; border-radius: 14px; }
@media (max-width: 760px) { .comp-staff.layout-cards .staff-grid { grid-template-columns: 1fr; } }

.comp-staff.layout-overlay .staff-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.comp-staff.layout-overlay .staff-member { position: relative; border-radius: 14px; overflow: hidden; text-align: left; }
.comp-staff.layout-overlay .staff-photo { width: 100%; height: 280px; border-radius: 14px; margin: 0; }
.comp-staff.layout-overlay .staff-member h3, .comp-staff.layout-overlay .staff-member p { position: absolute; left: 16px; right: 16px; margin: 0; z-index: 2; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.7); }
.comp-staff.layout-overlay .staff-member h3 { bottom: 30px; }
.comp-staff.layout-overlay .staff-member p { bottom: 12px; opacity: 0.9; }
.comp-staff.layout-overlay .staff-member::after { content: ''; position: absolute; inset: 0; border-radius: 14px; background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0) 55%); z-index: 1; }
@media (max-width: 760px) { .comp-staff.layout-overlay .staff-grid { grid-template-columns: 1fr; } .comp-staff.layout-overlay .staff-photo { height: 240px; } }

/* --- gallery --- */
.comp-gallery.layout-masonry .gallery-grid { display: block; column-count: 3; column-gap: 12px; }
.comp-gallery.layout-masonry .gallery-item { break-inside: avoid; margin-bottom: 12px; display: block; }
.comp-gallery.layout-masonry .gallery-item img { height: auto; }
@media (max-width: 760px) { .comp-gallery.layout-masonry .gallery-grid { column-count: 2; } }

.comp-gallery.layout-featured .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; }
.comp-gallery.layout-featured .gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
.comp-gallery.layout-featured .gallery-item img { height: 100%; }
@media (max-width: 760px) { .comp-gallery.layout-featured .gallery-grid { grid-template-columns: repeat(2, 1fr); } .comp-gallery.layout-featured .gallery-item:first-child { grid-column: span 2; grid-row: span 1; } }

.comp-gallery.layout-overlay .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.comp-gallery.layout-overlay .gallery-item { position: relative; }
.comp-gallery.layout-overlay .gallery-item::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.35); opacity: 0; transition: opacity 0.3s; }
.comp-gallery.layout-overlay .gallery-item:hover::after { opacity: 1; }
@media (max-width: 760px) { .comp-gallery.layout-overlay .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* --- blog --- */
.comp-blog.layout-grid #blog-posts, .comp-blog.layout-grid .blog-posts-wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; max-width: none; }
.comp-blog.layout-grid .blog-post { margin-bottom: 0; padding: 20px; border-radius: 12px; }
@media (max-width: 760px) { .comp-blog.layout-grid #blog-posts, .comp-blog.layout-grid .blog-posts-wrap { grid-template-columns: 1fr; } }

.comp-blog.layout-magazine #blog-posts, .comp-blog.layout-magazine .blog-posts-wrap { max-width: 980px; }
.comp-blog.layout-magazine .blog-post { display: flex; gap: 24px; align-items: flex-start; padding: 20px; }
.comp-blog.layout-magazine .blog-post:nth-child(even) { flex-direction: row-reverse; }
.comp-blog.layout-magazine .blog-media { width: 40%; flex-shrink: 0; }
.comp-blog.layout-magazine .blog-media img { width: 100%; height: 200px; object-fit: cover; border-radius: 8px; }
.comp-blog.layout-magazine .blog-content { flex: 1; }
@media (max-width: 760px) { .comp-blog.layout-magazine .blog-post, .comp-blog.layout-magazine .blog-post:nth-child(even) { flex-direction: column; } .comp-blog.layout-magazine .blog-media { width: 100%; } }

.comp-blog.layout-overlay #blog-posts, .comp-blog.layout-overlay .blog-posts-wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; max-width: none; }
.comp-blog.layout-overlay .blog-post { position: relative; margin-bottom: 0; padding: 0; min-height: 280px; border-radius: 12px; overflow: hidden; display: flex; align-items: flex-end; }
.comp-blog.layout-overlay .blog-media { position: absolute; inset: 0; margin: 0; }
.comp-blog.layout-overlay .blog-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.comp-blog.layout-overlay .blog-content, .comp-blog.layout-overlay .blog-post > h3, .comp-blog.layout-overlay .blog-post > .blog-meta, .comp-blog.layout-overlay .blog-post > .blog-body { position: relative; z-index: 2; color: #fff; padding: 0 20px; }
.comp-blog.layout-overlay .blog-post::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0) 60%); z-index: 1; }
.comp-blog.layout-overlay .blog-content { width: 100%; padding: 20px; }
@media (max-width: 760px) { .comp-blog.layout-overlay #blog-posts, .comp-blog.layout-overlay .blog-posts-wrap { grid-template-columns: 1fr; } }

/* --- beliefs --- */
.comp-beliefs.layout-single .beliefs-grid { display: block; max-width: 720px; margin: 0 auto; }
.comp-beliefs.layout-single .belief-card { margin-bottom: 8px; }

.comp-beliefs.layout-cards .beliefs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.comp-beliefs.layout-cards .belief-card { background: rgba(255,255,255,0.05); padding: 24px; border-radius: 12px; }
@media (max-width: 760px) { .comp-beliefs.layout-cards .beliefs-grid { grid-template-columns: 1fr; } }

.comp-beliefs.layout-overlay .beliefs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; max-width: 800px; margin: 0 auto; }
.comp-beliefs.layout-overlay .belief-card { background: rgba(255,255,255,0.12); border-radius: 10px; padding: 16px; }
@media (max-width: 760px) { .comp-beliefs.layout-overlay .beliefs-grid { grid-template-columns: 1fr; } }

/* --- liveblog --- */
.comp-liveblog.layout-timeline > div:last-of-type { padding-left: 28px; border-left: 2px solid rgba(255,255,255,0.15); max-width: 700px; }
.comp-liveblog.layout-timeline > div:last-of-type > div { position: relative; }
.comp-liveblog.layout-timeline > div:last-of-type > div::before { content: ''; position: absolute; left: -35px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: currentColor; opacity: 0.7; }
@media (max-width: 760px) { .comp-liveblog.layout-timeline > div:last-of-type { padding-left: 20px; } .comp-liveblog.layout-timeline > div:last-of-type > div::before { left: -27px; } }

.comp-liveblog.layout-minimal > div:last-of-type > div { background: none !important; border: none !important; border-left: none !important; box-shadow: none !important; padding: 12px 0 !important; margin-bottom: 0 !important; border-bottom: 1px solid rgba(255,255,255,0.08) !important; border-radius: 0 !important; }
.comp-liveblog.layout-minimal h2 { font-size: 1.6rem; }

/* --- kingdom-connect --- */
/* kingdom-connect: stacked */
.comp-kingdom-connect.layout-stacked > div { flex-direction: column; flex-wrap: nowrap; align-items: center; max-width: 340px; margin: 0 auto; }
.comp-kingdom-connect.layout-stacked > div > a { width: 100%; justify-content: center; }
@media (max-width: 760px) {
  .comp-kingdom-connect.layout-stacked > div { max-width: 100%; }
}

/* --- events-calendar --- */
/* events-calendar: list - hide the month grid, render days as single-column rows */
.comp-events-calendar.layout-list .ec-grid { grid-template-columns: 1fr; max-width: 560px; background: transparent !important; padding: 0 !important; gap: 8px; }
.comp-events-calendar.layout-list .ec-day-header { display: none; }
.comp-events-calendar.layout-list .ec-day { display: flex; align-items: center; gap: 14px; min-height: 0; background: rgba(255,255,255,0.05); border-radius: 10px; padding: 12px 16px; }
.comp-events-calendar.layout-list .ec-day:not(.has-event) { display: none; }
.comp-events-calendar.layout-list .ec-day .ec-day-num { margin-bottom: 0; min-width: 32px; font-size: 1.1rem; }
.comp-events-calendar.layout-list .ec-day .ec-event-dot { white-space: normal; overflow: visible; text-overflow: clip; font-size: 0.9rem; }
.comp-events-calendar.layout-list h2 { text-align: center; }
.comp-events-calendar.layout-list .ec-month { text-align: center; }

/* events-calendar: compact - tighter grid, smaller type */
.comp-events-calendar.layout-compact { padding-top: 32px; padding-bottom: 32px; }
.comp-events-calendar.layout-compact h2 { font-size: 1.4rem; margin-bottom: 4px; }
.comp-events-calendar.layout-compact .ec-month { font-size: 0.85rem; margin-bottom: 12px; }
.comp-events-calendar.layout-compact .ec-grid { max-width: 420px; gap: 2px; padding: 8px !important; }
.comp-events-calendar.layout-compact .ec-day { min-height: 38px; padding: 4px; font-size: 0.72rem; }
.comp-events-calendar.layout-compact .ec-day-header { font-size: 0.6rem; padding: 4px 0; }

/* events-calendar: overlay - full-bleed emphasis with dimmed backdrop */
.comp-events-calendar.layout-overlay { position: relative; overflow: hidden; }
.comp-events-calendar.layout-overlay::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.45); z-index: 0; }
.comp-events-calendar.layout-overlay > * { position: relative; z-index: 1; }
.comp-events-calendar.layout-overlay h2 { text-align: center; font-size: 2.2rem; }
.comp-events-calendar.layout-overlay .ec-month { text-align: center; }
.comp-events-calendar.layout-overlay .ec-grid { background: rgba(255,255,255,0.08) !important; }

@media (max-width: 760px) {
  .comp-events-calendar.layout-compact .ec-grid { max-width: 100%; }
  .comp-events-calendar.layout-list .ec-grid { max-width: 100%; }
  .comp-events-calendar.layout-overlay h2 { font-size: 1.7rem; }
}

/* --- events-list --- */
/* events-list: cards - grid of elevated cards, stack each row vertically */
.comp-events-list.layout-cards > div { max-width: 1100px !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.comp-events-list.layout-cards > div > div { flex-direction: column !important; gap: 12px !important; background: rgba(255,255,255,0.05); border-radius: 12px; padding: 24px !important; border-bottom: none !important; align-items: stretch !important; }

/* events-list: minimal - strip card backgrounds and chrome */
.comp-events-list.layout-minimal > div > div { background: transparent !important; padding: 12px 0 !important; }
.comp-events-list.layout-minimal > div > div > div:first-child { background: transparent !important; min-width: auto !important; padding: 0 !important; text-align: left !important; }
.comp-events-list.layout-minimal h2 { font-size: 1.6rem; }

/* events-list: overlay - full-bleed emphasis over dimmed backdrop */
.comp-events-list.layout-overlay { position: relative; overflow: hidden; color: #fff; }
.comp-events-list.layout-overlay::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.45); z-index: 0; }
.comp-events-list.layout-overlay > * { position: relative; z-index: 1; }
.comp-events-list.layout-overlay > div > div { background: rgba(255,255,255,0.08); border-radius: 12px; padding: 20px !important; border-bottom: none !important; }

@media (max-width: 760px) {
  .comp-events-list.layout-cards > div { grid-template-columns: 1fr; }
}

/* --- countdown --- */
/* countdown: split - heading/desc on left, unit row on right */
.comp-countdown.layout-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; text-align: left !important; align-items: center; max-width: 960px; margin: 0 auto; }
.comp-countdown.layout-split > h2 { grid-column: 1; margin-bottom: 8px !important; }
.comp-countdown.layout-split > p:first-child { grid-column: 1; }
.comp-countdown.layout-split > [id^="countdown-"] { grid-column: 2; grid-row: 1 / span 3; justify-content: flex-start !important; flex-wrap: wrap; }
.comp-countdown.layout-split > p:last-child { grid-column: 1; margin: 0 !important; }

/* countdown: minimal - strip the unit box backgrounds, hide description */
.comp-countdown.layout-minimal > [id^="countdown-"] > div { background: transparent !important; padding: 8px 16px !important; min-width: 64px !important; }
.comp-countdown.layout-minimal h2 { font-size: 1.6rem; }
.comp-countdown.layout-minimal > p:last-child { display: none; }

/* countdown: overlay - full-bleed dimmed backdrop, larger numerals */
.comp-countdown.layout-overlay { position: relative; overflow: hidden; color: #fff; }
.comp-countdown.layout-overlay::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.5); z-index: 0; }
.comp-countdown.layout-overlay > * { position: relative; z-index: 1; }
.comp-countdown.layout-overlay h2 { font-size: 2.6rem; }
.comp-countdown.layout-overlay > [id^="countdown-"] > div { background: transparent !important; }
.comp-countdown.layout-overlay .cd-num { font-size: 4rem !important; }

@media (max-width: 760px) {
  .comp-countdown.layout-split { grid-template-columns: 1fr; gap: 24px; text-align: center !important; }
  .comp-countdown.layout-split > [id^="countdown-"] { grid-column: 1; grid-row: auto; justify-content: center !important; }
  .comp-countdown.layout-split > h2, .comp-countdown.layout-split > p { grid-column: 1; }
  .comp-countdown.layout-overlay h2 { font-size: 1.9rem; }
}

/* --- announcements --- */
/* announcements: list - single-column rows, items become horizontal */
.comp-announcements.layout-list > div { grid-template-columns: 1fr !important; max-width: 720px; margin: 0 auto !important; }
.comp-announcements.layout-list > div > div { display: flex; flex-direction: column; gap: 6px; }

/* announcements: compact - tighter grid and smaller cards */
.comp-announcements.layout-compact { padding-top: 36px; padding-bottom: 36px; }
.comp-announcements.layout-compact > div { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important; gap: 12px !important; }
.comp-announcements.layout-compact > div > div { padding: 16px !important; }
.comp-announcements.layout-compact > div > div h4 { font-size: 0.95rem; }
.comp-announcements.layout-compact > div > div p { font-size: 0.82rem; }

/* announcements: overlay - full-bleed dimmed backdrop */
.comp-announcements.layout-overlay { position: relative; overflow: hidden; color: #fff; }
.comp-announcements.layout-overlay::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.45); z-index: 0; }
.comp-announcements.layout-overlay > * { position: relative; z-index: 1; }
.comp-announcements.layout-overlay > div > div { background: rgba(255,255,255,0.1) !important; border: 1px solid rgba(255,255,255,0.2); }

@media (max-width: 760px) {
  .comp-announcements.layout-compact > div { grid-template-columns: 1fr !important; }
}

/* --- sermon-player --- */
/* sermon-player layouts */
.comp-sermon-player.layout-split .sp-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; max-width: 1000px; }
.comp-sermon-player.layout-split .sp-media { width: 100%; }
.comp-sermon-player.layout-split > div { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 760px) {
  .comp-sermon-player.layout-split .sp-wrap { grid-template-columns: 1fr; }
  .comp-sermon-player.layout-split > div { grid-template-columns: 1fr; }
}

.comp-sermon-player.layout-stacked .sp-wrap { flex-direction: column; align-items: center; text-align: center; }
.comp-sermon-player.layout-stacked .sp-media,
.comp-sermon-player.layout-stacked .sp-info { width: 100%; min-width: 0; }
.comp-sermon-player.layout-stacked > div { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.comp-sermon-player.layout-stacked > div > div { width: 100%; }

.comp-sermon-player.layout-overlay { position: relative; }
.comp-sermon-player.layout-overlay .sp-wrap { flex-direction: column; align-items: center; text-align: center; gap: 16px; max-width: 720px; }
.comp-sermon-player.layout-overlay .sp-media { width: 100%; }
.comp-sermon-player.layout-overlay .sp-info { max-width: 640px; margin: 0 auto; }
.comp-sermon-player.layout-overlay > div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
@media (max-width: 760px) {
  .comp-sermon-player.layout-overlay .sp-wrap { gap: 12px; }
}

/* --- sermon-series --- */
/* sermon-series layouts */
.comp-sermon-series.layout-two-col .ss-grid { grid-template-columns: repeat(2, 1fr); }
.comp-sermon-series.layout-two-col > div:not(.ss-grid) { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 760px) {
  .comp-sermon-series.layout-two-col .ss-grid { grid-template-columns: 1fr; }
  .comp-sermon-series.layout-two-col > div:not(.ss-grid) { grid-template-columns: 1fr; }
}

.comp-sermon-series.layout-list .ss-grid { grid-template-columns: 1fr; max-width: 760px; margin: 0 auto; }
.comp-sermon-series.layout-list .ss-card { display: flex; flex-direction: row; align-items: stretch; }
.comp-sermon-series.layout-list .ss-cover { width: 200px; height: auto; min-height: 120px; flex-shrink: 0; }
.comp-sermon-series.layout-list .ss-info { flex: 1; }
.comp-sermon-series.layout-list > div:not(.ss-grid) { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 760px; margin: 0 auto; }
@media (max-width: 760px) {
  .comp-sermon-series.layout-list .ss-card { flex-direction: column; }
  .comp-sermon-series.layout-list .ss-cover { width: 100%; min-height: 160px; }
}

.comp-sermon-series.layout-overlay .ss-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.comp-sermon-series.layout-overlay .ss-card { position: relative; overflow: hidden; min-height: 240px; display: flex; flex-direction: column; justify-content: flex-end; }
.comp-sermon-series.layout-overlay .ss-cover { position: absolute; inset: 0; height: 100%; }
.comp-sermon-series.layout-overlay .ss-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.9) 35%, rgba(0,0,0,0.15) 100%); }
.comp-sermon-series.layout-overlay .ss-info { position: relative; z-index: 1; color: #fff; }
@media (max-width: 760px) {
  .comp-sermon-series.layout-overlay .ss-grid { grid-template-columns: 1fr; }
}

/* --- setlist --- */
/* setlist layouts */
.comp-setlist.layout-cards .sl-songs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; max-width: 1000px; }
.comp-setlist.layout-cards .sl-song { background: rgba(255,255,255,0.05); padding: 16px 18px; border-radius: 12px; border-bottom: none; }
.comp-setlist.layout-cards > div:last-child { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; max-width: 1000px; margin: 0 auto; }
.comp-setlist.layout-cards > div:last-child > div { background: rgba(255,255,255,0.05); padding: 16px 18px; border-radius: 12px; border-bottom: none; }
@media (max-width: 760px) {
  .comp-setlist.layout-cards .sl-songs { grid-template-columns: 1fr; }
  .comp-setlist.layout-cards > div:last-child { grid-template-columns: 1fr; }
}

.comp-setlist.layout-minimal .sl-songs { background: none !important; box-shadow: none; padding: 0; }
.comp-setlist.layout-minimal .sl-song { border-bottom: none; padding: 6px 0; }
.comp-setlist.layout-minimal .sl-num { display: none; }
.comp-setlist.layout-minimal .sl-key { background: none; padding: 0; }
.comp-setlist.layout-minimal h2 { font-size: 1.6rem; }

/* --- livestream --- */
/* livestream layouts (overlay handled by markup branch) */
.comp-livestream.layout-player .ls-embed { max-width: 1100px; }
.comp-livestream.layout-player > div[style*="padding-bottom"] { max-width: 1100px; }
.comp-livestream.layout-player h2 { font-size: 2.2rem; }
@media (max-width: 760px) {
  .comp-livestream.layout-player h2 { font-size: 1.6rem; }
}

.comp-livestream.layout-offline { opacity: 0.85; }
.comp-livestream.layout-offline .ls-offline { background: rgba(255,255,255,0.03); border: 1px dashed rgba(255,255,255,0.18); filter: grayscale(0.4); }
.comp-livestream.layout-offline .ls-embed { opacity: 0.6; filter: grayscale(0.5); }
.comp-livestream.layout-offline h2 { opacity: 0.8; }

/* --- small-groups --- */
/* small-groups layouts (overlay handled by markup branch) */
.comp-small-groups.layout-list .sg-grid { grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; }
.comp-small-groups.layout-list .sg-card { display: flex; flex-direction: column; }
.comp-small-groups.layout-list > div[style*="grid"] { grid-template-columns: 1fr !important; max-width: 720px; margin: 0 auto; }
@media (max-width: 760px) {
  .comp-small-groups.layout-list .sg-grid { grid-template-columns: 1fr; }
}

/* --- volunteer --- */
/* =================== VOLUNTEER =================== */
/* list: single-column stacked rows */
.comp-volunteer.layout-list .vol-grid { grid-template-columns: 1fr; max-width: 760px; margin: 0 auto; }
.comp-volunteer.layout-list .vol-card { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.comp-volunteer.layout-list .vol-card h3 { flex: 1 1 auto; margin-bottom: 0; }
.comp-volunteer.layout-list .vol-card .vol-commitment { margin-bottom: 0; }
.comp-volunteer.layout-list .vol-card .vol-desc { flex: 1 1 100%; margin-bottom: 0; }

/* two-col: a two-column grid of cards */
.comp-volunteer.layout-two-col .vol-grid { grid-template-columns: repeat(2, 1fr); }
.comp-volunteer.layout-two-col .vol-card { background: rgba(255,255,255,0.05); }

@media (max-width: 760px) {
  .comp-volunteer.layout-two-col .vol-grid { grid-template-columns: 1fr; }
  .comp-volunteer.layout-list .vol-card { flex-direction: column; align-items: flex-start; }
}

/* --- connect-card --- */
/* =================== CONNECT-CARD =================== */
/* split: heading/intro column beside the form column */
.comp-connect-card.layout-split { max-width: 900px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.comp-connect-card.layout-split h2, .comp-connect-card.layout-split .cc-sub { text-align: left; }
.comp-connect-card.layout-split .cc-form { grid-row: span 2; }

/* minimal: strip the form's card chrome, lighter heading */
.comp-connect-card.layout-minimal .cc-form { background: transparent !important; border: none; box-shadow: none; padding: 8px 0; }
.comp-connect-card.layout-minimal h2 { font-size: 1.6rem; }
.comp-connect-card.layout-minimal .cc-field input, .comp-connect-card.layout-minimal .cc-field textarea { background: transparent; }

@media (max-width: 760px) {
  .comp-connect-card.layout-split { grid-template-columns: 1fr; gap: 24px; }
  .comp-connect-card.layout-split .cc-form { grid-row: auto; }
}

/* --- prayer-wall --- */
/* =================== PRAYER-WALL =================== */
/* grid: cards in a responsive grid instead of a single column list */
.comp-prayer-wall.layout-grid .pw-list { max-width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.comp-prayer-wall.layout-grid .pw-item { margin-bottom: 0; background: rgba(255,255,255,0.05); }

/* stacked: full-width horizontal rows, meta as a left badge */
.comp-prayer-wall.layout-stacked .pw-list { max-width: 760px; }
.comp-prayer-wall.layout-stacked .pw-item { display: flex; flex-direction: row; gap: 20px; align-items: flex-start; border-left: none; border-top: 3px solid; }
.comp-prayer-wall.layout-stacked .pw-item .pw-meta { order: -1; flex-direction: column; align-items: center; width: 96px; flex-shrink: 0; gap: 4px; opacity: 1; background: rgba(255,255,255,0.06); border-radius: 8px; padding: 10px 6px; }
.comp-prayer-wall.layout-stacked .pw-item .pw-text { flex: 1; margin-bottom: 4px; }

/* overlay: borderless rows over an emphasized backdrop */
.comp-prayer-wall.layout-overlay .pw-list { max-width: 800px; }
.comp-prayer-wall.layout-overlay .pw-item { border-left: none; border-radius: 0; background: transparent !important; border-bottom: 1px solid rgba(255,255,255,0.08); }

@media (max-width: 760px) {
  .comp-prayer-wall.layout-grid .pw-list { grid-template-columns: 1fr; }
  .comp-prayer-wall.layout-stacked .pw-item { flex-direction: column; }
  .comp-prayer-wall.layout-stacked .pw-item .pw-meta { flex-direction: row; width: auto; }
}

/* --- testimonies --- */
/* =================== TESTIMONIES =================== */
/* three-col: a tighter three-up grid */
.comp-testimonies.layout-three-col .tm-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* list: single-column rows, author beside the quote */
.comp-testimonies.layout-list .tm-grid { grid-template-columns: 1fr; max-width: 760px; margin: 0 auto; gap: 0; }
.comp-testimonies.layout-list .tm-card { background: transparent; border-radius: 0; padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }

/* overlay: photo fills each card, text floats over a gradient */
.comp-testimonies.layout-overlay .tm-card { position: relative; overflow: hidden; min-height: 320px; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 16px; }
.comp-testimonies.layout-overlay .tm-photo { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; margin: 0; background-size: cover; background-position: center; }
.comp-testimonies.layout-overlay .tm-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.9) 45%, rgba(0,0,0,0.15) 100%); }
.comp-testimonies.layout-overlay .tm-quote { position: relative; z-index: 1; padding: 0 20px; color: #fff; }
.comp-testimonies.layout-overlay .tm-author { position: relative; z-index: 1; padding: 12px 20px 20px; color: #fff; }

@media (max-width: 760px) {
  .comp-testimonies.layout-three-col .tm-grid { grid-template-columns: 1fr; }
}

/* --- kids-ministry --- */
/* kids-ministry: list */
.comp-kids-ministry.layout-list .km-grid,
.comp-kids-ministry.layout-list > div[style*="grid"] { display: grid !important; grid-template-columns: 1fr !important; gap: 12px; max-width: 760px; margin: 0 auto; }
.comp-kids-ministry.layout-list .km-card,
.comp-kids-ministry.layout-list > div[style*="grid"] > div { display: flex; flex-direction: row; align-items: center; gap: 18px; text-align: left; }
.comp-kids-ministry.layout-list .km-card > *,
.comp-kids-ministry.layout-list > div[style*="grid"] > div > * { margin-top: 0; margin-bottom: 0; }
@media (max-width: 760px) { .comp-kids-ministry.layout-list .km-card, .comp-kids-ministry.layout-list > div[style*="grid"] > div { flex-direction: column; align-items: flex-start; } }

/* kids-ministry: two-col */
.comp-kids-ministry.layout-two-col .km-grid,
.comp-kids-ministry.layout-two-col > div[style*="grid"] { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 20px; max-width: 900px; margin: 0 auto; }
@media (max-width: 760px) { .comp-kids-ministry.layout-two-col .km-grid, .comp-kids-ministry.layout-two-col > div[style*="grid"] { grid-template-columns: 1fr !important; } }

/* --- youth-events --- */
/* youth-events: cards */
.comp-youth-events.layout-cards .ye-list,
.comp-youth-events.layout-cards > div[style*="grid"] { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important; gap: 20px; max-width: 1100px; margin: 0 auto; }
.comp-youth-events.layout-cards .ye-item,
.comp-youth-events.layout-cards > div[style*="grid"] > div { display: block; background: rgba(255,255,255,0.05); border-radius: 12px; padding: 24px; }
@media (max-width: 760px) { .comp-youth-events.layout-cards .ye-list, .comp-youth-events.layout-cards > div[style*="grid"] { grid-template-columns: 1fr !important; } }

/* youth-events: two-col */
.comp-youth-events.layout-two-col .ye-list,
.comp-youth-events.layout-two-col > div[style*="grid"] { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 20px; max-width: 900px; margin: 0 auto; }
@media (max-width: 760px) { .comp-youth-events.layout-two-col .ye-list, .comp-youth-events.layout-two-col > div[style*="grid"] { grid-template-columns: 1fr !important; } }

/* --- missions --- */
/* missions: two-col */
.comp-missions.layout-two-col .ms-grid,
.comp-missions.layout-two-col > div[style*="grid"] { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 24px; max-width: 900px; margin: 0 auto; }
@media (max-width: 760px) { .comp-missions.layout-two-col .ms-grid, .comp-missions.layout-two-col > div[style*="grid"] { grid-template-columns: 1fr !important; } }

/* missions: list */
.comp-missions.layout-list .ms-grid,
.comp-missions.layout-list > div[style*="grid"] { display: grid !important; grid-template-columns: 1fr !important; gap: 16px; max-width: 760px; margin: 0 auto; }
.comp-missions.layout-list .ms-card,
.comp-missions.layout-list > div[style*="grid"] > div { display: flex; flex-direction: row; align-items: stretch; }
.comp-missions.layout-list .ms-image,
.comp-missions.layout-list > div[style*="grid"] > div > div[style*="height:160px"] { width: 200px; flex-shrink: 0; height: auto !important; min-height: 140px; }
.comp-missions.layout-list .ms-info,
.comp-missions.layout-list > div[style*="grid"] > div > div[style*="padding:20px"] { flex: 1; }
@media (max-width: 760px) { .comp-missions.layout-list .ms-card, .comp-missions.layout-list > div[style*="grid"] > div { flex-direction: column; } .comp-missions.layout-list .ms-image, .comp-missions.layout-list > div[style*="grid"] > div > div[style*="height:160px"] { width: 100%; height: 160px !important; } }

/* --- community-resources --- */
/* community-resources: two-col */
.comp-community-resources.layout-two-col .cr-grid,
.comp-community-resources.layout-two-col > div[style*="grid"] { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 20px; max-width: 900px; margin: 0 auto; }
@media (max-width: 760px) { .comp-community-resources.layout-two-col .cr-grid, .comp-community-resources.layout-two-col > div[style*="grid"] { grid-template-columns: 1fr !important; } }

/* community-resources: list */
.comp-community-resources.layout-list .cr-grid,
.comp-community-resources.layout-list > div[style*="grid"] { display: grid !important; grid-template-columns: 1fr !important; gap: 12px; max-width: 760px; margin: 0 auto; }
.comp-community-resources.layout-list .cr-card,
.comp-community-resources.layout-list > div[style*="grid"] > div { display: flex; flex-direction: row; align-items: flex-start; gap: 18px; text-align: left; }
.comp-community-resources.layout-list .cr-icon,
.comp-community-resources.layout-list > div[style*="grid"] > div > div[style*="font-size:2rem"] { margin-bottom: 0 !important; flex-shrink: 0; }
@media (max-width: 760px) { .comp-community-resources.layout-list .cr-card, .comp-community-resources.layout-list > div[style*="grid"] > div { flex-direction: column; } }

/* --- scripture --- */
/* scripture: split (media/verse two-column emphasis) */
.comp-scripture.layout-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; text-align: left; max-width: 1000px; margin: 0 auto; }
.comp-scripture.layout-split .scr-verse,
.comp-scripture.layout-split blockquote { grid-column: 1; font-size: 1.9rem; margin: 0 !important; }
.comp-scripture.layout-split .scr-label,
.comp-scripture.layout-split > p[style*="uppercase"] { grid-column: 2; grid-row: 1; align-self: start; }
.comp-scripture.layout-split .scr-ref,
.comp-scripture.layout-split .scr-translation,
.comp-scripture.layout-split > p[style*="font-weight:700"] { grid-column: 2; }
@media (max-width: 760px) { .comp-scripture.layout-split { grid-template-columns: 1fr; text-align: center; gap: 16px; } .comp-scripture.layout-split .scr-label, .comp-scripture.layout-split > p[style*="uppercase"], .comp-scripture.layout-split .scr-ref, .comp-scripture.layout-split .scr-translation, .comp-scripture.layout-split > p[style*="font-weight:700"], .comp-scripture.layout-split .scr-verse, .comp-scripture.layout-split blockquote { grid-column: 1; } }

/* scripture: minimal (strip emphasis, lighter, more whitespace) */
.comp-scripture.layout-minimal { max-width: 720px; margin: 0 auto; }
.comp-scripture.layout-minimal .scr-label,
.comp-scripture.layout-minimal > p[style*="uppercase"] { display: none; }
.comp-scripture.layout-minimal .scr-verse,
.comp-scripture.layout-minimal blockquote { font-size: 1.3rem; font-style: normal; opacity: 0.95; font-weight: 300; line-height: 1.7; }
.comp-scripture.layout-minimal .scr-ref,
.comp-scripture.layout-minimal > p[style*="font-weight:700"] { font-weight: 400 !important; opacity: 0.55 !important; font-size: 0.9rem; }
.comp-scripture.layout-minimal .scr-translation { opacity: 0.4; }
@media (max-width: 760px) { .comp-scripture.layout-minimal .scr-verse, .comp-scripture.layout-minimal blockquote { font-size: 1.15rem; } }

/* --- social-feed --- */
.comp-social-feed.layout-two-col .sf-grid { grid-template-columns: repeat(2, 1fr); max-width: 900px; margin: 0 auto; }
.comp-social-feed.layout-list .sf-grid { grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; gap: 14px; }
.comp-social-feed.layout-list .sf-card { display: flex; flex-direction: row; align-items: stretch; gap: 16px; padding: 16px; }
.comp-social-feed.layout-list .sf-image { flex: 0 0 200px; margin-bottom: 0; }
.comp-social-feed.layout-list .sf-image img { height: 100%; object-fit: cover; }
.comp-social-feed.layout-list .sf-header { margin-bottom: 8px; }
@media (max-width: 760px) {
  .comp-social-feed.layout-two-col .sf-grid { grid-template-columns: 1fr; }
  .comp-social-feed.layout-list .sf-card { flex-direction: column; }
  .comp-social-feed.layout-list .sf-image { flex: none; }
}

/* --- newsletter --- */
.comp-newsletter.layout-split { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; text-align: left; }
.comp-newsletter.layout-split h2, .comp-newsletter.layout-split .nl-sub, .comp-newsletter.layout-split p { text-align: left; margin-left: 0; margin-right: 0; }
.comp-newsletter.layout-split .nl-form { max-width: 100%; margin: 0; justify-content: flex-start; }
.comp-newsletter.layout-minimal { background: transparent !important; border: none !important; box-shadow: none !important; padding: 24px 0; }
.comp-newsletter.layout-minimal h2 { font-size: 1.5rem; }
.comp-newsletter.layout-minimal .nl-sub { display: none; }
.comp-newsletter.layout-minimal .nl-form input { background: transparent; border: 1px solid rgba(128,128,128,0.3); }
@media (max-width: 760px) {
  .comp-newsletter.layout-split { grid-template-columns: 1fr; gap: 20px; }
}

/* --- faq --- */
.comp-faq.layout-two-col > div:last-child, .comp-faq.layout-two-col .faq-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; max-width: 1000px; margin: 0 auto; align-items: start; }
.comp-faq.layout-stacked > div:last-child, .comp-faq.layout-stacked .faq-list { max-width: 780px; margin: 0 auto; }
.comp-faq.layout-stacked .faq-item { border-bottom: 1px solid rgba(128,128,128,0.15); }
.comp-faq.layout-stacked .faq-item > div:first-child { padding: 20px 0; }
@media (max-width: 760px) {
  .comp-faq.layout-two-col > div:last-child, .comp-faq.layout-two-col .faq-list { grid-template-columns: 1fr; }
}

/* --- bible-verse --- */
.comp-bible-verse.layout-banner { text-align: left; border-left: 6px solid currentColor; padding-left: 32px; }
.comp-bible-verse.layout-banner blockquote { max-width: 100%; margin: 0 0 12px; font-size: 1.9rem; }
.comp-bible-verse.layout-banner p { text-align: left; }
.comp-bible-verse.layout-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; text-align: left; max-width: 1000px; margin: 0 auto; }
.comp-bible-verse.layout-split blockquote { max-width: 100%; margin: 0; border-left: 4px solid currentColor; padding-left: 20px; }
.comp-bible-verse.layout-split p { text-align: left; }
.comp-bible-verse.layout-overlay { position: relative; min-height: 380px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 80px 24px; }
.comp-bible-verse.layout-overlay blockquote { font-size: 1.9rem; }
@media (max-width: 760px) {
  .comp-bible-verse.layout-split { grid-template-columns: 1fr; gap: 24px; }
}

/* --- baptism-stories --- */
.comp-baptism-stories.layout-timeline > div:nth-of-type(1) { display: block; grid-template-columns: none; max-width: 640px; margin: 0 auto; padding-left: 28px; border-left: 2px solid rgba(128,128,128,0.25); }
.comp-baptism-stories.layout-timeline > div:nth-of-type(1) > div { position: relative; text-align: left; background: transparent; padding: 0 0 28px 16px; border-radius: 0; }
.comp-baptism-stories.layout-timeline > div:nth-of-type(1) > div::before { content: ''; position: absolute; left: -35px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: currentColor; opacity: 0.5; }
.comp-baptism-stories.layout-overlay { position: relative; min-height: 380px; padding: 80px 24px; color: #fff; }
.comp-baptism-stories.layout-overlay > div:nth-of-type(1) > div { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); }
@media (max-width: 760px) {
  .comp-baptism-stories.layout-timeline > div:nth-of-type(1) { padding-left: 20px; }
}

/* --- bulletin --- */
/* bulletin */
.comp-bulletin.layout-card { max-width: 560px; margin: 0 auto; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; }
.comp-bulletin.layout-card > div { max-width: none !important; }
@media (max-width: 760px) { .comp-bulletin.layout-card { margin: 0 16px; } }

/* --- camp-retreat --- */
/* camp-retreat */
.comp-camp-retreat.layout-split { display: grid !important; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; text-align: left !important; }
.comp-camp-retreat.layout-split > div:first-child { grid-row: 1 / span 30; grid-column: 1; margin: 0 !important; max-width: none !important; }
.comp-camp-retreat.layout-split > :not(:first-child) { grid-column: 2; }
.comp-camp-retreat.layout-split > div[style*="justify-content:center"] { justify-content: flex-start !important; }
.comp-camp-retreat.layout-split p[style*="margin-left:auto"] { margin-left: 0 !important; margin-right: 0 !important; }
.comp-camp-retreat.layout-overlay { text-align: center; }
.comp-camp-retreat.layout-overlay h2 { font-size: 2.6rem !important; }
.comp-camp-retreat.layout-overlay > div:first-child { max-width: 960px !important; }
@media (max-width: 760px) { .comp-camp-retreat.layout-split { grid-template-columns: 1fr; gap: 20px; text-align: center !important; } .comp-camp-retreat.layout-split > :not(:first-child), .comp-camp-retreat.layout-split > div:first-child { grid-column: 1; } .comp-camp-retreat.layout-overlay h2 { font-size: 2rem !important; } }

/* --- communion-schedule --- */
/* communion-schedule */
.comp-communion-schedule.layout-card { max-width: 480px; margin: 0 auto; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; }
.comp-communion-schedule.layout-card p { max-width: none !important; }
@media (max-width: 760px) { .comp-communion-schedule.layout-card { margin: 0 16px; } }

/* --- food-pantry --- */
/* food-pantry */
.comp-food-pantry.layout-split { display: grid !important; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.comp-food-pantry.layout-split h2 { text-align: left !important; }
.comp-food-pantry.layout-split > p { text-align: left !important; }
.comp-food-pantry.layout-split > div:last-child { max-width: none !important; margin: 0 !important; }
@media (max-width: 760px) { .comp-food-pantry.layout-split { grid-template-columns: 1fr; gap: 24px; } }

/* --- holiday-schedule --- */
/* holiday-schedule */
.comp-holiday-schedule.layout-list > div[style*="grid"] { display: block !important; max-width: 640px !important; }
.comp-holiday-schedule.layout-list > div[style*="grid"] > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px; }
.comp-holiday-schedule.layout-list > div[style*="grid"] > div h4 { margin: 0 !important; flex: 0 0 auto; }
.comp-holiday-schedule.layout-list > div[style*="grid"] > div p { margin: 0 !important; }
@media (max-width: 760px) { .comp-holiday-schedule.layout-list > div[style*="grid"] > div { flex-direction: column; align-items: flex-start; gap: 2px; } }

/* --- campaign --- */
/* =================== CAMPAIGN =================== */
/* split: left-aligned text column beside the progress column */
.comp-campaign.layout-split { max-width: 900px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; text-align: left; align-items: center; }
.comp-campaign.layout-split h2, .comp-campaign.layout-split .camp-sub { text-align: left; margin-left: 0; margin-right: 0; }
.comp-campaign.layout-split .camp-amounts { justify-content: flex-start; }

/* minimal: hide the big amount readout, keep just the bar */
.comp-campaign.layout-minimal .camp-amounts { display: none; }
.comp-campaign.layout-minimal h2 { font-size: 1.6rem; }
.comp-campaign.layout-minimal .camp-bar-wrap { background: rgba(255,255,255,0.08); }

@media (max-width: 760px) {
  .comp-campaign.layout-split { grid-template-columns: 1fr; gap: 24px; }
}

/* ===== Social Media module ===== */
.comp-social-media { max-width: 1100px; margin: 0 auto; }
.comp-social-media > h2 { font-size: 2rem; text-align: center; margin-bottom: 8px; }
.comp-social-media .sm-sub { text-align: center; opacity: 0.7; margin-bottom: 28px; }
.comp-social-media .sm-follow { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 32px; }
.comp-social-media .sm-follow a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; background: rgba(128,128,128,0.14); border: 1px solid rgba(128,128,128,0.2); font-weight: 600; font-size: 0.9rem; text-decoration: none; color: inherit; transition: background 0.2s; }
.comp-social-media .sm-follow a:hover { background: rgba(128,128,128,0.26); }
.comp-social-media .sm-follow .sm-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: none; }
.comp-social-media .sm-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.comp-social-media .sm-post { border-radius: 14px; overflow: hidden; background: rgba(255,255,255,0.05); display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform 0.2s; }
.comp-social-media .sm-post:hover { transform: translateY(-4px); }
.comp-social-media .sm-post .sm-img { height: 200px; background-size: cover; background-position: center; background-color: rgba(255,255,255,0.08); }
.comp-social-media .sm-post .sm-body { padding: 14px 16px; }
.comp-social-media .sm-post .sm-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 0.8rem; opacity: 0.75; }
.comp-social-media .sm-post .sm-badge { width: 22px; height: 22px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 0.72rem; font-weight: 700; flex: none; }
.comp-social-media .sm-post p { font-size: 0.9rem; line-height: 1.5; }
.comp-social-media .sm-embed { max-width: 680px; margin: 0 auto; }
/* list layout */
.comp-social-media.layout-list .sm-posts { grid-template-columns: 1fr; max-width: 700px; margin: 0 auto; }
.comp-social-media.layout-list .sm-post { flex-direction: row; }
.comp-social-media.layout-list .sm-post .sm-img { width: 160px; min-height: 120px; height: auto; flex: none; }
/* carousel layout */
.comp-social-media.layout-carousel .sm-posts { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.comp-social-media.layout-carousel .sm-post { flex: 0 0 260px; scroll-snap-align: start; }
@media (max-width: 600px) {
  .comp-social-media.layout-list .sm-post { flex-direction: column; }
  .comp-social-media.layout-list .sm-post .sm-img { width: 100%; }
}

/* ===== Header logo: base + creative variations ===== */
.comp-header .hdr-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.comp-header .hdr-logo-wrap { display: inline-flex; position: relative; }
.comp-header .hdr-logo { height: 44px; width: auto; display: block; }
.comp-header .hdr-text { display: flex; flex-direction: column; line-height: 1.1; }
.comp-header .hdr-tagline { font-size: 0.72rem; opacity: 0.6; }

/* 1) Oversized & tilted — big logo, rotated; straightens + lifts on hover */
.comp-header.layout-logo-tilt { overflow: visible; }
.comp-header.layout-logo-tilt .hdr-logo { height: 86px; transform: rotate(-7deg); transform-origin: center; filter: drop-shadow(0 8px 16px rgba(0,0,0,0.35)); transition: transform 0.35s cubic-bezier(.34,1.56,.64,1); }
.comp-header.layout-logo-tilt .hdr-brand:hover .hdr-logo { transform: rotate(0deg) scale(1.06); }

/* 2) Hanging sign — pivots from a nail and gently swings; faster on hover */
.comp-header.layout-logo-hanging { overflow: visible; }
.comp-header.layout-logo-hanging .hdr-logo-wrap { transform-origin: top center; animation: hdrSwing 3.4s ease-in-out infinite; margin-top: 14px; }
.comp-header.layout-logo-hanging .hdr-logo-wrap::before { content: ''; position: absolute; top: -13px; left: 50%; width: 2px; height: 13px; background: currentColor; opacity: 0.5; transform: translateX(-50%); }
.comp-header.layout-logo-hanging .hdr-logo-wrap::after { content: ''; position: absolute; top: -16px; left: 50%; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.6; transform: translateX(-50%); }
.comp-header.layout-logo-hanging .hdr-logo { height: 52px; }
.comp-header.layout-logo-hanging .hdr-brand:hover .hdr-logo-wrap { animation-duration: 1.1s; }
@keyframes hdrSwing { 0%, 100% { transform: rotate(3.5deg); } 50% { transform: rotate(-3.5deg); } }

/* 3) Cabinet door — swings open on load (closed -> open); swings on hover */
.comp-header.layout-logo-cabinet .hdr-brand { perspective: 800px; }
.comp-header.layout-logo-cabinet .hdr-logo-wrap { transform-origin: left center; animation: hdrCabinetOpen 1.1s ease-out 0.25s both; }
.comp-header.layout-logo-cabinet .hdr-logo { height: 54px; }
.comp-header.layout-logo-cabinet .hdr-brand:hover .hdr-logo-wrap { animation: hdrCabinetSwing 1.6s ease-in-out infinite; }
@keyframes hdrCabinetOpen { from { transform: rotateY(-108deg); } to { transform: rotateY(0deg); } }
@keyframes hdrCabinetSwing { 0%, 100% { transform: rotateY(0deg); } 50% { transform: rotateY(-62deg); } }

/* 4) Rise to the stars — logo rises + fades into a starfield as the page scrolls */
.comp-header.layout-logo-rise { overflow: visible; background-color: #0b1026; background-image:
  radial-gradient(2px 2px at 18% 35%, #ffffff, transparent),
  radial-gradient(1px 1px at 62% 68%, #ffffff, transparent),
  radial-gradient(1.5px 1.5px at 82% 22%, #cbd5ff, transparent),
  radial-gradient(1px 1px at 42% 82%, #ffffff, transparent),
  radial-gradient(1.5px 1.5px at 30% 60%, #e0e7ff, transparent); }
.comp-header.layout-logo-rise .hdr-name, .comp-header.layout-logo-rise .hdr-nav a { color: #f1f5f9 !important; }
.comp-header.layout-logo-rise .hdr-logo { height: 56px; transition: transform 0.2s; }
@supports (animation-timeline: scroll()) {
  .comp-header.layout-logo-rise .hdr-logo-wrap { animation: hdrRise linear both; animation-timeline: scroll(root); animation-range: 0 340px; }
  @keyframes hdrRise { to { transform: translateY(-64px) scale(1.7); opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  .comp-header.layout-logo-hanging .hdr-logo-wrap,
  .comp-header.layout-logo-cabinet .hdr-logo-wrap { animation: none; }
}

/* ===== Hero logo: creative variations (mirror the header treatments) =====
   Dual selectors: render.ejs puts layout-* on .comp-hero; builder preview puts
   it on the ancestor .component-wrapper. */
.comp-hero .hero-logo-wrap { display: inline-block; position: relative; }
.comp-hero .hero-logo-wrap .template-logo { margin-bottom: 0; }

/* Oversized tilt */
.comp-hero.layout-logo-tilt .template-logo,
.component-wrapper.layout-logo-tilt .comp-hero .template-logo { transform: rotate(-6deg); filter: drop-shadow(0 14px 28px rgba(0,0,0,0.45)); transition: transform 0.45s cubic-bezier(.34,1.56,.64,1); }
.comp-hero.layout-logo-tilt:hover .template-logo,
.component-wrapper.layout-logo-tilt .comp-hero:hover .template-logo { transform: rotate(0deg) scale(1.05); }

/* Hanging sign */
.comp-hero.layout-logo-hanging .hero-logo-wrap,
.component-wrapper.layout-logo-hanging .comp-hero .hero-logo-wrap { transform-origin: top center; animation: hdrSwing 3.6s ease-in-out infinite; margin-top: 24px; margin-bottom: 24px; }
.comp-hero.layout-logo-hanging .hero-logo-wrap::before,
.component-wrapper.layout-logo-hanging .comp-hero .hero-logo-wrap::before { content: ''; position: absolute; top: -24px; left: 50%; width: 2px; height: 24px; background: currentColor; opacity: 0.45; transform: translateX(-50%); }
.comp-hero.layout-logo-hanging .hero-logo-wrap::after,
.component-wrapper.layout-logo-hanging .comp-hero .hero-logo-wrap::after { content: ''; position: absolute; top: -28px; left: 50%; width: 9px; height: 9px; border-radius: 50%; background: currentColor; opacity: 0.55; transform: translateX(-50%); }

/* Cabinet door */
.comp-hero.layout-logo-cabinet,
.component-wrapper.layout-logo-cabinet .comp-hero { perspective: 1100px; }
.comp-hero.layout-logo-cabinet .hero-logo-wrap,
.component-wrapper.layout-logo-cabinet .comp-hero .hero-logo-wrap { transform-origin: left center; animation: hdrCabinetOpen 1.2s ease-out 0.3s both; }

/* Rise to the stars */
.comp-hero.layout-logo-rise,
.component-wrapper.layout-logo-rise .comp-hero { background: #0b1026 !important; background-image:
  radial-gradient(2px 2px at 15% 25%, #ffffff, transparent),
  radial-gradient(1px 1px at 55% 60%, #ffffff, transparent),
  radial-gradient(1.5px 1.5px at 80% 30%, #cbd5ff, transparent),
  radial-gradient(1px 1px at 35% 75%, #ffffff, transparent),
  radial-gradient(1.5px 1.5px at 68% 18%, #e0e7ff, transparent),
  radial-gradient(1px 1px at 25% 50%, #ffffff, transparent) !important; color: #f1f5f9 !important; }
@supports (animation-timeline: scroll()) {
  .comp-hero.layout-logo-rise .hero-logo-wrap,
  .component-wrapper.layout-logo-rise .comp-hero .hero-logo-wrap { animation: heroRise linear both; animation-timeline: scroll(root); animation-range: 0 420px; }
  @keyframes heroRise { to { transform: translateY(-90px) scale(1.5); opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  .comp-hero.layout-logo-hanging .hero-logo-wrap,
  .component-wrapper.layout-logo-hanging .comp-hero .hero-logo-wrap,
  .comp-hero.layout-logo-cabinet .hero-logo-wrap,
  .component-wrapper.layout-logo-cabinet .comp-hero .hero-logo-wrap { animation: none; }
}

/* ===== Universal module background media (image or video) ===== */
.module-bg-wrap { position: relative; overflow: hidden; }
.module-bg-wrap > .module-bg-media {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; background-size: cover; background-position: center;
  z-index: 0; pointer-events: none;
}
.module-bg-wrap > .module-bg-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.45); z-index: 1; pointer-events: none; }
.module-bg-wrap > .module-bg-content { position: relative; z-index: 2; }

/* Parallax: background drifts slower than the page as the module scrolls
   through the viewport. Scroll-driven animation (same approach as the
   logo-rise header); the scale keeps edges covered through the drift. */
.module-bg-wrap > .module-bg-parallax { transform: scale(1.2); }
@supports (animation-timeline: view()) {
  .module-bg-wrap > .module-bg-parallax {
    animation: moduleBgDrift linear both;
    animation-timeline: view();
    animation-range: cover 0% cover 100%;
    will-change: transform;
  }
  @keyframes moduleBgDrift {
    from { transform: translateY(-8%) scale(1.2); }
    to   { transform: translateY(8%)  scale(1.2); }
  }
}

/* ===== Big Options (optionsGrid) — oversized clickable image tiles ===== */
.comp-options-grid > h2 { text-align: center; margin: 0 0 28px; }
.comp-options-grid .opt-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 1200px; margin: 0 auto;
}
.opt-tile {
  position: relative; display: block; overflow: hidden;
  min-height: var(--opt-h, 42vh);
  border-radius: 16px; text-decoration: none; color: #fff;
  background: #1e293b; isolation: isolate;
}
.opt-tile .opt-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  transition: transform 0.6s cubic-bezier(0.2,0.7,0.2,1);
}
.opt-tile::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,0.80) 0%, rgba(0,0,0,0.30) 55%, rgba(0,0,0,0.05) 100%);
  transition: background 0.35s ease;
}
.opt-tile .opt-body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 30px 30px 28px;
  transform: translateY(0); transition: transform 0.35s ease;
}
.opt-tile .opt-label { display: block; font-size: 1.85rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; }
.opt-tile .opt-sub { display: block; margin-top: 6px; font-size: 1rem; opacity: 0.9; }
.opt-tile .opt-arrow {
  display: inline-block; margin-top: 14px; font-weight: 700; font-size: 0.95rem;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.opt-tile:hover .opt-bg { transform: scale(1.06); }
.opt-tile:hover::after { background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.45) 60%, rgba(0,0,0,0.12) 100%); }
.opt-tile:hover .opt-body { transform: translateY(-6px); }
.opt-tile:hover .opt-arrow { opacity: 1; transform: translateY(0); }
@media (max-width: 640px) { .opt-tile { min-height: 34vh; } }
