@media screen and (max-width: 450px) {
  .logo {
    max-width: 210px;
  }
  .menu-btn {
    left: 10px;
  }
  .lang-btn {
    right: 10px;
  }
  .main-menu-sidebar {
    width: 92vw;
    min-height: fit-content;
    margin: 0 4vw 0 4vw;
    top: 80px;
    border: 3px solid var(--cerulean);
    border-radius: 10px;
  }
  .flex-container {
    padding: 0;
  }
  .prod-bar-title {
    font-size: 1rem;
    margin: 0px 1vw;
  }
  .prod-bar-btn {
    font-size: 1.2rem;
    padding: 0 8px !important;
    margin: 10px;
    height: 60px;
  }
  p {
    font-size: 1.25rem !important;
    font-weight: 400 !important;
  }
  .wt-modal {
    margin-top: 50px;
  }
  .modal-title {
    font-size: 1.5rem;
  }
  .slideshow-container {
    height: clamp(30vh, 35vh, 40vh);
    margin: 0 auto;
  }
  .square-cards {
    flex: 0 0 60%;
    padding: 3px;
  }
  .square-cards img {
    height: 180px;
    object-fit: cover;
    object-position: center;
  }
  .square-cards-title {
    margin-top: 10px;
    font-size: 1rem;
  }
  .ma-item img,
  .ma-item h3 {
    height: 70px;
    display: inline-flex;
    padding: 0 10px;
    justify-content: center;
  }
}

@media screen and (min-width: 451px) and (max-width: 768px) {
  p {
    font-size: 1.35rem !important;
    font-weight: 500 !important;
  }
  .wt-modal {
    margin-top: 50px;
  }
  .article-content {
    padding: 0 5px;
    max-width: 90%;
  }
  .square-cards {
    flex: 0 0 40%; /* Show three cards at a time */
    padding: 5px;
  }
  .square-cards img {
    height: 200px;
    object-fit: cover;
    object-position: center;
  }
}

@media screen and (max-width: 600px) {
  .tag-cloud-btn {
    font-size: 1.25rem;
    padding: 4px 8px;
    margin: 8px;
  }
  .grid-container {
    max-height: 350px;
    grid-template-columns: auto auto;
    gap: 2px;
    margin: 0 4px;
  }
  .mobile-hidden {
    display: none;
  }
  .item-1 {
    grid-area: 1 / 1 / 2 / 3;
  }
  .item-2 {
    grid-area: 1 / 3 / 3 / 4;
  }
  .item-3 {
    grid-area: 2 / 1 / 3 / 2;
  }
  .item-4 {
    grid-area: 2 / 2 / 4 / 3;
  }
  .item-5 {
    grid-area: 3 / 1 / 4 / 2;
  }
  .item-6 {
    grid-area: 3 / 3 / 4 / 4;
  }
  .cards-grid {
    grid-template-columns: 1fr; /* 1 per row on mobile */
  }
  .responsive-heading {
    font-size: 1.2em;
  }
}

@media screen and (min-width: 601px) and (max-width: 861px) {
  footer .social-media-buttons,
  footer .social-media-buttons .icon-link {
    font-size: 1.1rem;
    margin: 0px;
    padding: 5px;
  }
}

@media screen and (max-height: 740px) {
  .main-menu-sidebar a {
    font-size: 1.2rem;
  }
  .menu-links-container .w3-bar-item {
    margin-top: 4px;
  }
  .lang-btn-on-menu {
    margin: 3px auto;
  }
}

@media screen and (min-width: 768px) and (max-width: 1180px) {
  p {
    font-size: 1.35rem !important;
    font-weight: 500 !important;
  }
  .square-cards {
    flex: 0 0 28%;
  }
  .ma-item {
    max-width: 300px;
  }
}

@media screen and (min-width: 1181px) {
  .square-cards {
    flex: 0 0 20%;
  }
}

@media screen and (min-width: 1100px) and (max-width: 1350px) {
  /*
  body {
    max-width: 94vw;
    margin-left: 3vw;
    margin-right: 3vw;
  }
    */
  p {
    font-size: 1.25rem !important;
    font-weight: 400 !important;
  }
}

@media screen and (min-width: 1351px) {
  body {
    max-width: 1340;
    margin: auto;
  }
  p {
    font-size: 1.25rem !important;
    font-weight: 400 !important;
  }
}

@media screen and (max-width: 850px) {
  .flex-item-1,
  .flex-item-2 {
    padding: 20px 2vw;
    width: 96vw;
  }
  .slideshow-container {
    max-height: 450px;
  }
  .cards-grid {
    /* 2 per row on tablets */
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 851px) {
  .flex-item-1,
  .flex-item-2,
  .flex-item-3 {
    width: 48vw;
    margin: 10px 1vw;
  }
  .flex-item-2 {
    max-width: 400px;
    margin-left: 60px;
  }
}
