:root {
  --beca-story-primary: var(--color-primary, #135AD5);
  --beca-story-accent: var(--color-accent, #07A5F6);
  --beca-story-dark: var(--color-gray-900, #1a2030);
  --beca-story-muted: var(--color-gray-600, #636e82);
  --beca-story-border: var(--color-gray-200, #e8eaf0);
  --beca-story-container: var(--container-max, 1240px);
}

.beca-story,
.beca-story * {
  box-sizing: border-box;
  -webkit-user-select: none;
  user-select: none;
}
.beca-story { width: 100%; font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif; color: var(--beca-story-dark); }
.beca-story__container { width: min(calc(100% - 2rem), var(--beca-story-container)); margin-inline: auto; }

body.beca-story-page .block-page-title-block { display: none; }
body.beca-story-page .main-content,
body.beca-story-page main[role="main"],
body.beca-story-page .region-content { padding-top: 0; margin-top: 0; }

.beca-story__banner {
  position: relative;
  left: 50%;
  width: 100vw;
  height: var(--beca-story-banner-height, 70vh);
  min-height: 360px;
  margin: 0 0 var(--beca-story-banner-gap, 3rem) -50vw;
  overflow: hidden;
  isolation: isolate;
  background: #0b1320;
}
.beca-story__banner-media,
.beca-story__banner-image { width: 100%; height: 100%; }
.beca-story__banner-media { position: absolute; inset: 0; margin: 0; overflow: hidden; }
.beca-story__banner-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3, 10, 22, var(--beca-story-banner-overlay, .18)), rgba(3, 10, 22, calc(var(--beca-story-banner-overlay, .18) * .35)) 50%, rgba(3, 10, 22, var(--beca-story-banner-overlay, .18))),
    linear-gradient(180deg, rgba(3, 10, 22, calc(var(--beca-story-banner-overlay, .18) * .25)), rgba(3, 10, 22, calc(var(--beca-story-banner-overlay, .18) * .75)));
}
.beca-story__banner-image {
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  animation: beca-story-banner-settle 7.8s ease-out forwards;
}
@keyframes beca-story-banner-settle { to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .beca-story__banner-image { animation: none; transform: none; } }

/* Main image caption and credit. */
.beca-story__banner-caption-wrap {
  position: absolute;
  right: 0;
  bottom: 2rem;
  left: 0;
  z-index: 3;
  pointer-events: none;
}
.beca-story__banner-caption-inner {
  width: min(calc(100% - 2rem), var(--beca-story-container, 1240px));
  max-width: 1240px;
  margin-inline: auto;
}
.beca-story__banner-caption {
  max-width: min(640px, 72%);
  color: rgba(255, 255, 255, .88);
  font-family: "Open Sans", sans-serif;
  text-align: left;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .58), 0 4px 18px rgba(0, 0, 0, .32);
}
.beca-story__banner-caption-text,
.beca-story__banner-credit {
  margin: 0;
  font-style: normal !important;
}
.beca-story__banner-caption-text {
  font-size: clamp(.86rem, 1.1vw, .96rem);
  color: rgba(255, 255, 255, .88);
  font-weight: 300;
  line-height: 1.55;
}
.beca-story__banner-credit {
  margin-top: .3rem;
  color: rgba(255, 255, 255, .72);
  font-size: clamp(.72rem, .9vw, .8rem);
  font-style: normal !important;
  font-weight: 400;
  line-height: 1.4;
}

.beca-story__banner-caption--left {
  margin-right: auto;
  text-align: left;
}
.beca-story__banner-caption--center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}
.beca-story__banner-caption--right {
  margin-left: auto;
  text-align: right;
}

.beca-story__layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: clamp(2.25rem, 4vw, 4rem);
  align-items: start;
  padding-bottom: 2.5rem;
}
.beca-story__main { width: 100%; min-width: 0; }
.beca-story__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: var(--beca-story-container, 1240px);
  margin: 0;
  text-align: left;
}

/* Eyebrow and heading intentionally use the exact shared Feature Cards
 * classes supplied by beca_base/base: .bfc-eyebrow and .bfc-heading. */
.beca-story__header > .bfc-eyebrow {
  display: inline-flex !important;
  width: auto !important;
  max-width: 100%;
  align-items: center;
  text-align: left !important;
}
.beca-story__header > .bfc-heading {
  display: block;
  width: 100%;
  max-width: none;
  text-align: left !important;
}
.beca-story__subheading {
  max-width: 58rem;
  margin: 1rem 0 0;
  color: var(--beca-story-muted);
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  line-height: 1.7;
}
.beca-story__information {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .85rem;
  margin: .45rem 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.beca-story__category {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 1.65rem;
  padding: .24rem .72rem;
  border: 1px solid rgba(19, 90, 213, .16);
  border-radius: 999px;
  background: rgba(19, 90, 213, .07);
  color: var(--beca-story-primary);
  font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .055em;
  text-transform: uppercase;
  white-space: nowrap;
}
.beca-story__information::before {
  content: none;
}
.beca-story__meta {
  display: flex;
  flex: 1 1 420px;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .65rem;
  margin: 0;
  color: #7b8492;
  font-size: .76rem;
  line-height: 1.55;
}
.beca-story__meta-item {
  display: inline-flex;
  align-items: baseline;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.beca-story__meta-item + .beca-story__meta-item::before {
  content: "•";
  margin-right: .65rem;
  color: #b1b7c0;
}
.beca-story__meta-label {
  margin: 0 .28rem 0 0;
  color: #8a929e;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.beca-story__meta-value {
  margin: 0;
  color: #687281;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.beca-story__share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  width: 100%;
  margin: 3rem 0 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--beca-story-border);
  border-bottom: none;
  background: transparent;
}
.beca-story__share-label {
  flex: 0 0 100%;
  margin: 0 0 .15rem;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--beca-story-accent);
}
.beca-story__share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  padding: 11px;
  border: 1px solid rgba(17, 24, 39, .08);
  border-radius: 4px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(15, 23, 42, .05);
  transition: border-color .22s cubic-bezier(.2,.8,.2,1), transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s cubic-bezier(.2,.8,.2,1);
}
.beca-story__share a img {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
  opacity: .96;
  transition: opacity .22s ease, transform .22s ease;
}
.beca-story__share a:hover {
  border-color: rgba(19, 90, 213, .18);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .10), 0 2px 6px rgba(15, 23, 42, .05);
  transform: translateY(-2px);
}
.beca-story__share a:hover img {
  opacity: 1;
  transform: scale(1.025);
}
.beca-story__share a:active {
  box-shadow: 0 3px 10px rgba(15, 23, 42, .10);
  transform: translateY(0);
}
.beca-story__share a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--beca-story-accent) 45%, transparent);
  outline-offset: 2px;
}

.beca-story__body {
  width: 100%;
  max-width: none;
  margin-top: var(--beca-story-header-gap, 3rem);
  font-size: 1.0625rem;
  line-height: 1.85;
  color: #323b4b;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  overflow-wrap: break-word;
  word-break: normal;
}
.beca-story__body p {
  margin: 0 0 1.45rem;
  text-align: justify;
  text-justify: inter-word;
}
.beca-story__body ul,
.beca-story__body ol,
.beca-story__body blockquote,
.beca-story__body figcaption,
.beca-story__body table {
  text-align: left;
}
.beca-story__body h2 { margin: 2.8rem 0 1rem; font-size: clamp(1.65rem, 3vw, 2.25rem); line-height: 1.25; }
.beca-story__body h3 { margin: 2.2rem 0 .85rem; font-size: 1.4rem; }
.beca-story__body img { max-width: 100%; height: auto; border-radius: 14px; }
.beca-story__body blockquote { margin: 2.5rem 0; padding: 1.75rem 2rem; border-left: 4px solid var(--beca-story-accent); background: #f6f9ff; border-radius: 0 12px 12px 0; font-size: 1.25rem; line-height: 1.65; color: #263149; }

.beca-story__sidebar {
  width: 100%;
  max-width: 400px;
  justify-self: end;
}
.beca-story__sidebar-inner { position: sticky; top: 2rem; width: 100%; }
.beca-story__sidebar-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 400px;
  margin: 0 0 1rem;
  text-align: left;
}
.beca-story__sidebar-header > .bfc-eyebrow {
  display: inline-flex !important;
  width: auto !important;
  max-width: 100%;
  align-items: center;
  text-align: left !important;
}
.beca-story__sidebar-header > .bfc-heading {
  display: block;
  width: 100%;
  max-width: none;
  text-align: left !important;
}
.beca-related-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.beca-related-stories-block .item-list > ul { margin: 0; padding: 0; list-style: none; }
.beca-related-stories-block .item-list > ul > li { margin: 0; }

.beca-story-card {
  border-bottom: 1px solid var(--beca-story-border);
  background: transparent;
}
.beca-story-card:first-child { border-top: 1px solid var(--beca-story-border); }
.beca-story-card__link {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: .9rem;
  align-items: center;
  min-height: 104px;
  margin: .35rem 0;
  padding: .75rem;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.beca-story-card__image-wrap {
  width: 92px;
  height: 72px;
  overflow: hidden;
  border-radius: 4px;
  background: #dde5f0;
}
.beca-story-card__image { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.beca-story-card__content { min-width: 0; }
.beca-story-card__title { margin: 0; font-family: "Open Sans", sans-serif; font-size: .94rem; font-weight: 700; line-height: 1.35; color: #263149; transition: color .2s ease; }
.beca-story-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .65rem; margin-top: .6rem; color: var(--beca-story-muted); font-size: .75rem; line-height: 1.4; }
.beca-story-card__meta span + time::before { content: '•'; margin-right: .65rem; color: #a7b0bf; }
.beca-story-card__author { font-weight: 600; color: #596476; }
.beca-story-card__link:hover {
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
  transform: translateY(-1px);
}
.beca-story-card__link:hover .beca-story-card__title { color: var(--beca-story-primary); }
.beca-story-card__link:hover .beca-story-card__image { transform: scale(1.035); }
.beca-story-card__link:focus-visible { outline: 3px solid color-mix(in srgb, var(--beca-story-accent) 45%, transparent); outline-offset: 3px; }

.beca-story__adjacent { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--beca-story-border); }
.beca-story__adjacent-link { display: grid; gap: .35rem; padding: 1.25rem; border: 1px solid var(--beca-story-border); border-radius: 14px; color: inherit; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.beca-story__adjacent-link:hover { border-color: rgba(19,90,213,.4); box-shadow: 0 10px 30px rgba(19,90,213,.10); }
.beca-story__adjacent-link span { color: var(--beca-story-accent); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.beca-story__adjacent-link strong { font-size: .9rem; line-height: 1.45; }
.beca-story__adjacent-link--next { text-align: right; }
.beca-story__adjacent-link--next:only-child { grid-column: 2; }

@media (max-width: 640px) {
  .beca-story__share {
    margin-top: 2rem;
    gap: .75rem;
    padding: 1.15rem 0;
  }
  .beca-story__share-label { font-size: .68rem; }
  .beca-story__share a { width: 50px; height: 50px; padding: 9px; border-radius: 4px; }
  .beca-story__share a img { width: 32px; height: 32px; }
}

@media (max-width: 900px) {
  .beca-story__banner { min-height: 300px; height: min(var(--beca-story-banner-height, 70vh), 520px); }
  .beca-story__layout { grid-template-columns: 1fr; }
  .beca-story__sidebar { max-width: none; justify-self: stretch; }
  .beca-story__sidebar-inner { position: static; }
}
@media (max-width: 640px) {
  .beca-story__banner-caption-wrap { bottom: 1.25rem; }
  .beca-story__banner-caption-inner { width: min(calc(100% - 1.25rem), var(--beca-story-container, 1240px)); }
  .beca-story__banner-caption { max-width: 100%; }
  .beca-story__container { width: min(calc(100% - 1.25rem), var(--beca-story-container)); }
  .beca-story__meta { gap: .2rem .5rem; font-size: .72rem; }
  .beca-story__meta-item + .beca-story__meta-item::before { margin-right: .5rem; }
  .beca-story__adjacent { grid-template-columns: 1fr; }
  .beca-story-card__link { grid-template-columns: 88px minmax(0, 1fr); }
  .beca-story-card__image-wrap { width: 88px; height: 68px; }
  .beca-story__adjacent-link--next,
  .beca-story__adjacent-link--next:only-child { grid-column: auto; text-align: left; }
}



/* Story editor: type-ahead media image selector and preview. */
.beca-media-autocomplete-preview {
  width: min(100%, 520px);
  min-height: 120px;
  margin-top: 0.75rem;
  padding: 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  font-family: "Open Sans", sans-serif;
}

.beca-media-autocomplete-preview__image {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 6px;
}

.beca-media-autocomplete-preview__label {
  margin-top: 0.6rem;
  color: #475569;
  font-size: 0.875rem;
  font-weight: 600;
}

.beca-media-autocomplete-preview__empty {
  display: grid;
  min-height: 96px;
  place-items: center;
  color: #64748b;
  font-size: 0.9rem;
  text-align: center;
}

/* Structured Story Sections. */
.beca-story-section {
  clear: both;
  width: 100%;
  max-width: none;
  margin: 0 0 2rem;
  font-family: "Open Sans", sans-serif;
}
.beca-story-section:last-child { margin-bottom: 0; }
.beca-story-section__heading,
.beca-story-section__heading.bfc-heading {
  margin: 0 0 1rem;
  width: 100%;
  color: inherit;
  font-family: "Open Sans", sans-serif;
  font-size: clamp(1.2rem, 1.65vw, 1.6rem) !important;
  font-weight: 600 !important;
  line-height: 1.3;
}
.beca-story-section__text,
.beca-story-section__text p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.beca-story-section__text ul,
.beca-story-section__text ol,
.beca-story-section__text blockquote,
.beca-story-section__text h2,
.beca-story-section__text h3,
.beca-story-section__text h4 { text-align: left; }
.beca-story-section--image img,
.beca-story-gallery__item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}
/* Image paragraph layouts. Full and wide modes intentionally render only
 * the image/caption block. Half-width modes use the opposite column for text. */
.beca-story-section--image-layout {
  width: 100%;
  max-width: none;
}
.beca-story-section__image-figure {
  min-width: 0;
  margin: 0;
}
.beca-story-section--image-full { width: 100%; }
.beca-story-section--image-wide {
  width: min(100%, 980px);
  margin-left: auto;
  margin-right: auto;
}
.beca-story-section--image-half {
  display: flow-root;
}
.beca-story-section--image-half .beca-story-section__image-figure {
  width: calc(50% - clamp(.75rem, 1.5vw, 1.25rem));
  max-width: 50%;
}
.beca-story-section--image-left .beca-story-section__image-figure {
  float: left;
  margin: 0 clamp(1.5rem, 3vw, 2.5rem) 1rem 0;
}
.beca-story-section--image-right .beca-story-section__image-figure {
  float: right;
  margin: 0 0 1rem clamp(1.5rem, 3vw, 2.5rem);
}
.beca-story-section__image-text {
  min-width: 0;
  color: inherit;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.beca-story-section__image-text p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.beca-story-section__image-text > :first-child { margin-top: 0; }
.beca-story-section__image-text > :last-child { margin-bottom: 0; }
.beca-story-section__image-text ul,
.beca-story-section__image-text ol,
.beca-story-section__image-text blockquote,
.beca-story-section__image-text h2,
.beca-story-section__image-text h3,
.beca-story-section__image-text h4 { text-align: left; }
.beca-story-section figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .35rem 1rem;
  margin-top: .65rem;
  color: #64748b;
  font-family: "Open Sans", sans-serif;
  font-size: .76rem;
  font-style: normal !important;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
}
.beca-story-section__title {
  flex: 0 0 100%;
  display: block;
  margin: 0;
  color: #263149;
  font-style: normal !important;
  font-weight: 700;
  line-height: 1.4;
}
.beca-story-section__caption,
.beca-story-section__credit {
  font-style: normal !important;
  font-weight: 400;
}
.beca-story-section__caption { color: #475569; }
.beca-story-section__credit { color: #64748b; }
.beca-story-gallery {
  display: grid;
  gap: 3rem;
}
.beca-story-gallery--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.beca-story-gallery--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.beca-story-gallery--featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.beca-story-gallery--featured .beca-story-gallery__item:first-child {
  grid-column: 1 / -1;
}
.beca-story-gallery__item { margin: 0; }
.beca-story-gallery__item img { aspect-ratio: 4 / 3; object-fit: cover; }
.beca-story-gallery--featured .beca-story-gallery__item:first-child img { aspect-ratio: 16 / 9; }
.beca-story-section--quote blockquote {
  position: relative;
  margin: 2.5rem 0;
  padding: 1.5rem 1.75rem 1.5rem 2rem;
  border-left: 4px solid var(--beca-story-accent);
  background: rgba(7, 165, 246, .055);
  text-align: left;
}
.beca-story-section__quote {
  color: #263149;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 600;
  line-height: 1.6;
}
.beca-story-section--quote footer {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .65rem;
  margin-top: 1rem;
  color: #64748b;
  font-size: .82rem;
}
.beca-story-section--quote cite { color: #334155; font-style: normal; font-weight: 700; }
.beca-story-section--quote footer span::before { content: "•"; margin-right: .65rem; }

@media (max-width: 700px) {
  .beca-story-section--image-half .beca-story-section__image-figure {
    float: none;
    width: 100%;
    max-width: none;
    margin: 0 0 1.25rem;
  }
  .beca-story-gallery--two,
  .beca-story-gallery--three,
  .beca-story-gallery--featured { grid-template-columns: 1fr; }
  .beca-story-gallery--featured .beca-story-gallery__item:first-child { grid-column: auto; }
}

/* Header spans full article column */
.beca-story__header,
.beca-story__header-inner,
.beca-story__eyebrow,
.beca-story__heading,
.beca-story__subheading {
  width:100%;
  max-width:none;
}

/* Ensure the story title header uses the full available width of the left
 * content column. These selectors intentionally override width constraints
 * inherited from the shared Feature Cards heading component. */
.beca-story__main > .beca-story__header.bfc-header {
  display: flex !important;
  align-items: stretch !important;
  inline-size: 100% !important;
  width: 100% !important;
  max-inline-size: none !important;
  max-width: none !important;
  align-self: stretch !important;
}

.beca-story__main > .beca-story__header.bfc-header > .bfc-heading {
  display: block !important;
  inline-size: 100% !important;
  width: 100% !important;
  max-inline-size: none !important;
  max-width: none !important;
  min-width: 0 !important;
  align-self: stretch !important;
  box-sizing: border-box;
}

.beca-story__main > .beca-story__header.bfc-header > .bfc-eyebrow {
  align-self: flex-start;
}


/* Story title must use the complete width of the main article grid track.
 * Disable the shared component's balanced wrapping and intrinsic sizing,
 * which can make the text look constrained even when the element is 100%. */
.beca-story__layout > .beca-story__main,
.beca-story__main > .beca-story__header.bfc-header {
  min-inline-size: 0 !important;
  inline-size: 100% !important;
  width: 100% !important;
  max-inline-size: none !important;
  max-width: none !important;
}

.beca-story__main > .beca-story__header.bfc-header > h1.beca-story__heading.bfc-heading {
  display: block !important;
  flex: 0 0 100% !important;
  flex-basis: 100% !important;
  inline-size: 100% !important;
  width: 100% !important;
  min-inline-size: 0 !important;
  min-width: 0 !important;
  max-inline-size: none !important;
  max-width: none !important;
  margin-inline: 0 !important;
  padding-inline: 0 !important;
  white-space: normal !important;
  text-wrap: wrap !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  contain: none !important;
}


/* Related stories rail: match the article header treatment and use the full
 * width of the 400px sidebar grid track. */
.beca-story__sidebar,
.beca-story__sidebar-inner,
.beca-story__sidebar-header,
.beca-related-list,
.beca-story-card,
.beca-story-card__link {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.beca-story__sidebar-header {
  align-items: stretch;
}

.beca-story__sidebar-header > .bfc-eyebrow {
  align-self: flex-start;
}

.beca-story__sidebar-header > h2.beca-story__sidebar-heading.bfc-heading {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
  padding-inline: 0 !important;
  text-align: left !important;
}

.beca-related-list {
  justify-items: stretch;
}

.beca-story-card__link {
  margin-inline: 0;
}

.beca-story-card__image-wrap {
  flex: none;
}


/* Related Stories refinements: retain the shared article-heading treatment,
 * but reduce its visual prominence and let every card fill the rail. */
.beca-story__sidebar-header {
  margin-bottom: 1.25rem;
}
.beca-story__sidebar-header > h2.beca-story__sidebar-heading.bfc-heading {
  font-size: clamp(1.35rem, 1.8vw, 1.75rem) !important;
  line-height: 1.2 !important;
}
.beca-related-list,
.beca-story-card,
.beca-story-card__link {
  inline-size: 100%;
}
.beca-story-card__link {
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: stretch;
}
.beca-story-card__image-wrap {
  width: 104px;
  height: 100%;
  min-height: 82px;
}
.beca-story-card__content {
  width: 100%;
  min-width: 0;
  align-self: center;
}
.beca-story-card__title {
  width: 100%;
  max-width: none;
}


/* Keep Related Stories visually subordinate to the primary article heading. */
.beca-story__sidebar {
  margin-top: 5rem;
}

/* The preview return control behaves like the browser Back button and must
 * remain interactive above theme overlays. */
.node-preview-backlink.beca-preview-browser-back,
.beca-preview-browser-back {
  position: relative;
  z-index: 10000;
  pointer-events: auto !important;
  cursor: pointer;
}

@media (max-width: 900px) {
  .beca-story__sidebar {
    margin-top: 3rem;
  }
}

/* Story hierarchy: the title and editorial information span the complete
 * 1240px inner container. The article/related-stories grid starts beneath
 * that shared introduction, aligning Related Stories with the story body. */
.beca-story__intro {
  width: 100%;
}

.beca-story__content-layout {
  margin-top: var(--beca-story-header-gap, 3rem);
}

.beca-story__content-layout .beca-story__body {
  margin-top: 0;
}

.beca-story__content-layout .beca-story__sidebar {
  margin-top: 0;
}

@media (max-width: 900px) {
  .beca-story__content-layout .beca-story__sidebar {
    margin-top: 3rem;
  }
}


.beca-story-section--gallery .beca-story-section__heading,
.beca-story-section--gallery .beca-story-section__heading.bfc-heading {
  margin-bottom: 3rem !important;
  font-size: clamp(1.2rem, 1.65vw, 1.6rem) !important;
  font-weight: 600 !important;
}


/* Full-width Image Gallery: intentionally placed outside the two-column
 * story/related-stories grid so it spans the complete 1240px container. */
.beca-story__gallery-fullwidth {
  width: 100%;
  max-width: none;
  margin-top: var(--beca-story-header-gap, 3rem);
}

.beca-story__gallery-fullwidth .beca-story-section {
  width: 100%;
  max-width: none;
}

.beca-story__share--fullwidth {
  width: 100%;
  max-width: none;
  margin-top: 3rem;
}

/* Full-width image gallery: maintain a minimum 3rem gap between columns. */
.beca-story-section--gallery .beca-story-gallery,
.beca-story-section--gallery .beca-gallery-grid,
.beca-story-section--gallery .beca-story-section__gallery {
  column-gap: 3rem !important;
}


/* Gallery image enlargement / lightbox. */
.beca-story-gallery__image-button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: zoom-in;
  text-align: inherit;
}

.beca-story-gallery__image-button:focus-visible {
  outline: 3px solid var(--beca-story-accent);
  outline-offset: 4px;
}

.beca-story-gallery__image-button img {
  pointer-events: none;
}

.beca-story-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(5, 10, 18, .94);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
}

.beca-story-gallery-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.beca-story-gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  cursor: zoom-out;
}

.beca-story-gallery-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  outline: none;
  cursor: move;
}

.beca-story-gallery-lightbox__image {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  /* Rendered larger than the viewport so there's room to pan; JS shifts
     this transform on mousemove to reveal the area under the cursor. */
  width: 140%;
  height: 140%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  transform: translate(-50%, -50%);
  border-radius: 0;
  box-shadow: none;
  user-select: none;
  will-change: transform;
}

.beca-story-gallery-lightbox__close {
  position: absolute;
  top: clamp(.25rem, 1vw, 1rem);
  right: clamp(.25rem, 1vw, 1rem);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.beca-story-gallery-lightbox__close:hover {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .7);
  transform: scale(1.04);
}

.beca-story-gallery-lightbox__close:focus-visible {
  outline: 3px solid var(--beca-story-accent);
  outline-offset: 3px;
}

html.beca-gallery-lightbox-open,
body.beca-gallery-lightbox-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .beca-story-gallery-lightbox {
    transition: none;
  }

  .beca-story-gallery-lightbox__close {
    transition: none;
  }
}

@media (max-width: 700px) {
  .beca-story-gallery-lightbox__close {
    top: .5rem;
    right: .5rem;
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.8rem;
  }
}
