.mobile-menu-button {
  display: none;
  position: relative; /* Changed from absolute */
  float: right; /* Added to align with header */
  margin: 0 20px; /* Added margins */
  font-size: 30px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px;
  z-index: 1001;
}

@media screen and (max-width: 768px) {
  #wrapper {
    width: 100%;
    padding: 0;
    margin: 0;
  }

  #page,
  #page-bgtop {
    width: auto;
    margin: 0;
    padding: 0;
    background: none;
  }

  #header {
    width: 100svw;
    position: relative;
    padding: 0 10px;
    box-sizing: border-box;
    overflow: hidden;
  }

  #content {
    width: auto;
    padding: 0;
    box-sizing: border-box;
    float: none;
    margin: 0 20px;
    max-width: 1200px;
  }
  #menu a:hover,
  #menu .active a {
    border-bottom: none;
    background-color: #f40c42;
    border-right: 10px solid black;
  }

  .post {
    box-sizing: border-box;
  }

  .post .entry {
    padding: 0;
  }

  #menu {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    top: 0;
    right: 0;
    width: 50%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  #menu.active {
    visibility: visible;
    opacity: 1;
  }

  #menu div {
    display: block;
    width: 100%;
    text-align: center;
    margin: 15px 0;
  }

  #menu div a {
    color: white;
    font-size: 24px;
    text-decoration: none;
    padding: 15px;
    display: block;
  }

  .mobile-menu-button {
    position: absolute;
    display: block;
    right: 20px;
    top: 20px;
    z-index: 1001;
    color: #000;
  }

  #sidebar {
    display: none;
  }

  #gallery-bg,
  #gallery-bgtop,
  #gallery-bgbtm {
    padding: 0;
    background: none;
  }

  #gallery-bg {
    width: 100%;
    padding: 0;
  }

  .viewer {
    padding-bottom: 100% !important;
    height: 0 !important;
    position: relative;
  }

  .viewer .reel {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
  }

  .viewer .slide {
    width: 100% !important;
    height: 100% !important;
  }

  .viewer .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  #foobar .navigation a {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 20px;
    text-decoration: none;
    font-size: 24px;
  }

  #foobar .navigation .previous {
    left: 10px;
  }
  #foobar .navigation .next {
    right: 10px;
  }

  .product-entry {
    flex-direction: column;
  }
  .product-entry img {
    margin: 0 auto;
  }

  #footer {
    flex-direction: column;
    align-items: center;
  }
  .fleft,
  .fright,
  .fcenter {
    width: 100%;
    margin: 5px 0;
  }

  #content.w-full {
    width: 100%;
  }
}
