/* Modal style */

modal dialog[open] {
  /* background overlay */
  display: flex;
  flex-direction: column-reverse;
}
modal dialog:-internal-dialog-in-top-layer::backdrop {
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(2px);
}
modal dialog:modal {
  padding: 0;
  border: none;
  border-radius: 8px;
  width: fit-content;
  max-width: 600px;
  animation: 0.3s fade-in-top ease forwards;
  background-color: #ffffff;
  /* box-shadow: 0 0 0 2.25px #ffffff; */
  margin-top: 5vw;
  cursor: default;
}
modal dialog .content {
  padding: 1.5em;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: auto;
  max-height: 80vh;
}

modal dialog .content h3:first-of-type, 
modal dialog .content .member-role,
modal dialog .content .member-pronouns,
modal .portrait-border {
    margin-left: auto;
    margin-right: auto;
}

modal dialog .content .portrait-border {
    cursor: default;
    margin-bottom: 1rem;
}

modal dialog header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4em;
  background-color: #ffffff;
}
modal dialog header > :first-child {
  padding: 0 1.2em 0 0.4em;
  color: #ffffff;
  margin: 0;
}
modal dialog header .close-btn {
  height: 2rem;
  width: 2rem;
  border-radius: 50%;
  text-align: center;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-color: transparent;
  background-color: transparent;
  fill: #293C8F;
  /* opacity: .7; */
}
modal dialog header .close-btn:focus {
  /* opacity: 1; */
}
modal > button {
  width: 100%;
  background-color: transparent;
}

dialog, dialog::backdrop {
    overscroll-behavior: contain;
    overflow: hidden;
}


/* testimonial */

modal.testimonial-container dialog .content {
  padding: 0 1.5rem 1.5rem 2rem;
}

modal .testimonial-portrait-border img {
  object-position: left center;
}

modal .about-popup-content header {
  justify-content: center;
}

modal .content li {
  font-size: 1rem;
}

modal picture {
  align-content: center;
}

modal img {
  max-height: 100%;
  width: auto;
}

modal .content footer {
  display: flex;
  justify-content: center;
  /* Comment test */
}

