@media screen and (max-width: 700px) {
  /* Hide desktop navigation */
  .desktop {
    display: none;
  }

  .mobile {
    display: block;
  }
  .mobile-menu {
    display: flex;
    z-index: 1;
  }
  .mobile-menu button{
    color: #000;
  }
  p{
    font-size: 18px;
  }

  .context{
    padding: 0;
    margin: 0;
  }
  
 /* Mobile menu styles */
  nav button:last-of-type{
    margin-right: 0 !important;
  }
  

.mobile > header {
  display: block;
  color: black;
}

.mobile > nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 50px;
  color: black;
}

/* Mobile menu button styles */
#menu-toggle, #menu-close {
  font-size: 50px;
  background: none;
  border: none;
  cursor: pointer;
  position: fixed;
    right: 0;
    top: 0;
    padding: 0 2rem;
} 

/* Initially hide the close ('X') button */
#menu-close {
  display: none;
}
.close-button {
  position: fixed;
  top: 0;
  right: 0;
  font-size: 50px;
  padding:0 2.6rem;
}

#overlay {
  position: fixed;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  display: none; /* Hidden by default */
  justify-content: start;
  align-items: center;
  z-index: 1000;
  background: deeppink;
  box-shadow: inset 0 0 100px orange;
}

#overlay ul {
  list-style-type: none;
  text-align: left;
  text-decoration: none;
  font-size: 24px;
  color: white;
  text-decoration: none !important;
  padding-left: 10%;
}
  
  #overlay ul li a{
      text-decoration: none !important;
  }

  .nav{
    display: flex;
    align-items: space-between;
  }

  /* Adjustments for mobile layout */
  h1.large {
    font-size: 2.5rem !important;
    line-height: calc(var(--lineHeight) * 2) !important;
  }

  .collapsible:after {
    font-size: 20px;
  }

  .collapsible {
    font-size: 25px;
    padding-top: 18px;
  padding-bottom: 18px;
  }

  .content > p {
    padding-right: 0 !important;
  }

  .aboutPerson {
    display: inline-block;
  }

  .aboutPerson:last-child {
    padding-bottom: 0;
  }

  .aboutPerson img {
    max-width: 100%;
  }

  .masonry-grid {
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: auto;
    gap: 5px;
  }

  .posts {
    flex-direction: column;
  }

  .footer {
    text-align: center;
    justify-content: center;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .funky {
    transition: all 0.5s ease;
  }

  .funky:hover {
    color: lime;

  }
  header #overlay .lang-switcher ul {
    padding-left: 0;
  }
  details summary {
    font-size: 24px;
    padding-left: 15px;
  }
  details summary:after {
    margin-right: 14px;
  }
  html[lang="ar"] #menu-toggle,html[lang="ar"] #menu-close,html[lang="ar"] .close-button {
    right: inherit;
      left: 0;
  }
  html[lang="ar"] #overlay {
    justify-content: end;
  }
  html[lang="ar"] #overlay ul {
    text-align: right;
    margin: 0;
    width: 66.6vw;
  }
  .entry-header {
    flex-direction: column;
  }
  .entry-header h1{
    margin-bottom: 0;
  }
  .archiveNav {
    text-align: left;
    margin: 0;
  }
}
