/* Fundraiser details 2.6 — independent of legacy Drupal grid classes. */
.bdv-campaign-page { padding-block: 38px 88px; }
.bdv-campaign-page .bdd-article { max-width: 1100px; margin-inline: auto; }
.bdv-campaign-intro { display: grid; grid-template-columns: minmax(220px, 310px) minmax(0, 1fr); align-items: start; gap: clamp(24px, 4vw, 55px); padding-bottom: 42px; border-bottom: 1px solid var(--line); }
.bdv-campaign-intro--no-photo { grid-template-columns: 1fr; }
.bdv-campaign-intro__media { width: 100%; }
.bdv-campaign-cover { display: block; position: relative; overflow: hidden; width: 100%; border-radius: 18px; background: #ebf1ee; box-shadow: 0 10px 25px rgba(12, 46, 48, .09); }
.bdv-campaign-cover > img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: contain; background: #f3f7f5; transition: transform .2s ease; }
.bdv-campaign-cover:hover > img { transform: scale(1.025); }
.bdv-campaign-cover__hint { position: absolute; inset: auto 0 0; padding: 15px; color: #fff; text-align: center; background: linear-gradient(transparent, rgba(0,0,0,.72)); font-size: 13px; font-weight: 700; }
.bdv-campaign-intro__text { font-size: 17px; line-height: 1.8; overflow-wrap: anywhere; }
.bdv-campaign-summary p { margin: 0 0 1.05em; }
.bdv-campaign-summary > :first-child { margin-top: 0; }
.bdv-campaign-status { display: inline-flex; background: #e8f3f1; color: #0b545d; font-size: 12px; font-weight: 800; line-height: 1.5; padding: 7px 13px; border-radius: 100px; margin: 0 0 20px; }
.bdv-campaign-status--closed { background: #edf0f1; color: #526668; }
.bdv-campaign-status--active { background: #e5f4e7; color: #246a36; }
.bdv-campaign-story { padding-top: 40px; max-width: 920px; }
.bdv-campaign-story > :first-child { margin-top: 0; }
.bdv-campaign-story .field-name-field-galery, .bdv-campaign-story .field-name-field-img, .bdv-campaign-story .field-image { display:none; }
.bdv-campaign-gallery-strip { margin-top: 42px; padding-top: 28px; border-top: 1px solid var(--line); }
.bdv-campaign-gallery-strip h2 { font-size: 25px; line-height: 1.3; margin: 0 0 19px; }
.bdv-campaign-gallery-strip__items { display: flex; flex-wrap: wrap; gap: 13px; }
.bdv-campaign-gallery-strip__items a { width: 115px; height: 115px; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: #f3f7f5; }
.bdv-campaign-gallery-strip__items a:hover { border-color: var(--teal); }
.bdv-campaign-gallery-strip__items img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bdv-gallery-modal { position: fixed; box-sizing: border-box; inset: 0; width: min(94vw, 1120px); max-width: none; max-height: 94vh; padding: 15px 20px 20px; border: none; border-radius: 17px; background: #102629; color: #fff; box-shadow: 0 28px 95px rgba(0,0,0,.37); overflow: auto; }
.bdv-gallery-modal::backdrop { background: rgba(5, 20, 22, .86); }
.bdv-gallery-modal__toolbar { display: flex; justify-content: space-between; align-items: center; color: #d4e5e6; padding: 0 0 10px; font-size: 14px; }
.bdv-gallery-modal__toolbar button { border: 0; background: transparent; color: #fff; font-size: 30px; width: 42px; height: 42px; cursor:pointer; }
.bdv-gallery-modal__stage { display: grid; grid-template-columns: 45px minmax(0,1fr) 45px; gap: 7px; align-items: center; min-height: 150px; }
.bdv-gallery-modal__stage button { border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: #fff; background: rgba(255,255,255,.09); font-size: 30px; width: 42px; height: 42px; cursor: pointer; }
.bdv-gallery-modal__stage button:hover { background: rgba(255,255,255,.22); }
.bdv-gallery-modal__stage > img { display: block; margin: auto; max-width: 100%; max-height: min(65vh, 740px); width: auto; height: auto; object-fit: contain; border-radius: 7px; }
.bdv-gallery-modal__thumbs { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.bdv-gallery-modal__thumbs button { width: 62px; height: 62px; border: 2px solid transparent; padding: 2px; border-radius: 8px; background: transparent; cursor: pointer; opacity: .73; }
.bdv-gallery-modal__thumbs button.is-selected { border-color: #f48054; opacity: 1; }
.bdv-gallery-modal__thumbs img { display: block; height: 100%; width: 100%; object-fit: cover; border-radius: 4px; }
@media (max-width: 650px) {
  .bdv-campaign-page { padding-block: 23px 62px; }
  .bdv-campaign-intro { display: block; padding-bottom: 22px; }
  .bdv-campaign-intro__media { width: min(100%, 330px); margin: 0 auto 24px; }
  .bdv-campaign-intro__text { font-size: 16px; }
  .bdv-campaign-story { padding-top: 24px; }
  .bdv-gallery-modal { width: 100vw; max-height: 100dvh; height: 100dvh; padding: 10px; border-radius: 0; }
  .bdv-gallery-modal__stage { grid-template-columns: 33px minmax(0,1fr) 33px; gap: 2px; }
  .bdv-gallery-modal__stage button { width: 32px; height: 32px; font-size: 24px; }
  .bdv-gallery-modal__stage > img { max-height: 70vh; }
}
