obituary-section {
  /* --section-profile-tag-bc: var(--black) !important; */
  --section-profile-tag-bc: #812a45 !important;
  /* --link-color: #812a45 !important; */
  --link-color: #1F2933 !important;
}


obituary-section .summary-wrapper {
    display: flex;
    flex-direction: row;
    margin: 0 auto;
  }

  p a {
    /* --link-color: #812a45 !important; */
    --link-color: #1F2933 !important;
    text-decoration: underline;
  }
  
  obituary-section .nav-panel {
    grid-column: 1;
    position: sticky;
    align-self: start;
    top: 0px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0 var(--page-padding);
    width: 80px;
  }
  
  obituary-section .nav-legend {
    display: flex;
    justify-content: center;
    flex-direction: column;
    margin: auto 0;
  }
  
  obituary-section .legend-item {
    height: 100px;
    font-family: var(--sans);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  obituary-section .legend-item a {
    text-decoration: none;

  }
  
  obituary-section .legend-item p {
    color: var(--text-color);
    font-size: 10px;
    line-height: 1.2;
    padding: 3px 5px;
    font-weight: normal;
    font-weight: bold;
    text-transform: uppercase;
  }
  
  obituary-section .legend-item p.active {
    background-color: var(--section-profile-tag-bc, var(--text-color));
    color: var(--section-profile-tag-text-color, var(--paper-color));
  }
  
  obituary-section .summaries {
    display: grid;
    grid-gap: 60px;
    --hf: var(--sans);
  /*  width: 100%;*/
  }
  
  obituary-section .h2 {
    font-size: calc(var(--font-base) * 1.2);
  }
  
  obituary-section .section p.section-title {
    display: inline-block;
    padding: 5px 10px;
    background-color: var(--section-profile-tag-bc, var(--text-color));
    color: var(--section-profile-tag-text-color, var(--paper-color));
    font-size: 1rem;
    font-weight: bold;
    text-align: left;
    font-family: var(--sans);
    text-transform: uppercase;
    margin: 0;
    margin-bottom: -30px;
    width: fit-content;
  }
  
  obituary-section .section {
    display: grid;
    grid-gap: 60px;
    --hf: var(--sans);
    padding: 0 var(--page-padding) 0 0;
    width: min(var(--story-width), calc(100% - 2 * var(--page-padding)));
    margin: 0 auto;
  }
  
  obituary-section .profile {
    max-width: var(--story-width);
    margin: 0 auto;
  }
  
  obituary-section .image-grid {
    align-self: stretch;
    display: grid;
    grid-template-columns: repeat(auto-fit, 100px);
    grid-gap: 5px;
  }
  
  obituary-section .image-grid img {
    display: block;
    /* width: 100%; */
    width: 150%;
    height: auto;
    background-color: var(--background-color);
    object-fit: cover;
  }
  
  obituary-section .title {
    margin-bottom: 5px;
  }
  
  obituary-section .subtitle {
    margin-top: 5px;
  }
  
  
  obituary-section .location {
    margin-top: 0px;
    /* margin-bottom: 5px; */
    margin-bottom: 0px;
    padding-bottom: 0px;
    padding-top: 0px;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    color: #8e8a67;
    line-height: 1.2;
    /* font-style: italic; */
  
  }
  
  obituary-section .date {
    margin-top: 0px;
    margin-bottom: 5px;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    /* color: #8e8a67; */
    /* font-style: italic; */
  
  }
  
  obituary-section .collage {
    display: flex;
    max-width: 1100px;
    flex-wrap: wrap;
    grid-gap: 5px;
    margin: 0 auto;
    justify-content: center;
    padding: 0 var(--page-padding);
  }
  
  obituary-section .collage a {
    text-decoration: none;
  }
  
  obituary-section .collage img {
    display: block;
    width: 75px;
    height: 75px;
    background-color: var(--background-color);
    filter: saturate(0%);
    transition: filter 100ms;
    object-fit: cover;
  }
  
  obituary-section .collage img:hover {
      filter: saturate(100%);
  }
  
  obituary-section .collage .placeholder {
    margin: auto;
    width: 100px;
    height: 100%;
    text-align: center;
    line-height: 100px;
    background: #777;
    color: lightgray;
    text-decoration: none;
    font-size: 25px;
    font-family: var(--sans);
    transition: filter 100ms;
  }
  
  obituary-section .collage .placeholder:hover {
    background: lightgray;
    color: gray;
  }
  
  obituary-section .collage.split {
    flex-direction: column;
  }
  
  
  obituary-section .collage.split p.section-title {
    display: block;
    padding: 5px 10px;
    background-color: var(--section-profile-tag-bc, var(--text-color));
    color: var(--section-profile-tag-text-color, var(--paper-color));
    font-size: 1rem;
    font-weight: bold;
    text-align: left;
    font-family: var(--sans);
    text-transform: uppercase;
    margin: 20px 0;
    width: fit-content;
  }
  
  obituary-section .collage-section {
    display: flex;
    max-width: 1100px;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0 auto;
    justify-content: center;
    padding: 0 var(--page-padding);
  }
  
  obituary-section hr {
    width: calc(100% - 4 * var(--page-padding));
    padding: 0 var(--page-padding);
    max-width: 1100px;
    opacity: 50%;
  }
  
  @media (max-width: var(--story-width)) {
    obituary-section hr {
      width: min(var(--story-width), calc(100% - 4 * var(--page-padding)));
    }
  }
  
  @media (min-width: 800px) {
    obituary-section .image-grid {
      grid-template-columns: repeat(auto-fit, 200px);
      /* height or width of image */
    } 
    obituary-section .collage img {
      /* width: 100px;
      height: 100px; */
      width: 140px;
      height: 140px;
      /* height or width of collage images */
    }
    obituary-section .nav-panel {
      width: 80px
    }
    obituary-section .legend-item p {
      font-size: 12px;
      text-transform: uppercase;
      font-weight: bold;
    }
  }