@media (min-width: 992px) {
  /* Hide all second-level dropdowns by default */
  header .menu2 .menu__level-1-li > .menu__level-2 {
    display: none !important;
  }

  /* Show only the active dropdown, full width, 3 columns */
  header .menu2 .menu__level-1-li.open > .menu__level-2 {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    left: 0 !important;
    right: 0 !important;
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    z-index: 1001;
    height: 80vh;
  }

  /* Position dropdown relative to menu row */
  header .menu2 {
    position: relative;
  }

  header .menu2 .menu__level-1-li {
    position: static !important;
  }

  /* Column content formatting */
  header .menu2 .menu__level-2 .menu__level-2-ul {
    width: auto !important;
    max-width: none !important;
    float: none !important;
    padding: 0 10px;
    box-sizing: border-box;
  }

  header .menu2 .menu__level-2 .menu__level-2-a {
    white-space: normal;
    line-height: 1.3;
    min-height: 40px;
  }

  /* Logo and text inside one <a>: logo top, text bottom */
  header .menu2 .menu__level-2 .menu__level-2-a.has-image,
  header .menu2 .menu__level-2 .menu__level-2-ul.has-image .menu__level-2-a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start;
    gap: 8px;
    text-align: center;
    min-height: auto;
    margin: 0;
    padding-top: 8px;
  }

  header .menu2 .menu__level-2 .menu__level-2-a.has-image .menu__level-2-img,
  header .menu2 .menu__level-2 .menu__level-2-ul.has-image .menu__level-2-img {
    display: block;
    order: -1;
    flex: 0 0 auto;
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin: 0 auto;
  }

  header .menu2 .menu__level-2 .menu__level-2-a.has-image .menu__level-2-title,
  header .menu2 .menu__level-2 .menu__level-2-ul.has-image .menu__level-2-title {
    display: block;
    width: 100%;
  }

  /* Fallback for old markup where image is outside the <a> */
  header .menu2 .menu__level-2 .menu__level-2-ul.has-image > div,
  header .menu2 .menu__level-2 .menu__level-2-ul.has-image > div > div {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px;
  }

  header .menu2 .menu__level-2 .menu__level-2-ul.has-image > div .menu__level-2-img {
    position: static !important;
    margin: 0 auto !important;
  }

  header .menu2 .menu__level-2 .menu__level-2-ul.has-image > div .menu__level-2-a {
    text-align: center !important;
    justify-content: center !important;
    min-height: auto !important;
    margin: 0 !important;
  }
}
