@media only screen and (max-width: 767px) {
  .container {
    width: 100%;
    max-width: 100vw !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}
@media only screen and (max-width: 991px) {
  .container {
    max-width: calc(100vw - 30px);
  }
}
@media only screen and (max-width: 1199px) {
  .container {
    max-width: calc(100vw - 30px);
  }
}

@media (min-width: 782px) {
  .block-columns {
    flex-wrap: nowrap !important;
  }
}

@media only screen and (max-width: 767px) {
  .page .entry-content {
    padding: 15px;
  }
}

@media only screen and (max-width: 767px) {
  #menu-opener {
    position: absolute;
    right: 0;
    margin-right: 20px;
  }
}
@media only screen and (max-width: 991px) {
  #menu-opener {
    position: absolute;
    right: 0;
    margin-right: 104px;
    border: 0;
  }
}
@media only screen and (max-width: 1024px) {
  #menu-opener {
    position: absolute;
    right: 0;
    margin-right: 41px;
    display: block;
    padding: 0;
    background-color: transparent;
  }

  #site-navigation {
    display: none;
  }
}
@media only screen and (max-width: 1024px) {
  #menu-opener {
    display: block;
    width: 25px;
    height: 18px;
    cursor: pointer;
  }

  #menu-opener span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333;
    margin-bottom: 5px;
    transition: all 0.3s ease;
  }

  #menu-opener span:last-child {
    margin-bottom: 0;
  }
}

@media only screen and (max-width: 1024px) {
  body.menu-open .mobile-menu-wrapper .mobile-navigation {
    -webkit-transform: translateX(0);
    -moz-transform: translateX(0);
    transform: translateX(0);
  }

  body.menu-open {
    overflow: hidden;
  }

  .close-main-nav-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
  }

  .close-main-nav-toggle::before,
  .close-main-nav-toggle::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #333;
    top: 50%;
    left: 0;
  }

  .close-main-nav-toggle::before {
    transform: rotate(45deg);
  }

  .close-main-nav-toggle::after {
    transform: rotate(-45deg);
  }
}
@media only screen and (max-width: 450px) {
  .mobile-menu-wrapper .mobile-navigation {
    max-width: 100%;
    width: 100%;
  }
}
@media only screen and (max-width: 1024px) {
  .mobile-menu-wrapper .mobile-navigation {
    -webkit-transform: translateX(-100%);
    -moz-transform: translateX(-100%);
    transform: translateX(-100%);
    -webkit-transition: ease 0.35s;
    -moz-transition: ease 0.35s;
    transition: ease 0.35s;
  }
}
@media only screen and (max-width: 1024px) {
  .main-navigation {
    position: fixed;
    background: #fff;
    top: 0;
    left: 0;
    max-width: 320px;
    width: 100%;
    height: 100%;
    padding-top: 80px;
    overflow-y: auto;
    z-index: 1001;
    -webkit-transform: translateX(-420px);
    -moz-transform: translateX(-420px);
    transform: translateX(-420px);
    -webkit-transition: ease 0.35s;
    -moz-transition: ease 0.35s;
    transition: ease 0.35s;
  }

  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }

  body.menu-open .menu-overlay {
    opacity: 1;
    visibility: visible;
  }
}

/* Mobile responsive rules for images and floats */
@media only screen and (max-width: 767px) {
  /* Disable floats on mobile for better layout */
  .alignleft,
  .alignright,
  .wp-block-image .alignleft,
  .wp-block-image .alignright,
  .wp-block-image.alignleft,
  .wp-block-image.alignright,
  .block-image .alignleft,
  .block-image .alignright,
  figure.alignleft,
  figure.alignright {
    float: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Center images on mobile */
  .block-image figure,
  .wp-block-image figure,
  .block-image,
  .wp-block-image {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  /* Make images responsive */
  .block-image img,
  .wp-block-image img,
  figure img {
    max-width: 100%;
    height: auto;
    width: auto !important;
  }

  /* Ensure block-columns stack properly on mobile */
  .block-columns {
    flex-direction: column !important;
  }

  .block-column {
    width: 100% !important;
    flex-basis: 100% !important;
  }
}
