/* Dialog Polyfill 
--------------------------------------*/
dialog { display:block; position:fixed; left:0; right:0; /*width:fit-content; height:fit-content;*/ margin:auto; padding:0; border:none; box-shadow:0 0 7px rgba(0,0,0,0.7); background:var(--sky-blue); max-width:90vw; max-height:90vh; }
  dialog[open] { -webkit-animation:dialogShow .25s ease-out; animation:dialogShow .25s ease-out;}
  dialog:not([open]) { display:none; }
  dialog.fixed { position:fixed; top:50%; transform:translate(0, -50%); }
dialog + .backdrop { position:fixed; top:0; right:0; bottom:0; left:0;  }
dialog::-webkit-backdrop { background:rgba(8,22,41,0.7); }
dialog + .backdrop,
dialog::backdrop { background:rgba(8,22,41,0.7); }
._dialog_overlay { position:fixed; top:0; right:0; bottom:0; left:0; }
.has-open-dialog .page-main { z-index:unset; }

.dialog-close {position:absolute; top:-1rem; right:-1rem;}
  .dialog-close button { border: 0; -webkit-animation: dialogEnter 0.3s; animation: dialogEnter 0.3s; }
  .dialog-close.offset {top:-1.6rem; right:-0.7rem;}
    .dialog-close.offset button {width:1em; height:1em; line-height:1em; }
    
.dialog-frame { overflow-y:auto; height:auto; max-height:90vh;}
.dialog-body { padding:1rem; }
.dialog-image img { width:100%; }

@-webkit-keyframes dialogEnter { 
  from { opacity:0; transform:translate3d(0, -1em, 0); }
  to { opacity:1; transform:translate3d(0, 0, 0); }
}

@keyframes dialogEnter { 
  from { opacity:0; transform:translate3d(0, -1em, 0); }
  to { opacity:1; transform:translate3d(0, 0, 0); }
}

@-webkit-keyframes dialogShow { 
  from {opacity:0;} 
  to {opacity:1;} 
}

@keyframes dialogShow { 
  from {opacity:0;} 
  to {opacity:1;} 
}

/* Default Style 
--------------------------------------*/
/* People Modal */
.dialog-name { margin: 0.25rem 0; padding: 0; }
.dialog-team { color: var(--gray); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.9em; margin-bottom: 0; }
.dialog-title { font-weight: bold; color: var(--brand-blue); }
 
  .dialog-pager { display:flex; flex-flow:row wrap; justify-content:space-between; }
  .no-js .dialog-pager,
  [data-team=""] .dialog-pager-team {display:none;}
  .dialog-pager-team { width:100%; margin-top: 2rem; }

@media screen and (min-width:40rem) { 
  .dialog-person {overflow:visible; max-width:80vw; display:flex; flex-flow:row; height:-webkit-fit-content; height:-moz-fit-content; height:fit-content; }
    .dialog-person .dialog-image {margin:-1rem 1rem 0 -1rem; width:40%; }
    .dialog-person .dialog-body { padding:2rem 2rem 2rem 1rem; width:60%; overflow-y:auto; }
  .dialog-person .dialog-frame { display:flex; flex-flow:row; overflow:visible; height:-webkit-fit-content; height:-moz-fit-content; height:fit-content; padding:0; }
}
@media screen and (min-width:48rem) { 
  .dialog-person .dialog-image { width:33%; }
  .dialog-person .dialog-body { width:67%; }
}  
@media screen and (min-width:120rem) { 
 .dialog-person {max-width:108rem; }
}

/* Video Modal */
.dialog-video { width:800px; max-width:80vw; background:transparent; }


/* Alternate Style 1
--------------------------------------*/
/* People Modal */
dialog.style1 { background: transparent; box-shadow: none; }
.style1 .dialog-name { color: white; }
.style1 .dialog-team { color: var(--gray-light); }
.style1 .dialog-title { color: white; }
.style1 .dialog-image img { border-radius: 50%; overflow: hidden; }
  .style1 .dialog-bio, .style1 .dialog-body, .style1 .dialog-desc { color: white; }
  .style1 .dialog-bio a, .style1 .dialog-body a, .style1 .dialog-desc a { color:var(--sky-blue-light); }
.style1 + .backdrop { background: rgba(8,22,41,0.98); }
.style1::-webkit-backdrop { background: rgba(8,22,41,0.98); }
.style1::backdrop { background: rgba(8,22,41,0.98); }

.style1 .dialog-frame .btn { color:var(--brand-blue); }

.style1 .dialog-pager-team { border-bottom: 1px solid var(--sky-blue-dark); color: var(--gray-light); }

.style1 .dialog-pager .btn { color:white; }
  .style1 .dialog-pager .btn:hover { background: var(--brand-blue-light); }
