@media screen {
  .ingredient-photo {
    display: block;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 5px;
    background: var(--paper);
  }

  #ingredients {
    scroll-margin-top: 95px;
  }

  .ingredient-groups {
    display: block;
  }

  .ingredient-groups summary {
    cursor: pointer;
  }

  .ingredient-groups summary::after {
    content: "";
    width: 9px;
    height: 9px;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
    margin: 0 8px 5px 0;
  }

  .ingredient-groups details[open] > summary::after {
    transform: rotate(225deg);
    margin-bottom: -5px;
  }

  .ingredient-groups summary > span {
    margin-left: auto;
  }

  .ingredient-groups ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    gap: 18px 14px;
    list-style: none;
    padding: 0;
    margin: 12px 0 8px;
  }

  .ingredient-groups li {
    min-width: 0;
    line-height: 1.35;
    font-weight: 600;
  }

  .ingredient-groups .ingredient-photo {
    width: 100%;
    height: auto;
    margin-bottom: 7px;
  }

  .byo-ingredient-list > li:not([hidden]) {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 12px;
  }

  .byo-ingredient-list .ingredient-photo {
    width: 100%;
    height: auto;
  }
}

@media screen and (max-width: 600px) {
  .ingredient-groups ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 10px;
  }
}

@media screen and (max-width: 370px) {
  .byo-ingredient-list > li:not([hidden]) {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 7px;
  }
}

@media print {
  .ingredient-photo,
  .full-menu-page [data-ingredient-group="protein"] {
    display: none;
  }
}
