/* A Simple Gesture – Norwell: our own styles, loaded on every page after the old theme's CSS. */

/* The theme only hides the header logo on desktop. Hide it on phones and tablets too. */
@media (max-width: 980px) {
  #main-header .logo_container {
    display: none;
  }
}

/* On phones, stop photos floating beside text (the text was squeezed into a
   sliver next to them). Show each photo on its own line, centered. */
@media (max-width: 767px) {
  #main-content img.alignleft,
  #main-content img.alignright,
  #main-content .wp-caption.alignleft,
  #main-content .wp-caption.alignright {
    float: none;
    display: block;
    margin: 0 auto 15px;
  }
}

/* Food Pantry wish list (What's Needed page). Laid out to match the pantry's PDF:
   bold centered title, underlined category names, italic sub-headings,
   indented items with no bullets, and bullets only on nested items. */
.wish-list {
  clear: both;
  color: #000;
}
.wish-list h2 {
  text-align: center;
  font-weight: 700;
  color: #000;
  margin: 40px 0;
  padding: 0;
  line-height: 1.25;
}
.wish-list-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
}
.wish-list h3 {
  font-size: 1.15em;
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
  text-decoration: underline;
  padding: 0 0 4px;
}
.wish-list h4 {
  font-size: 1.15em;
  font-style: italic;
  color: #000;
  padding: 0 0 2px;
}
.wish-list ul {
  list-style: none;
  padding: 0 0 1.6em 3em;
  font-size: 1.15em;
  line-height: 1.6;
}
.wish-list ul ul {
  list-style: disc;
  font-size: 1em;
  padding: 0 0 0 3.5em;
}
.wish-list-print {
  padding-top: 10px;
}
@media (max-width: 767px) {
  .wish-list-columns {
    grid-template-columns: 1fr;
  }
  .wish-list h2 {
    margin: 30px 0;
  }
  .wish-list ul {
    padding-left: 2em;
  }
}

/* Keep the header the same height when the page is scrolled. The theme shrank
   the menu text (19px to 16px) once the header became "fixed", which made the
   whole bar shrink. */
@media (min-width: 981px) {
  #main-header.et-fixed-header #top-menu li a {
    font-size: 19px;
  }
}

/* Page headings that screen readers and search engines read but that are not
   shown, so the page looks the same as before. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
