/* ==========================================================================
   MEDIA QUERIES
   ========================================================================== */

@media only screen and (max-width: 1399px) {
  /* Hero */
  .hero__banner_copy {
    padding-left: calc(50% - (1140px * .5) + 12px);
  }

  /* Carousel nav */
  .owl-nav button.owl-prev {
    left: -40px;
  }

  .owl-nav button.owl-next {
    right: -40px;
  }

  /* Stats */
  .creativity-benefits__content {
    padding-left: calc(50% - (1140px * .5) + 12px);
  }

  /* Letter to MP */
  .send-a-letter__wrapper_header_title--heading {
    font-size: 48px !important;
  }

  .send-a-letter__wrapper_header_title {
    margin-bottom: 2rem;
  }

  .send-a-letter__wrapper_header_title img {
    width: 220px;
    margin-top: 1.5rem;
    position: static;
    display: block;
  }

  /* Community Voices */
  .community-voices__graphic--bl {
    top: 50px;
    left: -60px;
  }

  .community-voices__graphic--br {
    top: 40px;
    left: 100%;
  }

  /* Poll */
  .poll-and-survey_form_counter {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .poll-and-survey_form_counter p {
    max-width: 100%;
  }
}

@media only screen and (max-width: 1199px) {
  /* Hero */
  .hero__banner_copy {
    padding-left: calc(50% - (960px * .5) + 12px);
  }

  /* Community Voices */
  .community-voices {
    overflow-x: clip;
  }

  .community-voices__carousel_card_text,
  .community-voices__carousel_card_author {
    font-size: 18px;
  }

  /* Carousel nav */
  .owl-nav button.owl-prev {
    left: -30px;
  }

  .owl-nav button.owl-next {
    right: -30px;
  }

  /* Stats */
  .creativity-benefits__content {
    padding-left: calc(50% - (960px * .5) + 12px);
  }

  .creativity-benefits__grid > *:not(:has(img)) {
    padding: 15px 20px;
  }

  .creativity-benefits__grid_heading {
    font-size: 30px;
  }

  /* Help - image over */
  .column-section__content_image--over img {
    max-width: min(450px, calc(100% - 60px));
    margin-left: 60px;
  }

  .send-a-letter__wrapper_header_title--heading {
    font-size: 42px !important;
  }

  /* Poll */
  .cmm-poll-thank-you-wrap p {
    font-size: 18px;
  }
}

@media only screen and (max-width: 991px) {
  .desktop {
    display: none !important;
  }

  .mobile {
    display: inline-block !important;
  }

  /* Header */
  .header {
    padding-block: 10px;
  }

  /*.header:has(.header__navbar--container.menu-toggled) {
    background-color: rgb(var(--clr--white));
  }*/

  .header__logo {
    max-width: 110px;
  }

  /* Navigation - off-canvas */
  .header__navbar_toggler {
    position: relative;
    z-index: 2;
  }

  .header__navbar_collapse,
  .header__navbar_collapse.collapsing {
    width: min(320px, 85vw);
    height: 100vh !important;
    height: 100dvh !important;
    padding: 90px 30px 30px;
    background-color: rgb(var(--clr--white));
    box-shadow: -6px 0 24px rgba(var(--clr--black), .15);
    overflow-x: hidden;
    overflow-y: auto;
    display: block !important;
    visibility: hidden;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1;
    transform: translateX(100%);
    -webkit-transform: translateX(100%);
    transition: transform .35s ease, visibility 0s linear .35s;
    -webkit-transition: transform .35s ease, visibility 0s linear .35s;
  }

  .header__navbar_toggler[aria-expanded="true"] ~ .header__navbar_collapse {
    visibility: visible;
    transform: translateX(0);
    -webkit-transform: translateX(0);
    transition: transform .35s ease, visibility 0s;
    -webkit-transition: transform .35s ease, visibility 0s;
  }

  .header::after {
    content: "";
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: rgba(var(--clr--black), .5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
    transition: opacity .35s ease, visibility 0s linear .35s;
    -webkit-transition: opacity .35s ease, visibility 0s linear .35s;
  }

  .header:has(.header__navbar_toggler[aria-expanded="true"])::after {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .35s ease;
    -webkit-transition: opacity .35s ease;
  }

  body:has(.header__navbar_toggler[aria-expanded="true"]) {
    overflow: hidden;
  }

  .header__navbar--container,
  .header__navbar--container ul#header__navbar_menu {
    width: 100%;
  }

  .header__navbar--container ul#header__navbar_menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .header__navbar--container ul#header__navbar_menu li.menu-item {
    width: 100%;
    border-bottom: 1px solid rgb(var(--clr--bright--gray));
  }

  #header__navbar .menu-item a {
    color: rgb(var(--clr--black--forest));
    font-size: 18px;
    text-align: left;
    width: 100%;
    padding: 15px 0;
    margin-inline: 0;
    -webkit-text-stroke-color: rgb(var(--clr--black--forest));
  }

  #header__navbar .menu-item a:hover {
    color: rgb(var(--clr--turquoise));
    -webkit-text-stroke-color: rgb(var(--clr--turquoise));
  }

  li.menu-item ul.sub-menu li a {
    padding: 10px 15px;
  }

  .menu-item.menu-item-has-children > a::after {
    top: 12px;
  }

  .nav-btn {
    text-align: center;
  }

  .nav-btn a {
    width: fit-content;
    margin-inline: auto;
  }

  li.menu-item ul.sub-menu {
    width: 100%;
    height: 0;
    padding: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    position: relative;
    transition: height 300ms ease-out, opacity 300ms ease-out;
    -webkit-transition: height 300ms ease-out, opacity 300ms ease-out;
    -moz-transition: height 300ms ease-out, opacity 300ms ease-out;
    -ms-transition: height 300ms ease-out, opacity 300ms ease-out;
    -o-transition: height 300ms ease-out, opacity 300ms ease-out;
  }

  li.menu-item ul.sub-menu,
  li.menu-item:hover ul.sub-menu {
    display: flex !important;
    flex-direction: column;
  }

  li.menu-item ul.sub-menu.submenu-open {
    height: calc(var(--menu--grand--childs) * 38px);
    opacity: 1;
    pointer-events: auto;
  }

  /* Grid layout */
  .grid-three > *,
  .grid-four > *,
  .grid-five > * {
    width: calc((100% / 2) - 13px);
  }

  .grid-two,
  .grid-three,
  .grid-four,
  .grid-five {
    gap: 20px;
    justify-content: center;
  }

  /* Hero */
  .hero__banner_copy {
    padding-left: calc(50% - (720px * .5) + 12px);
  }

  .hero__banner_heading {
    font-size: 28px;
  }

  .hero__banner_copy img {
    max-width: 260px;
  }

  /* Petition */
  .sign-the-petition__wrapper {
    flex-direction: column;
    gap: 1rem;
  }

  .sign-the-petition__wrapper > * {
    width: 100%;
  }

  /* Community Voices */
  .community-voices__carousel .community-voices__carousel_card {
    min-width: calc(100% * .47);
  }

  .creativity-benefits__wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .creativity-benefits__content {
    width: 100%;
    padding: 50px calc(50% - (720px * .5) + 12px);
  }

  .creativity-benefits__content img {
    max-width: 200px;
  }

  .creativity-benefits__grid {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
    grid-auto-flow: row dense;
  }

  .creativity-benefits__grid_card:nth-child(4n + 3) {
    grid-column: 2;
  }

  .creativity-benefits__grid_card:nth-child(4n + 4) {
    grid-column: 1;
  }

  .creativity-benefits__grid_card:not(:has(.creativity-benefits__grid_card--body)) {
    min-height: 230px;
    position: relative;
  }

  .creativity-benefits__grid_card:not(:has(.creativity-benefits__grid_card--body)) .creativity-benefits__grid_icon {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
  }

  .creativity-benefits__grid_card:nth-child(odd):not(:has(~ .creativity-benefits__grid_card)),
  .creativity-benefits__sources {
    grid-column: 1 / -1;
  }

  .column-section__content_image--over img {
    max-width: min(450px, calc(100% - 30px));
    margin-left: 30px;
  }

  /* Letter to MP */
  .send-a-letter__wrapper {
    flex-direction: column;
    gap: 2rem;
  }

  .send-a-letter__wrapper > * {
    width: 100%;
  }

  .send-a-letter__wrapper_header_title {
    max-width: 450px;
    margin: 0 auto 1.5rem;
    text-align: center;
  }

  .send-a-letter__wrapper_header_title img {
    margin-inline: auto;
  }
}

@media only screen and (max-width: 767px) {
  /* Grid layout */
  .grid-two > *,
  .grid-three > *,
  .grid-four > *,
  .grid-five > * {
    width: 100%;
  }

  /* Hero */
  .hero__banner {
    flex-direction: column-reverse;
  }

  .hero__banner > * {
    width: 100%;
  }

  .hero__banner_image img,
  .hero__banner_video video {
    height: auto;
    aspect-ratio: 1 / 1;
    object-position: 50% 50%;
    display: block;
  }

  .hero__banner_copy {
    padding: 30px calc(50% - (540px * .5) + 12px) 50px;
    gap: 20px;
  }

  .hero__banner_copy img {
    max-width: 220px;
  }

  /* Poll */
  .vic-poll__thankyou {
    text-align: center;
    font-size: 19px;
    font-weight: 600;
    color: #000000;
    margin: 0 0 50px !important;
  }

  .poll-and-survey_form_counter {
    flex-direction: row;
    align-items: center;
  }

  /* Community Voices */
  .community-voices__graphic {
    height: 30px;
  }

  .community-voices__graphic--tl {
    top: -15px;
    left: -25px;
  }

  .community-voices__graphic--tr {
    top: -15px;
  }

  .community-voices__graphic--bl {
    top: 45px;
    left: -50px;
  }

  .community-voices__graphic--br {
    top: 40px;
    left: 100%;
  }

  .community-voices__title {
    font-size: 28px;
  }

  .community-voices__sub-heading {
    font-size: 24px;
  }

  .community-voices__carousel_card_text,
  .community-voices__carousel_card_author {
    font-size: 16px;
  }

  .community-voices__carousel .community-voices__carousel_card {
    min-width: 100%;
  }

  .owl-nav {
    margin-top: 15px;
  }

  .owl-nav button.owl-prev,
  .owl-nav button.owl-next {
    font-size: 24px;
    position: unset;
    transform: unset;
    -webkit-transform: unset;
    -moz-transform: unset;
    -ms-transform: unset;
    -o-transform: unset;
  }

  /* Stats */
  .creativity-benefits__content {
    padding: 40px calc(50% - (540px * .5) + 12px);
  }

  .creativity-benefits__grid_icon {
    height: 200px;
  }

  .creativity-benefits__grid_card:not(:has(.creativity-benefits__grid_card--body)) {
    min-height: 200px;
  }

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

  /* Column Section */
  .column-section__content {
    flex-direction: column;
    align-items: stretch;
    gap: 30px;
  }

  .column-section__content > * {
    width: 100%;
  }

  .column-section__content_image--over img {
    max-width: min(450px, 100%);
    margin: 20px 0 -40px;
  }

  /* Letter to MP */
  .send-a-letter__wrapper_header_title--heading {
    font-size: 36px !important;
  }

  .cmm-mp-title {
    font-size: 24px !important;
  }

  /* Our Supporters */
  .our-supporters__wrapper .titles {
    text-align: center;
  }

  .our-supporters__wrapper_carousel {
    margin-top: 20px;
  }

  .our-supporters__wrapper_carousel .owl-item {
    align-items: center;
  }

  .our-supporters__wrapper_carousel_card img {
    max-height: 80px;
  }

  /* Simple Copy */
  .simple-copy__content p,
  .simple-copy__content ul,
  .simple-copy__content ol {
    font-size: 16px;
  }

  /* 404 */
  .error-message__back-button,
  .error-message__content p {
    font-size: 16px;
  }

  /* Footer */
  .footer__wrapper {
    flex-direction: column;
  }

  .footer__wrapper_logo img {
    width: 110px;
  }

  .footer__wrapper_contact-details-wrapper {
    text-align: center;
  }

  .footer__wrapper_contact-details-wrapper_social-grid {
    justify-content: center;
  }

  .footer__wrapper_copyright {
    text-align: center;
    justify-content: center;
  }

  .footer__wrapper_copyright_text {
    width: 100%;
  }

  .footer__wrapper_copyright ul li:first-child {
    padding-left: 0;
  }

  .footer__wrapper_copyright ul li:first-child::before {
    display: none;
  }
}

@media only screen and (max-width: 575px) {
  /* Hero */
  .hero__banner_copy {
    padding: 30px 12px 50px;
  }

  .hero__banner_copy img {
    max-width: 200px;
  }

  .hero__banner_heading {
    font-size: 26px;
  }

  .community-voices__graphic--bl,
  .community-voices__graphic--br {
    display: none;
  }

  .community-voices__graphic--tl {
    left: -20px;
  }

  /* Stats */
  .creativity-benefits__content {
    padding: 40px 12px;
  }

  .creativity-benefits__content img {
    max-width: 180px;
  }

  .creativity-benefits__grid {
    grid-template-columns: 1fr;
    grid-auto-flow: row;
  }

  .creativity-benefits__grid_card:nth-child(4n + 3),
  .creativity-benefits__grid_card:nth-child(4n + 4) {
    grid-column: auto;
  }

  .creativity-benefits__grid_card:not(:has(.creativity-benefits__grid_card--body)) {
    min-height: 240px;
  }

  .creativity-benefits__grid > *:not(:has(img)) {
    padding: 30px 12px;
  }

  .creativity-benefits__grid_heading {
    font-size: 28px;
  }

  /* Letter to MP */
  .send-a-letter__wrapper_header_title--heading {
    font-size: 32px !important;
  }

  .send-a-letter__wrapper_header_title img {
    width: 200px;
  }

  /* Poll */
  .poll-and-survey_form_counter {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  /* stats */
  .creativity-benefits__grid {
    grid-template-columns: 1fr;
  }
}