/* Bootstrap xs: below 576px */
@media (max-width: 575.98px) {
  :root {
    --header-height: 82px;
  }

  body {
    font-size: 0.96rem;
  }

  .container {
    --bs-gutter-x: 2rem;
  }

  .utility-bar {
    display: none;
  }

  .header-main {
    min-height: 82px;
  }

  h1 {
    overflow-wrap: anywhere;
  }

  .home-hero {
    padding-top: 2rem;
  }

  .home-hero h1,
  .page-hero h1 {
    font-size: clamp(2.8rem, 15vw, 4.3rem);
  }

  .hero-collage {
    padding: 0.75rem;
  }

  .hero-collage__shadow {
    inset: 0 1.5rem 1.5rem 0;
  }

  .circle-stamp {
    right: 0;
    width: 92px;
    height: 92px;
    font-size: 0.58rem;
  }

  .home-hero .btn,
  .form-band .btn {
    width: 100%;
  }

  .home-mission h2 {
    font-size: clamp(2.8rem, 14vw, 4.2rem);
  }

  .action-panel {
    grid-template-columns: 1fr;
    margin-inline: -0.25rem;
  }

  .latest-section .section-heading {
    align-items: flex-start !important;
    flex-direction: column;
  }

  .news-tile {
    min-height: 250px;
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }

  .news-grid > div:last-child .news-tile {
    border-bottom: 0;
  }

  .support-copy {
    padding-inline: 0;
  }

  .donation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-primary-nav,
  .footer-secondary-nav,
  .footer-legal-nav {
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.8rem;
  }

  .footer-connect-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-legal-nav span {
    width: 32px;
    height: 1px;
  }

  .cookie-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .photo-frame::before {
    inset: 0.75rem -0.5rem -0.75rem 0.75rem;
  }

  .stat-row {
    grid-template-columns: 1fr;
  }

  .stat-row > div {
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }

  .stat-row > div:last-child {
    border-bottom: 0;
  }

  .filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-bar .btn {
    width: 100%;
  }

  .news-row {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }

  .news-row__arrow {
    position: absolute;
    top: 1rem;
    right: 1rem;
  }

  .event-card {
    grid-template-columns: 1fr;
  }

  .step-list > section {
    grid-template-columns: 58px 1fr;
    gap: 1rem;
  }

  .membership-levels {
    grid-template-columns: 1fr;
  }

  .membership-levels article + article {
    border-top: 0;
    border-left: 2px solid var(--ink);
  }

  .membership-levels article.featured {
    transform: none;
  }

  .amount-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inventory-grid {
    grid-template-columns: 1fr;
  }
}

/* Bootstrap sm and above */
@media (min-width: 576px) {
  .cookie-banner {
    left: auto;
  }
}

/* Bootstrap md and above */
@media (min-width: 768px) {
  .page-hero--compact h1 {
    font-size: clamp(3.5rem, 8vw, 6rem);
  }
}

/* Bootstrap lg and above */
@media (min-width: 992px) {
  .desktop-nav .dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
  }

  .story-block--purple .row,
  .story-block--black .row {
    min-height: 560px;
  }

  .article-layout .col-lg-8 {
    padding-right: clamp(2rem, 5vw, 5rem);
  }
}

/* Bootstrap lg and below */
@media (max-width: 991.98px) {
  :root {
    --header-height: 92px;
  }

  .utility-bar {
    height: 28px;
  }

  .header-main {
    min-height: 92px;
  }

  .home-hero .row {
    text-align: left;
  }

  .news-grid > div:nth-child(2n) .news-tile {
    border-right: 0;
  }

  .news-grid > div:nth-child(-n + 2) .news-tile {
    border-bottom: 2px solid var(--ink);
  }

  .sticky-card {
    position: static;
  }

  .campaign-card {
    min-height: 410px;
  }

  .support-photo img {
    max-height: 480px;
  }

  .home-mission {
    min-height: auto;
  }

  .action-panel-wrap {
    position: relative;
    inset: auto;
    padding: 0 0 clamp(4rem, 8vw, 6rem);
    background: var(--ink);
    transform: none;
  }

  .action-panel-wrap .container {
    display: block;
  }

  .action-panel {
    width: 100%;
    max-width: 620px;
    margin-inline: auto;
  }

  .footer-primary-nav,
  .footer-connect-row,
  .footer-legal-nav {
    justify-content: flex-start;
  }

  .footer-middle {
    margin-top: 4.5rem;
  }

  .home-hero-carousel .carousel-item > .row {
    min-height: auto;
    padding-bottom: 60px;
  }

  .home-hero-carousel__control {
      top: auto;
      bottom: 0;
      transform: none;
  }

  .home-hero-carousel__control--prev {
      left: 0;
  }

  .home-hero-carousel__control--next {
      right: 0;
  }

  .home-hero-carousel__indicators {
      bottom: 18px;
  }
}

@media (max-width: 1199.98px) {
  .home-hero-carousel__control--prev {
      left: 12px;
  }

  .home-hero-carousel__control--next {
      right: 12px;
  }

  .home-hero-carousel__arrow {
      width: 46px;
      height: 46px;
      background-color: rgba(255, 255, 255, 0.9);
  }
}

/* Bootstrap xl and above */
@media (min-width: 1200px) {
  .container {
    --bs-gutter-x: 3rem;
  }

  .desktop-nav .nav {
    gap: 0.7rem;
  }
}

/* Bootstrap xxl and above */
@media (min-width: 1400px) {
  :root {
    --header-height: 124px;
  }

  .container {
    max-width: 1320px;
  }

  .home-hero .container,
  .page-hero .container,
  .campaign-hero .container {
    max-width: 1400px;
  }

  .desktop-nav .nav-link {
    font-size: 1rem;
  }
}

@media (hover: none) {
  .desktop-nav .dropdown:hover > .dropdown-menu {
    display: none;
  }

  .desktop-nav .dropdown.show > .dropdown-menu {
    display: block;
  }
}
