/*
 * Veurhof mobile hotfix v1
 *
 * Scope:
 * - Preserve the complete 1920 x 400 header artwork on smaller screens.
 * - Prevent the existing vertical navigation from remaining sticky over content.
 * - Keep every existing navigation item reachable without adding script or markup.
 *
 * This file intentionally loads after the generated Vite stylesheet.
 */

@media (max-width: 768px) {
  .buurthuis-header-image {
    aspect-ratio: 24 / 5;
    height: auto;
    min-height: 0;
    background-color: #fff;
    background-position: center;
    background-size: contain;
  }

  .buurthuis-navigation {
    position: static;
    top: auto;
  }

  .buurthuis-navigation .buurthuis-container {
    max-width: none;
    padding-inline: 0;
  }

  .buurthuis-menu {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 1px;
    text-align: center;
  }

  .buurthuis-menu li {
    min-width: 0;
  }

  .buurthuis-menu a,
  .buurthuis-menu button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 0.65rem 0.45rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 479px) {
  .buurthuis-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
