/* Gallery Info Panel and FAQ Styles (restored from gallery.html) */
.gallery-info-panel {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  box-shadow: 0 6px 32px 0 rgba(0,0,0,0.10), 0 1.5px 6px 0 rgba(0,0,0,0.08);
  padding: 40px 40px 32px 40px;
  margin-top: 32px;
  margin-bottom: 32px;
  max-width: 1150px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 56px 56px 40px 56px;
  max-height: none;
  overflow-y: visible;
}
@media (max-width: 991px) {
  .gallery-info-panel {
    max-width: 99vw;
    padding: 18px 4vw 14px 4vw;
  }
}
.gallery-info-panel h2 {
  font-family: 'Overpass', sans-serif;
  font-size: 2.1rem;
  color: #d2691e;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: left;
}
.gallery-info-panel .card {
  background: transparent;
  border: none;
  margin-bottom: 0.7rem;
}
.gallery-info-panel .card-header {
  background: none;
  border: none;
  padding: 0;
}
.gallery-info-panel .btn-link {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  color: #333 !important;
  font-size: 1.08rem;
  font-weight: 500;
  padding: 10px 18px;
  text-align: left;
  width: 100%;
  transition: box-shadow 0.2s;
}
.gallery-info-panel .btn-link:focus, .gallery-info-panel .btn-link:hover {
  box-shadow: 0 4px 16px rgba(210,105,30,0.13);
  color: #d2691e !important;
}
.gallery-info-panel .card-body {
  background: none;
  border-radius: 0 0 8px 8px;
  box-shadow: none;
  color: #222;
  font-size: 1rem;
  padding: 18px 10px 10px 18px;
}
/* Prevent FAQ expansion from stretching the image */
.gallery-faq-row {
  align-items: flex-start !important;
}
.img.img-2.align-self-stretch {
  height: 500px;
  min-height: 340px;
  max-height: 600px;
  width: 100%;
  object-fit: cover;
  border-radius: 18px;
  background-position: center center !important;
  background-repeat: no-repeat;
  background-size: cover !important;
}
/* Only round specific corners of counter section and service blocks */
.ftco-counter .row.no-gutters > div:first-child .block-18 {
  border-top-left-radius: 18px !important;
  border-bottom-left-radius: 18px !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  overflow: hidden;
}
.ftco-counter .row.no-gutters > div:last-child .block-18 {
  border-top-right-radius: 18px !important;
  border-bottom-right-radius: 18px !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  overflow: hidden;
}
.ftco-counter .row.no-gutters > div:not(:first-child):not(:last-child) .block-18 {
  border-radius: 0 !important;
}
/* Rounded overlays and about image */
.overlay, .hero-wrap .overlay {
  border-radius: 18px;
}
.img.img-about {
  border-radius: 18px !important;
  overflow: hidden;
}
/* Modern multi-column footer styles for about page */
.custom-footer {
  background: #252525;
  color: #fff;
  padding: 48px 0 0 0;
  font-family: 'Overpass', Arial, sans-serif;
}
.custom-footer .footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 48px 32px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}
.custom-footer .footer-col {
  min-width: 180px;
  flex: 1 1 180px;
  margin-bottom: 32px;
}
.custom-footer .footer-col h4 {
  color: #6eb6e6;
  font-size: 1.18rem;
  margin-bottom: 18px;
  font-weight: 600;
}
.custom-footer .footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.custom-footer .footer-col ul li {
  margin-bottom: 10px;
  color: #fff;
  font-size: 1rem;
}
.custom-footer .footer-col ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}
.custom-footer .footer-col ul li a:hover {
  color: #6eb6e6;
}
.custom-footer .donate-btn {
  display: block;
  background: #5eb6e6;
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  padding: 16px 36px;
  margin: 0 auto 24px auto;
  font-size: 1.1rem;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s;
}
.custom-footer .donate-btn:hover {
  background: #3a8bb7;
}
.custom-footer .footer-social {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 32px;
}
.custom-footer .footer-social a {
  color: #fff;
  font-size: 1.4rem;
  background: #223e5c;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.custom-footer .footer-social a:hover {
  background: #6eb6e6;
}
.custom-footer .footer-address {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 12px;
}
.custom-footer .footer-bottom {
  background: #fd7e14;
  color: #fff;
  text-align: center;
  padding: 18px 0 8px 0;
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 32px;
}
@media (max-width: 900px) {
  .custom-footer .footer-top {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
}

/* =========================================================
   RESPONSIVE OVERRIDES (mobile-first hardening)
   Scoped overrides that make the template work cleanly at
   ~375px (phones), ~768px (tablets), and ≥992px (desktop)
   without changing desktop behavior. All rules here are
   additive — they override the vendor style.css where the
   original fixed sizing breaks on small screens.
   ========================================================= */

/* 1. Global guards — kill horizontal scroll, make every
      piece of media fluid by default. */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}
img,
video,
iframe,
embed,
object {
  max-width: 100%;
  height: auto;
}
iframe {
  border: 0;
}

/* 2. Long-word and URL wrap protection (prevents overflow
      on narrow screens from long social links / emails). */
p, h1, h2, h3, h4, h5, h6, a, li {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* 3. Containers — Bootstrap 4's container adds 15px gutter,
      but some custom sections use full-width children. */
.container,
.container-fluid {
  width: 100%;
  max-width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  box-sizing: border-box;
}
@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }

/* 4. Hero / slider — original rule locks hero to 700px min
      and slider-text to 700px which is unusable on phones. */
.hero-wrap {
  min-height: 0;
  height: auto;
  padding: 100px 0 60px;
}
.hero-wrap .slider-text {
  height: auto;
  min-height: 360px;
  padding: 40px 0;
}
@media (min-width: 768px) {
  .hero-wrap {
    padding: 0;
    height: 70vh;
    min-height: 520px;
  }
  .hero-wrap .slider-text { min-height: 520px; height: 70vh; }
}
@media (min-width: 992px) {
  .hero-wrap {
    height: calc(100vh - 117px);
    min-height: 700px;
  }
  .hero-wrap .slider-text { height: 700px; min-height: 700px; }
}
.slider-text h1,
.slider-text .bread {
  font-size: 2rem;
  line-height: 1.15;
}
@media (min-width: 576px) { .slider-text h1, .slider-text .bread { font-size: 2.4rem; } }
@media (min-width: 768px) { .slider-text h1, .slider-text .bread { font-size: 3rem; } }
@media (min-width: 992px) { .slider-text h1, .slider-text .bread { font-size: 3.5rem; } }
.slider-text p { font-size: 1rem; }
@media (min-width: 992px) { .slider-text p { font-size: 1.15rem; } }

/* Kill parallax translate on small screens — scrollax jitter
   and horizontal scroll on mobile. */
@media (max-width: 767.98px) {
  [data-scrollax],
  [data-scrollax-parent] {
    transform: none !important;
  }
}

/* 5. Navbar — bigger tap targets on mobile, prevent overflow. */
.ftco_navbar .container {
  flex-wrap: wrap;
}
.ftco-navbar-light .navbar-brand {
  font-size: 18px;
  max-width: 70%;
  white-space: normal;
}
@media (min-width: 576px) { .ftco-navbar-light .navbar-brand { font-size: 22px; } }
.ftco-navbar-light .navbar-nav > .nav-item > .nav-link {
  padding: 12px 16px;
  min-height: 44px;
}
.navbar-toggler {
  padding: 10px 14px;
  min-height: 44px;
  min-width: 44px;
  font-size: 15px;
}
@media (max-width: 991.98px) {
  .ftco_navbar #ftco-nav {
    width: 100%;
  }
  .ftco_navbar .navbar-nav {
    padding: 8px 0;
  }
  .ftco_navbar .navbar-nav .nav-link {
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
}

/* 6. Counter / intro blocks — original negative margin (-80px)
      pushes the row over the hero on mobile where hero is short,
      causing overlap and horizontal scroll from color-1's rounded
      corners. Stack cleanly on phones. */
@media (max-width: 767.98px) {
  .ftco-intro { margin-top: 0 !important; }
  .ftco-intro .block-18 {
    padding: 24px 20px;
    width: 100%;
  }
  .ftco-intro .block-18 .text strong { font-size: 40px; }
  .ftco-intro .block-18 .text span { font-size: 18px; }
  /* Square corners on stacked tiles so they don't look awkward */
  .ftco-counter .row.no-gutters > div .block-18,
  .ftco-counter .row.no-gutters > div:first-child .block-18,
  .ftco-counter .row.no-gutters > div:last-child .block-18 {
    border-radius: 0 !important;
  }
  .ftco-counter .counter-wrap { margin-bottom: 0; }
}

/* 7. Service blocks (homepage) — center-align icon and text on
      phones so the p-4 padding doesn't look lop-sided. */
@media (max-width: 767.98px) {
  .services.block-6 {
    text-align: center;
  }
  .services.block-6 .media-body { padding-left: 0 !important; }
  .services.block-6 .icon { justify-content: center; }
}

/* 8. Gallery grid — vendor gives .gallery 25% width + 300px
      height. At ≤767px that collapses to 100% which is too
      tall for phones. Give a 2-column layout between 480 and
      767px, and a shorter height on phones. */
.ftco-gallery .d-md-flex {
  flex-wrap: wrap;
}
@media (max-width: 767.98px) {
  .gallery { width: 50%; }
  .gallery.img { height: 180px; }
}
@media (max-width: 420px) {
  .gallery { width: 100%; }
  .gallery.img { height: 220px; }
}

/* 9. About section image — inline "width:100%" already set,
      but the background-image container needs a mobile height
      since it has no intrinsic size. */
.img.img-about {
  min-height: 260px;
  background-size: cover;
  background-position: center;
}
@media (min-width: 768px) { .img.img-about { min-height: 380px; } }
.img.img-about,
.ftco-section .col-md-6.d-flex .img-about {
  width: 100%;
}
@media (max-width: 767.98px) {
  .ftco-section .row.d-flex .col-md-6 {
    margin-bottom: 24px;
  }
}

/* 10. Map iframe — was hard-coded inline height:290px. Let CSS
       win at mobile sizes so it scales down. */
.staff iframe,
iframe[src*="google.com/maps"] {
  width: 100% !important;
  max-width: 100%;
  height: 260px;
  display: block;
}
@media (min-width: 768px) {
  .staff iframe,
  iframe[src*="google.com/maps"] { height: 320px; }
}

/* 11. Gallery FAQ / info panel — on small screens it was
       reasonable already; just ensure buttons have a large
       enough tap target. */
.gallery-info-panel .btn-link {
  min-height: 44px;
  white-space: normal;
}
@media (max-width: 575.98px) {
  .gallery-info-panel { padding: 20px 16px 16px 16px; }
  .gallery-info-panel h2 { font-size: 1.5rem; }
}
.img.img-2.align-self-stretch {
  height: auto;
  min-height: 260px;
}
@media (min-width: 768px) {
  .img.img-2.align-self-stretch {
    height: 500px;
    min-height: 340px;
  }
}

/* 12. Buttons — enforce comfortable tap target on any .btn. */
.btn {
  min-height: 44px;
  white-space: normal;
}
.btn.btn-white.btn-outline-white.px-4.py-3 {
  font-size: 1rem;
}

/* 13. Forms (contact) — inputs should fill full width, be
       large enough to tap, and text areas should not overflow. */
.form-control {
  width: 100%;
  max-width: 100%;
  font-size: 16px; /* prevents iOS auto-zoom on focus */
  min-height: 44px;
}
textarea.form-control { min-height: 120px; }
@media (max-width: 767.98px) {
  .contact-section .col-md-3,
  .contact-section .col-md-6 {
    margin-bottom: 16px;
  }
  #map { min-height: 280px; }
}

/* 14. Custom multi-column footer (about / gallery / donate) —
       was already fluid at ≤900px, but the inline
       flex-basis:220px;max-width:220px on the first column
       stops it from centering correctly below 600px. */
.custom-footer .footer-top {
  padding-left: 16px;
  padding-right: 16px;
}
.custom-footer .footer-col--donate {
  flex: 0 1 220px;
  max-width: 220px;
}
@media (max-width: 575.98px) {
  .custom-footer .footer-col--donate {
    flex: 1 1 100% !important;
    max-width: 100% !important;
  }
}
@media (max-width: 575.98px) {
  .custom-footer { padding-top: 32px; }
  .custom-footer .footer-top {
    gap: 20px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .custom-footer .footer-col {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    min-width: 0;
    text-align: center;
    margin-bottom: 12px;
  }
  .custom-footer .footer-col ul { padding-left: 0; }
  .custom-footer .footer-social { justify-content: center; }
  .custom-footer .donate-btn {
    width: 100%;
    max-width: 320px;
    padding: 14px 24px;
  }
  .custom-footer .footer-bottom {
    font-size: 0.95rem;
    padding: 16px 12px 10px;
  }
}

/* 15. Bootstrap-style dark footer (index / contact / blog) — give
       each widget-column bottom spacing when they stack. */
.ftco-footer .ftco-footer-widget h2.ftco-heading-2 {
  font-size: 1.15rem;
}
@media (max-width: 767.98px) {
  .ftco-footer { text-align: center; }
  .ftco-footer .ftco-footer-widget {
    margin-bottom: 24px;
  }
  .ftco-footer .ftco-footer-social {
    float: none !important;
    margin-top: 16px !important;
    display: inline-block;
  }
  .ftco-footer .col-md-4.offset-md-1 { margin-left: 0; }
  .ftco-footer .block-23 ul li { justify-content: center; }
}

/* 16. Blog / Event / Causes grids — already col-md-4, stacks
       at <768px, but the entry cards need breathing room. */
@media (max-width: 767.98px) {
  .blog-entry,
  .cause-entry {
    margin-bottom: 24px;
  }
  .blog-entry .block-20,
  .cause-entry .img {
    height: 220px;
  }
}

/* 17. Blog single sidebar (blog-single.html) — image thumbs
       in recent-posts / footer blocks can overflow on small
       screens because .blog-img uses background-image with no
       intrinsic width. */
.blog-img {
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  background-size: cover;
  background-position: center;
  display: block;
}

/* 18. Typography scaling — body copy and h2 on section
       headings can get cramped on phones. */
@media (max-width: 575.98px) {
  body { font-size: 16px; }
  .heading-section h2,
  .ftco-section h2 { font-size: 1.6rem; }
  .ftco-section { padding: 3em 0; }
}

/* 19. Kill stellar's inline transforms on narrow screens — the
       parallax library writes inline styles that can cause
       horizontal scroll on iOS Safari. */
@media (max-width: 991.98px) {
  .hero-wrap[style*="background-image"] {
    background-attachment: scroll !important;
    background-position: center center !important;
    background-size: cover !important;
  }
}

