/*
 * BS5 default_shared site chrome — content/layout rules from bootstrap3/css/custom.css
 * without BS3 navbar, grid, or #fixednav overrides that conflict with BS5 chrome.
 */
.default-layout--bs5-chrome body {
  margin-bottom: 50px;
}

.default-layout--bs5-chrome #pagewrapper {
  margin-top: 10px;
}

/*
 * Content Width → Wide (prefers_bs5_content_max_width: fluid).
 * Body class default-layout--content-fluid (see DefaultLayoutHelper).
 * Full-bleed shell: no centered card, no horizontal gutters on the outer shell.
 * Authoritative overrides that must beat _default_shared_bs5_compat.html.erb
 * live in head/_default_shared_bs5_content_fluid.html.erb (rendered later in the stack).
 */

.default-layout--bs5-chrome .container .jumbotron,
.default-layout--bs5-chrome .jumbotron {
  padding-left: 0;
  margin-left: 0;
  padding-right: 0;
  margin-right: 0;
  background-color: transparent;
  border-radius: 0;
}

.default-layout--bs5-chrome .navbar .dfc-custom-search {
  max-width: 280px;
}
.default-layout--bs5-chrome .navbar .dfc-custom-search .gsc-control-cse {
  padding: 0 !important;
}
.default-layout--bs5-chrome .navbar .dfc-custom-search .gsc-search-box {
  margin-bottom: 0 !important;
}
.default-layout--bs5-chrome .navbar .dfc-custom-search .gsc-search-box-tools .gsc-search-box .gsc-input {
  padding-right: 0 !important;
}

.default-layout--bs5-chrome .navigation_menu {
  z-index: 1020;
}

.default-layout--bs5-chrome #maincontent {
  z-index: 777;
}

.default-layout--bs5-chrome #secondarycontent {
  z-index: 555;
}

/* Centred image variants from the admin Size picker */
.default-layout--bs5-chrome .full_width_image,
.default-layout--bs5-chrome .two_third_image,
.default-layout--bs5-chrome .half_image,
.default-layout--bs5-chrome .third_image,
.default-layout--bs5-chrome .quarter_image,
.default-layout--bs5-chrome .twenty_image,
.default-layout--bs5-chrome .ten_image {
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.default-layout--bs5-chrome .full_width_image { width: 100%; }
.default-layout--bs5-chrome .two_third_image { width: 67%; }
.default-layout--bs5-chrome .half_image { width: 50%; }
.default-layout--bs5-chrome .third_image { width: 33%; }
.default-layout--bs5-chrome .quarter_image { width: 25%; }
.default-layout--bs5-chrome .twenty_image { width: 20%; }
.default-layout--bs5-chrome .ten_image { width: 10%; }

.default-layout--bs5-chrome .two_third_image_left,
.default-layout--bs5-chrome .half_image_left,
.default-layout--bs5-chrome .third_image_left,
.default-layout--bs5-chrome .quarter_image_left,
.default-layout--bs5-chrome .twenty_image_left,
.default-layout--bs5-chrome .fifteen_image_left,
.default-layout--bs5-chrome .ten_image_left {
  height: auto;
  float: left;
  padding: 0;
  margin: 0 1.25rem 1rem 0;
}
.default-layout--bs5-chrome .two_third_image_left { width: 67%; }
.default-layout--bs5-chrome .half_image_left { width: 50%; }
.default-layout--bs5-chrome .third_image_left { width: 33%; }
.default-layout--bs5-chrome .quarter_image_left { width: 25%; }
.default-layout--bs5-chrome .twenty_image_left { width: 20%; }
.default-layout--bs5-chrome .fifteen_image_left { width: 15%; }
.default-layout--bs5-chrome .ten_image_left { width: 10%; }

.default-layout--bs5-chrome .two_third_image_right,
.default-layout--bs5-chrome .half_image_right,
.default-layout--bs5-chrome .third_image_right,
.default-layout--bs5-chrome .quarter_image_right,
.default-layout--bs5-chrome .twenty_image_right,
.default-layout--bs5-chrome .fifteen_image_right,
.default-layout--bs5-chrome .ten_image_right {
  height: auto;
  float: right;
  padding: 0;
  margin: 0 0 1rem 1.25rem;
}
.default-layout--bs5-chrome .two_third_image_right { width: 67%; }
.default-layout--bs5-chrome .half_image_right { width: 50%; }
.default-layout--bs5-chrome .third_image_right { width: 33%; }
.default-layout--bs5-chrome .quarter_image_right { width: 25%; }
.default-layout--bs5-chrome .twenty_image_right { width: 20%; }
.default-layout--bs5-chrome .fifteen_image_right { width: 15%; }
.default-layout--bs5-chrome .ten_image_right { width: 10%; }

.default-layout--bs5-chrome div.media.chunk div.media-body div.first_news_image img.news_image,
.default-layout--bs5-chrome div#newsdetail div.chunk.news div.newsclip img.news_image {
  width: 100%;
}

.default-layout--bs5-chrome div.first_news_image,
.default-layout--bs5-chrome div.second_news_image,
.default-layout--bs5-chrome div.third_news_image,
.default-layout--bs5-chrome div.fourth_news_image {
  padding: 2px;
  border: 1px solid #ccc;
  background-color: #eee;
}
.default-layout--bs5-chrome div.first_news_image,
.default-layout--bs5-chrome div.third_news_image {
  float: left;
  margin-right: 10px;
}
.default-layout--bs5-chrome div.second_news_image,
.default-layout--bs5-chrome div.fourth_news_image {
  float: right;
  margin-left: 10px;
}

.default-layout--bs5-chrome p.first_image_caption {
  margin-bottom: 0;
}

.default-layout--bs5-chrome ul.communitylinks,
.default-layout--bs5-chrome ul.sociallinks {
  margin: 0;
  padding: 0;
}
.default-layout--bs5-chrome ul.sociallinks {
  margin-top: 5px !important;
}
.default-layout--bs5-chrome ul.sociallinks li {
  margin-bottom: 22px !important;
}
.default-layout--bs5-chrome ul.communitylinks li {
  background-color: #0c4825;
  margin-bottom: 15px !important;
  margin-left: 0;
  border: 1px solid #6e6a07;
  padding: 10px;
}
.default-layout--bs5-chrome ul.communitylinks li:hover {
  border: 1px #dfd703 solid;
  padding: 10px;
}

.default-layout--bs5-chrome li.socialicon {
  max-width: 60px;
  display: inline;
}
.default-layout--bs5-chrome li.socialicon a {
  padding: 0 2px 0 0;
}
.default-layout--bs5-chrome li.socialicon img {
  max-width: 40px;
}
.default-layout--bs5-chrome li.socialicon img:hover {
  box-shadow: 2px 2px 2px 0 rgba(0, 0, 0, 0.5);
}
.default-layout--bs5-chrome ul.social_networks {
  margin: 0 0 10px;
  padding: 0;
}

.default-layout--bs5-chrome h2.title {
  margin-top: 0;
}
.default-layout--bs5-chrome h4.mobileheading {
  margin-left: 20px;
}
.default-layout--bs5-chrome h3.social_sharing {
  font-size: 12px;
}

.default-layout--bs5-chrome img#episcopal_church_modal {
  float: left;
  margin-left: -10px;
  margin-top: 6px;
  padding-right: 15px;
  cursor: pointer;
}
.default-layout--bs5-chrome img#episcopal_church_modal_footer {
  cursor: pointer;
}

.default-layout--bs5-chrome .btn-success a,
.default-layout--bs5-chrome .btn.btn-danger a,
.default-layout--bs5-chrome .btn-warning a,
.default-layout--bs5-chrome .btn-info a,
.default-layout--bs5-chrome .btn-success,
.default-layout--bs5-chrome .btn.btn-danger,
.default-layout--bs5-chrome .btn-warning,
.default-layout--bs5-chrome .btn-info,
.default-layout--bs5-chrome div.btn.btn-danger a,
.default-layout--bs5-chrome div.btn.btn-danger {
  color: #fff !important;
  text-decoration: none;
}

.default-layout--bs5-chrome #myCarousel {
  margin-bottom: 0 !important;
  border: 0;
}

.default-layout--bs5-chrome iframe {
  width: 100%;
}

.default-layout--bs5-chrome input.btn.fullwidth,
.default-layout--bs5-chrome div.btn.btn-success.btn-xs.fullwidth {
  width: 100%;
  margin: 3px 0 5px;
  text-align: left;
}

.default-layout--bs5-chrome div#content h3 {
  background-color: #3c5082;
}
.default-layout--bs5-chrome div#content h3 a,
.default-layout--bs5-chrome div#content h3 a:hover {
  color: #fff;
  text-decoration: none;
}
.default-layout--bs5-chrome div#content h3 a:hover {
  text-decoration: underline;
}
.default-layout--bs5-chrome div#content h5 {
  background-color: #fff;
}
.default-layout--bs5-chrome div#content h5 a,
.default-layout--bs5-chrome div#content h5 a:hover {
  color: #3c5082;
  text-decoration: none;
}

.default-layout--bs5-chrome img {
  max-width: 100%;
}
.default-layout--bs5-chrome #map-canvas img {
  max-width: initial;
}

.default-layout--bs5-chrome h4.event-date,
.default-layout--bs5-chrome h4.news-date {
  margin-bottom: 5px;
}
.default-layout--bs5-chrome .event-image {
  width: 100%;
  height: auto;
  float: left;
}
.default-layout--bs5-chrome .event-image img {
  width: 100%;
}

.default-layout--bs5-chrome img.dfclogo,
.default-layout--bs5-chrome .dfclogo img {
  max-width: 150px;
  width: auto;
  height: auto;
}

.default-layout--bs5-chrome .chunk {
  overflow: hidden;
  clear: both;
}

.default-layout--bs5-chrome .btn-podcast {
  color: #fff;
  background-color: #761168;
  border-color: #5c0a50;
}
.default-layout--bs5-chrome .btn-podcast a,
.default-layout--bs5-chrome div.btn.btn-podcast.btn-sm a {
  color: #fff !important;
  text-decoration: none;
}
.default-layout--bs5-chrome .btn-podcast:hover,
.default-layout--bs5-chrome .btn-podcast:focus {
  color: #fff;
  background-color: #5c0a50;
  border-color: #5c0a50;
}

.default-layout--bs5-chrome img.honorific_image {
  margin-top: -15px;
  margin-left: -23px;
}

.default-layout--bs5-chrome h2.event {
  margin: 0;
}
.default-layout--bs5-chrome h4.panel-title a {
  font-size: 2em;
  text-decoration: none;
}
.default-layout--bs5-chrome p.lentdate {
  text-align: right;
  font-size: 1.2em;
  font-style: italic;
}

.default-layout--bs5-chrome .padbelow {
  margin-bottom: 10px;
}

.default-layout--bs5-chrome .item {
  overflow: hidden;
  transition: all 1s ease-in-out;
}
.default-layout--bs5-chrome .item:hover {
  transform: scale(0.95);
  box-shadow: 0 6px 20px 0 rgba(0, 0, 0, 0.5);
}
.default-layout--bs5-chrome .item img {
  transition: all 1s ease-in-out;
}
.default-layout--bs5-chrome .item img:hover {
  transform: scale(1.4);
}

/* Three-column homepage (page_layout landing_3) — TinyMCE images in each zone */
.default-layout--bs5-chrome #belownav .landing-3-columns .column1 img,
.default-layout--bs5-chrome #belownav .landing-3-columns .column2 img,
.default-layout--bs5-chrome #belownav .landing-3-columns .column3 img {
  max-width: 100%;
  height: auto;
  display: block;
  float: none;
}

/* Salem landing (page_layout salem_landing2) — responsive video + column images */
.default-layout--bs5-chrome #belownav .salem-landing2-video iframe,
.default-layout--bs5-chrome #belownav .salem-landing2-video object,
.default-layout--bs5-chrome #belownav .salem-landing2-video embed {
  width: 100%;
  height: 100%;
  border: 0;
}
.default-layout--bs5-chrome #belownav .salem-landing2-videos + hr,
.default-layout--bs5-chrome #belownav .salem-landing2-columns {
  margin-top: 0;
}
.default-layout--bs5-chrome #belownav .salem-landing2-columns .column1 img,
.default-layout--bs5-chrome #belownav .salem-landing2-columns .column2 img,
.default-layout--bs5-chrome #belownav .salem-landing2-columns .column3 img,
.default-layout--bs5-chrome #belownav .salem-landing2-tagged img {
  max-width: 100%;
  height: auto;
  display: block;
  float: none;
}

/* St. Thomas homepage (page_layout st_thomas) — primary banner + feature columns */
.default-layout--bs5-chrome #belownav .st-thomas-primary .topcontent img,
.default-layout--bs5-chrome #belownav .st-thomas-columns .column1 img,
.default-layout--bs5-chrome #belownav .st-thomas-columns .column2 img,
.default-layout--bs5-chrome #belownav .st-thomas-columns .column3 img,
.default-layout--bs5-chrome #belownav .st-thomas-tagged img {
  max-width: 100%;
  height: auto;
  display: block;
  float: none;
}
.default-layout--bs5-chrome #belownav .st-thomas-columns {
  margin-top: 0;
}

/*
 * BS5 Legacy news / event feed cards
 * (app/views/newsreaders/_feed_bs5.html.erb + app/views/events/_feed_bs5.html.erb).
 * Replaces the BS3 .chunk / h2.title / h2.event / .news-image / .eventimage rules
 * that previously fell to legacy parish_tokens (which BS5 chrome no longer emits).
 */
.default-layout--bs5-chrome .dfc-bs5-feed-card {
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: #fff;
  transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
}
.default-layout--bs5-chrome .dfc-bs5-feed-card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.12) !important;
  transform: translateY(-2px);
}
/* Show the full image at its natural aspect ratio (no cropping) so admins'
   chosen framing is preserved. The media block fills the card width.
   border-radius matches the card so the image reads as its own polished
   element — same rule applies to the inner <img> for cases where the
   image is narrower than the card (portrait photo, square logo, etc.). */
.default-layout--bs5-chrome .dfc-bs5-feed-card__media {
  display: block;
  overflow: hidden;
  background-color: #f5f5f5;
  border-radius: 0.5rem;
}
.default-layout--bs5-chrome .dfc-bs5-feed-card__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 0.5rem;
  transition: transform 0.4s ease-in-out;
}
.default-layout--bs5-chrome .dfc-bs5-feed-card:hover .dfc-bs5-feed-card__img {
  transform: scale(1.04);
}
.default-layout--bs5-chrome .dfc-bs5-feed-card .card-body {
  position: relative;
}
.default-layout--bs5-chrome .dfc-bs5-feed-card h2.title,
.default-layout--bs5-chrome .dfc-bs5-feed-card h2.event {
  line-height: 1.25;
  margin: 0 0 0.5rem;
}
.default-layout--bs5-chrome .dfc-bs5-feed-card h2.title a,
.default-layout--bs5-chrome .dfc-bs5-feed-card h2.event a {
  color: inherit;
}
.default-layout--bs5-chrome .dfc-bs5-feed-card h2.title a:hover,
.default-layout--bs5-chrome .dfc-bs5-feed-card h2.event a:hover {
  text-decoration: underline;
}
.default-layout--bs5-chrome .dfc-bs5-feed-card .newsbodyclip {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.default-layout--bs5-chrome .dfc-bs5-feed-card .read-more {
  color: var(--bs-primary, #0d6efd);
}
.default-layout--bs5-chrome .dfc-bs5-feed-card:hover .read-more {
  text-decoration: underline;
}
/* Keep the "from parish" attribution link clickable alongside .stretched-link
   on the title (Bootstrap docs: sibling links need z-index above the overlay). */
.default-layout--bs5-chrome .dfc-bs5-feed-card .from a {
  position: relative;
  z-index: 2;
}
/* Cancel the legacy .item zoom/scale hover effect inside the BS5 card so the
   stretched-link surface stays stable. */
.default-layout--bs5-chrome .dfc-bs5-feed-card .item,
.default-layout--bs5-chrome .dfc-bs5-feed-card .item:hover,
.default-layout--bs5-chrome .dfc-bs5-feed-card .item img,
.default-layout--bs5-chrome .dfc-bs5-feed-card .item img:hover {
  transform: none;
  box-shadow: none;
}

/* =========================================================================
 * BS5 feed display-style variants
 * Shared by newsreaders/_feed_bs5.html.erb (Card / Image Left / Image Right /
 * Photo), plus the list/calendar/headlines/accordion/accessible styles. The
 * goal: a full-width single-column page should never blow a feed image up to
 * an enormous size on desktop — image-left/right and the capped hero solve
 * the "too much image" problem, while everything stacks cleanly on phones.
 * ========================================================================= */

/* ── Feed section heading (the admin's "Feed Title") ── */
.default-layout--bs5-chrome .dfc-bs5-feed-heading {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--bs-border-color, #e0e0e0);
}
.default-layout--bs5-chrome .dfc-bs5-feed-heading__link { color: inherit; text-decoration: none; }
.default-layout--bs5-chrome .dfc-bs5-feed-heading__link:hover,
.default-layout--bs5-chrome .dfc-bs5-feed-heading__link:focus {
  color: var(--bs-primary, #0d6efd);
  text-decoration: underline;
}

/* ── Card (stacked): cap the hero height on wide desktop columns so a
   full-width feed reads as a tidy card rather than a giant photo. Phones
   keep the natural image. ── */
@media (min-width: 768px) {
  .default-layout--bs5-chrome .dfc-bs5-feed-card--stacked .dfc-bs5-feed-card__media {
    max-height: 340px;
  }
  .default-layout--bs5-chrome .dfc-bs5-feed-card--stacked .dfc-bs5-feed-card__media .dfc-bs5-feed-card__img {
    height: 100%;
    object-fit: cover;
  }
}

/* ── Image Left / Image Right: two-column card on tablet/desktop, media at a
   constrained share of the width; collapses to a stacked card on phones. ── */
@media (min-width: 768px) {
  .default-layout--bs5-chrome .dfc-bs5-feed-card--image-left { flex-direction: row; }
  .default-layout--bs5-chrome .dfc-bs5-feed-card--image-right { flex-direction: row-reverse; }
  .default-layout--bs5-chrome .dfc-bs5-feed-card--image-left,
  .default-layout--bs5-chrome .dfc-bs5-feed-card--image-right {
    align-items: stretch;
  }
  .default-layout--bs5-chrome .dfc-bs5-feed-card--image-left .dfc-bs5-feed-card__media,
  .default-layout--bs5-chrome .dfc-bs5-feed-card--image-right .dfc-bs5-feed-card__media {
    flex: 0 0 38%;
    max-width: 38%;
    min-height: 180px;
    border-radius: 0.5rem;
  }
  .default-layout--bs5-chrome .dfc-bs5-feed-card--image-left .dfc-bs5-feed-card__media .dfc-bs5-feed-card__img,
  .default-layout--bs5-chrome .dfc-bs5-feed-card--image-right .dfc-bs5-feed-card__media .dfc-bs5-feed-card__img {
    height: 100%;
    object-fit: cover;
  }
  .default-layout--bs5-chrome .dfc-bs5-feed-card--image-left .dfc-bs5-feed-card__body,
  .default-layout--bs5-chrome .dfc-bs5-feed-card--image-right .dfc-bs5-feed-card__body {
    flex: 1 1 62%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* ── Photo: image-forward card with the title + date overlaid on a gradient. ── */
.default-layout--bs5-chrome .dfc-bs5-feed-card--photo .dfc-bs5-feed-card__media {
  position: relative;
  max-height: 440px;
}
.default-layout--bs5-chrome .dfc-bs5-feed-card--photo .dfc-bs5-feed-card__media .dfc-bs5-feed-card__img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}
.default-layout--bs5-chrome .dfc-bs5-feed-card--photo .dfc-bs5-feed-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 1.1rem 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0) 75%);
  color: #fff;
}
.default-layout--bs5-chrome .dfc-bs5-feed-card--photo .dfc-bs5-feed-card__overlay-title a,
.default-layout--bs5-chrome .dfc-bs5-feed-card--photo .dfc-bs5-feed-card__overlay-date {
  color: #fff;
}

/* ── List (Title & Date) ── */
.default-layout--bs5-chrome .dfc-bs5-feed--list .dfc-bs5-feed-item {
  position: relative;
  padding: 1rem 0;
  border-bottom: 1px solid #eaeaea;
}
.default-layout--bs5-chrome .dfc-bs5-feed--list .dfc-bs5-feed-item:last-child { border-bottom: 0; }
.default-layout--bs5-chrome .dfc-bs5-feed--list .dfc-bs5-feed-item__title a { color: inherit; }
.default-layout--bs5-chrome .dfc-bs5-feed--list .dfc-bs5-feed-item:hover .dfc-bs5-feed-item__title a { text-decoration: underline; }
/* Sibling links (parish attribution) must sit above the stretched-link overlay. */
.default-layout--bs5-chrome .dfc-bs5-feed--list .dfc-bs5-feed-item__from a {
  position: relative;
  z-index: 2;
}
.default-layout--bs5-chrome .dfc-bs5-feed--list .read-more,
.default-layout--bs5-chrome .dfc-bs5-feed--calendar .read-more {
  color: var(--bs-primary, #0d6efd);
}

/* ── Calendar (date badge) ── */
.default-layout--bs5-chrome .dfc-bs5-feed--calendar .dfc-bs5-cal-item {
  position: relative;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid #eaeaea;
}
.default-layout--bs5-chrome .dfc-bs5-feed--calendar .dfc-bs5-cal-item:last-child { border-bottom: 0; }
.default-layout--bs5-chrome .dfc-bs5-cal-item__date {
  flex: 0 0 64px;
  width: 64px;
  text-align: center;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 0.5rem;
  padding: 0.4rem 0;
  line-height: 1.1;
}
.default-layout--bs5-chrome .dfc-bs5-cal-item__month {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bs-primary, #0d6efd);
}
.default-layout--bs5-chrome .dfc-bs5-cal-item__day { display: block; font-size: 1.4rem; font-weight: 700; color: #212529; }
.default-layout--bs5-chrome .dfc-bs5-cal-item__title a { color: inherit; }
.default-layout--bs5-chrome .dfc-bs5-feed--calendar .dfc-bs5-cal-item:hover .dfc-bs5-cal-item__title a { text-decoration: underline; }

/* ── Headlines (compact link list) ── */
.default-layout--bs5-chrome .dfc-bs5-feed--headlines .dfc-bs5-headline + .dfc-bs5-headline { border-top: 1px solid #eaeaea; }
.default-layout--bs5-chrome .dfc-bs5-headline__link { padding: 0.65rem 0; color: #212529; }
.default-layout--bs5-chrome .dfc-bs5-headline__link:hover .dfc-bs5-headline__title,
.default-layout--bs5-chrome .dfc-bs5-headline__link:focus .dfc-bs5-headline__title {
  color: var(--bs-primary, #0d6efd);
  text-decoration: underline;
}
.default-layout--bs5-chrome .dfc-bs5-headline__chevron { color: #adb5bd; flex: 0 0 auto; }

/* ── Accessible (high-contrast, larger type, visible focus) ── */
.default-layout--bs5-chrome .dfc-bs5-feed--ada .dfc-bs5-ada-item {
  padding: 1.25rem 0;
  border-bottom: 2px solid #dee2e6;
}
.default-layout--bs5-chrome .dfc-bs5-feed--ada .dfc-bs5-ada-item:last-child { border-bottom: 0; }
.default-layout--bs5-chrome .dfc-bs5-feed--ada .dfc-bs5-ada-item__title-link { color: #0b3d91; text-decoration: underline; }
.default-layout--bs5-chrome .dfc-bs5-feed--ada .dfc-bs5-ada-item__title-link:hover,
.default-layout--bs5-chrome .dfc-bs5-feed--ada .dfc-bs5-ada-item__title-link:focus { color: #06245c; }
.default-layout--bs5-chrome .dfc-bs5-feed--ada .dfc-bs5-ada-item__meta { font-size: 1rem; color: #3f474e; }
.default-layout--bs5-chrome .dfc-bs5-feed--ada .dfc-bs5-ada-item__body { font-size: 1.05rem; line-height: 1.7; color: #212529; }
.default-layout--bs5-chrome .dfc-bs5-feed--ada .dfc-bs5-ada-item__img { width: 100%; max-height: 360px; object-fit: cover; }
.default-layout--bs5-chrome .dfc-bs5-feed--ada .dfc-bs5-ada-item__more { color: #0b3d91; text-decoration: underline; }
.default-layout--bs5-chrome .dfc-bs5-feed--ada a:focus-visible { outline: 3px solid #0b5ed7; outline-offset: 2px; }

/* ── Accordion (Well) ── */
.default-layout--bs5-chrome .dfc-bs5-feed--well .accordion-button { font: inherit; }
.default-layout--bs5-chrome .dfc-bs5-well__head { display: flex; align-items: center; gap: 0.85rem; width: 100%; }
.default-layout--bs5-chrome .dfc-bs5-well__thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 0.4rem; flex: 0 0 auto; }
.default-layout--bs5-chrome .dfc-bs5-well__title { display: block; }
.default-layout--bs5-chrome .dfc-bs5-feed--well .accordion-body > :last-child { margin-bottom: 0; }

@media (max-width: 767px) {
  .default-layout--bs5-chrome #map-canvas {
    height: 200px;
  }
  .default-layout--bs5-chrome img.placeholdernewsimage {
    display: none;
  }
  .default-layout--bs5-chrome img#episcopal_church_modal {
    display: none;
  }
  .default-layout--bs5-chrome img#episcopal_church_modal_footer {
    width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .default-layout--bs5-chrome #map-canvas {
    height: 300px;
  }
  .default-layout--bs5-chrome img#episcopal_church_modal {
    display: none;
  }
  .default-layout--bs5-chrome img#episcopal_church_modal_footer {
    width: 100%;
  }
}

@media (min-width: 992px) {
  .default-layout--bs5-chrome #map-canvas {
    height: 500px;
  }
  .default-layout--bs5-chrome img#episcopal_church_modal_footer {
    float: right;
    max-height: 140px;
    width: auto;
    margin-top: -20px;
  }
}

@media (min-width: 1200px) {
  .default-layout--bs5-chrome #map-canvas {
    height: 700px;
  }
}
