.hs-inline-edit .hash-modal-module {
  display: block;
  text-align: center;
  background: gray;
  color: white;
}

.hash-modal-module {
  display: none; 
}

.HashModal .meta {
  
  display: grid;
  grid-template-areas:
      "a b"
      "a c"
      "border ."
      "d ."
      "border2 ."
      "e .";
  
    grid-template-columns: max-content 1fr;
  gap: 1rem;
}

.HashModal.no-subtitle .meta {
  grid-template-areas:
      "a b"
      "a b"
      "border ."
      "d ."
      "border2 ."
      "e .";
  gap: 0.5rem;
}

.HashModal.no-subtitle .meta .title {
  align-self: center;
}



.HashModal .meta .avatar {
  grid-area: a;
      /*place-self: center;*/
}

.HashModal .meta .title {
  grid-area: b;
  font-size: 24px;
  font-weight: bold;
  margin-left: 1rem;
}

.HashModal .meta .subtitle {
  grid-area: c;
  font-size: 16px;
  margin-left: 1rem;
}

.HashModal .meta .quote {
  grid-area: d;
     grid-column: 1 / 3; 
  font-size: 18px;
  font-weight: bold;
}

.HashModal .meta .avatar img {
    height: 84px;
    width: 84px;
    object-fit: cover;
    border-radius: 100%; 
}

.HashModal.larger-avatar .meta .avatar img {
    height: 128px;
    width: 128px;
    object-fit: contain;
}

.HashModal .bio {
  font-size: 14px;
  font-weight: bold;
}

.HashModal .content {
  font-size: 14px;
}

.HashModal {
  transition: all 0.4s ease-in-out;
  
    /*-webkit-backdrop-filter: blur(16px) saturate(125%) brightness(125%);
    backdrop-filter: blur(16px) saturate(125%) brightness(125%);*/
    background: rgba(0,0,0,.72);
    bottom: 0;
    height: 100vh;
    left: 0;
    margin: 0 auto;
    padding: 4rem 1rem 0;
    position: fixed;
    top: 0;
    width: 100vw;
    z-index: 1000000;
  
  opacity: 0;
}

div.HashModal.HashModal-transition {
  background: rgba(255,255,255,.8);
  opacity: 1;
}

.HashModal--open {
  background(); 
}

.HashModal__ui {
    align-items: center;
    display: flex;
    justify-content: center;
    left: 50%;
    margin: 0 auto 1rem;
    position: absolute;
    top: 1rem;
    transform: translateX(-50%)
}

.HashModal__message {
    color: var(--colour-grey);
    font-size: 14px;
    margin: 1rem 0 0;
    text-align: center
}

.HashModal__close {
    background: var(--colour-white);
    border-radius: 32px;
    box-shadow: var(--box-shadow);
    cursor: pointer;
    display: inline-block;
    font-size: 14px;
    line-height: 1;
    padding: .8rem 3.5rem .8rem 1rem;
    position: relative;
    transition: all .32s ease
}

.HashModal__close span {
    align-items: center;
    background: var(--colour-gold);
    border-radius: 100%;
    color: var(--colour-black);
    display: inline-flex;
    height: 2rem;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: .25rem;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem
}

.HashModal__close:hover {
    background: var(--colour-black);
    box-shadow: var(--box-shadow-hover);
    color: var(--colour-white)
}

.HashModal__content {
    /*height: calc(100% - 4rem);*/
    margin: 1rem 0 0;
    width: 100%
}

.HashModal__content img {
    height: 100%;
    max-height: 100vh;
    -o-object-fit: contain;
    object-fit: contain;
    padding-top: .25rem;
    width: 100%
}




.HashModal.HashModal__grid-row {
    background: transparent;
    backdrop-filter: none;
  -webkit-backdrop-filter: none;
    height: 100vh;
    padding: 0;
    padding-top: 15vh;
    padding-left: 20vw;
    padding-right: 20vw;
    width: 100%;
}

.HashModal.HashModal__grid-row::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    /*backdrop-filter: blur(4px) brightness(0.9) saturate(0.6);
  -webkit-backdrop-filter: blur(4px) brightness(0.9) saturate(0.6);*/
    z-index: -1;
  background: rgb(from var(--colour-grey) r g b / 10%)
}

.HashModal.HashModal__grid-row .HashModal__content {
    max-height: 70vh;
    margin: 0;
    width: 100%;
}

.HashModal.HashModal__grid-row .content {
  position: relative;
  display: flex;
  flex-direction: column;
  /*justify-content: center;
  align-items: center;
  
  gap: var(--h2-font-size);*/
  padding: 32px;
  padding-right: 64px;
  overflow: auto;
  
  /*height: 100%;*/
  max-height: 100%;
  width: 100%;
  background: hsla(0,0%,100%,.99);
  /*backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);*/
  border: solid 2px black;
  transition: backdrop-filter 1s ease-in-out;
  height: 100%;
}

.HashModal.HashModal__grid-row.HashModal-backdrop .content {
  /*backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);*/
}

.HashModal.HashModal__grid-row .HashModal__close {
      align-items: center;
    background: var(--colour-gold);
    border-radius: 100%;
    color: var(--colour-black);
    display: inline-flex;
    justify-content: center;
    left: auto;
    position: absolute;
    right: 8px;
    text-align: center;
    top: 8px;
    transform: none;
    z-index: 10;
    width: 30px;
    padding: 8px;
}

.HashModal.HashModal__grid-row h1, .HashModal.HashModal__grid-row h2, .HashModal.HashModal__grid-row h3, .HashModal.HashModal__grid-row h4, .HashModal.HashModal__grid-row h5, .HashModal.HashModal__grid-row h6 {
  min-height: auto;
}

.HashModal__content .border {
  margin: 1rem 0;
}

@media (max-width:768px) {
  .HashModal .meta {
    grid-template-columns: 0.4fr 1fr;
    display: flex;
    flex-direction: column;
  }
  
  .HashModal .meta .title {
    margin-left: 0; 
  }
  
  .HashModal .meta .subtitle {
    margin-left: 0; 
  }
}
